/* Global Styles */
:root {
    --primary-color: #4A90E2;
    --secondary-color: #50E3C2;
    --accent-color: #9013FE;
    --text-color: #333333;
    --light-bg: #f9f9f9;
    --dark-bg: #121212;
    --gradient-1: linear-gradient(135deg, #4A90E2, #9013FE);
    --gradient-2: linear-gradient(135deg, #50E3C2, #4A90E2);
    --box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    --purple: #9013FE;
    --blue: #4A90E2;
    --turquoise: #50E3C2;
}

[data-theme="dark"] {
    --primary-color: #BB86FC;
    --secondary-color: #03DAC6;
    --accent-color: #50E3C2;
    --text-color: #E0E0E0;
    --light-bg: #1E1E1E;
    --dark-bg: #121212;
    --gradient-1: linear-gradient(135deg, #BB86FC, #03DAC6);
    --gradient-2: linear-gradient(135deg, #03DAC6, #BB86FC);
    --box-shadow: 0 10px 20px rgba(255, 255, 255, 0.1);
    /* Darker base colors for page background gradient */
    --purple: #2c1b47;
    --blue: #0f2a43;
    --turquoise: #0b3b3b;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 56px;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background: linear-gradient(-45deg, var(--purple), var(--blue), var(--turquoise), var(--purple));
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    transition: background 0.3s ease, color 0.3s ease;
}

@keyframes gradientBG {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Update section backgrounds to be semi-transparent */
section {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    margin: 2rem 0;
    border-radius: 20px;
    box-shadow: var(--box-shadow);
    padding: 2rem;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

section.dark-mode, [data-theme="dark"] section {
    background-color: rgba(18, 18, 18, 0.95);
    box-shadow: 0 10px 20px rgba(255, 255, 255, 0.1);
}

/* Reduce top spacing for the first section to tighten space under fixed header */
section:first-of-type {
    margin-top: 0.5rem;
}

/* Navigation */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 1.25rem;
    background-color: rgba(255, 255, 255, 0.9);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: background-color 0.3s ease, padding 0.2s ease;
}

[data-theme="dark"] nav {
    background-color: rgba(18, 18, 18, 0.9);
}

/* Transparent navbar state (toggled on scroll) */
nav.nav-transparent {
    background-color: rgba(255, 255, 255, 0.15) !important;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: none;
    padding: 0.35rem 1rem;
}

/* Dark mode: transparent is still transparent */
[data-theme="dark"] nav.nav-transparent {
    background-color: rgba(18, 18, 18, 0.15) !important;
}

/* Shrink logo when navbar is transparent */
nav.nav-transparent .nav-logo {
    height: 28px;
}
.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    min-height: 48px;
}

.logo {
    margin-right: auto;
    display: flex;
    align-items: center;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.nav-links {
    display: flex;
    align-items: center;
    list-style: none;
    margin-left: auto;
}

.nav-links li {
    margin: 0 0.75rem;
    display: flex;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--primary-color);
    position: relative;
    transition: color 0.3s ease;
}

/* Normalize vertical centering for links and the theme toggle */
.nav-links a,
.theme-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    height: 32px;
    padding: 0.25rem 0.5rem;
    font-size: 1rem;
}

/* Ensure the theme icon centers perfectly */
.theme-toggle i {
    display: block;
    line-height: 1;
}

.nav-links a::after {
    content: '';
    display: block;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s;
    position: absolute;
    bottom: -5px;
    left: 0;
}

.nav-links a:hover::after {
    width: 100%;
}

.bar {
    height: 3px;
    width: 25px;
    background-color: var(--primary-color);
    margin: 3px 0;
}

.nav-logo {
    height: 32px;
    width: auto;
    transition: transform 0.3s ease;
    display: block;
}

.nav-logo:hover {
    transform: scale(1.05);
}

.theme-toggle {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--primary-color);
    font-size: 1rem;
    transition: color 0.3s ease;
}

.theme-toggle:hover {
    color: var(--accent-color);
}

@media (max-width: 768px) {
    nav {
        padding: 0.5rem 1rem;
    }

    .nav-content {
        position: relative;
        display: flex;
        justify-content: flex-start;
        align-items: center;
        height: 60px;
    }

    .logo {
        display: flex;
        align-items: center;
        padding: 0.5rem 0;
    }

    .menu-toggle {
        display: flex;
        align-items: center;
        position: absolute;
        right: 1rem;
        top: 50%;
        transform: translateY(-50%);
    }

    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 60px;
        left: 0;
        background-color: rgba(255, 255, 255, 0.95);
        transition: max-height 0.3s ease-in;
        max-height: 0;
        overflow: hidden;
    }

    [data-theme="dark"] .nav-links {
        background-color: rgba(18, 18, 18, 0.95);
    }

    .nav-links.active {
        display: flex;
        max-height: 300px; /* Adjust based on the number of items */
    }
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent !important;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    width: 150%;
    height: 150%;
    background: rgba(255, 255, 255, 0.1);
    animation: rotate 15s linear infinite;
    transition: background 0.3s ease;
}

[data-theme="dark"] .hero::before {
    background: rgba(18, 18, 18, 0.1);
}

.hero-content {
    position: relative;
    z-index: 1;
    padding: 2rem;
    text-align: center;
}

.profile-image {
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease-out;
}

.profile-pic {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    border: 4px solid rgba(255, 255, 255, 0.3);
    object-fit: cover;
    object-position: center 10%;  
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.profile-pic:hover {
    transform: scale(1.05);
    border-color: rgba(255, 255, 255, 0.8);
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    animation: fadeInUp 1s ease-out 0.2s backwards;
}

.hero-content h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.9);
    animation: fadeInUp 1s ease-out 0.4s backwards;
}

.hero-content p {
    animation: fadeInUp 1s ease-out 0.6s backwards;
}

.cta-buttons {
    margin-top: 2rem;
    display: flex;
    gap: 1rem;
    justify-content: center;
    animation: fadeInUp 1s ease-out 0.8s backwards;
}

.cta-primary, .cta-secondary {
    padding: 1rem 2rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.cta-primary {
    background: white;
    color: var(--primary-color);
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.cta-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(-45deg, var(--primary-color), var(--secondary-color), var(--accent-color), var(--primary-color));
    background-size: 300% 300%;
    z-index: -1;
    transition: opacity 0.3s ease;
    opacity: 0;
    animation: gradientButtonBG 8s linear infinite;
}

@keyframes gradientButtonBG {
    0% {
        background-position: 0% 0%;
    }
    25% {
        background-position: 100% 0%;
    }
    50% {
        background-position: 100% 100%;
    }
    75% {
        background-position: 0% 100%;
    }
    100% {
        background-position: 0% 0%;
    }
}

[data-theme="dark"] .cta-primary {
    background: var(--dark-bg);
    color: var(--primary-color);
}

.cta-primary:hover {
    color: white;
}

.cta-primary:hover::before {
    opacity: 1;
}

.cta-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

[data-theme="dark"] .cta-secondary {
    color: var(--text-color);
    border: 2px solid var(--text-color);
}

.cta-primary:hover, .cta-secondary:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* About Section */
.about {
    padding: 5rem 2rem;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    margin: 2rem 0;
    border-radius: 20px;
    box-shadow: var(--box-shadow);
}

[data-theme="dark"] .about {
    background-color: rgba(18, 18, 18, 0.95);
    box-shadow: 0 10px 20px rgba(255, 255, 255, 0.1);
}

.about-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.about-text p {
    margin-bottom: 1.5rem;
}

.skills {
    background: var(--light-bg);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--box-shadow);
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

[data-theme="dark"] .skills {
    background: var(--dark-bg);
    box-shadow: 0 10px 20px rgba(255, 255, 255, 0.1);
}

.skills h3 {
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.skills ul {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    list-style: none;
}

.skills li {
    background: white;
    padding: 0.8rem 1.2rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

[data-theme="dark"] .skills li {
    background: var(--dark-bg);
    color: var(--text-color);
    box-shadow: 0 2px 5px rgba(255, 255, 255, 0.1);
}

.skills li:hover {
    transform: translateY(-3px);
    background: var(--gradient-2);
    color: white;
}

/* Experience Section */
.experience {
    padding: 5rem 2rem;
    text-align: center;
}

[data-theme="dark"] .experience {
    background-color: rgba(18, 18, 18, 0.95) !important;
    box-shadow: 0 10px 20px rgba(255, 255, 255, 0.1);
}

/* Timeline styles */
.timeline {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 0;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 4px;
    background: linear-gradient(to bottom, var(--primary-color), var(--secondary-color), var(--accent-color));
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -2px;
    border-radius: 2px;
    box-shadow: 0 0 15px rgba(74, 144, 226, 0.3);
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    width: 50%;
    transition: transform 0.3s ease;
    margin-bottom: 60px;
    z-index: 1;
}

/* Position the timeline items to alternate sides */
.timeline-item:nth-child(odd) {
    left: 0;
    text-align: right;
}

.timeline-item:nth-child(even) {
    left: 50%;
    text-align: left;
}

/* The timeline icon */
.timeline-icon {
    position: absolute;
    width: 50px;
    height: 50px;
    right: -25px;
    top: 0;
    background: linear-gradient(-45deg, var(--primary-color), var(--secondary-color), var(--accent-color), var(--primary-color));
    background-size: 800% 800%;
    border-radius: 50%;
    z-index: 1;
    box-shadow: 0 0 15px rgba(80, 227, 194, 0.7);
    animation: gradientBGDot 8s linear infinite;
    display: flex;
    align-items: center;
    justify-content: center;
}

.company-icon {
    font-size: 20px;
    color: white;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    animation: pulse 2s ease infinite;
    max-width: 30px;
    max-height: 30px;
    width: 30px;
    height: 30px;
    object-fit: cover;
    border-radius: 50%;
    background-color: white;
    padding: 2px;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes gradientBGDot {
    0% {
        background-position: 0% 0%;
    }
    25% {
        background-position: 100% 0%;
    }
    50% {
        background-position: 100% 100%;
    }
    75% {
        background-position: 0% 100%;
    }
    100% {
        background-position: 0% 0%;
    }
}

.timeline-item:nth-child(even) .timeline-icon {
    left: -25px;
}

/* Timeline content styling */
.timeline-content {
    padding: 20px 30px;
    background: white;
    position: relative;
    border-radius: 15px;
    box-shadow: var(--box-shadow);
    transition: all 0.3s ease;
}

[data-theme="dark"] .timeline-content {
    background: var(--dark-bg);
    box-shadow: 0 4px 8px rgba(255, 255, 255, 0.1);
}

.timeline-content::after {
    content: '';
    position: absolute;
    border-style: solid;
    border-width: 10px 0 10px 10px;
    border-color: transparent transparent transparent white;
    top: 20px;
    right: -10px;
}

[data-theme="dark"] .timeline-content::after {
    border-color: transparent transparent transparent var(--dark-bg);
}

.timeline-item:nth-child(even) .timeline-content::after {
    content: '';
    position: absolute;
    border-style: solid;
    border-width: 10px 10px 10px 0;
    border-color: transparent white transparent transparent;
    top: 20px;
    left: -10px;
    right: auto;
}

[data-theme="dark"] .timeline-item:nth-child(even) .timeline-content::after {
    border-color: transparent var(--dark-bg) transparent transparent;
}

.timeline-card {
    background: var(--light-bg);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

[data-theme="dark"] .timeline-card {
    background: var(--dark-bg);
}

.timeline-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 25px rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .timeline-card:hover {
    box-shadow: 0 15px 25px rgba(255, 255, 255, 0.1);
}

.timeline-card h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.timeline-card h4 {
    color: var(--secondary-color);
    font-weight: 500;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

/* Responsive design for smaller screens */
@media screen and (max-width: 768px) {
    .timeline::after {
        left: 25px;
    }
    
    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
        text-align: left;
        margin-bottom: 50px;
    }
    
    .timeline-item:nth-child(odd) {
        left: 0;
        text-align: left;
    }
    
    .timeline-item:nth-child(even) {
        left: 0;
    }
    
    .timeline-icon {
        left: 0;
        right: auto;
        width: 40px;
        height: 40px;
        top: 10px;
    }
    
    .company-icon {
        font-size: 16px;
    }
    
    .timeline-item:nth-child(odd) .timeline-content::after,
    .timeline-item:nth-child(even) .timeline-content::after {
        left: -10px;
        right: auto;
        top: 20px;
        border-width: 10px 10px 10px 0;
        border-color: transparent white transparent transparent;
    }
    
    [data-theme="dark"] .timeline-item:nth-child(odd) .timeline-content::after,
    [data-theme="dark"] .timeline-item:nth-child(even) .timeline-content::after {
        border-color: transparent var(--dark-bg) transparent transparent;
    }
}

/* Old Experience styles (keeping for compatibility) */
.experience-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.experience-card {
    background: var(--light-bg);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--box-shadow);
    transition: all 0.3s ease;
}

[data-theme="dark"] .experience-card {
    background: var(--dark-bg);
    box-shadow: 0 4px 8px rgba(255, 255, 255, 0.1);
}

/* Experience list styles for the timeline items */
.experience-list {
    list-style: none;
    padding-left: 0;
    text-align: left;
}

.experience-list > li {
    margin-bottom: 0.8rem;
    position: relative;
    padding-left: 1.5rem;
}

.experience-list > li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-size: 1.2rem;
}

/* Internal transfer section styling */
.internal-transfer {
    margin-top: 2rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.6);
    border-left: 4px solid var(--accent-color);
    border-radius: 0 10px 10px 0;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

[data-theme="dark"] .internal-transfer {
    background: rgba(18, 18, 18, 0.6);
    box-shadow: 0 4px 8px rgba(255, 255, 255, 0.05);
}

.internal-transfer:hover {
    transform: translateX(5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.transfer-title {
    color: var(--accent-color);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.internal-transfer h5 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Projects Section */
.projects {
    padding: 5rem 2rem;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    margin: 2rem 0;
    border-radius: 20px;
    box-shadow: var(--box-shadow);
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

[data-theme="dark"] .projects {
    background-color: rgba(18, 18, 18, 0.95);
    box-shadow: 0 10px 20px rgba(255, 255, 255, 0.1);
}

.projects-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.project-card {
    background: var(--light-bg);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease, background 0.3s ease;
}

[data-theme="dark"] .project-card {
    background: var(--dark-bg);
}

.project-content {
    padding: 2rem;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--box-shadow);
}

[data-theme="dark"] .project-card:hover {
    box-shadow: 0 15px 25px rgba(255, 255, 255, 0.2);
}

.project-tags {
    margin: 1rem 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.project-tags span {
    background: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

[data-theme="dark"] .project-tags span {
    background: var(--dark-bg);
    color: var(--text-color);
}

.project-card:hover .project-tags span {
    background: var(--gradient-2);
    color: white;
}

/* GitHub Button */
.github-button {
    background-color: #24292e; /* GitHub button color */
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 25px; /* Increased for a more rounded button */
    display: inline-block;
}

.github-button:hover {
    background: linear-gradient(135deg, orange, #24292e); /* Gradient from orange to black */
}

/* ZKC Button */
.zkc-button {
    background-color: #24292e; /* GitHub button color */
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 25px; /* Increased for a more rounded button */
    display: inline-block;
}

.zkc-button:hover {
    background: linear-gradient(135deg, #4A90E2, #9013FE); /* Gradient from blue to purple */
}

/* Contact Section */
.contact {
    padding: 5rem 2rem;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    margin: 2rem 0;
    border-radius: 20px;
    box-shadow: var(--box-shadow);
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

[data-theme="dark"] .contact {
    background-color: rgba(18, 18, 18, 0.95);
    box-shadow: 0 10px 20px rgba(255, 255, 255, 0.1);
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--box-shadow);
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

[data-theme="dark"] .contact-form {
    background: var(--dark-bg);
    box-shadow: 0 10px 20px rgba(255, 255, 255, 0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

input,
textarea {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid transparent;
    border-radius: 5px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: var(--light-bg);
    color: var(--text-color);
}

[data-theme="dark"] input,
[data-theme="dark"] textarea {
    background: var(--dark-bg);
    color: var(--text-color);
}

input:focus,
textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(9, 132, 227, 0.1);
}

textarea {
    height: 150px;
    resize: vertical;
}

button {
    background: var(--gradient-2);
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
    width: 100%;
}

button:hover {
    transform: translateY(-3px);
    box-shadow: var(--box-shadow);
}

/* Notification Styles */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 25px;
    border-radius: 5px;
    color: white;
    font-weight: 500;
    z-index: 1000;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.notification.success {
    background-color: #4CAF50;
}

.notification.error {
    background-color: #F44336;
}

/* Disable button styles */
button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Footer */
footer {
    background: var(--primary-color);
    color: white;
    padding: 2rem;
    text-align: center;
    transition: background 0.3s ease;
}

[data-theme="dark"] footer {
    background: var(--dark-bg);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.social-links {
    margin-bottom: 1rem;
}

.social-links a {
    color: white;
    font-size: 1.5rem;
    margin: 0 1rem;
    transition: all 0.3s ease;
}

[data-theme="dark"] .social-links a {
    color: var(--text-color);
}

.social-links a:hover {
    color: var(--accent-color);
    transform: translateY(-3px);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    nav {
        padding: 0;
    }

    .nav-content {
        justify-content: space-between;
        align-items: center;
    }

    .menu-toggle {
        display: flex;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 60px;
        left: 0;
        background-color: rgba(255, 255, 255, 0.95);
        transition: max-height 0.3s ease-in;
        max-height: 0;
        overflow: hidden;
    }

    [data-theme="dark"] .nav-links {
        background-color: rgba(18, 18, 18, 0.95);
    }

    .nav-links.active {
        display: flex;
        max-height: 300px; /* Adjust based on the number of items */
    }

    .nav-content {
        flex-direction: column;
        text-align: center;
    }

    .nav-links {
        margin-top: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content h2 {
        font-size: 1.5rem;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .timeline::before {
        left: 0;
    }

    .cta-buttons {
        flex-direction: column;
    }

    /* Experience Section */
    .experience-container {
        flex-direction: column;
    }
}