/* CSS Variables for Theme Switching */
:root {
    /* Light Mode Colors */
    --bg-primary: #f8fafc;
    --bg-secondary: #ffffff;
    --bg-tertiary: #f1f5f9;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-tertiary: #94a3b8;
    --accent-primary: #2563eb;
    --accent-secondary: #7c3aed;
    --border-color: #e2e8f0;
    --shadow-light: rgba(0, 0, 0, 0.1);
    --shadow-medium: rgba(0, 0, 0, 0.15);
    --shadow-heavy: rgba(0, 0, 0, 0.2);
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-accent: linear-gradient(45deg, #2563eb, #7c3aed);
    --navbar-bg: rgba(255, 255, 255, 0.95);
    --navbar-bg-scrolled: rgba(255, 255, 255, 0.98);
}

/* Dark Mode Colors */
[data-theme="dark"] {
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --bg-tertiary: #334155;
    --text-primary: #f1f5f9;
    --text-secondary: #cbd5e1;
    --text-tertiary: #94a3b8;
    --accent-primary: #3b82f6;
    --accent-secondary: #8b5cf6;
    --border-color: #475569;
    --shadow-light: rgba(0, 0, 0, 0.3);
    --shadow-medium: rgba(0, 0, 0, 0.4);
    --shadow-heavy: rgba(0, 0, 0, 0.5);
    --gradient-primary: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    --gradient-accent: linear-gradient(45deg, #3b82f6, #8b5cf6);
    --navbar-bg: rgba(15, 23, 42, 0.95);
    --navbar-bg-scrolled: rgba(15, 23, 42, 0.98);
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: var(--navbar-bg);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: background-color 0.3s ease, box-shadow 0.3s ease, transform 0.2s ease;
    border-bottom: 1px solid var(--border-color);
    will-change: background-color, box-shadow;
}

.navbar.scrolled {
    background: var(--navbar-bg-scrolled);
    box-shadow: 0 2px 20px var(--shadow-light);
}

/* Auto-hide navbar on scroll */
.navbar.navbar--hidden {
    transform: translateY(-100%);
}

/* Scroll progress bar */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0;
    background: var(--accent-primary);
    z-index: 1001;
    box-shadow: 0 1px 6px var(--shadow-light);
    transition: width 0.1s linear;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.nav-logo h2 {
    color: var(--accent-primary);
    font-weight: 700;
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

/* Navigation Controls */
.nav-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Theme Toggle Button */
.theme-toggle {
    background: var(--bg-tertiary);
    border: 2px solid var(--border-color);
    border-radius: 50%;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.theme-toggle:hover {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    transform: scale(1.1);
    box-shadow: 0 4px 12px var(--shadow-medium);
}

.theme-toggle:active {
    transform: scale(0.95);
}

.theme-icon {
    font-size: 1.2rem;
    color: var(--text-primary);
    transition: all 0.3s ease;
    position: absolute;
}

.theme-toggle:hover .theme-icon {
    color: white;
    transform: rotate(180deg);
}

/* Theme toggle animation */
.theme-toggle .theme-icon {
    animation: none;
}

.theme-toggle:hover .theme-icon {
    animation: spin 0.6s ease-in-out;
}

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

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--accent-primary);
}

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

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

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

.bar {
    width: 25px;
    height: 3px;
    background-color: #333;
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: var(--gradient-primary);
    color: white;
    padding-top: 70px;
    transition: background 0.3s ease;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

.hero-content {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.profile-section {
    display: flex;
    align-items: center;
    gap: 3rem;
    width: 100%;
}

.profile-pic {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.profile-pic:hover {
    transform: scale(1.05);
}

.profile-info h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    background: linear-gradient(45deg, #fff, #e0e7ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    opacity: 0.9;
}

.subtitle {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    opacity: 0.8;
}

.tagline {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    opacity: 0.9;
    font-weight: 500;
    color: white;
}

.institution {
    font-size: 1rem;
    margin-bottom: 2rem;
    opacity: 0.7;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.social-link:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Section Styles */
section {
    padding: 80px 0;
    transition: background-color 0.3s ease;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    color: var(--text-primary);
    position: relative;
    transition: color 0.3s ease;
}

.section-title::after {
    content: '';
    position: absolute;
    width: 80px;
    height: 4px;
    background: var(--gradient-accent);
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
    transition: background 0.3s ease;
}

/* About Section */
.about {
    background: var(--bg-secondary);
    transition: background-color 0.3s ease;
}

.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    align-items: start;
}

.about-text p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
    line-height: 1.8;
    transition: color 0.3s ease;
}

.skills h3 {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: var(--text-primary);
    transition: color 0.3s ease;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.skill-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    background: var(--bg-tertiary);
    border-radius: 10px;
    transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid var(--border-color);
    will-change: transform, background-color, box-shadow;
}

.skill-item:hover {
    background: var(--accent-primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px var(--shadow-medium);
}

.skill-item i {
    font-size: 1.5rem;
    color: var(--accent-primary);
    transition: color 0.3s ease;
}

.skill-item:hover i {
    color: white;
}

.skill-item span {
    font-weight: 500;
    color: var(--text-primary);
    transition: color 0.3s ease;
}

.skill-item:hover span {
    color: white;
}

/* Projects Section */
.projects {
    background: var(--bg-primary);
    transition: background-color 0.3s ease;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.project-card {
    background: var(--bg-secondary);
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 10px 30px var(--shadow-light);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.3s ease;
    border: 1px solid var(--border-color);
    will-change: transform, box-shadow;
}

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

.project-image {
    width: 80px;
    height: 80px;
    background: var(--gradient-accent);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: background 0.3s ease;
}

.project-image i {
    font-size: 2rem;
    color: white;
}

.project-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
    transition: color 0.3s ease;
}

.project-content p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
    transition: color 0.3s ease;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.tech-tag {
    background: var(--accent-primary);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.project-links {
    display: flex;
    gap: 1rem;
}

.project-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--accent-primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.project-link:hover {
    color: var(--accent-secondary);
}

/* Contact Section */
.contact {
    background: var(--bg-secondary);
    transition: background-color 0.3s ease;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact-info h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
    transition: color 0.3s ease;
}

.contact-info p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.6;
    transition: color 0.3s ease;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-tertiary);
    border-radius: 10px;
    border: 1px solid var(--border-color);
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.contact-item i {
    color: var(--accent-primary);
    font-size: 1.2rem;
    width: 20px;
    transition: color 0.3s ease;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group input,
.form-group textarea {
    padding: 1rem;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.3s ease, background-color 0.3s ease, color 0.3s ease;
    font-family: inherit;
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-primary);
}

.btn-submit {
    background: var(--gradient-accent);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px var(--shadow-medium);
}

/* Footer */
.footer {
    background: var(--bg-secondary);
    color: var(--text-primary);
    padding: 2rem 0;
    border-top: 1px solid var(--border-color);
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.footer-content {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.footer-content p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0;
}

/* Enhanced Mobile Navigation */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: background-color 0.3s ease;
}

.hamburger:hover {
    background-color: rgba(37, 99, 235, 0.1);
}

.hamburger.active .bar:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.hamburger.active .bar:nth-child(2) {
    opacity: 0;
}

.hamburger.active .bar:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: var(--navbar-bg-scrolled);
        backdrop-filter: blur(20px);
        width: 100%;
        text-align: center;
        transition: left 0.3s ease, opacity 0.3s ease;
        box-shadow: 0 10px 30px var(--shadow-light);
        padding: 2rem 0;
        opacity: 0;
        z-index: 999;
        border-bottom: 1px solid var(--border-color);
    }

    .nav-menu.active {
        left: 0;
        opacity: 1;
    }

    .nav-menu li {
        margin: 1.5rem 0;
    }

    .nav-link {
        font-size: 1.1rem;
        padding: 0.5rem 1rem;
        display: inline-block;
        border-radius: 8px;
        transition: all 0.3s ease;
    }

    .nav-link:hover {
        background-color: rgba(37, 99, 235, 0.1);
        transform: translateY(-2px);
    }

    /* Hero Section Mobile */
    .hero {
        padding-top: 80px;
        min-height: 100vh;
    }

    .hero-content {
        flex-direction: column;
        text-align: center;
        gap: 2.5rem;
        padding: 2rem 0;
    }

    .profile-section {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }

    .profile-pic {
        width: 180px;
        height: 180px;
        margin: 0 auto;
    }

    .profile-info h1 {
        font-size: 2.5rem;
        line-height: 1.2;
        margin-bottom: 1rem;
    }

    .title {
        font-size: 1.3rem;
        margin-bottom: 0.5rem;
    }

    .subtitle {
        font-size: 1.1rem;
        margin-bottom: 0.5rem;
    }

    .tagline {
        font-size: 1rem;
        margin-bottom: 1rem;
    }

    .institution {
        font-size: 0.9rem;
        margin-bottom: 2rem;
    }

    .social-links {
        justify-content: center;
        gap: 1.5rem;
    }

    .social-link {
        width: 45px;
        height: 45px;
    }

    /* About Section Mobile */
    .about {
        padding: 60px 0;
    }

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

    .about-text p {
        font-size: 1rem;
        line-height: 1.7;
        margin-bottom: 1.2rem;
    }

    .skills h3 {
        font-size: 1.3rem;
        margin-bottom: 1.5rem;
        text-align: center;
    }

    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .skill-item {
        padding: 0.8rem;
        font-size: 0.9rem;
    }

    .skill-item i {
        font-size: 1.2rem;
    }

    /* Projects Section Mobile */
    .projects {
        padding: 60px 0;
    }

    .projects-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .project-card {
        padding: 1.5rem;
    }

    .project-content h3 {
        font-size: 1.3rem;
        margin-bottom: 0.8rem;
    }

    .project-content p {
        font-size: 0.95rem;
        line-height: 1.6;
        margin-bottom: 1.2rem;
    }

    .project-links {
        flex-direction: column;
        gap: 0.8rem;
    }

    .project-link {
        justify-content: center;
        padding: 0.5rem;
        border-radius: 8px;
        background-color: rgba(37, 99, 235, 0.1);
        transition: all 0.3s ease;
    }

    .project-link:hover {
        background-color: rgba(37, 99, 235, 0.2);
        transform: translateY(-2px);
    }

    /* Contact Section Mobile */
    .contact {
        padding: 60px 0;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .contact-info h3 {
        font-size: 1.3rem;
        margin-bottom: 1rem;
    }

    .contact-info p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .contact-item {
        padding: 0.8rem;
        font-size: 0.95rem;
    }

    .contact-item i {
        font-size: 1.1rem;
    }

    .form-group input,
    .form-group textarea {
        padding: 0.8rem;
        font-size: 0.95rem;
    }

    .btn-submit {
        padding: 0.8rem 1.5rem;
        font-size: 0.95rem;
    }

    /* Footer Mobile */
    .footer {
        padding: 1.5rem 0;
    }

    .footer-content {
        text-align: center;
    }

    .footer-content p {
        font-size: 0.85rem;
    }
}

/* Small Mobile Devices */
@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .nav-container {
        padding: 0 15px;
    }

    .profile-info h1 {
        font-size: 2rem;
        line-height: 1.1;
    }

    .title {
        font-size: 1.2rem;
    }

    .subtitle {
        font-size: 1rem;
    }

    .tagline {
        font-size: 0.9rem;
    }

    .institution {
        font-size: 0.8rem;
    }

    .section-title {
        font-size: 2rem;
        margin-bottom: 2rem;
    }

    .profile-pic {
        width: 160px;
        height: 160px;
    }

    .social-link {
        width: 40px;
        height: 40px;
    }

    .hero {
        padding-top: 80px;
        min-height: 100vh;
    }

    .hero-content {
        gap: 2rem;
        padding: 1.5rem 0;
    }

    .about {
        padding: 50px 0;
    }

    .about-text p {
        font-size: 0.95rem;
        line-height: 1.6;
    }

    .skills-grid {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }

    .skill-item {
        padding: 0.7rem;
        font-size: 0.85rem;
    }

    .projects {
        padding: 50px 0;
    }

    .project-card {
        padding: 1.2rem;
    }

    .project-content h3 {
        font-size: 1.2rem;
    }

    .project-content p {
        font-size: 0.9rem;
    }

    .contact {
        padding: 50px 0;
    }

    .contact-item {
        padding: 0.7rem;
        font-size: 0.9rem;
    }

    .form-group input,
    .form-group textarea {
        padding: 0.7rem;
        font-size: 0.9rem;
    }

    .btn-submit {
        padding: 0.7rem 1.2rem;
        font-size: 0.9rem;
    }
}

/* Extra Small Devices */
@media (max-width: 360px) {
    .container {
        padding: 0 10px;
    }

    .nav-container {
        padding: 0 10px;
    }

    .profile-info h1 {
        font-size: 1.8rem;
    }

    .title {
        font-size: 1.1rem;
    }

    .subtitle {
        font-size: 0.95rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .profile-pic {
        width: 140px;
        height: 140px;
    }

    .social-link {
        width: 35px;
        height: 35px;
    }

    .project-card {
        padding: 1rem;
    }

    .skill-item {
        padding: 0.6rem;
        font-size: 0.8rem;
    }
}

/* Landscape Mobile */
@media (max-width: 768px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding: 100px 0 60px;
    }

    .hero-content {
        flex-direction: row;
        gap: 2rem;
    }

    .profile-section {
        flex-direction: row;
        text-align: left;
    }

    .profile-pic {
        width: 120px;
        height: 120px;
    }

    .profile-info h1 {
        font-size: 2rem;
    }

    .title {
        font-size: 1.1rem;
    }

    .subtitle {
        font-size: 1rem;
    }
}

/* Touch Device Optimizations */
.touch-device * {
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.touch-device input,
.touch-device textarea {
    -webkit-user-select: text;
    -khtml-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
}

/* Mobile-specific improvements */
@media (max-width: 768px) {
    /* Improve touch targets */
    .nav-link,
    .social-link,
    .project-link,
    .btn-submit {
        min-height: 44px;
        min-width: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* Better touch feedback */
    .skill-item:active,
    .project-card:active,
    .social-link:active {
        transform: scale(0.98);
        transition: transform 0.1s ease;
    }

    /* Improve form inputs for mobile */
    .form-group input,
    .form-group textarea {
        font-size: 16px; /* Prevents zoom on iOS */
        -webkit-appearance: none;
        border-radius: 8px;
    }

    /* Better scroll behavior */
    html {
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
    }

    /* Optimize animations for mobile */
    .project-card,
    .skill-item,
    .social-link {
        will-change: transform;
        transform: translateZ(0);
    }

    /* Reduce motion for better performance */
    @media (prefers-reduced-motion: reduce) {
        * {
            animation-duration: 0.01ms !important;
            animation-iteration-count: 1 !important;
            transition-duration: 0.01ms !important;
        }
    }
}

/* Performance optimizations */
* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* GPU acceleration for animations */
.hero, .project-card, .skill-item, .social-link {
    transform: translateZ(0);
    backface-visibility: hidden;
    perspective: 1000px;
}

/* Optimized animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate3d(0, 30px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

.project-card {
    animation: fadeInUp 0.4s ease forwards;
    opacity: 0;
}

.project-card:nth-child(1) { animation-delay: 0.1s; }
.project-card:nth-child(2) { animation-delay: 0.15s; }
.project-card:nth-child(3) { animation-delay: 0.2s; }
.project-card:nth-child(4) { animation-delay: 0.25s; }
.project-card:nth-child(5) { animation-delay: 0.3s; }

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
