@import url('https://fonts.googleapis.com/css2?family=Inter:wght@100;200;300;400;500;600;700;800;900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --accent-gradient: linear-gradient(45deg, #ff6b6b, #4ecdc4, #45b7d1, #96ceb4);
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --dark-bg: #0a0a0a;
    --light-text: #f8f9fa;
    --accent-color: #667eea;
    --transition-smooth: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: all 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: var(--light-text);
    background: var(--dark-bg);
    overflow-x: hidden;
    cursor: none;
}

body.light-mode {
    background: white;
}

body.light-mode .navbar {
    background: rgba(255, 255, 255, 0.8);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

body.light-mode .navbar a,
body.light-mode .hero-title,
body.light-mode .hero-subtitle,
body.light-mode .hero-description,
body.light-mode .section-title,
body.light-mode .project-card h3,
body.light-mode .project-card p,
body.light-mode .tech-tag,
body.light-mode .experience-description,
body.light-mode .highlight-list li,
body.light-mode .contact-item span,
body.light-mode .contact-form label,
body.light-mode .footer,
body.light-mode .social-link {
    color: #212529;
}
body.light-mode .project-card,
body.light-mode .experience-card {
    background: #ffffff;
    color: #212529;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

body.light-mode .project-card h3,
body.light-mode .experience-card .experience-company,
body.light-mode .experience-card .experience-role {
    color: #212529;
}

body.light-mode .project-card p,
body.light-mode .experience-description,
body.light-mode .highlight-list li {
    color: #333333;
}

body.light-mode .tech-tag,
body.light-mode .experience-tech-tag {
    background: rgba(33, 37, 41, 0.1);
    color: #212529;
    border-color: rgba(33, 37, 41, 0.2);
}

body.light-mode .tech-tag:hover,
body.light-mode .experience-tech-tag:hover {
    background: #212529;
    color: #ffffff;
}
body.light-mode .cursor {
    background: #212529;
}

body.light-mode .cursor-trail {
    background: rgba(33, 37, 41, 0.4);
}

body.light-mode .btn-primary {
    background: transparent;
    color: white;
    border: 2px solid rgba(33, 37, 41, 0.3);
}

body.light-mode .btn-secondary {
    background: transparent;
    color:white;
    border: 2px solid rgba(33, 37, 41, 0.3);
}

body.light-mode .tech-tag {
    background: rgba(33, 37, 41, 0.2);
}

body.light-mode .footer {
    background: #e9ecef;
}

body.light-mode .about-text p {
    color: #212529;
}

body.light-mode .skills-grid .skill-card {
    background: rgba(33, 37, 41, 0.1);
    color: #212529;
}

body.light-mode .skills-grid .skill-card:hover {
    background: #212529;
    color: #f8f9fa;
}

body.light-mode .timeline-title {
    color: #212529;
}

body.light-mode .timeline-subtitle {
    color: #667eea;
}

body.light-mode .timeline-description {
    color: #212529;
}

body.light-mode .achievement-tag {
    background: rgba(33, 37, 41, 0.1);
    color: #212529;
}

body.light-mode .achievement-tag:hover {
    background: #212529;
    color: #f8f9fa;
}
body.light-mode .hero,
body.light-mode .about,
body.light-mode .projects,
body.light-mode .contact {  
    background: #ffffff !important;
}

.cursor {
    position: fixed;
    width: 15px;
    height: 15px;
    background: var(--accent-color);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    mix-blend-mode: difference;
}

.cursor-trail {
    position: fixed;
    width: 10px;
    height: 10px;
    background: rgba(102, 126, 234, 0.4);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
}

.cursor.expand {
    width: 30px;
    height: 30px;
    background: rgba(102, 126, 234, 0.2);
    border: 2px solid var(--accent-color);
}

.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--accent-color);
    border-radius: 50%;
    opacity: 0.3;
    animation: float 20s infinite linear;
}

@keyframes float {
    0% {
        transform: translateY(100vh) rotate(0deg);
    }
    100% {
        transform: translateY(-100vh) rotate(360deg);
    }
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 2;

}

.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1000;
    padding: 1rem 0;
    transition: var(--transition-smooth);
}

.navbar.scrolled {
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(30px) saturate(200%);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    background: var(--accent-gradient);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientShift 3s ease-in-out infinite;
    cursor: pointer;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 3rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--light-text);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    transition: var(--transition-smooth);
    cursor: pointer;
}

.nav-links a::before {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary-gradient);
    transition: var(--transition-bounce);
    transform: translateX(-50%);
}

.nav-links a:hover::before {
    width: 100%;
}

.nav-links a:hover {
    color: var(--accent-color);
    text-shadow: 0 0 10px rgba(102, 126, 234, 0.5);
}

.hero {
    height: 100vh;
    background: radial-gradient(ellipse at center, rgba(102, 126, 234, 0.15) 0%, var(--dark-bg) 70%);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(102, 126, 234, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(118, 75, 162, 0.1) 0%, transparent 50%);
    animation: pulseGlow 4s ease-in-out infinite alternate;
}

@keyframes pulseGlow {
    0% { opacity: 0.5; transform: scale(1); }
    100% { opacity: 0.8; transform: scale(1.1); }
}

.hero-content {
    position: relative;
    z-index: 3;
}

.hero-title {
    font-size: clamp(2rem, 10vw,5rem);
    font-weight: 900;
    line-height: 1;
    margin-bottom: 1.1rem;
    background: var(--accent-gradient);
    background-size: 100% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientFlow 4s ease-in-out infinite;
    opacity: 0;
    transform: translateY(100px);
    animation: slideUpReveal 1.2s cubic-bezier(0.4, 0, 0.2, 1) 0.5s forwards,
               gradientFlow 4s ease-in-out infinite;
}

@keyframes gradientFlow {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

@keyframes slideUpReveal {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-subtitle {
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    font-weight: 300;
    
    opacity: 0;
    transform: translateY(50px);
    animation: slideUpReveal 1.2s cubic-bezier(0.4, 0, 0.2, 1) 0.8s forwards;
}

.hero-description {
    font-size: 1rem;
    max-width: 1000px;
    opacity: 0;
    transform: translateY(30px);
    animation: slideUpReveal 1.2s cubic-bezier(0.4, 0, 0.2, 1) 1.1s forwards;
    color: rgba(248, 249, 250, 0.8);
    position: relative; 
    display: flex;
    flex-wrap: wrap;
    z-index: 2; 
}

/* Fixed CTA Buttons Section */
.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 2rem;
    padding: 0.01rem; /* Add padding to prevent edge cutoff */
    width: 100%;
    max-width: 100%;
    opacity: 0;
    transform: translateY(20px);
    animation: slideUpReveal 1.2s cubic-bezier(0.4, 0, 0.2, 1) 1.4s forwards;
    position: relative;
    z-index: 2;
}

/* Fixed Button Styles */
.btn {
    display: inline-flex; /* Changed from flex to inline-flex */
    align-items: center;
    justify-content: center;
    padding: 16px 24px; /* Increased horizontal padding */
    min-width: 160px; /* Ensure minimum width */
    height: auto;
    border: none;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 600;
    transition: var(--transition-smooth);
    text-decoration: none;
    gap: 0.5rem;
    position: relative;
    white-space: nowrap; /* Prevent text wrapping */
    text-align: center;
    box-sizing: border-box;
}

.btn-primary {
    background: var(--primary-gradient);
    color: white;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--light-text);
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent-color);
    transform: translateY(-3px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .cta-buttons {
        flex-direction: column;
        gap: 1rem;
        padding: 0 2rem; /* Increase padding on mobile */
        margin-top: 2rem;
    }

    .btn {
        width: 100%;
        max-width: 280px; /* Limit maximum width on mobile */
        min-width: 200px;
        padding: 16px 20px;
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .cta-buttons {
        flex-direction: column;
        gap: 1rem;
        padding: 0 1.5rem;
        margin-top: 1.5rem;
    }

    .btn {
        width: 100%;
        max-width: 250px;
        min-width: 180px;
        padding: 14px 18px;
        font-size: 0.9rem;
    }
}

.floating-element {
    position: absolute;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 1.5rem;
    animation: magneticFloat 6s ease-in-out infinite;
    transition: var(--transition-smooth);
    width: auto; /* Adjusted size for better appearance */
    height: auto;
}

.floating-element:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 20px 40px rgba(102, 126, 234, 0.2);
}

@media (max-width: 768px) {
    .floating-element {
        display: none; /* Hide floaters on smaller screens */
    }
}

.float-1 {
    top: 20%;
    right: 10%;
    animation-delay: 0s;
}

.float-2 {
    bottom: 20%;
    left: 10%;
    animation-delay: -2s;
}

.float-3 {
    top: 60%;
    right: 20%;
    animation-delay: -4s;
}

@keyframes magneticFloat {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    33% { transform: translateY(-20px) rotate(2deg); }
    66% { transform: translateY(10px) rotate(-1deg); }
}

.section {
    padding: 8rem 0;
    position: relative;
}

.section-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    text-align: center;
    margin-bottom: 4rem;
    background: var(--accent-gradient);
    background-size: 400% 400%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientShift 3s ease-in-out infinite;
    opacity: 0;
    transform: translateY(50px);
    transition: var(--transition-smooth);
}

.section-title.visible {
    opacity: 1;
    transform: translateY(0);
}

.about {
    background: radial-gradient(ellipse at center, rgba(118, 75, 162, 0.1) 0%, transparent 70%);
    justify-content: center;
    align-items: center;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;  
}

.about-visual {
    position: relative;
    display: flex;
    flex-wrap:wrap;
    align-items: center;
    justify-content: center;
}

.morphing-shape {
    width: 300px;
    height: 300px;
    background: var(--primary-gradient);
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    animation: morphing 8s ease-in-out infinite;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    position: relative;
    overflow: hidden;
}

.morphing-shape::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 100%;
    background: conic-gradient(from 0deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: rotate 4s linear infinite;
}

@keyframes morphing {
    0%, 100% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
    25% { border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%; }
    50% { border-radius: 70% 30% 40% 60% / 40% 50% 60% 30%; }
    75% { border-radius: 40% 70% 60% 30% / 70% 40% 50% 60%; }
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.about-text {
    font-size: 1.1rem;
    line-height: 1.8;
    text-align: justify;
    color: rgba(248, 249, 250, 0.9);
    align-items: center;
    justify-content: center;

}

.about-text p {
    margin-bottom: 1.5rem;
    opacity: 0;
    transform: translateX(50px);
    transition: var(--transition-smooth);
}

.about-text p.visible {
    opacity: 1;
    transform: translateX(0);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
    margin-top: 3rem;
}

.skill-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    padding: 1.5rem 1rem;
    text-align: center;
    transition: var(--transition-bounce);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.skill-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--primary-gradient);
    transition: var(--transition-smooth);
    z-index: -1;
}

.skill-card:hover {
    transform: translateY(-10px) rotate(5deg);
    color: white;
}

.skill-card:hover::before {
    left: 0;
}

.profile-picture {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    transition: var(--transition-smooth);
}

.profile-picture:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
}

.profile-picture-large {
    width: 500px;
    height: 400px;
    border-radius: 20px;
    object-fit: cover;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
    transition: var(--transition-smooth);
}

.profile-picture-large:hover {
    transform: scale(1.26);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 2rem;
}

.projects {
    background: radial-gradient(ellipse at center, rgba(102, 126, 234, 0.1) 0%, transparent 70%);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 3rem;
}

.project-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2.5rem;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--accent-gradient);
    background-size: 300% 300%;
    animation: gradientShift 3s ease-in-out infinite;
}

.project-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 30px 60px rgba(102, 126, 234, 0.2);
    border-color: var(--accent-color);
}

.project-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--light-text);
}

.project-card p {
    color: rgba(248, 249, 250, 0.8);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-bottom: 2rem;
}
.project-links {
     display: flex;
     gap: 1rem;
     flex-wrap: wrap;
}           

.tech-tag {
    background: rgba(102, 126, 234, 0.2);
    color: var(--accent-color);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid rgba(102, 126, 234, 0.3);
    transition: var(--transition-smooth);
}

.tech-tag:hover {
    background: var(--accent-color);
    color: white;
    transform: scale(1.1);
}

.contact {
    background: radial-gradient(ellipse at center, rgba(118, 75, 162, 0.15) 0%, var(--dark-bg) 70%);
}

.contact-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4rem;
    max-width: 800px;
    margin: 0 auto;
}

.contact-info {
    opacity: 1;
    transform: translateX(0);
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.contact-info.visible {
    opacity: 1;
    transform: translateX(0);
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
    font-size: 1.1rem;
    transition: var(--transition-smooth);
    padding: 1rem;
    border-radius: 15px;
    cursor: pointer;
    justify-content: center;
    min-width: 300px;
}

.contact-item:hover {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    transform: scale(1.05);
}

.contact-item i {
    margin-right: 1.5rem;
    font-size: 1.5rem;
    width: 30px;
}

.contact-form {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    padding: 4rem;
    border-radius: 20px;
    opacity: 1;
    transform: translateX(0);
    transition: var(--transition-smooth);
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    box-shadow: 0 20px 40px rgba(102, 126, 234, 0.2);
}
body.light-mode .contact-form {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid;
    padding: 4rem;
    border-radius: 20px;
    opacity: 1;
    transform: translateX(0);
    transition: var(--transition-smooth);
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    box-shadow: 0 20px 40px rgba(102, 126, 234, 0.2);
}
.form-group {
    margin-bottom: 2rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.8rem;
    font-weight: 600;
    color: var(--light-text);
    font-size: 1.2rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--light-text);
    font-size: 1rem;
    transition: var(--transition-smooth);
    backdrop-filter: blur(10px);
    font-size: 1.1rem;
}
body.light-mode .form-group input,
body.light-mode .form-group textarea {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid rgba(33, 37, 41, 0.1);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--light-text);
    font-size: 1rem;
    transition: var(--transition-smooth);
    backdrop-filter: blur(10px);
    font-size: 1.1rem;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 20px rgba(102, 126, 234, 0.3);
    background: rgba(255, 255, 255, 0.1);
}

textarea {
    height: 150px;
    resize: none;
}

.contact-form button {
    width: 100%;
    padding: 16px 0;
    font-size: 1.2rem;
    border-radius: 50px;
    background: var(--primary-gradient);
    color: white;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
    transition: var(--transition-smooth);
}

.contact-form button:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.4);
}

.footer {
    background: linear-gradient(135deg, var(--dark-bg) 0%, #1a1a1a 100%);
    padding: 3rem 0;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.social-link {
    width: 60px;
    height: 60px;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--light-text);
    text-decoration: none;
    font-size: 1.5rem;
    transition: var(--transition-bounce);
    position: relative;
    overflow: hidden;
}

.social-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary-gradient);
    transform: scale(0);
    transition: var(--transition-smooth);
    z-index: -1;
}

.social-link:hover {
    transform: translateY(-10px) scale(1.1);
    color: white;
}

.social-link:hover::before {
    transform: scale(1);
}

.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0;
    height: 4px;
    background: var(--primary-gradient);
    z-index: 9999;
    transition: width 0.1s ease;
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .timeline-container {
        padding: 0 1rem;
    }

    .timeline-content {
        width: 90%; /* Further adjust for smaller screens */
        max-width: 90%;
    }

    .experience-grid {
        grid-template-columns: 1fr;
    }

    .experience-card {
        width: 80%; /* Adjusted for responsiveness */
        height: auto; /* Ensure height adjusts dynamically */
    }

    .contact-form {
        padding: 2rem;
    }

    .social-links {
        gap: 1rem;
    }

    .back-to-top {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .floating-element {
        width: 100px; /* Reduce size for smaller screens */
        height: 100px;
    }

    .bottom-navbar {
        position: fixed;
        bottom: 1%;
        width: 90%;
        height: fit-content;
        display: flex;
        justify-content: space-around;
        align-items: center;
        align-items: center;
        z-index: 3;
        transition: var(--transition-smooth);
        border-radius: 50px;
        background-color: grey;
        padding: 2%;
      

    }

    .bottom-navbar .mode-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        background: var(--glass-bg);
        border: 1px solid var(--glass-border);
        border-radius: 50%;
        cursor: pointer;
        transition: var(--transition-smooth);
    }

    .bottom-navbar .mode-toggle:hover {
        background: var(--accent-color);
        color: white;
        transform: scale(1.1);
    }

    body.light-mode .bottom-navbar .mode-toggle {
        background: #ffffff;
        border: 1px solid rgba(0, 0, 0, 0.1);
        color: #212529;
    }

    body.dark-mode .bottom-navbar .mode-toggle {
        background: #0a0a0a;
        border: 1px solid rgba(255, 255, 255, 0.1);
        color: #f8f9fa;
    }
    

    body.light-mode .bottom-navbar {
        background: #ffffff;
        border-top: 1px solid rgba(0, 0, 0, 0.1);
    }

    body.dark-mode .bottom-navbar {
        background: #0a0a0a;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    .bottom-navbar a {
        text-decoration: none;
        display: flex;
        flex-direction: column;
        align-items: center;
        font-size: 0.8rem;
        transition: var(--transition-smooth);
        color:white;
    }

    body.light-mode .bottom-navbar a {
        color: #212529;
    }

    body.dark-mode .bottom-navbar a {
        color: var(--light-text);
    }

    .bottom-navbar a:hover {
        color: var(--accent-color);
    }

    .bottom-navbar a img {
        width: 24px;
        height: 24px;
        margin-bottom: 0.3rem;
        filter: brightness(0.8);
        transition: var(--transition-smooth);
    }

    .bottom-navbar a:hover img {
        filter: brightness(1);
    }

    body.light-mode .navbar {
        background: #ffffff;
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    }

    body.light-mode .navbar a {
        color: #212529;
    }

    body.dark-mode .navbar {
        background: #0a0a0a;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    body.dark-mode .navbar a {
        color: #f8f9fa;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 0.9rem;
    }

    .btn {
        padding: 12px 24px;
        font-size: 0.9rem;
    }

    .profile-picture {
        width: 150px;
        height: 150px;
    }

    .profile-picture-large {
        width: 300px;
        height: 250px;
    }

    .timeline-content {
        padding: 1.5rem;
    }

    .experience-card {
        padding: 1.5rem;
    }

    .contact-item {
        font-size: 0.9rem;
        padding: 0.8rem;
    }

    .floating-element {
        width: 80px; /* Further reduce size for very small screens */
        height: 80px;
    }


}

.fade-in {
    opacity: 0;
    transform: translateY(50px);
    transition: var(--transition-smooth);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.slide-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: var(--transition-smooth);
}

.slide-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.slide-right {
    opacity: 0;
    transform: translateX(50px);
    transition: var(--transition-smooth);
}

.slide-right.visible {
    opacity: 1;
    transform: translateX(0);
}

.scale-in {
    opacity: 0;
    transform: scale(0.8);
    transition: var(--transition-bounce);
}

.scale-in.visible {
    opacity: 1;
    transform: scale(1);
}

.section {
    padding: 8rem 0;
    position: relative;
}

.education {
    background: radial-gradient(ellipse at center, rgba(255, 107, 107, 0.1) 0%, transparent 70%);
    position: relative;
    overflow: hidden;
    width: auto;
    height: auto;
    margin: 0 auto;
}

.timeline-container {
    position: relative;
    max-width: auto;
    margin: 0 auto;
}



.timeline-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* Align items to start from the timeline line */
    margin-bottom: 4rem;
    opacity: 0;
    transform: translateY(50px);
    transition: var(--transition-smooth);
}

.timeline-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.timeline-item:nth-child(odd) .timeline-content {
    margin-left: auto; /* Align odd items to the left of the timeline line */
    margin-right: 60px;
    text-align: right;
}

.timeline-item:nth-child(even) .timeline-content {
    margin-right: auto; /* Align even items to the right of the timeline line */
    margin-left: 60px;
    text-align: left;
}

.timeline-content {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2.5rem;
    width: auto; /* Adjust width dynamically */
    max-width: 80%; /* Limit maximum width */
    height: auto; /* Ensure height adjusts dynamically */
    max-height: 100%; /* Limit maximum height */
    position: relative;
    transition: var(--transition-smooth);
    cursor: pointer;
}

.timeline-content:hover {
    transform: scale(1.05);
    box-shadow: 0 20px 40px rgba(102, 126, 234, 0.2);
    border-color: var(--accent-color);
}

.timeline-content::before {
    content: '';
    position: absolute;
    top: 20px;
    width: 20px;
    height: 20px;
    background: var(--primary-gradient);
    border-radius: 50%;
    z-index: 2;
}

.timeline-item:nth-child(odd) .timeline-content::before {
    right: -70px;
}

.timeline-item:nth-child(even) .timeline-content::before {
    left: -70px;
}

.timeline-content::after {
    content: '';
    position: absolute;
    top: 25px;
    width: 0;
    height: 0;
    border: 10px solid transparent;
}

.timeline-item:nth-child(odd) .timeline-content::after {
    right: -30px;
    border-left-color: var(--glass-border);
}

.timeline-item:nth-child(even) .timeline-content::after {
    left: -30px;
    border-right-color: var (--glass-border);
}

.timeline-date {
    display: inline-block;
    background: var(--accent-gradient);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientShift 3s ease-in-out infinite;
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.timeline-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--light-text);
}

.timeline-subtitle {
    font-size: 1.1rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
    font-weight: 600;
}

.timeline-description {
    color: rgba(248, 249, 250, 0.8);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.achievement-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.achievement-tag {
    background: rgba(255, 107, 107, 0.2);
    color: #ff6b6b;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid rgba(255, 107, 107, 0.3);
    transition: var(--transition-smooth);
}

.achievement-tag:hover {
    background: #ff6b6b;
    color: white;
    transform: scale(1.1);
}

.experience {
    background: radial-gradient(ellipse at center, rgba(78, 205, 196, 0.1) 0%, transparent 70%);
    perspective: 1000px;
}

.experience-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 3rem;
    margin-top: 4rem;
}

.experience-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 25px;
    padding: 0;
    position: relative;
    overflow: hidden;
    transition: var(--transition-smooth);
    transform-style: preserve-3d;
    cursor: pointer;
    opacity: 0;
    transform: translateY(50px) rotateX(20deg);
}

.experience-card.visible {
    opacity: 1;
    transform: translateY(0) rotateX(0deg);
}

.experience-card:hover {
    transform: translateY(-20px) rotateX(5deg) rotateY(5deg);
    box-shadow: 0 30px 60px rgba(78, 205, 196, 0.3);
}

.experience-header {
    background: var(--accent-gradient);
    background-size: 400% 400%;
    animation: gradientFlow 4s ease-in-out infinite;
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

.experience-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg, transparent, rgba(255,255,255,0.2), transparent);
    animation: rotate 6s linear infinite;
}

.experience-company {
    font-size: 1.5rem;
    font-weight: 800;
    color: white;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 2;
}

.experience-role {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    position: relative;
    z-index: 2;
}

.experience-duration {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    color: white;
    z-index: 2;
}

.experience-body {
    padding: 2.5rem;
}

.experience-description {
    color: rgba(248, 249, 250, 0.9);
    line-height: 1.7;
    margin-bottom: 2rem;
    font-size: 1rem;
}

.experience-highlights {
    margin-bottom: 2rem;
}

.experience-highlights h4 {
    color: var(--accent-color);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.highlight-list {
    list-style: none;
    padding: 0;
}

.highlight-list li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 0.8rem;
    color: rgba(248, 249, 250, 0.8);
    line-height: 1.6;
}

.highlight-list li::before {
    content: '-';
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: bold;
}

.experience-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.experience-tech-tag {
    background: rgba(78, 205, 196, 0.2);
    color: #4ecdc4;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid rgba(78, 205, 196, 0.3);
    transition: var(--transition-smooth);
}

.experience-tech-tag:hover {
    background: #4ecdc4;
    color: white;
    transform: scale(1.1);
}

.floating-badge {
    position: absolute;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    padding: 1rem;
    font-size: 2rem;
    animation: floatingBadge 8s ease-in-out infinite;
    z-index: 1;
}

.badge-1 {
    top: 15%;
    right: 5%;
    animation-delay: 0s;
}

.badge-2 {
    bottom: 20%;
    left: 8%;
    animation-delay: -2s;
}

.badge-3 {
    top: 40%;
    left: 5%;
    animation-delay: -4s;
}

@keyframes floatingBadge {
    0%, 100% { transform: translateY(0px) rotate(0deg) scale(1); }
    25% { transform: translateY(-20px) rotate(5deg) scale(1.1); }
    50% { transform: translateY(0px) rotate(0deg) scale(1); }
    75% { transform: translateY(-10px) rotate(-3deg) scale(1.05); }
}

.bottom-navbar {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    border-top: inherit;
    border-radius: 30px;
    background-color: inherit;
    transition: width 0.3s ease, padding 0.3s ease;
    width: 100%;
    padding: 0.5rem 0.5rem;
    flex-wrap: wrap;
    -webkit-text-fill-color: inherit;
}

.bottom-navbar.minimized {
    position: fixed;
    width: 40px; 
    height: 40px;
    border-radius:50%;
    align-items: center;
}

.bottom-navbar.minimized a,
.bottom-navbar.minimized .divider {
    display: none; /* Hide links and dividers when minimized */
}

.bottom-navbar .toggle-navbar-btn {
    position: flex;
    border-radius: 50px;
    height:20px;
    bottom:20px;
    left:20px;
}

.bottom-navbar .divider {
    color: black;
    font-weight: bold;
}

.toggle-navbar-btn {
    background-color: inherit;
    bottom: 20px;
    right:20px;
    color: inherit;
    border: none;
    padding: 0.5rem 1rem;
    cursor: pointer;
    border-radius: 50%;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.toggle-navbar-btn:hover {
    background-color: inherit;
    border-radius: 50%;
}
body.light-mode * {
  -webkit-text-fill-color: initial !important;
  color: #212529 !important;
}
