/* =========================================
   Design Tokens & Variables
   ========================================= */
:root {
    /* Colors */
    --color-primary: #1a2b47;
    --color-primary-light: #2b6cee;
    --color-primary-stats: #1754cf;
    --color-accent: #3B8C6E;

    --color-bg-dark: #080808;
    --color-bg-darker: #050505;
    --color-bg-card: #14181e;

    --color-text-white: #ffffff;
    --color-text-chic: #F9F9F9;
    --color-text-muted: #9da6b8;

    /* Spacing */
    --space-gutter: clamp(24px, 5vw, 64px);

    /* Radius */
    --radius-island: 40px;
    --radius-card: 40px;
    --radius-btn: 9999px;

    /* Fonts */
    --font-ui: 'Inter', sans-serif;
    --font-display: 'Spline Sans', sans-serif;
    --font-serif: 'Playfair Display', serif;

    /* Fluid Typography */
    --text-hero: clamp(3.5rem, 8vw, 7rem);
    --text-h1: clamp(2.5rem, 5vw, 4.5rem);
    --text-h2: clamp(2rem, 4vw, 3.5rem);
    --text-h3: clamp(1.5rem, 3vw, 2.5rem);
    --text-body: clamp(1rem, 1.5vw, 1.25rem);
    /* Liquid Glass Constants */
    --liquid-shadow-offset: 0;
    --liquid-shadow-blur: 20px;
    --liquid-shadow-spread: -5px;
    --liquid-shadow-color: rgba(255, 255, 255, 0.7);
    --liquid-tint-color: 255, 255, 255;
    --liquid-tint-opacity: 0.04;
    --liquid-frost-blur: 2px;
}

/* Recommended Lenis CSS */
html.lenis,
html.lenis body {
    height: auto;
}

.lenis.lenis-smooth {
    scroll-behavior: auto !important;
}

/* =========================================
   Typography Overrides (Readability)
   ========================================= */
h1,
h2,
h3,
h4,
h5,
h6,
.font-display,
.font-serif {
    letter-spacing: 0.03em;
    /* Increased spacing */
    line-height: 1.3;
    /* Improved line height */
    word-spacing: 0.2em;
    /* Ensure separate words */
}

.text-5xl,
.text-7xl {
    word-spacing: 0.3em !important;
    /* Aggressive fix for "glued words" */
}

/* =========================================
   Card Grid Fixes
   ========================================= */

.lenis.lenis-smooth [data-lenis-prevent] {
    overscroll-behavior: contain;
}


.lenis.lenis-stopped {
    overflow: hidden;
}

.lenis.lenis-smooth iframe {
    pointer-events: none;
}

/* Global Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--color-bg-dark);
}

::-webkit-scrollbar-thumb {
    background: #2c2f35;
    border-radius: 4px;
}

.no-scrollbar::-webkit-scrollbar {
    display: none;
}

.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* =========================================
   OverlayScrollbars — Services Modal Theme
   ========================================= */
#services-left-panel .os-scrollbar-handle {
    background: rgba(255, 255, 255, 0.85) !important;
    border-radius: 4px !important;
    transition: background 0.3s ease !important;
}

#services-left-panel .os-scrollbar-handle:hover,
#services-left-panel .os-scrollbar-handle:active {
    background: rgba(255, 255, 255, 1) !important;
}

#services-left-panel .os-scrollbar {
    --os-size: 6px;
    padding: 2px;
}

/* Hide native scrollbar in modal panels */
#services-left-panel::-webkit-scrollbar {
    display: none;
}

#services-left-panel {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Material Symbols */
.material-symbols-outlined {
    font-variation-settings:
        'FILL' 0,
        'wght' 400,
        'GRAD' 0,
        'opsz' 24
}

/* =========================================
   Glassmorphism (Enhanced)
   ========================================= */
.glass-panel {
    background: rgba(20, 24, 30, 0.6);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow:
        0 4px 30px rgba(0, 0, 0, 0.1),
        inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.glass-card {
    position: relative;
    isolation: isolate;
    background: transparent;
    border: none;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border-radius: 32px;
    will-change: transform, box-shadow;
    transform: translateZ(0);
}

.glass-card::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    border-radius: inherit;
    box-shadow:
        inset var(--liquid-shadow-offset) var(--liquid-shadow-offset) var(--liquid-shadow-blur) var(--liquid-shadow-spread) var(--liquid-shadow-color);
    background-color: rgba(var(--liquid-tint-color), var(--liquid-tint-opacity));
    border: 1px solid rgba(255, 255, 255, 0.1);
    pointer-events: none;
    will-change: background-color, border-color;
    transition: background-color 0.4s ease, border-color 0.4s ease;
}

.glass-card::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    border-radius: inherit;
    backdrop-filter: blur(var(--liquid-frost-blur));
    -webkit-backdrop-filter: blur(var(--liquid-frost-blur));
    filter: url(#glass-distortion);
    -webkit-filter: url("#glass-distortion");
    pointer-events: none;
    will-change: backdrop-filter, filter, transform;
    transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1), backdrop-filter 0.6s ease;
    transform: translateZ(0);
}

/* Base hover handled by CSS for simple properties, JS for filter intensity */
.glass-card:hover {
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
}

.glass-card:hover::before {
    background-color: rgba(var(--liquid-tint-color), 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.glass-card:hover::after {
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transform: scale(1.02) translateZ(0);
}

/* Glow Effects */
.text-glow {
    text-shadow: 0 0 40px rgba(26, 43, 71, 0.8), 0 0 20px rgba(26, 43, 71, 0.4);
}

.btn-glow:hover {
    box-shadow: 0 0 20px 5px rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

.btn-glow {
    transition: all 0.3s ease;
}

.number-glow {
    text-shadow: 0 10px 40px rgba(0, 0, 0, 1);
}

/* Misc Utilities */
.tablet-frame {
    box-shadow:
        inset 0 0 0 2px #333,
        inset 0 0 0 6px #111,
        0 0 0 2px #222,
        0 40px 80px -20px rgba(0, 0, 0, 0.8);
}

.chic-line {
    border-bottom-width: 1px;
    border-color: var(--color-text-chic);
}

.card-image {
    will-change: transform;
}

.sharp-grid-card {
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.input-underline {
    background-size: 0% 1px;
    background-repeat: no-repeat;
    background-position: left bottom;
    transition: background-size 0.3s ease;
}

.input-group:focus-within .input-underline {
    background-size: 100% 1px;
}

/* Grok Bold Stars Overlay */
#star-container {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.star {
    position: absolute;
    background-color: #ffffff;
    border-radius: 50%;
    opacity: 0;
    will-change: transform, opacity;
    animation: bold-shift var(--duration) ease-in-out var(--delay) infinite;
}

@keyframes bold-shift {
    0% {
        transform: translate(0, 0) scale(0.1);
        opacity: 0;
    }

    30% {
        opacity: var(--max-opacity);
    }

    70% {
        opacity: var(--max-opacity);
    }

    100% {
        transform: translate(var(--moveX), var(--moveY)) scale(1.5);
        opacity: 0;
    }
}

/* Draggable Carousel */
.carousel-container {
    width: 100%;
    overflow-x: hidden;
    cursor: grab;
    position: relative;
    user-select: none;
    -webkit-user-select: none;
    padding: 2rem 0;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.carousel-container:active {
    cursor: grabbing;
}

.carousel-track {
    display: flex;
    gap: 4rem;
    width: max-content;
    padding: 0 4rem;
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.carousel-container.is-dragging .carousel-track {
    transition: none;
}

.service-item {
    font-family: var(--font-ui);
    font-size: 2rem;
    font-weight: 500;
    color: white;
    white-space: nowrap;
    transition: color 0.3s ease;
    will-change: transform, color;
}

.service-item:hover {
    opacity: 1;
}

@media (min-width: 768px) {
    .service-item {
        font-size: 2.5rem;
    }
}

/* Service Tooltip */
#service-tooltip {
    position: fixed;
    pointer-events: none;
    z-index: 100;
    opacity: 0;
    transform: translate(-50%, -20px) scale(0.95);
    transition: opacity 0.3s ease, transform 0.3s ease;
    background: rgba(14, 14, 14, 0.95);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    border-radius: 24px;
    width: 320px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

#service-tooltip.active {
    animation: tooltipFadePop 0.4s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
    pointer-events: auto;
}

@keyframes tooltipFadePop {
    from {
        opacity: 0;
        transform: translate(-50%, -20px) scale(0.9);
    }

    to {
        opacity: 1;
        transform: translate(-50%, -100%) scale(1);
    }
}

#service-tooltip::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    width: 12px;
    height: 12px;
    background: rgba(20, 24, 30, 0.95);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.tooltip-title {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 600;
    color: white;
}

.tooltip-desc {
    font-family: var(--font-ui);
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.5;
}



.tooltip-btn {
    margin-top: 0.75rem;
    background-color: white;
    color: black;
    font-family: var(--font-ui);
    font-size: 0.9rem;
    font-weight: 600;
    padding: 0.6rem 1.5rem;
    border-radius: 9999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
    cursor: pointer;
    border: 4px solid #333;
    /* Darker border for contrast like reference might have, or just standard border? Reference looked like a white button on dark bg. */
    /* Wait, the reference image shows a white button with a BLACK border container? No, it looks like a white button inside a black container. */
    /* The user provided image: https://file... It looks like a white pill button with black text "Let's Talk" and an arrow. It has a thick dark border around it? Or maybe it is just on a dark background. */
    /* Let's look at the image again if I could... I can't see the image again easily but "White pill, black text" is the description. */
    /* I'll stick to White Background, Black Text, Pill Shape. */
    border: 1px solid #e5e7eb;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.tooltip-btn:hover {
    background-color: #f3f4f6;
    transform: translateY(-1px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* =========================================
   Phase 5: Project Card Redesign (Horizontal)
   ========================================= */
.project-card-h {
    width: 85vw;
    max-width: 450px;
    height: 50vh;
    max-height: 600px;
    border-radius: 40px;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: filter 0.3s ease;
}

@media (min-width: 768px) {
    .project-card-h {
        width: 35vw;
        max-width: 400px;
        height: 55vh;
    }
}

@media (min-width: 1280px) {
    .project-card-h {
        width: 24vw;
        max-width: 380px;
        height: 60vh;
        max-height: 700px;
    }
}

.project-image-h {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
    will-change: transform;
}

.project-card-h:hover .project-image-h {
    transform: scale(1.08);
    /* slight smooth zoom */
}

.project-overlay-h {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, 0.8) 100%);
    pointer-events: none;
    z-index: 10;
}

.project-content-h {
    position: relative;
    z-index: 20;
    height: 100%;
    padding: 1.5rem 1rem 1rem 1rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}


.card-tag {
    background: white;
    color: #000;
    font-size: 0.8125rem;
    font-weight: 700;
    height: 1.85rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 1.6rem;
    border-radius: 9999px;
    font-family: var(--font-ui);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    white-space: nowrap;
    letter-spacing: -0.01em;
}

.liquid-glass-tag {
    position: relative;
    height: 1.85rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 1.5rem;
    border-radius: 9999px;
    font-family: var(--font-ui);
    font-size: 0.65rem;
    font-weight: 600;
    color: white;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow:
        inset 0 0 8px rgba(255, 255, 255, 0.05),
        0 4px 12px rgba(0, 0, 0, 0.2);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    overflow: hidden;
    white-space: nowrap;
}

.liquid-glass-tag::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    pointer-events: none;
    opacity: 0.5;
}

.card-icon-container {
    width: 10.0rem;
    height: 2.5rem;
    border-radius: 2.25rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.card-icon {
    padding: 0.30rem;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.card-arrow {
    width: 2.8rem;
    height: 2.8rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all 0.3s ease;
}

.project-card-h:hover .card-arrow {
    background: white;
    color: black;
    transform: scale(1.05);
}

/* =========================================
   Phase 4: Uiverse Animated Button
   ========================================= */
.uiverse-btn {
    --primary: var(--color-primary);
    /* Adapted to project theme */
    --neutral-1: #f7f8f7;
    --neutral-2: #e7e7e7;
    --radius: 14px;

    cursor: pointer;
    border-radius: var(--radius);
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.3);
    border: none;
    box-shadow: 0 0.5px 0.5px 1px rgba(255, 255, 255, 0.2),
        0 10px 20px rgba(0, 0, 0, 0.2), 0 4px 5px 0px rgba(0, 0, 0, 0.05);
    display: flex !important;
    /* Ensure flex for centering */
    align-items: center;
    justify-content: center;
    position: relative;
    transition: all 0.3s ease;
    min-width: 160px;
    /* Reduced from 200px for fit */
    padding: 16px 20px;
    /* Adjusted padding */
    height: 56px;
    /* Adjusted height */
    font-family: var(--font-ui);
    font-style: normal;
    font-size: 16px;
    /* Adjusted font size */
    font-weight: 600;
    box-sizing: border-box;
    text-decoration: none;
    /* For header links */
    color: #111;
    /* Default text color for icon inheritance */
}

/* Navbar Button Specifics */
.uiverse-btn.nav-btn {
    height: 42px;
    min-width: 130px;
    padding: 8px 16px;
    font-size: 14px;
}

.uiverse-btn:hover {
    transform: scale(1.02);
    box-shadow: 0 0 1px 2px rgba(255, 255, 255, 0.3),
        0 15px 30px rgba(0, 0, 0, 0.3), 0 10px 3px -3px rgba(0, 0, 0, 0.04);
}

.uiverse-btn:active {
    transform: scale(1);
    box-shadow: 0 0 1px 2px rgba(255, 255, 255, 0.3),
        0 10px 3px -3px rgba(0, 0, 0, 0.2);
}

.uiverse-btn:after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: var(--radius);
    border: 2.5px solid transparent;
    background: linear-gradient(var(--neutral-1), var(--neutral-2)) padding-box,
        linear-gradient(to bottom, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.45)) border-box;
    z-index: 0;
    transition: all 0.4s ease;
}

.uiverse-btn:hover::after {
    transform: scale(1.05, 1.1);
    box-shadow: inset 0 -1px 3px 0 rgba(255, 255, 255, 1);
}

.uiverse-btn::before {
    content: "";
    inset: 7px 6px 6px 6px;
    position: absolute;
    background: linear-gradient(to top, var(--neutral-1), var(--neutral-2));
    border-radius: 30px;
    filter: blur(0.5px);
    z-index: 2;
}

.state p {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    color: #111;
    /* Ensure text is dark on light button */
}

.state .icon {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    margin: auto;
    transform: scale(1.25);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.state .icon svg {
    overflow: visible;
}

/* Outline */
.outline {
    position: absolute;
    border-radius: inherit;
    overflow: hidden;
    z-index: 1;
    opacity: 0;
    transition: opacity 0.4s ease;
    inset: -2px -3.5px;
}

.outline::before {
    content: "";
    position: absolute;
    inset: -100%;
    background: conic-gradient(from 180deg,
            transparent 60%,
            white 80%,
            transparent 100%);
    animation: spin 2s linear infinite;
    animation-play-state: paused;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.uiverse-btn:hover .outline {
    opacity: 1;
}

.uiverse-btn:hover .outline::before {
    animation-play-state: running;
}

/* Letters */
.state p span {
    display: block;
    opacity: 1;
    /* Changed from 0 to 1 for visibility */
    color: #111;
    transform: translateY(0);
    /* Ensure natural position */
}

/* Dark Variant for Light Backgrounds */
.uiverse-btn.dark {
    --neutral-1: #1a1d24;
    --neutral-2: #2b2f38;
    --text-color: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.uiverse-btn.dark:after {
    background: linear-gradient(var(--neutral-1), var(--neutral-2)) padding-box,
        linear-gradient(to bottom, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05)) border-box;
}

.uiverse-btn.dark:before {
    background: linear-gradient(to top, var(--neutral-1), var(--neutral-2));
}

.uiverse-btn.dark .state p span {
    color: #ffffff;
}

.uiverse-btn.dark .outline::before {
    background: conic-gradient(from 180deg,
            transparent 60%,
            var(--color-primary) 80%,
            transparent 100%);
}

.uiverse-btn:hover p span {
    animation: wave 0.5s ease forwards calc(var(--i) * 0.02s);
}

.uiverse-btn:focus p span {
    animation: disapear 0.6s ease forwards calc(var(--i) * 0.03s);
}

@keyframes wave {
    30% {
        opacity: 1;
        transform: translateY(4px) translateX(0) rotate(0);
    }

    50% {
        opacity: 1;
        transform: translateY(-3px) translateX(0) rotate(0);
        color: var(--primary);
    }

    100% {
        opacity: 1;
        transform: translateY(0) translateX(0) rotate(0);
    }
}

@keyframes slideDown {
    0% {
        opacity: 0;
        transform: translateY(-20px) translateX(5px) rotate(-90deg);
        color: var(--primary);
        filter: blur(5px);
    }

    30% {
        opacity: 1;
        transform: translateY(4px) translateX(0) rotate(0);
        filter: blur(0);
    }

    50% {
        opacity: 1;
        transform: translateY(-3px) translateX(0) rotate(0);
    }

    100% {
        opacity: 1;
        transform: translateY(0) translateX(0) rotate(0);
    }
}

@keyframes disapear {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
        transform: translateX(5px) translateY(20px);
        color: var(--primary);
        filter: blur(5px);
    }
}

/* Plane / Icons */
.state--default .icon svg {
    animation: land 0.6s ease forwards;
}

.uiverse-btn:hover .state--default .icon {
    transform: rotate(45deg) scale(1.25);
}

.uiverse-btn:focus .state--default svg {
    animation: takeOff 0.8s linear forwards;
}

.uiverse-btn:focus .state--default .icon {
    transform: rotate(0) scale(1.25);
}

@keyframes takeOff {
    0% {
        opacity: 1;
    }

    60% {
        opacity: 1;
        transform: translateX(70px) rotate(45deg) scale(2);
    }

    100% {
        opacity: 0;
        transform: translateX(160px) rotate(45deg) scale(0);
    }
}

@keyframes land {
    0% {
        transform: translateX(-60px) translateY(30px) rotate(-50deg) scale(2);
        opacity: 0;
        filter: blur(3px);
    }

    100% {
        transform: translateX(0) translateY(0) rotate(0);
        opacity: 1;
        filter: blur(0);
    }
}

/* Contrail */
.state--default .icon:before {
    content: "";
    position: absolute;
    top: 50%;
    height: 2px;
    width: 0;
    left: -5px;
    background: linear-gradient(to right, transparent, rgba(0, 0, 0, 0.5));
}

.uiverse-btn:focus .state--default .icon:before {
    animation: contrail 0.8s linear forwards;
}

@keyframes contrail {
    0% {
        width: 0;
        opacity: 1;
    }

    8% {
        width: 15px;
    }

    60% {
        opacity: 0.7;
        width: 80px;
    }

    100% {
        opacity: 0;
        width: 160px;
    }
}

/* States */
.state {
    padding-left: 29px;
    z-index: 2;
    display: flex;
    position: relative;
}

.state--default span:nth-child(4) {
    margin-right: 5px;
    /* Spacing key adjustment if needed */
}

.state--sent {
    display: none;
}

.state--sent svg {
    transform: scale(1.25);
    margin-right: 8px;
}

.uiverse-btn:focus .state--default {
    position: absolute;
}

.uiverse-btn:focus .state--sent {
    display: flex;
}

.uiverse-btn:focus .state--sent span {
    opacity: 0;
    animation: slideDown 0.8s ease forwards calc(var(--i) * 0.2s);
}

.uiverse-btn:focus .state--sent .icon svg {
    opacity: 0;
    animation: appear 1.2s ease forwards 0.8s;
}

@keyframes appear {
    0% {
        opacity: 0;
        transform: scale(4) rotate(-40deg);
        color: var(--primary);
        filter: blur(4px);
    }

    30% {
        opacity: 1;
        transform: scale(0.6);
        filter: blur(1px);
    }

    50% {
        opacity: 1;
        transform: scale(1.2);
        filter: blur(0);
    }

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

.project-btn {
    background: #1a2b47;
    /* Dark button bg */
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.875rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.project-btn:hover {
    background: #2b3d5d;
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
}

/* =========================================
   Phase 2: Visual Aesthetics (Noise & Light)
   ========================================= */

/* Noise Overlay */
.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    mix-blend-mode: overlay;
}

/* =========================================
   Dynamic Gradient Canvas (replaces static blobs)
   ========================================= */
#gradient-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}



/* =========================================
   Phase 3: Typography & Motion
   ========================================= */

/* Reveal Animation Class */
.reveal-text {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-text.is-visible {
    opacity: 1;
    transform: translateY(0);
}