:root {
    /* Light Theme */
    --bg: #fdfdfd;
    --text: #111111;
    --accent: #00CC55;
    /* Tech Green */
    --accent-glow: rgba(0, 204, 85, 0.3);
    --line: rgba(0, 0, 0, 0.08);
    --surface: #FFFFFF;
    --overlay: rgba(240, 242, 240, 0.98);

    --font-display: 'Playfair Display', serif;
    --font-body: 'Space Grotesk', sans-serif;
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

[data-theme="dark"] {
    --bg: #0a0a0a;
    --text: #EAEAEA;
    --accent: #00E065;
    /* Brighter Green for Dark Mode */
    --accent-glow: rgba(0, 224, 101, 0.2);
    --line: rgba(255, 255, 255, 0.08);
    --surface: #141414;
    --overlay: rgba(10, 10, 10, 0.98);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    transition: background-color 0.6s var(--ease-out), color 0.6s var(--ease-out);
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}


/* --- UI & NAVIGATION --- */
#webgl {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    will-change: transform;
}

/* --- THEME SWITCH TOGGLE --- */
.nav-right {
    display: flex;
    align-items: center;
    gap: 24px;
}

.theme-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    z-index: 50;
}

.toggle-track {
    position: relative;
    display: flex;
    align-items: center;
    width: 64px;
    height: 32px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: background 0.4s var(--ease-out), border-color 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
    box-shadow: 0 0 0 0 var(--accent-glow);
    overflow: hidden;
}

[data-theme="light"] .toggle-track {
    background: rgba(0, 0, 0, 0.06);
    border-color: rgba(0, 0, 0, 0.12);
    box-shadow: none;
}

[data-theme="dark"] .toggle-track {
    box-shadow: 0 0 12px var(--accent-glow);
}

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

.toggle-thumb {
    position: absolute;
    left: 4px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), rgba(0, 204, 85, 0.7));
    box-shadow: 0 0 8px var(--accent-glow), 0 2px 4px rgba(0, 0, 0, 0.3);
    transition: transform 0.4s var(--ease-out), background 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
    transform: translateX(0);
}

[data-theme="light"] .toggle-thumb {
    transform: translateX(32px);
    background: linear-gradient(135deg, #111, #444);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

.toggle-icon {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.toggle-icon--moon {
    right: 7px;
    opacity: 1;
    color: #EAEAEA;
}

.toggle-icon--sun {
    left: 7px;
    opacity: 0;
    color: #555555;
}

[data-theme="light"] .toggle-icon--moon {
    opacity: 0;
}

[data-theme="light"] .toggle-icon--sun {
    opacity: 1;
}


nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 30px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 50;
    /* mix-blend-mode: difference; REMOVED for logo color accuracy */
    color: var(--text);
    /* Use theme text color */
}

.logo {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.contact-trigger {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    padding: 10px 0;
    mix-blend-mode: exclusion;
}

.contact-trigger::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s var(--ease-out);
}

.contact-trigger:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.main-wrapper {
    position: relative;
    z-index: 1;
    overflow-x: hidden;
}


/* HERO SECTION */
.hero {
    height: 100vh;
    min-height: 600px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 5vw;
    position: relative;
    z-index: 2;
    /* Content above WebGL */
    pointer-events: none;
    /* Let clicks pass to canvas if needed */
}

/* Vignette Effect */
.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    /* Behind text but still over canvas */
    pointer-events: none;
    background: radial-gradient(circle at center, transparent 30%, var(--bg) 110%);
}

/* Mobile Layout Adjustment */
@media (max-width: 768px) {
    .hero {
        justify-content: center;
        padding-top: 0;
        /* Text in top half */
    }
}

/* FROSTED GLASS OVERLAY */
.hero-glass {
    position: relative;
    z-index: 2;
    margin-top: 5vh;
    border-radius: 32px;

    /* Ensure flexbox stacking of children */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 48px 56px;
}

.hero-glass::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    border-radius: inherit;
    pointer-events: none;

    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    will-change: transform, backdrop-filter;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.05));
    box-shadow: inset 0 0 50px rgba(255, 255, 255, 0.1);

    -webkit-mask-image: radial-gradient(circle at center, black 40%, transparent 70%);
    mask-image: radial-gradient(circle at center, black 40%, transparent 70%);
}

[data-theme="dark"] .hero-glass::before {
    background: linear-gradient(135deg, rgba(20, 20, 20, 0.4), rgba(0, 0, 0, 0.1));
    box-shadow: inset 0 0 50px rgba(0, 0, 0, 0.3);
}

/* Update mobile layout for glass container */
@media (max-width: 768px) {
    .hero-glass {
        width: min(90vw, 600px);
        /* Scaled up heavily for coverage */
        padding: 0px 20px;
        /* Allow more vertical breathing room */
    }

    .hero-glass::before {
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
    }
}

.hero-title {
    position: relative;
    z-index: 2;
    font-family: 'Playfair Display', serif;
    font-size: clamp(3rem, 7vw, 6rem);
    font-weight: 400;
    line-height: 1;
    margin-bottom: 20px;
    pointer-events: auto;
    text-align: center;
}

.hero-subtitle {
    position: relative;
    z-index: 2;
    font-size: clamp(1rem, 1.2vw, 1.1rem);
    max-width: 500px;
    line-height: 1.6;
    margin-bottom: 30px;
    pointer-events: auto;
    color: var(--text);
    font-weight: 400;
    text-align: center;
}

/* HERO CTA */
.hero-cta-wrap {
    position: relative;
    z-index: 2;
    pointer-events: auto;
}

.primary-btn {
    display: inline-block;
    padding: 14px 34px;
    background: var(--text);
    color: var(--bg);
    border-radius: 40px;
    font-family: var(--font-body);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    text-decoration: none;
    font-size: 0.85rem;
    transition: all 0.4s var(--ease-out);
    border: 1px solid var(--text);
}

.primary-btn:hover {
    background: transparent;
    color: var(--text);
    transform: scale(1.05);
}

[data-anim="fade"] {
    will-change: transform, opacity, filter;
}

/* Ensures visibility on any background */


/* ==============================
   WORKS SECTION — EDITORIAL STYLE
   ============================== */
.works-section {
    width: 100%;
    padding: 12vh 6vw 8vh;
    position: relative;
}

/* Header Block */
.works-header {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: end;
    margin-bottom: 10vh;
    padding-bottom: 6vh;
    border-bottom: 1px solid var(--line);
}

.works-label {
    display: flex;
    align-items: center;
    gap: 16px;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.18em;
    color: var(--accent);
    font-weight: 500;
    grid-column: 1 / -1;
    margin-bottom: 10px;
}

.works-label-line {
    flex: 1;
    height: 1px;
    background: var(--accent);
    opacity: 0.4;
    max-width: 80px;
}

.works-heading {
    font-family: var(--font-display);
    font-size: clamp(3.5rem, 6vw, 6.5rem);
    font-weight: 400;
    line-height: 0.95;
    letter-spacing: -0.02em;
    color: var(--text);
}

.works-heading em {
    font-style: italic;
    color: var(--accent);
}

.works-subtext {
    font-size: clamp(0.95rem, 1.2vw, 1.1rem);
    line-height: 1.7;
    opacity: 0.55;
    max-width: 420px;
    align-self: end;
    color: var(--text);
}

/* Work Item Row */
.work-item {
    display: grid;
    grid-template-columns: 80px 1fr 1fr;
    gap: 0 5vw;
    align-items: center;
    padding: 7vh 0;
    position: relative;
    transition: background 0.4s ease;
}

.work-item--reverse {
    grid-template-areas: "idx info media";
}

.work-item--reverse .work-index {
    grid-area: idx;
}

.work-item--reverse .work-media-wrap {
    grid-area: media;
}

.work-item--reverse .work-info {
    grid-area: info;
}

/* Index Column */
.work-index {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    align-self: start;
    padding-top: 8px;
}

.work-num {
    font-family: var(--font-display);
    font-size: 0.85rem;
    letter-spacing: 0.12em;
    color: var(--accent);
    opacity: 0.8;
    font-weight: 400;
}

.work-index-line {
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, var(--accent), transparent);
    opacity: 0.4;
}

/* Media Block */
.work-media-wrap {
    overflow: hidden;
    border-radius: 16px;
}

.work-media {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: 16px;
    overflow: hidden;
    background: var(--surface);
    transition: transform 0.7s var(--ease-out), box-shadow 0.7s var(--ease-out);
    will-change: transform, box-shadow;
}

.work-item:hover .work-media {
    transform: scale(1.02) translateY(-4px);
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.4), 0 0 0 1px var(--accent-glow);
}

.work-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.9s var(--ease-out);
    display: block;
    will-change: transform;
}

.work-item:hover .work-media img {
    transform: scale(1.06);
}

/* Media Overlay */
.work-media-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(160deg, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.55) 100%);
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    padding: 28px;
    opacity: 0;
    transition: opacity 0.45s ease;
}

.work-item:hover .work-media-overlay {
    opacity: 1;
}

.work-cta {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: #fff;
    border-radius: 100px;
    padding: 12px 24px;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: 500;
    text-decoration: none;
    transform: translateY(12px);
    transition: all 0.4s var(--ease-out);
}

.work-item:hover .work-cta {
    transform: translateY(0);
}

.work-cta:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: #000;
}

/* Info Block */
.work-info {
    display: flex;
    flex-direction: column;
    gap: 22px;
    padding: 10px 0;
}

/* Tags */
.work-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.work-tag {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--accent);
    border: 1px solid rgba(0, 224, 101, 0.3);
    border-radius: 100px;
    padding: 5px 14px;
    background: rgba(0, 224, 101, 0.06);
    font-weight: 500;
    transition: background 0.3s, border-color 0.3s;
}

.work-item:hover .work-tag {
    border-color: var(--accent);
    background: rgba(0, 224, 101, 0.12);
}

/* Title */
.work-title {
    font-family: var(--font-display);
    font-size: clamp(2.8rem, 4.5vw, 5rem);
    font-weight: 400;
    line-height: 0.95;
    letter-spacing: -0.02em;
    color: var(--text);
    transition: color 0.3s;
}

.work-item:hover .work-title {
    color: var(--accent);
}

/* Description */
.work-desc {
    font-size: clamp(0.9rem, 1.1vw, 1.05rem);
    line-height: 1.75;
    opacity: 0.55;
    color: var(--text);
    max-width: 420px;
}

/* Bottom Row */
.work-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 10px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
}

.work-year {
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    opacity: 0.4;
    color: var(--text);
}

.work-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--accent);
    background: rgba(0, 224, 101, 0.08);
    /* slight green background */
    border: 1px solid rgba(0, 224, 101, 0.4);
    border-radius: 40px;
    text-decoration: none;
    transition: all 0.3s var(--ease-out);
}

.work-link svg {
    margin-left: 2px;
    position: relative;
    top: 0;
    transition: transform 0.3s var(--ease-out);
}

.work-link:hover {
    background: var(--accent);
    color: var(--bg);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--accent-glow);
}

.work-link:hover svg {
    transform: translate(2px, -2px);
}

/* Divider */
.works-divider {
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--line) 20%, var(--line) 80%, transparent);
    position: relative;
    overflow: visible;
}

.works-divider::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 10px var(--accent-glow);
}

/* ==============================
   RESPONSIVE — WORKS SECTION
   ============================== */
@media (max-width: 900px) {
    .works-header {
        grid-template-columns: 1fr;
    }

    .works-subtext {
        max-width: 100%;
    }

    .work-item,
    .work-item--reverse {
        grid-template-columns: 1fr;
        grid-template-areas:
            "idx"
            "media"
            "info";
        gap: 24px;
        padding: 5vh 0;
    }

    .work-index {
        flex-direction: row;
        align-items: center;
        gap: 16px;
    }

    .work-index-line {
        width: 40px;
        height: 1px;
        background: linear-gradient(to right, var(--accent), transparent);
    }

    .work-media {
        aspect-ratio: 1 / 1;
    }

    .work-title {
        font-size: 2.8rem;
    }
}

@media (max-width: 600px) {
    .works-section {
        padding: 8vh 5vw 6vh;
    }

    .works-heading {
        font-size: 3rem;
    }

    .work-title {
        font-size: 2.4rem;
    }

    .work-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
}


/* --- FOOTER --- */
footer {
    height: 100vh;
    min-height: 100vh;
    background: var(--bg);
    /* Theme-aware Background */
    color: var(--text);
    /* Theme-aware Text */
    position: relative;
    padding: 0 10vw;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
}

#wormhole-section {
    height: 100vh;
    width: 100%;
    position: relative;
    background: var(--bg);
    /* Theme aware to prevent black bars */
    overflow: hidden;
    z-index: 5;
}

#swarm-canvas {
    display: block;
    width: 100%;
    height: 100%;
}

/* Soft Fade Overlay */
.wormhole-blur-top {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 150px;
    background: linear-gradient(to bottom, var(--bg), transparent);
    z-index: 6;
    pointer-events: none;
}

.swarm-title {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--text);
    font-family: var(--font-display);
    font-size: 6vw;
    font-weight: 400;
    letter-spacing: -0.02em;
    pointer-events: none;
    z-index: 10;
    text-align: center;
    width: 90%;
    /* Ensure it doesn't overflow on small screens */
}

.title-1 {
    opacity: 1;
}

.title-2 {
    opacity: 0;
    filter: blur(10px);
}

.title-3 {
    opacity: 0;
    filter: blur(10px);
}

@media (max-width: 600px) {
    .swarm-title {
        font-size: 2.5rem;
        /* H2 size on mobile */
    }
}

#footer-canvas {
    display: block;
    position: absolute;
    top: auto;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 30vh;
    /* Reduced height as requested (30% of viewport) */
    z-index: 1;
    /* opacity: 0.6; Match the requested intensity */
}

.footer-content {
    position: relative;
    z-index: 2;
    width: 100%;
}

.footer-big {
    font-family: var(--font-display);
    font-size: clamp(2.4rem, 6.5vw, 5.5rem);
    line-height: 0.95;
    margin-bottom: 24px;
}

.footer-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 14px 34px;
    font-family: var(--font-body);
    font-size: clamp(0.9rem, 2vw, 1.2rem);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent);
    background: transparent;
    border: 1px solid var(--accent);
    border-radius: 40px;
    text-decoration: none;
    transition: all 0.4s var(--ease-out);
    margin-bottom: 4vh;
    cursor: pointer;
}

[data-theme="dark"] .footer-cta-btn {
    border-color: rgba(0, 224, 101, 0.5);
    background: rgba(0, 224, 101, 0.05);
}

.footer-cta-btn:hover {
    transform: translateY(-4px);
    background: var(--accent);
    color: var(--bg);
    box-shadow: 0 8px 24px var(--accent-glow);
}

.footer-cta-btn svg {
    transition: transform 0.4s var(--ease-out);
}

.footer-cta-btn:hover svg {
    transform: translate(4px, -4px);
}

/* Footer Grid — minimal 2-col */
.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: start;
    gap: 40px;
    margin-top: 10px;
    border-top: 1px solid var(--line);
    padding-top: 40px;
    max-width: 720px;
}

/* Shared micro-label */
.footer-meta-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.62rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent);
    opacity: 0.8;
    margin-bottom: 14px;
}

/* ---- Location ---- */
.footer-location {
    display: flex;
    flex-direction: column;
}

.footer-location-city {
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 400;
    letter-spacing: -0.03em;
    color: var(--text);
    line-height: 1;
    margin-bottom: 6px;
}

.footer-location-country {
    font-size: 0.75rem;
    letter-spacing: 0.04em;
    color: var(--text);
    opacity: 0.6;
}

/* ---- Socials pill row ---- */
.footer-socials {
    display: flex;
    flex-direction: column;
}

.footer-pill-row {
    display: flex;
    flex-direction: row;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}


/* Social Pill — icon-only circles */
.social-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: transparent;
    color: var(--text);
    text-decoration: none;
    transition:
        background 0.28s ease,
        border-color 0.28s ease,
        color 0.28s ease,
        transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
}

[data-theme="light"] .social-pill {
    border-color: rgba(0, 0, 0, 0.15);
}

.social-pill:hover {
    background: var(--text);
    border-color: var(--text);
    color: var(--bg);
    transform: scale(1.08);
}

.social-pill svg {
    display: block;
    pointer-events: none;
}

/* --- MOBILE & RESPONSIVE --- */
@media (max-width: 900px) {
    nav {
        padding: 20px 5vw;
    }

    /* project-cards-wrapper removed — now uses .works-section */

    /* Ensure hover effects work on touch or are active by default? 
       Usually hover is fine, but I might want the button visible. 
       Let's keep it clean for now. */

    .project-text {
        width: 100%;
        padding: 0 !important;
        text-align: left !important;
        align-items: flex-start !important;
    }

    .proj-title {
        font-size: 3rem;
    }

    /* Theme toggle adjustment mobile */
    .toggle-track {
        width: 56px;
        height: 28px;
    }

    .toggle-thumb {
        width: 20px;
        height: 20px;
    }

    [data-theme="light"] .toggle-thumb {
        transform: translateX(28px);
    }

    .modal-header-grid {
        grid-template-columns: 1fr;
    }

    .modal-hero {
        height: 35vh;
    }

    .footer-big {
        font-size: 4rem;
    }
}

/* --- SMALL MOBILE (< 600px) --- */
@media (max-width: 600px) {
    .logo img {
        height: 60px !important;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        /* Single column */
        gap: 20px;
    }

    .col-center {
        grid-column: span 1;
    }

    /* Make images nicely vertical */
    .col-center .img-card,
    .col-side .img-card {
        aspect-ratio: 3/4;
    }

    .proj-title {
        font-size: 2.5rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        /* Stack footer */
        gap: 30px;
    }

    .footer-big {
        font-size: 3rem;
    }
}

/* --- PREMIUM OVERLAY --- */
.detail-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg);
    z-index: 500;
    transform: translateY(100%);
    transition: transform 0.7s var(--ease-out);
    overflow-y: auto;
    backdrop-filter: blur(20px);
}

.detail-overlay.active {
    transform: translateY(0);
}

.close-btn {
    position: fixed;
    top: 30px;
    right: 30px;
    z-index: 510;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 1px solid var(--line);
    background: var(--surface);
    color: var(--text);
    cursor: pointer;
    font-size: 24px;
    transition: 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-btn:hover {
    transform: rotate(90deg);
    border-color: var(--accent);
    color: var(--accent);
}

.modal-hero {
    height: 60vh;
    width: 100%;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid var(--line);
}

.modal-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.8);
}

.modal-content-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
}

.modal-header-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
    align-items: end;
}

.modal-title {
    font-family: var(--font-display);
    font-size: clamp(3rem, 6vw, 6rem);
    line-height: 0.9;
    margin-bottom: 20px;
}

.modal-meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    font-size: 0.9rem;
    opacity: 0.8;
}

.meta-item span {
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.7rem;
    opacity: 0.6;
    margin-bottom: 5px;
}

.live-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    background: var(--text);
    color: var(--bg);
    border-radius: 30px;
    text-transform: uppercase;
    font-weight: 600;
    font-size: 0.8rem;
    text-decoration: none;
    transition: 0.3s;
}

.live-btn:hover {
    transform: scale(1.05);
}

/* Digital Heartbeat Canvas */
#heartbeat-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    /* Behind everything */
}

/* --- MODAL REFINEMENTS --- */
.modal-subtitle {
    margin-top: 10px;
    font-weight: 300;
    color: var(--text);
    max-width: 90%;
}

.modal-body {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid var(--line);
    font-family: var(--font-body);
    color: var(--text);
}

.modal-body p {
    margin-bottom: 20px;
    font-size: 1.2rem;
}

@media (max-width: 768px) {
    .modal-hero {
        height: 40vh;
    }

    .modal-header-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .modal-title {
        font-size: 3rem;
    }

    .modal-subtitle {
        font-size: 1.2rem !important;
    }
}

/* Insert at the bottom of the style.css file */

/* Hero WebGL Canvas */
#hero-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    /* Keep behind hero text */
    pointer-events: none;
    /* Let clicks pass to the body listener */
}


/* =====================================================
   ANIMATION BASE STYLES
   ===================================================== */

/* ① CHAR SPLIT */
.char-wrap {
    display: inline-block;
    overflow: hidden;
    /* clips each char's translate-up entrance */
    line-height: 1.15;
    vertical-align: bottom;
    /* aligns baseline of inline-block correctly */
    padding-bottom: 0.15em;
    margin-bottom: -0.15em;
    padding-top: 0.1em;
    margin-top: -0.1em;
    /* No max-width / width so it naturally fits the character */
}

.char {
    display: inline-block;
    will-change: transform, opacity;
    /* GSAP animates y: 115% → 0 */
}

.char-space {
    display: inline-block;
    width: 0.28em;
}

/* ② WORD BLUR MATERIALISE */
.word-wrap {
    display: inline-block;
    overflow: hidden;
    /* keeps word's blur/translate inside its box */
    vertical-align: bottom;
    /* Small breathing room so descenders / ascenders aren't clipped */
    padding-bottom: 0.15em;
    margin-bottom: -0.15em;
    padding-top: 0.1em;
    margin-top: -0.1em;
}

.word {
    display: inline-block;
    will-change: transform, opacity;
    /* GSAP: y 18 → 0, opacity 0 → 1 */
}

/* ③ FADE — initial state is set by GSAP fromTo, nothing to reset in CSS */

/* =====================================================
   ACCESSIBILITY — respect reduced motion
   ===================================================== */
@media (prefers-reduced-motion: reduce) {

    .char,
    .char-wrap,
    .word,
    .word-wrap,
    [data-anim] {
        animation: none !important;
        transition: none !important;
        opacity: 1 !important;
        transform: none !important;
        clip-path: none !important;
        filter: none !important;
    }
}


/* ======================================================
   ABOUT SECTION
   ====================================================== */
.about-section {
    width: 100%;
    padding: 14vh 6vw 12vh;
    position: relative;
    overflow: hidden;
    border-top: 1px solid var(--line);
}

/* Floating ambient orbs */
.about-orb {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    will-change: transform;
}

.about-orb--1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(0, 224, 101, 0.08) 0%, transparent 70%);
    top: -100px;
    left: -150px;
    animation: orbFloat 12s ease-in-out infinite alternate;
}

.about-orb--2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(0, 224, 101, 0.06) 0%, transparent 70%);
    bottom: -80px;
    right: -100px;
    animation: orbFloat 16s ease-in-out infinite alternate-reverse;
}

@keyframes orbFloat {
    from {
        transform: translate(0, 0) scale(1);
    }

    to {
        transform: translate(30px, 20px) scale(1.1);
    }
}

/* Grid layout */
.about-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8vw;
    align-items: stretch;
    /* Stretch to make both columns equal height, enabling vertical centering */
    position: relative;
    z-index: 1;
}

/* ---- Left Column ---- */
.about-left {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.about-label {
    display: flex;
    align-items: center;
    gap: 14px;
    text-transform: uppercase;
    font-size: 0.72rem;
    letter-spacing: 0.2em;
    color: var(--accent);
}

.about-label-line {
    width: 40px;
    height: 1px;
    background: var(--accent);
    opacity: 0.5;
}

.about-heading {
    font-family: var(--font-display);
    font-size: clamp(3.5rem, 6vw, 6.5rem);
    font-weight: 400;
    line-height: 0.95;
    letter-spacing: -0.03em;
    color: var(--text);
}

.about-heading .char-wrap {
    padding-left: 0.15em;
    padding-right: 0.15em;
    margin-left: -0.15em;
    margin-right: -0.15em;
}

.about-heading em {
    font-style: italic;
    color: var(--accent);
}

.about-accent-bar {
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), transparent);
    border-radius: 2px;
}

/* Services Vertical Scroller Area */
.about-services-scroller {
    margin-top: auto;
    /* Pushes the scroller to the absolute bottom of the left flex column */
    height: clamp(60px, 8vw, 75px);
    /* Fixed height for 1 visible item at once */
    overflow: hidden;
    position: relative;
    /* Soft fade top and bottom */
    -webkit-mask-image: linear-gradient(to bottom,
            transparent,
            black 5%,
            black 95%,
            transparent);
    mask-image: linear-gradient(to bottom,
            transparent,
            black 5%,
            black 95%,
            transparent);
}

.services-track {
    display: flex;
    flex-direction: column;
    animation: verticalScroll 20s linear infinite;
}

.services-track:hover {
    animation-play-state: paused;
}

.service-item {
    display: flex;
    align-items: center;
    height: clamp(60px, 8vw, 75px);
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 4vw, 3.2rem);
    font-weight: 400;
    color: var(--accent);
    line-height: 1;
    letter-spacing: -0.02em;
    font-style: italic;
    white-space: nowrap;
}

@keyframes verticalScroll {
    0% {
        transform: translateY(0);
    }

    100% {
        /* Translates exactly half the track since we duplicated the items */
        transform: translateY(-50%);
    }
}

/* ---- Right Column ---- */
.about-right {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 16px;
}

.about-lead {
    font-family: var(--font-display);
    font-size: clamp(1.3rem, 1.8vw, 1.7rem);
    font-weight: 400;
    line-height: 1.5;
    color: var(--text);
}

.about-lead em {
    font-style: italic;
    color: var(--accent);
}

.about-body {
    font-size: clamp(0.9rem, 1.1vw, 1.05rem);
    line-height: 1.85;
    opacity: 0.55;
    color: var(--text);
}

.about-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 12px;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-weight: 500;
    color: var(--accent);
    text-decoration: none;
    border: 1px solid rgba(0, 224, 101, 0.3);
    border-radius: 100px;
    padding: 12px 26px;
    background: rgba(0, 224, 101, 0.06);
    transition: all 0.4s var(--ease-out);
    width: fit-content;
}

.about-cta:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: #000;
    transform: translateY(-2px);
    box-shadow: 0 12px 30px var(--accent-glow);
}

/* Responsive */
@media (max-width: 900px) {
    .about-inner {
        grid-template-columns: 1fr;
        gap: 50px;
    }
}

@media (max-width: 600px) {
    .about-section {
        padding: 10vh 5vw 8vh;
    }

    .about-heading {
        font-size: 3.2rem;
    }
}


/* ======================================================
   PROCESS / HOW I WORK SECTION
   ====================================================== */
.process-section {
    width: 100%;
    padding: 8vh 6vw 4vh;
    /* Reduced padding from 12vh/14vh to save space */
    position: relative;
    border-top: 1px solid var(--line);
    overflow: hidden;
}

.process-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 24px;
    margin-bottom: 4vh;
    /* Reduced from 10vh to pull the diagram closer */
}

.process-heading {
    font-family: var(--font-display);
    font-size: clamp(2.8rem, 5vw, 5.5rem);
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--text);
    max-width: 900px;
    margin: 0 auto;
}

.process-heading em {
    font-style: italic;
    color: var(--accent);
}

.process-subtext {
    font-size: clamp(0.95rem, 1.2vw, 1.1rem);
    line-height: 1.7;
    opacity: 0.5;
    max-width: 520px;
    color: var(--text);
}

/* ======================================================
   WORKFLOW DIAGRAM / AI PIPELINE
   ====================================================== */
.workflow-diagram {
    position: relative;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 40px;
    align-items: center;
    padding: 60px 0;
}

/* SVG Connecting Lines Background */
.workflow-lines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.flow-path {
    fill: none;
    stroke: var(--text);
    opacity: 0.15;
    stroke-width: 2;
    transition: stroke 0.6s var(--ease-out), opacity 0.6s var(--ease-out);
}

/* Moving Particles */
.flow-particle {
    fill: var(--accent);
    filter: drop-shadow(0 0 6px var(--accent-glow));
    opacity: 0;
}

.p1 {
    animation: flowMove 4s infinite linear;
    offset-path: path('M 250,120 C 350,120 400,200 500,200');
    animation-delay: 0s;
}

.p2 {
    animation: flowMove 4s infinite linear;
    offset-path: path('M 250,280 C 350,280 400,200 500,200');
    animation-delay: 1.5s;
}

.p3 {
    animation: flowMove 5s infinite linear;
    offset-path: path('M 500,200 C 600,200 650,100 750,100');
    animation-delay: 0.5s;
}

.p4 {
    animation: flowMove 5s infinite linear;
    offset-path: path('M 500,200 C 600,200 650,201 750,200');
    animation-delay: 2s;
}

.p5 {
    animation: flowMove 5s infinite linear;
    offset-path: path('M 500,200 C 600,200 650,300 750,300');
    animation-delay: 3.5s;
}

@keyframes flowMove {
    0% {
        offset-distance: 0%;
        opacity: 0;
        transform: scale(0.5);
    }

    10% {
        opacity: 1;
        transform: scale(1);
    }

    90% {
        opacity: 1;
        transform: scale(1);
    }

    100% {
        offset-distance: 100%;
        opacity: 0;
        transform: scale(0.5);
    }
}

/* Columns */
.workflow-col {
    display: flex;
    flex-direction: column;
    gap: 30px;
    position: relative;
    z-index: 2;
}

.workflow-left {
    align-items: flex-end;
}

.workflow-right {
    align-items: flex-start;
}

/* Universal Node Styles */
.workflow-node {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--surface);
    border: 1px solid var(--line);
    padding: 16px 24px;
    border-radius: 16px;
    width: 260px;
    transition: transform 0.4s var(--ease-out), border-color 0.4s ease, box-shadow 0.4s ease;
    cursor: default;
    position: relative;
    overflow: hidden;
}

.workflow-node::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(circle at left, rgba(0, 224, 101, 0.08), transparent 70%);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.workflow-node:hover {
    transform: translateY(-4px);
    border-color: rgba(0, 224, 101, 0.4);
}

.workflow-node:hover::before {
    opacity: 1;
}

.node-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text);
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.workflow-node:hover .node-icon {
    background: rgba(0, 224, 101, 0.15);
    border-color: rgba(0, 224, 101, 0.4);
    color: var(--accent);
}

.node-content h4 {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 500;
    letter-spacing: -0.01em;
    color: var(--text);
    margin-bottom: 2px;
}

.node-content p {
    font-size: 0.75rem;
    color: var(--text);
    opacity: 0.5;
    line-height: 1.4;
}

/* Output Nodes */
.node-output {
    padding: 12px 20px;
    width: 240px;
}

/* ======================================================
   SVG WORKFLOW ANIMATIONS
   ====================================================== */
.node-icon svg {
    width: 20px;
    height: 20px;
    transition: all 0.3s ease;
}

.anim-icon-ai {
    width: 32px;
    height: 32px;
}

/* 1. First Principles (Cube parsing) */
.anim-icon-deconstruct .cube-top {
    animation: cubePulse 3s infinite ease-in-out;
    transform-origin: center;
}

.anim-icon-deconstruct .cube-left {
    animation: cubeLeftPulse 3s infinite ease-in-out;
    transform-origin: center;
}

.anim-icon-deconstruct .cube-right {
    animation: cubeRightPulse 3s infinite ease-in-out;
    transform-origin: center;
}

@keyframes cubePulse {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-2px);
        stroke: var(--accent);
    }
}

@keyframes cubeLeftPulse {

    0%,
    100% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(-2px, 1px);
    }
}

@keyframes cubeRightPulse {

    0%,
    100% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(2px, 1px);
    }
}

/* 2. Eliminate Noise (Filter drops) */
.anim-icon-filter .filter-drop {
    animation: filterDrop 2s infinite ease-in;
    transform-origin: center;
}

@keyframes filterDrop {
    0% {
        transform: translateY(-5px);
        opacity: 0;
    }

    20% {
        opacity: 1;
        fill: var(--accent);
    }

    80% {
        opacity: 1;
        fill: var(--accent);
    }

    100% {
        transform: translateY(22px);
        opacity: 0;
    }
}

/* 3. AI Core (Sparkles) */
.anim-icon-ai .spark-main {
    animation: sparkPulse 2s infinite alternate ease-in-out;
    transform-origin: center;
}

.anim-icon-ai .spark-small {
    animation: sparkFloat 3s infinite alternate ease-in-out;
    transform-origin: center;
}

.anim-icon-ai .spark-small-2 {
    animation: sparkFloat 2.5s infinite alternate-reverse ease-in-out;
    transform-origin: center;
}

@keyframes sparkPulse {
    0% {
        transform: scale(0.9);
        opacity: 0.8;
    }

    100% {
        transform: scale(1.1);
        opacity: 1;
        filter: drop-shadow(0 0 4px var(--accent-glow));
    }
}

@keyframes sparkFloat {
    0% {
        transform: translateY(0) scale(0.8);
        opacity: 0.5;
    }

    100% {
        transform: translateY(-3px) scale(1.1);
        opacity: 1;
    }
}

/* 4. Build & Design (Draw layout) */
.anim-icon-build .build-line-1 {
    stroke-dasharray: 20;
    stroke-dashoffset: 20;
    animation: drawLine 3s infinite ease-in-out;
}

.anim-icon-build .build-line-2 {
    stroke-dasharray: 20;
    stroke-dashoffset: 20;
    animation: drawLine 3s infinite ease-in-out 0.5s;
}

@keyframes drawLine {
    0% {
        stroke-dashoffset: 20;
        opacity: 0;
    }

    20% {
        opacity: 1;
    }

    50% {
        stroke-dashoffset: 0;
        stroke: var(--accent);
    }

    80% {
        opacity: 1;
    }

    100% {
        stroke-dashoffset: -20;
        opacity: 0;
    }
}

/* 5. Debug & Test (Scan line) */
.anim-icon-debug .debug-scan {
    animation: scanMove 2.5s infinite linear;
    stroke: var(--accent);
}

.anim-icon-debug .debug-dot {
    animation: dotBlink 1s infinite alternate;
}

@keyframes scanMove {
    0% {
        transform: translateY(-4px);
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    50% {
        transform: translateY(6px);
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        transform: translateY(-4px);
        opacity: 0;
    }
}

@keyframes dotBlink {
    0% {
        fill: transparent;
    }

    100% {
        fill: var(--accent);
    }
}

/* 6. Ship (Rocket shake) */
.anim-icon-ship .rocket-body {
    animation: rocketShake 2s infinite ease-in-out;
    transform-origin: center;
}

.anim-icon-ship .rocket-flame {
    animation: flameFlicker 0.2s infinite alternate;
    stroke: var(--accent);
    transform-origin: 10px 14px;
}

@keyframes rocketShake {

    0%,
    100% {
        transform: translate(0, 0);
    }

    25% {
        transform: translate(1px, -1px);
    }

    50% {
        transform: translate(0, -2px);
        stroke: var(--accent);
    }

    75% {
        transform: translate(-1px, -1px);
    }
}

@keyframes flameFlicker {
    0% {
        transform: scaleY(0.8) scaleX(0.9);
        opacity: 0.7;
    }

    100% {
        transform: scaleY(1.2) scaleX(1.1);
        opacity: 1;
    }
}

/* Center AI Core Container */
.workflow-center {
    align-items: center;
    justify-content: center;
}

.ai-core-wrap {
    position: relative;
    width: 200px;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ai-core-ring {
    position: absolute;
    border-radius: 50%;
    border: 1px dashed rgba(0, 224, 101, 0.3);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.ring-1 {
    width: 120px;
    height: 120px;
    animation: spin 20s linear infinite;
}

.ring-2 {
    width: 160px;
    height: 160px;
    border: 1px solid rgba(0, 224, 101, 0.15);
    animation: spin 30s linear infinite reverse;
}

.ring-3 {
    width: 200px;
    height: 200px;
    border: 1px dotted rgba(0, 224, 101, 0.2);
    animation: spin 40s linear infinite;
}

@keyframes spin {
    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

.ai-core-pulse {
    position: absolute;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--accent);
    filter: blur(40px);
    opacity: 0.4;
    animation: pulse 4s ease-in-out infinite alternate;
}

@keyframes pulse {
    0% {
        transform: scale(0.8);
        opacity: 0.2;
    }

    100% {
        transform: scale(1.2);
        opacity: 0.5;
    }
}

.ai-core {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: var(--surface);
    border: 1px solid rgba(0, 224, 101, 0.4);
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    z-index: 5;
}

.ai-core span {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--accent);
    font-weight: 500;
}

/* Responsive adjustments */
@media (max-width: 900px) {
    .workflow-diagram {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .workflow-col {
        align-items: center;
    }

    .workflow-lines {
        display: none;
        /* Hide SVG lines on mobile, rely on flex gap */
    }

    .workflow-left::after,
    .workflow-center::after {
        content: '';
        position: absolute;
        bottom: -45px;
        left: 50%;
        transform: translateX(-50%);
        width: 2px;
        height: 30px;
        background: linear-gradient(to bottom, var(--accent), transparent);
        opacity: 0.4;
    }
}

@media (max-width: 600px) {
    .process-section {
        padding: 10vh 5vw 8vh;
    }

    .process-heading {
        font-size: 3.2rem;
    }

    .workflow-node {
        width: 100%;
        max-width: 320px;
    }
}

/* TECH STACK SCROLLER (INFINITE) */
.tech-scroller-wrap {
    width: 100%;
    margin-top: 4rem;
    overflow: hidden;
    position: relative;
    padding: 2rem 0;
    /* optional fade masks on edges */
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.tech-scroller-track {
    display: flex;
    gap: clamp(1.5rem, 4vw, 3rem);
    width: max-content;
    animation: auto-scroll 30s linear infinite;
}

.tech-scroller-track:hover {
    animation-play-state: paused;
}

.tech-item {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(0.9rem, 1.2vw, 1.1rem);
    font-weight: 500;
    color: var(--text);
    background: rgba(255, 255, 255, 0.05);
    padding: 0.6rem clamp(1rem, 2vw, 1.5rem);
    border-radius: 100px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    white-space: nowrap;
    transition: all 0.3s ease;
    cursor: default;
}

.tech-item:hover {
    background: var(--accent);
    color: var(--bg);
    border-color: var(--accent);
    transform: translateY(-2px);
}

@keyframes auto-scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        /* scroll exactly by half since it is duplicated */
        transform: translateX(calc(-50% - 1.5rem / 2));
    }
}

/* TECH ITEM ICONS */
.tech-item {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
}

.tech-icon {
    height: clamp(0.9rem, 1.2vw, 1.1rem);
    width: auto;
    opacity: 0.7;
    transition: opacity 0.3s ease, filter 0.3s ease;
}

[data-theme="dark"] .tech-icon {
    filter: invert(1);
    opacity: 0.8;
}

.tech-item:hover .tech-icon {
    opacity: 1;
    filter: invert(0);
}

[data-theme="light"] .tech-item:hover .tech-icon {
    filter: invert(1);
}

.tech-icon-no-invert {
    height: 1.2rem;
    width: auto;
}