.skills-case-icon img {
    height: 2.2rem;
    vertical-align: middle;
    margin-right: 0.5rem;
    transition: transform 0.3s ease, filter 0.3s ease;
    cursor: pointer;
}
.skills-case-icon img:hover {
    transform: scale(1.5);
    filter: drop-shadow(0 4px 12px rgba(37,99,235,0.25));
    z-index: 10;
}
.skills-case-icon img:last-child {
    margin-right: 0;
}

/* Inline skill logo styling */
.skill-logo {
    height: 2.2rem;
    vertical-align: middle;
    margin: 0 0.2rem;
}

.skill-logo:first-child {
    margin-left: 0.5rem;
}
.skills-case-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
    margin: 2rem 0 3rem 0;
}
.skills-case-card {
    background: var(--light);
    border: 1px solid var(--gray-200);
    border-radius: 10px;
    padding: 2rem 1.25rem 1.25rem 1.25rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    box-shadow: 0 4px 16px rgba(218,165,32,0.07);
    transition: box-shadow 0.3s, transform 0.3s;
}
.skills-case-card:hover {
    box-shadow: 0 8px 32px rgba(218,165,32,0.13);
    transform: translateY(-4px) scale(1.03);
    border-color: var(--primary);
}

/* Dark mode: blue shadows */
[data-theme="dark"] .skills-case-card {
    box-shadow: 0 4px 16px rgba(37,99,235,0.07);
}
[data-theme="dark"] .skills-case-card:hover {
    box-shadow: 0 8px 32px rgba(37,99,235,0.13);
}
.skills-case-icon {
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
}
.skills-case-title {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 0.5rem;
}
.skills-case-desc {
    font-size: 1rem;
    color: var(--dark);
    margin-bottom: 0.5rem;
}
.skills-case-desc a {
    color: var(--primary);
    text-decoration: underline;
    font-weight: 500;
}
.major-skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 2rem;
    justify-items: center;
    margin: 2rem 0 3rem 0;
}
.major-skill-card {
    background: var(--light);
    border: 1px solid var(--gray-200);
    border-radius: 10px;
    padding: 2rem 1rem 1rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 4px 16px rgba(218,165,32,0.07);
    transition: box-shadow 0.3s, transform 0.3s;
}
.major-skill-card:hover {
    box-shadow: 0 8px 32px rgba(218,165,32,0.13);
    transform: translateY(-4px) scale(1.04);
    border-color: var(--primary);
}

/* Dark mode: blue shadows */
[data-theme="dark"] .major-skill-card {
    box-shadow: 0 4px 16px rgba(37,99,235,0.07);
}
[data-theme="dark"] .major-skill-card:hover {
    box-shadow: 0 8px 32px rgba(37,99,235,0.13);
}
.major-skill-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}
.major-skill-label {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark);
    text-align: center;
}
/**
 * Portfolio Website Stylesheet
 * Author: Sumedh R. Sankhe
 * Description: Professional, clean design for bioinformatics portfolio
 * Features: Dark mode support, responsive design, accessible components
 */

/* ==========================================================================
   RESET AND BASE STYLES
   ========================================================================== */

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

/* ==========================================================================
   CSS CUSTOM PROPERTIES (VARIABLES)
   Light mode is default, dark mode overrides are below
   ========================================================================== */

:root {
    /* Primary Colors - Gold theme for light mode */
    --primary: #B8860B;           /* Dark goldenrod */
    --primary-dark: #996515;      /* Darker gold for hover states */
    --accent: #DAA520;            /* Goldenrod accent */

    /* Neutral Colors - Light Mode */
    --dark: #0f172a;              /* Text color */
    --light: #ffffff;             /* Background color */
    --gray-50: #f8fafc;           /* Lightest gray */
    --gray-100: #f1f5f9;          /* Very light gray */
    --gray-200: #e2e8f0;          /* Light gray for borders */
    --gray-300: #cbd5e1;          /* Medium-light gray */
    --gray-600: #475569;          /* Medium gray for secondary text */
    --gray-700: #334155;          /* Dark gray */
    --gray-900: #0f172a;          /* Darkest gray */
}

/* Dark Mode - Theme Toggle */
[data-theme="dark"] {
    /* Blue theme for dark mode */
    --primary: #2563eb;           /* Blue */
    --primary-dark: #1e40af;      /* Darker blue */
    --accent: #0891b2;            /* Cyan */

    --light: #0f172a;             /* Dark background */
    --dark: #f8fafc;              /* Light text */
    --gray-50: #1e293b;           /* Dark cards */
    --gray-100: #334155;          /* Dark borders */
    --gray-200: #475569;          /* Lighter borders */
    --gray-600: #cbd5e1;          /* Light secondary text */
    --gray-700: #e2e8f0;          /* Lighter text */
}

/* ==========================================================================
   TYPOGRAPHY
   ========================================================================== */

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', Roboto, sans-serif;
    line-height: 1.7;
    color: var(--dark);
    background: linear-gradient(to bottom,
        #DAA520 0%,
        #F4C430 12%,
        #FFF8DC 20%,
        var(--light) 25%,
        var(--light) 100%);
    background-attachment: fixed;
    min-height: 100vh;
    transition: background 0.5s cubic-bezier(0.23, 1, 0.32, 1), color 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Dark mode: remove gradient */
[data-theme="dark"] body {
    background: var(--light);
}

/* ==========================================================================
   NAVIGATION
   ========================================================================== */

nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--gray-200);
    z-index: 1000;
    transition: background-color 0.5s cubic-bezier(0.23, 1, 0.32, 1), border-color 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

/* Dark mode navigation */
[data-theme="dark"] nav {
    background: rgba(15, 23, 42, 0.8);
    border-bottom: 1px solid var(--gray-100);
}

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

.nav-left {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.logo {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--dark);
    letter-spacing: -0.025em;
    transition: color 0.2s ease;
}

/* Theme Toggle Button */
.theme-toggle {
    background: var(--gray-100);
    border: none;
    border-radius: 6px;
    width: 36px;
    height: 36px;
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    color: var(--gray-700);
}

.theme-toggle:hover {
    background: var(--gray-200);
    transform: scale(1.05);
}

/* Navigation Links */
.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--dark);
    cursor: pointer;
    padding: 0.5rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--gray-700);
    font-weight: 500;
    font-size: 0.9375rem;
    transition: color 0.2s ease;
    padding: 0.5rem 0;
    position: relative;
}

}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary);
    text-shadow: 0 2px 8px rgba(218, 165, 32, 0.15);
}

/* Dark mode: blue text shadow */
[data-theme="dark"] .nav-links a:hover,
[data-theme="dark"] .nav-links a.active {
    text-shadow: 0 2px 8px rgba(37, 99, 235, 0.15);
}

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

/* ==========================================================================
   BUTTONS
   ========================================================================== */

.btn {
    padding: 0.875rem 1.75rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9375rem;
    transition: all 0.2s ease;
    display: inline-block;
    cursor: pointer;
    border: none;
    text-align: center;
}

/* Primary Button */
.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
        filter: brightness(1.08);
}

/* Secondary Button */
.btn-secondary {
    background: transparent;
    color: var(--dark);
    border: 1.5px solid var(--gray-300);
}

.btn-secondary:hover {
    border-color: var(--primary);
    color: var(--primary);
        background: var(--gray-50);
        box-shadow: 0 2px 8px rgba(37, 99, 235, 0.08);
}

/* Small Button Variant */
.btn-small {
    font-size: 0.875rem;
    padding: 0.5rem 1rem;
}

.btn-small + .btn-small {
    margin-left: 0.5rem;
}

/* ==========================================================================
   PAGE HEADERS
   ========================================================================== */

.page-header {
    margin-top: 80px;
    padding: 6rem 2rem 4rem;
    background: var(--light);
    text-align: center;
}

.page-header h1 {
    font-size: 3rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.page-header p {
    font-size: 1.125rem;
    color: var(--gray-600);
    max-width: 700px;
    margin: 0 auto;
}

/* ==========================================================================
   HERO SECTION (HOME PAGE)
   ========================================================================== */

.hero {
    margin-top: 80px;
    padding: 8rem 2rem 6rem;
    background: var(--light);
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
}

.hero-label {
    display: inline-block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary);
    background: var(--gray-50);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    margin-bottom: 2rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 1.5rem;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.hero h2 {
    font-size: 1.5rem;
    color: var(--gray-600);
    font-weight: 400;
    margin-bottom: 2rem;
    line-height: 1.5;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 200px;
    gap: 3rem;
    align-items: center;
}

.profile-image {
    border-radius: 50%;
    width: 200px;
    height: 200px;
    object-fit: cover;
    border: 4px solid var(--gray-200);
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 2.5rem;
}

/* ==========================================================================
   SECTIONS
   ========================================================================== */

.section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.section-description {
    font-size: 1.125rem;
    color: var(--gray-600);
    max-width: 700px;
    margin: 0 auto;
}

/* ==========================================================================
   CARDS
   ========================================================================== */

.card {
    background: var(--light);
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid var(--gray-200);
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
    border-color: var(--primary);
        filter: brightness(1.03);
}

/* Grid Layouts for Cards */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
}

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

/* ==========================================================================
   TIMELINE ITEMS (EXPERIENCE/EDUCATION)
   ========================================================================== */

.about-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 4rem 2rem 6rem;
}

.timeline-item {
    background: var(--light);
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid var(--gray-200);
    margin-bottom: 2rem;
    transition: all 0.2s ease;
}

.timeline-item:hover {
    border-color: var(--primary);
}

.timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 1rem;
    gap: 1rem;
    flex-wrap: wrap;
}

.timeline-title h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 0.25rem;
}

.timeline-company {
    font-size: 1rem;
    color: var(--primary);
    font-weight: 500;
}

.timeline-date {
    color: var(--gray-600);
    font-weight: 500;
    font-size: 0.9375rem;
}

.timeline-description {
    color: var(--gray-600);
    line-height: 1.7;
    margin-bottom: 1rem;
}

/* Timeline Highlights List */
.timeline-highlights {
    list-style: none;
}

.timeline-highlights li {
    padding: 0.5rem 0 0.5rem 1.5rem;
    position: relative;
    color: var(--gray-600);
}

.timeline-highlights li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: bold;
    font-size: 1.2em;
}

.timeline-highlights.centered {
    max-width: 600px;
    margin: 2rem auto;
}

/* ==========================================================================
   EXPERTISE/SKILLS SECTION
   ========================================================================== */

.expertise {
    padding: 6rem 2rem;
    background: var(--gray-50);
}

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

.expertise-card {
    background: var(--light);
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid var(--gray-200);
    transition: all 0.3s ease;
}

.expertise-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
    border-color: var(--primary);
        filter: brightness(1.03);
}

.expertise-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 0.75rem;
}

.expertise-card p {
    color: var(--gray-600);
    line-height: 1.7;
}

/* ==========================================================================
   STATS SECTION
   ========================================================================== */

.stats {
    background: var(--gray-900);
    padding: 5rem 2rem;
}

[data-theme="dark"] .stats {
    background: #000000;
}

.stats-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 4rem;
    text-align: center;
}

.stat-item h3 {
    font-size: 3rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.5rem;
}

.stat-item p {
    color: var(--gray-300);
    font-size: 1rem;
    font-weight: 500;
}

/* ==========================================================================
   PROJECTS SECTION
   ========================================================================== */

.projects-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.featured-project {
    background: var(--light);
    border-radius: 8px;
    border: 2px solid var(--primary);
    padding: 3rem;
    margin-bottom: 4rem;
}

.featured-badge {
    display: inline-block;
    background: var(--primary);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 2rem;
}

.project-header {
    margin-bottom: 2rem;
}

.project-header h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 0.5rem;
}

.project-subtitle {
    font-size: 1.125rem;
    color: var(--gray-600);
}

.project-description {
    font-size: 1.0625rem;
    line-height: 1.8;
    color: var(--gray-600);
    margin-bottom: 2rem;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin: 1.5rem 0;
}

.tech-tag {
    background: linear-gradient(135deg, #FFF9F0 0%, rgba(218,165,32,0.08) 100%);
    color: #B8860B;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 600;
    border: 1px solid rgba(218,165,32,0.25);
    cursor: default;
    user-select: none;
}

/* Dark mode: revert to blue theme */
[data-theme="dark"] .tech-tag {
    background: linear-gradient(135deg, var(--gray-50) 0%, rgba(37,99,235,0.05) 100%);
    color: var(--primary);
    border: 1px solid var(--gray-200);
}

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

.project-card {
    background: var(--light);
    border-radius: 8px;
    border: 1px solid var(--gray-200);
    overflow: hidden;
    transition: all 0.3s ease;
}

.project-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
    border-color: var(--primary);
}

.project-card-content {
    padding: 2rem;
}

.project-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 0.75rem;
}

.project-card p {
    color: var(--gray-600);
    line-height: 1.7;
    margin-bottom: 1rem;
}

/* ==========================================================================
   SKILLS SECTION
   ========================================================================== */

.skills-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

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

.skill-category {
    background: var(--light);
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid var(--gray-200);
}

.skill-category h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 1.5rem;
}

.skill-list {
    list-style: none;
}

.skill-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--gray-100);
}

.skill-item:last-child {
    border-bottom: none;
}

.skill-name {
    font-weight: 500;
    color: var(--dark);
}

.skill-level {
    font-size: 0.8125rem;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-weight: 600;
}

.skill-level.expert {
    background: var(--primary);
    color: white;
}

.skill-level.advanced {
    background: var(--gray-100);
    color: var(--primary);
}

/* ==========================================================================
   CONTACT SECTION
   ========================================================================== */

.contact-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.contact-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.contact-method {
    background: var(--light);
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid var(--gray-200);
    text-align: center;
    transition: all 0.3s ease;
}

.contact-method:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
        box-shadow: 0 8px 16px rgba(37, 99, 235, 0.10);
}

.contact-method h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 1rem;
}

.contact-method a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.contact-method a:hover {
    text-decoration: underline;
}

.contact-method p {
    color: var(--gray-600);
    font-size: 0.9375rem;
    margin-top: 0.5rem;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

footer {
    background: var(--light);
    border-top: 1px solid var(--gray-200);
    padding: 3rem 2rem;
    text-align: center;
}

footer p {
    color: var(--gray-600);
    font-size: 0.875rem;
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */

@media (max-width: 768px) {
    /* Navigation */
    .nav-container {
        padding: 1rem 1.5rem;
    }

    .menu-toggle {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--light);
        flex-direction: column;
        gap: 0;
        padding: 1rem 0;
        border-bottom: 1px solid var(--gray-200);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        display: none;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        width: 100%;
    }

    .nav-links a {
        display: block;
        padding: 1rem 2rem;
        width: 100%;
    }

    .nav-links a::after {
        display: none;
    }

    .nav-left {
        gap: 1rem;
    }

    /* Hero Section Mobile */
    .hero {
        padding: 6rem 1.5rem 4rem;
    }

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

    .hero-content .profile-image {
        width: 150px;
        height: 150px;
        margin: 0 auto;
        order: -1;
    }

    /* Typography */
    .hero h1 {
        font-size: 2rem;
        line-height: 1.2;
    }

    .hero h2 {
        font-size: 1.125rem;
    }

    .page-header {
        padding: 4rem 1.5rem 3rem;
    }

    .page-header h1 {
        font-size: 2rem;
    }

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

    .section-container,
    .projects-container,
    .skills-container,
    .about-container,
    .contact-container {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }

    /* Sections */
    .expertise,
    .stats {
        padding: 4rem 1.5rem;
    }

    /* Buttons */
    .cta-buttons {
        flex-direction: column;
        width: 100%;
    }

    .btn {
        width: 100%;
        text-align: center;
    }

    /* Timeline */
    .timeline-header {
        flex-direction: column;
        align-items: flex-start;
    }

    /* Grids */
    .grid-2,
    .grid-3,
    .expertise-grid,
    .skills-grid,
    .project-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .expertise-grid {
        grid-template-columns: 1fr;
    }

    .project-grid {
        grid-template-columns: 1fr;
    }

    .major-skills-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 1rem;
    }

    .skills-case-grid {
        grid-template-columns: 1fr;
    }

    .project-gif-grid {
        grid-template-columns: 1fr;
    }

    /* Stats */
    .stats-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }

    .stat-item h3 {
        font-size: 2rem;
    }

    /* Featured Project */
    .featured-project {
        padding: 2rem 1.5rem;
    }

    /* Cards */
    .card,
    .timeline-item,
    .skill-category {
        padding: 1.5rem;
    }

    /* Contact Methods */
    .contact-methods {
        grid-template-columns: 1fr;
    }

    /* Project Card Buttons */
    .project-card-content .mt-2 {
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
    }

    .project-card-content .mt-2 .btn {
        margin-left: 0;
    }
}

/* ==========================================================================
   UTILITIES
   ========================================================================== */

/* Project GIFs and Captions */
.project-gif-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    justify-items: center;
    align-items: start;
    margin-bottom: 2rem;
    position: relative;
}
.project-gif-cell {
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: opacity 0.3s ease, filter 0.3s ease, transform 0.3s ease;
    position: relative;
}
.project-gif-grid:has(.project-gif-cell.enlarged) .project-gif-cell:not(.enlarged) {
    opacity: 0.4;
    filter: blur(2px);
}
.project-gif-cell.enlarged {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1001;
    max-width: 90vw;
    max-height: 90vh;
}
.project-gif {
    max-width: 540px;
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 24px rgba(218,165,32,0.10);
    background: var(--gray-50);
    margin-bottom: 0.5rem;
    transition: max-width 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
    cursor: pointer;
    object-fit: contain;
}

/* Fallback img inside video tag */
.project-gif img {
    width: 100%;
    height: auto;
    display: block;
}

/* Disable pointer cursor on mobile screens where enlarge doesn't make sense */
@media (max-width: 768px) {
    .project-gif {
        cursor: default;
    }
    .project-gif-cell {
        pointer-events: none;
    }
}
.project-gif-cell.enlarged .project-gif {
    max-width: min(800px, 85vw);
    box-shadow: 0 12px 48px rgba(218,165,32,0.25);
}

/* Backdrop overlay for enlarged GIF */
.project-gif-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
.project-gif-backdrop.active {
    opacity: 1;
    pointer-events: auto;
}

/* Dark mode: blue shadows */
[data-theme="dark"] .project-gif {
    box-shadow: 0 4px 24px rgba(37,99,235,0.10);
}
[data-theme="dark"] .project-gif-cell.enlarged .project-gif {
    box-shadow: 0 12px 48px rgba(37,99,235,0.25);
}
.project-gif-caption {
    color: var(--gray-600);
    font-size: 1rem;
    margin-bottom: 1.5rem;
    transition: font-size 0.3s ease, font-weight 0.3s ease;
}
.project-gif-cell.enlarged .project-gif-caption {
    font-size: 1.1rem;
    font-weight: 500;
}

/* Fade-in animation for scroll */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.23, 1, 0.32, 1), transform 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.fade-in.visible {
    opacity: 1;
    transform: none;
}

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

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

/* ==========================================================================
   ACCESSIBILITY
   ========================================================================== */

/* Focus states for keyboard navigation */
a:focus,
button:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* Skip to main content link for screen readers */
.skip-to-main {
    position: absolute;
    left: -9999px;
    z-index: 999;
}

.skip-to-main:focus {
    left: 0;
    background: var(--primary);
    color: white;
    padding: 1rem;
}

/* ==========================================================================
   COOKIE CONSENT BANNER
   ========================================================================== */

.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--light);
    border-top: 2px solid var(--primary);
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.15);
    padding: 1.5rem 2rem;
    z-index: 2000;
    display: none;
    animation: slideUp 0.4s ease-out;
}

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

.cookie-consent.show {
    display: block;
}

.cookie-consent-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}

.cookie-consent-text {
    flex: 1;
    min-width: 300px;
}

.cookie-consent-text p {
    color: var(--dark);
    font-size: 0.9375rem;
    line-height: 1.6;
    margin: 0;
}

.cookie-consent-text a {
    color: var(--primary);
    text-decoration: underline;
    font-weight: 500;
}

.cookie-consent-buttons {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.cookie-btn {
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.cookie-btn-accept {
    background: var(--primary);
    color: white;
}

.cookie-btn-accept:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.cookie-btn-decline {
    background: transparent;
    color: var(--dark);
    border: 1.5px solid var(--gray-300);
}

.cookie-btn-decline:hover {
    border-color: var(--gray-600);
    background: var(--gray-50);
}

/* Mobile responsive */
@media (max-width: 768px) {
    .cookie-consent {
        padding: 1.25rem 1.5rem;
    }

    .cookie-consent-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.25rem;
    }

    .cookie-consent-text {
        min-width: 100%;
    }

    .cookie-consent-buttons {
        width: 100%;
    }

    .cookie-btn {
        flex: 1;
        text-align: center;
    }
}

/* ==========================================================================
   BLOG SECTION
   ========================================================================== */

.blog-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.coming-soon-section {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--light);
    border-radius: 12px;
    border: 2px solid var(--gray-200);
    margin: 2rem auto;
}

.coming-soon-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.coming-soon-section h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 1.5rem;
}

.coming-soon-section p {
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.coming-soon-section ul {
    text-align: left;
}