/* =========================================================
   CASCADE CREATIONS — Clean Tech Design Tokens
   Light, crisp, minimal with refined typography
   ========================================================= */
:root {
    /* Core - Light & Crisp */
    --ink: #0f1419;
    --ink-soft: #1e293b;
    --ink-muted: #64748b;
    --line: #e9edf2;
    --line-soft: #f1f4f8;
    --surface: #ffffff;
    --canvas: #f8fafc;
    --canvas-deep: #f1f4f8;

    /* Primary - Clean Blue */
    --primary: #0066cc;
    --primary-dark: #004d99;
    --primary-deep: #003366;
    --primary-tint: #e8f0fe;
    --primary-glow: rgba(0, 102, 204, 0.10);

    /* Secondary - Teal accent */
    --secondary: #009688;
    --secondary-dark: #00796b;
    --secondary-tint: #e0f2f1;

    /* Accent colors */
    --acc-green: #0d7c3f;
    --acc-green-dark: #0a5e2f;
    --acc-green-tint: #e6f4ea;
    --acc-yellow: #d4a000;
    --acc-yellow-dark: #b08800;
    --acc-yellow-tint: #fef8e7;
    --acc-red: #c62828;
    --acc-red-dark: #9a1f1f;
    --acc-red-tint: #fce8e8;
    --acc-purple: #5e3c9e;
    --acc-purple-dark: #452b7a;
    --acc-purple-tint: #f0ebf7;

    /* Dark sections */
    --night: #0f1419;
    --night-soft: #1a2027;
    --night-card: #262d35;
    --night-line: rgba(255, 255, 255, 0.06);
    --on-night: #ffffff;
    --on-night-soft: #dde1e6;
    --on-night-muted: #94a3b8;

    /* Typography - Inter for crispness */
    --font: 'Inter', -apple-system, 'Segoe UI', sans-serif;
    --font-mono: 'JetBrains Mono', 'SFMono-Regular', Consolas, monospace;
    --font-display: 'Inter', -apple-system, 'Segoe UI', sans-serif;

    /* Radius - Clean, minimal */
    --r-sm: 6px;
    --r-md: 10px;
    --r-lg: 14px;
    --r-xl: 20px;

    /* Motion */
    --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --fast: 0.15s ease;
    --med: 0.3s var(--ease);
    --bounce: cubic-bezier(0.34, 1.56, 0.64, 1);

    /* Layout */
    --container: 1440px;
    --gutter: 24px;
}

/* =========================================================
   GLOBAL RESET & BASE
   ========================================================= */
* {
    box-sizing: border-box;
}

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

body {
    margin: 0;
    font-family: var(--font);
    background: var(--surface);
    color: var(--ink);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    display: block;
}
a {
    color: inherit;
    text-decoration: none;
}

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 var(--gutter);
    width: 100%;
}

/* =========================================================
   LOADING SCREEN
   ========================================================= */
.loading-screen {
    position: fixed;
    inset: 0;
    background: var(--surface);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}
.loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
}
.loader-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}
.loader-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.loader-name {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--primary);
}
.loader-tagline {
    font-size: 0.7rem;
    letter-spacing: 0.12em;
    color: var(--ink-muted);
    text-transform: uppercase;
    margin-top: 4px;
}
.loader-bar-wrap {
    width: 200px;
    height: 3px;
    background: var(--line);
    border-radius: 2px;
    overflow: hidden;
}
.loader-bar {
    height: 100%;
    background: var(--primary);
    width: 0%;
    transition: width 0.1s linear;
}
.loader-pct {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--primary);
    font-variant-numeric: tabular-nums;
}

/* Skip link */
.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    background: var(--primary);
    color: #fff;
    padding: 10px 18px;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 0 0 var(--r-sm) 0;
    z-index: 10000;
}
.skip-link:focus {
    left: 0;
}

/* =========================================================
   FLOATING CTA
   ========================================================= */
.floating-cta {
    position: fixed;
    bottom: 32px;
    right: 32px;
    z-index: 999;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 24px;
    background: var(--primary);
    color: #fff;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.85rem;
    box-shadow: 0 8px 32px rgba(0, 102, 204, 0.35);
    transition: all var(--med);
    text-decoration: none;
}
.floating-cta:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 40px rgba(0, 102, 204, 0.45);
    color: #fff;
}
.floating-cta i {
    font-size: 1rem;
}
.floating-cta span {
    display: inline;
}
@media (max-width: 640px) {
    .floating-cta {
        bottom: 20px;
        right: 20px;
        padding: 12px 18px;
        font-size: 0.8rem;
    }
    .floating-cta span {
        display: none;
    }
    .floating-cta i {
        font-size: 1.2rem;
    }
}

/* =========================================================
   NAVIGATION - Clean, crisp
   ========================================================= */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 1000;
    transition: all var(--fast);
    border-bottom: 1px solid transparent;
    padding: 0;
    height: 60px;
}
.navbar.scrolled {
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid var(--line);
}
.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
}
.navbar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}
.navbar-logo {
    height: 30px;
    width: 30px;
    border-radius: 6px;
    object-fit: cover;
}
.navlogoname {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--ink);
    letter-spacing: -0.01em;
}
.navbar-nav-list {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.nav-link {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--ink-soft) !important;
    padding: 8px 14px !important;
    border-radius: var(--r-sm);
    transition: all var(--fast);
    text-decoration: none;
    display: block;
}
.nav-link:hover {
    color: var(--ink) !important;
    background: var(--canvas);
}
.nav-link.active {
    color: var(--primary) !important;
    background: var(--primary-tint);
}
.nav-cta {
    background: var(--primary);
    color: #fff !important;
    padding: 8px 18px !important;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
}
.nav-cta:hover,
.nav-cta.active {
    background: var(--primary-dark) !important;
    color: #fff !important;
}

.navbar-toggler {
    display: none;
    border: none;
    background: transparent;
    padding: 8px;
    cursor: pointer;
}
.navbar-toggler-bar {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--ink);
    margin: 4px 0;
    transition: all var(--fast);
    border-radius: 1px;
}

@media (max-width: 991px) {
    .navbar-toggler {
        display: block;
    }
    .navbar-nav-list {
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        background: var(--surface);
        border-bottom: 1px solid var(--line);
        padding: 8px 16px;
        transform: translateY(-110%);
        opacity: 0;
        transition: all var(--med);
        pointer-events: none;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
    }
    .navbar-nav-list.open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }
    .nav-link {
        padding: 12px 16px !important;
        font-size: 0.85rem;
    }
    .nav-cta {
        text-align: center;
        margin-top: 8px;
    }
}

/* =========================================================
   SECTION HEADER
   ========================================================= */
.section-header {
    margin-bottom: 40px;
}
.section-eyebrow {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 8px;
}
.section-title {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 3.2vw, 2.6rem);
    font-weight: 650;
    letter-spacing: -0.02em;
    color: var(--ink);
    margin: 0 0 10px;
    max-width: 720px;
    line-height: 1.15;
}
.section-description {
    font-size: 1rem;
    color: var(--ink-soft);
    max-width: 620px;
    margin: 0;
    line-height: 1.6;
}
.section-header--center {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}
.section-header--center .section-title,
.section-header--center .section-description {
    margin-left: auto;
    margin-right: auto;
}
.section-header--split {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 24px;
    flex-wrap: wrap;
}
.section-link {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.section-link:hover {
    text-decoration: underline;
}

section {
    padding: 72px 0;
}
@media (max-width: 1024px) {
    section {
        padding: 48px 0;
    }
}

/* =========================================================
   HERO CAROUSEL
   ========================================================= */
.hero-carousel {
    position: relative;
    margin-top: 60px;
    padding: 0;
    overflow: hidden;
    background: var(--canvas);
}

.hero-track {
    position: relative;
    height: 680px;
    padding-bottom: 56px;
    overflow: hidden;
}

.hero-slide {
    position: absolute;
    inset: 0 0 56px 0;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 20px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: transform 0.7s cubic-bezier(0.65, 0, 0.35, 1),
        opacity 0.7s cubic-bezier(0.65, 0, 0.35, 1),
        visibility 0s 0.7s;
    transform: translateX(100%) scale(0.95);
    will-change: transform, opacity;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Full-bleed background image via ::before */
.hero-slide::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: transform 0.8s cubic-bezier(0.65, 0, 0.35, 1);
    transform: scale(1.05);
}

/* Dark gradient overlay - refined for readability */
.hero-slide::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(135deg,
            rgba(0, 0, 0, 0.55) 0%,
            rgba(0, 0, 0, 0.30) 40%,
            rgba(0, 0, 0, 0.25) 60%,
            rgba(0, 0, 0, 0.45) 100%);
}

.hero-slide.is-active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(0) scale(1);
    transition: transform 0.7s cubic-bezier(0.65, 0, 0.35, 1),
        opacity 0.7s cubic-bezier(0.65, 0, 0.35, 1),
        visibility 0s 0s;
}

.hero-slide.is-active::before {
    transform: scale(1);
}

.hero-slide.is-exiting {
    transform: translateX(-100%) scale(0.95);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.7s cubic-bezier(0.65, 0, 0.35, 1),
        opacity 0.7s cubic-bezier(0.65, 0, 0.35, 1);
}

.hero-slide.is-entering {
    transform: translateX(0) scale(1);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition: transform 0.7s cubic-bezier(0.65, 0, 0.35, 1),
        opacity 0.7s cubic-bezier(0.65, 0, 0.35, 1),
        visibility 0s 0s;
}

.hero-slide[data-slide="0"]::before {
    background-image: url('imgs/heroslide1.avif');
}
.hero-slide[data-slide="1"]::before {
    background-image: url('imgs/heroslide3.jpg');
}
.hero-slide[data-slide="2"]::before {
    background-image: url('imgs/heroslide2.jpg');
}

.hero-slide-copy {
    position: relative;
    z-index: 2;
    padding: 0 64px;
    max-width: 620px;
    color: #ffffff;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
    transition: transform 0.8s cubic-bezier(0.65, 0, 0.35, 1),
        opacity 0.6s cubic-bezier(0.65, 0, 0.35, 1);
    transform: translateY(24px);
    opacity: 0;
}

.hero-slide.is-active .hero-slide-copy {
    transform: translateY(0);
    opacity: 1;
    transition: transform 0.8s cubic-bezier(0.65, 0, 0.35, 1) 0.15s,
        opacity 0.6s cubic-bezier(0.65, 0, 0.35, 1) 0.15s;
}

.hero-slide.is-exiting .hero-slide-copy {
    transform: translateY(-20px);
    opacity: 0;
    transition: transform 0.6s cubic-bezier(0.65, 0, 0.35, 1),
        opacity 0.5s cubic-bezier(0.65, 0, 0.35, 1);
}

.hero-slide-brand {
    position: relative;
    z-index: 2;
    flex-shrink: 0;
    margin-right: 64px;
    margin-left: auto;
    opacity: 0;
    transform: translateX(30px) scale(0.9);
    transition: opacity 0.8s cubic-bezier(0.65, 0, 0.35, 1) 0.25s,
        transform 0.8s cubic-bezier(0.65, 0, 0.35, 1) 0.25s;
}

.hero-slide.is-active .hero-slide-brand {
    opacity: 0.5;
    transform: translateX(0) scale(1);
}

.hero-slide-brand:hover {
    opacity: 0.8;
}

.hero-slide-brand img {
    width: 500px;
    height: 500px;
    object-fit: contain;
    filter: drop-shadow(0 4px 20px rgba(0, 0, 0, 0.15));
    padding: 0;
    margin-right: 160px;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 14px;
}

.hero-eyebrow .dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #ffffff;
}

.hero-slide-title {
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 4.4vw, 3.5rem);
    font-weight: 650;
    line-height: 1.08;
    letter-spacing: -0.02em;
    color: #ffffff;
    margin: 0 0 14px;
}

.hero-slide-desc {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.85);
    margin: 0 0 28px;
    max-width: 460px;
    line-height: 1.6;
}

.hero-slide-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 11px 24px;
    border-radius: var(--r-sm);
    text-decoration: none;
    transition: all var(--fast);
    border: 1px solid transparent;
    cursor: pointer;
}
.btn-primary {
    background: var(--primary);
    color: #fff;
}
.btn-primary:hover {
    background: var(--primary-dark);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 102, 204, 0.30);
}
.btn-outline {
    background: transparent;
    border-color: var(--ink);
    color: var(--ink);
}
.btn-outline:hover {
    background: var(--ink);
    color: #fff;
}
.btn-outline-light {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.35);
    color: #ffffff;
}
.btn-outline-light:hover {
    background: #ffffff;
    color: var(--ink);
    border-color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255, 255, 255, 0.15);
}

.hero-controls {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    z-index: 3;
    background: var(--primary);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.hero-arrow {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: transparent;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #ffffff;
    transition: all var(--fast);
    font-size: 0.8rem;
}
.hero-arrow:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.5);
}
.hero-dots {
    display: flex;
    align-items: center;
    gap: 10px;
}
.hero-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    background:  rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all var(--fast);
    padding: 0;
    position: relative;
}
.hero-dot.is-active {
    background: #ffffff;
    width: 28px;
    border-radius: 5px;
}
.hero-dot:hover {
    background: rgba(255, 255, 255, 0.5);
}
.hero-dot.is-active:hover {
    background: #ffffff;
}

@media (max-width: 1024px) {
    .hero-track {
        height: 560px;
    }
    .hero-slide-brand {
        margin-right: 32px;
    }
    .hero-slide-brand img {
        width: 400px;
        height: 400px;
        padding: 10px;
    }
}

@media (max-width: 1024px) {
    .hero-track {
        height: 560px;
    }
    .hero-slide {
        justify-content: center;
        text-align: center;
    }
    .hero-slide-copy {
        padding: 0 24px;
        max-width: 100%;
        text-align: center;
        transform: translateY(30px);
    }
    .hero-slide-desc {
        margin-left: auto;
        margin-right: auto;
        max-width: 100%;
    }
    .hero-slide-actions {
        justify-content: center;
    }
    .hero-slide-brand {
        display: none;
    }
    .hero-slide-title {
        font-size: clamp(1.8rem, 4.6vw, 2.6rem);
    }
    .hero-dot {
        width: 8px;
        height: 8px;
    }
    .hero-dot.is-active {
        width: 22px;
    }
}


@media (max-width: 480px) {
    .hero-track {
        height: 500px;
    }
    .hero-slide-copy {
        padding: 0 20px;
    }
    .hero-slide-actions {
        flex-direction: column;
        align-items: stretch;
    }
    .hero-slide-actions .btn {
        justify-content: center;
        padding: 12px 20px;
    }
    .hero-slide-title {
        font-size: clamp(1.5rem, 6vw, 2rem);
    }
    .hero-slide-desc {
        font-size: 0.9rem;
    }
    .hero-controls {
        gap: 12px;
    }
    .hero-arrow {
        width: 30px;
        height: 30px;
        font-size: 0.7rem;
    }
}

/* =========================================================
   QUICK LINKS ROW
   ========================================================= */
.quicklinks {
    background: var(--surface);
    border-bottom: 1px solid var(--line-soft);
    padding: 32px 0;
}
.quicklinks-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}
.quicklink {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--ink);
    padding: 16px 8px;
    border-radius: var(--r-md);
    transition: all var(--fast);
}
.quicklink:hover {
    background: var(--canvas);
    transform: translateY(-2px);
}
.quicklink-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--primary-tint);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: var(--primary);
}
.quicklink span {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--ink-soft);
}
.quicklink:hover span {
    color: var(--primary);
}

@media screen and (max-width: 1024px) {
    .quicklinks{
        display: none;
        
    }
}

/* =========================================================
   SOLUTIONS CAROUSEL
   ========================================================= */
.solutions-section {
    background: var(--canvas);
}
.solutions-track {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 8px;
    scrollbar-width: thin;
    scrollbar-color: var(--primary) var(--canvas);
}
.solutions-track::-webkit-scrollbar {
    height: 6px;
}
.solutions-track::-webkit-scrollbar-track {
    background: var(--canvas);
    border-radius: 4px;
}
.solutions-track::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 4px;
}

.solution-card {
    scroll-snap-align: start;
    flex: 0 0 320px;
    background: var(--surface);
    border-radius: var(--r-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all var(--med);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    border: 1px solid var(--line-soft);
}
.solution-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.06);
    border-color: var(--primary);
}
.solution-visual {
    height: 200px;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}
.solution-visual img {
    flex: 1 1 auto;
    min-height: 0;
}
.browser-chrome {
    flex-shrink: 0;
    height: 24px;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0 10px;
    background: rgba(0, 0, 0, 0.03);
}
.browser-chrome span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    flex-shrink: 0;
}
.browser-chrome span:nth-child(1) {
    background: #ff5f57;
}
.browser-chrome span:nth-child(2) {
    background: #febc2e;
}
.browser-chrome span:nth-child(3) {
    background: #28c840;
}
.solution-body {
    padding: 22px 24px 26px;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.solution-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-mono);
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 10px;
}
.solution-tag .sw {
    width: 8px;
    height: 8px;
    border-radius: 2px;
    display: inline-block;
}
.tag-blue {
    color: var(--primary-dark);
}
.tag-blue .sw {
    background: var(--primary);
}
.tag-green {
    color: var(--acc-green);
}
.tag-green .sw {
    background: var(--acc-green);
}
.tag-purple {
    color: var(--acc-purple);
}
.tag-purple .sw {
    background: var(--acc-purple);
}
.tag-red {
    color: var(--acc-red);
}
.tag-red .sw {
    background: var(--acc-red);
}

.solution-card h3 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 8px;
    color: var(--ink);
}
.solution-card p {
    font-size: 0.88rem;
    color: var(--ink-soft);
    margin: 0 0 18px;
    flex: 1;
    line-height: 1.5;
}
.solution-link {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.solution-link:hover {
    text-decoration: underline;
}

.sv-1 {
    background: linear-gradient(135deg, #e8f0fe, #d4e4f5);
}
.sv-2 {
    background: linear-gradient(135deg, #e0f2f1, #c8e8e6);
}
.sv-3 {
    background: linear-gradient(135deg, #f0ebf7, #e5d8f0);
}
.sv-4 {
    background: linear-gradient(135deg, #fce8e8, #f8d4d5);
}
.sv-5 {
    background: linear-gradient(135deg, #fef8e7, #fef0cc);
}
.sv-6 {
    background: linear-gradient(135deg, #e8f0fe, #d4e4f5);
}

@media (max-width: 640px) {
    .solution-card {
        flex: 0 0 78vw;
    }
}

/* =========================================================
   CAPABILITY MOSAIC
   ========================================================= */
.mosaic-section {
    background: var(--canvas);
}
.mosaic-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: 220px 220px;
    gap: 16px;
}
.mosaic-tile {
    border-radius: var(--r-lg);
    padding: 28px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    position: relative;
    overflow: hidden;
    color: var(--ink);
    transition: all var(--med);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.mosaic-tile::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: transform 0.5s var(--ease);
}

.mosaic-tile:hover::before {
    transform: scale(1.05);
}

.mosaic-tile::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(180deg,
            rgba(0, 0, 0, 0.05) 0%,
            rgba(0, 0, 0, 0.25) 40%,
            rgba(0, 0, 0, 0.55) 80%,
            rgba(0, 0, 0, 0.65) 100%);
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.mosaic-tile:hover::after {
    opacity: 0.5;
}

.mosaic-tile h3,
.mosaic-tile p {
    position: relative;
    z-index: 2;
}

.mosaic-tile h3 {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 650;
    margin: 0 0 6px;
    color: #ffffff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}
.mosaic-tile p {
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
    max-width: 280px;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
}

.mosaic-tile--1::before {
    background-image: url('imgs/fullstack.jpg');
}
.mosaic-tile--2::before {
    background-image: url('imgs/cybersecurity.jpg');
}
.mosaic-tile--3::before {
    background-image: url('imgs/performance.jpg');
}
.mosaic-tile--4::before {
    background-image: url('imgs/slide1.jpg');
}

.mosaic-tile--1 {
    background: linear-gradient(160deg, #1a1a3e, #2d1b69);
}
.mosaic-tile--2 {
    background: linear-gradient(160deg, #1a2a3e, #1b4a69);
}
.mosaic-tile--3 {
    background: linear-gradient(160deg, #1a3e2a, #1b694a);
}
.mosaic-tile--4 {
    background: linear-gradient(160deg, #2a1a3e, #4a1b69);
}

.mosaic-tile--1 {
    grid-column: 1 / 3;
    grid-row: 1 / 3;
}
.mosaic-tile--2 {
    grid-column: 3 / 5;
    grid-row: 1 / 2;
}
.mosaic-tile--3 {
    grid-column: 3 / 4;
    grid-row: 2 / 3;
}
.mosaic-tile--4 {
    grid-column: 4 / 5;
    grid-row: 2 / 3;
}

.mosaic-tile:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.15);
}

.mosaic-band {
    margin-top: 16px;
    border-radius: var(--r-lg);
    padding: 32px 36px;
    display: flex;
    align-items: center;
    gap: 24px;
    position: relative;
    overflow: hidden;
    background: #1a1a3e;
}

.mosaic-band::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    background-image: url('imgs/colab.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.25;
    transition: opacity 0.3s ease;
}

.mosaic-band:hover::before {
    opacity: 0.35;
}

.mosaic-band::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(90deg,
            rgba(26, 26, 62, 0.80) 0%,
            rgba(26, 26, 62, 0.40) 50%,
            rgba(26, 26, 62, 0.80) 100%);
}

.mosaic-band-copy {
    position: relative;
    z-index: 2;
}

.mosaic-band-copy h3 {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 650;
    margin: 0 0 4px;
    color: #ffffff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}
.mosaic-band-copy p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
    max-width: 560px;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
}

@media (max-width: 1024px) {
    .mosaic-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: 220px 180px 180px;
    }
    .mosaic-tile--1 {
        grid-column: 1 / 3;
        grid-row: 1 / 2;
    }
    .mosaic-tile--2 {
        grid-column: 1 / 3;
        grid-row: 2 / 3;
    }
    .mosaic-tile--3 {
        grid-column: 1 / 2;
        grid-row: 3 / 4;
    }
    .mosaic-tile--4 {
        grid-column: 2 / 3;
        grid-row: 3 / 4;
    }
    .mosaic-band {
        flex-direction: column;
        text-align: center;
    }
}
@media (max-width: 640px) {
    .mosaic-grid {
        grid-template-columns: 1fr;
        grid-template-rows: none;
    }
    .mosaic-tile--1,
    .mosaic-tile--2,
    .mosaic-tile--3,
    .mosaic-tile--4 {
        grid-column: 1;
        grid-row: auto;
        height: 200px;
    }
    .mosaic-tile h3 {
        font-size: 1.1rem;
    }
    .mosaic-tile p {
        font-size: 0.8rem;
        max-width: 100%;
    }
}

/* =========================================================
   STACK STRIP
   ========================================================= */
.stack-section {
    background: var(--surface);
}
.stack-strip {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 8px;
    scrollbar-width: thin;
}
.stack-strip::-webkit-scrollbar {
    height: 6px;
}
.stack-strip::-webkit-scrollbar-track {
    background: var(--canvas);
    border-radius: 4px;
}
.stack-strip::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 4px;
}

.stack-badge {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px;
    border: 1px solid var(--line);
    border-radius: 999px;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--ink);
    background: var(--surface);
    transition: all var(--fast);
}
.stack-badge:hover {
    border-color: var(--primary);
    background: var(--primary-tint);
}
.stack-badge i {
    font-size: 1.1rem;
}
.stack-badge .fa-html5 {
    color: #e34f26;
}
.stack-badge .fa-css3-alt {
    color: #1572b6;
}
.stack-badge .fa-js {
    color: #f7df1e;
}
.stack-badge .fa-react {
    color: #61dafb;
}
.stack-badge .fa-database {
    color: var(--primary);
}
.stack-badge .fa-java {
    color: #f89820;
}
.stack-badge .fa-php {
    color: #777bb4;
}
.stack-badge .fa-python {
    color: #3776ab;
}
.stack-badge .fa-code {
    color: var(--primary-dark);
}

.stats-strip {
    margin-top: 28px;
    padding-top: 28px;
    border-top: 1px solid var(--line-soft);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}
.stat-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.stat-value {
    font-family: var(--font-mono);
    font-size: clamp(1.6rem, 2.6vw, 2.1rem);
    font-weight: 600;
    color: var(--primary);
    letter-spacing: -0.01em;
}
.stat-label {
    font-size: 0.78rem;
    color: var(--ink-muted);
}
@media (max-width: 1024px) {
    .stats-strip {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* =========================================================
   LIVE FROM GITHUB
   ========================================================= */
.github-section {
    background: var(--canvas);
}

.github-summary {
    display: flex;
    gap: 32px;
    flex-wrap: wrap;
    margin-bottom: 28px;
    padding-bottom: 28px;
    border-bottom: 1px solid var(--line);
}
.gh-summary-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.gh-summary-value {
    font-family: var(--font-mono);
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--primary);
}
.gh-summary-label {
    font-size: 0.78rem;
    color: var(--ink-muted);
}

.github-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
.github-card {
    background: var(--surface);
    border: 1px solid var(--line-soft);
    border-radius: var(--r-lg);
    padding: 20px 22px;
    transition: all var(--fast);
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.github-card:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}
.github-card-name {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--ink);
    display: flex;
    align-items: center;
    gap: 8px;
}
.github-card-name i {
    color: var(--primary);
    font-size: 0.85rem;
}
.github-card-desc {
    font-size: 0.85rem;
    color: var(--ink-soft);
    margin: 0;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.5;
}
.github-card-meta {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 0.76rem;
    color: var(--ink-muted);
}
.github-card-meta span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.gh-lang-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--ink-muted);
}

.github-card--skeleton {
    min-height: 130px;
    background: linear-gradient(100deg, var(--canvas) 30%, var(--canvas-deep) 50%, var(--canvas) 70%);
    background-size: 200% 100%;
    animation: gh-shimmer 1.4s infinite;
    border: 1px solid var(--line-soft);
}
@keyframes gh-shimmer {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}
.github-fallback {
    text-align: center;
    font-size: 0.88rem;
    color: var(--ink-muted);
    margin: 8px 0 0;
}
.github-fallback a {
    color: var(--primary);
    text-decoration: none;
}
.github-fallback a:hover {
    text-decoration: underline;
}

@media (max-width: 1024px) {
    .github-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 640px) {
    .github-grid {
        grid-template-columns: 1fr;
    }
    .github-summary {
        gap: 20px;
    }
}

/* =========================================================
   PROCESS
   ========================================================= */
.process-section {
    background: var(--canvas);
}
.process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}
.process-card {
    background: var(--surface);
    border-radius: var(--r-lg);
    padding: 24px 28px;
    border: 1px solid var(--line-soft);
    transition: all var(--med);
}
.process-card:hover {
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}
.process-step-num {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--primary);
    letter-spacing: 0.1em;
    margin-bottom: 12px;
}
.process-card h3 {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 600;
    margin: 0 0 8px;
    color: var(--ink);
}
.process-card p {
    font-size: 0.85rem;
    color: var(--ink-soft);
    margin: 0;
    line-height: 1.5;
}
@media (max-width: 1024px) {
    .process-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 640px) {
    .process-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================================================
   FEATURE ROWS
   ========================================================= */
.features-section {
    background: var(--surface);
}
.feature-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
    padding: 56px 0;
    border-bottom: 1px solid var(--line-soft);
}
.feature-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}
.feature-row:first-child {
    padding-top: 0;
}
.feature-row.reverse .feature-visual {
    order: 2;
}
.feature-row.reverse .feature-copy {
    order: 1;
}

.feature-visual {
    border-radius: var(--r-lg);
    height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}
.fv-1 {
    background: linear-gradient(135deg, #e8f0fe, #d4e4f5);
}
.fv-2 {
    background: linear-gradient(135deg, #f0ebf7, #e5d8f0);
}
.fv-3 {
    background: linear-gradient(135deg, #e0f2f1, #c8e8e6);
}

.feature-eyebrow {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 10px;
}
.feature-copy h3 {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 2.6vw, 2.1rem);
    font-weight: 650;
    letter-spacing: -0.02em;
    margin: 0 0 12px;
    color: var(--ink);
    line-height: 1.2;
}
.feature-copy p {
    font-size: 0.98rem;
    color: var(--ink-soft);
    margin: 0 0 20px;
    max-width: 480px;
    line-height: 1.6;
}
.feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.feature-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.88rem;
    color: var(--ink-soft);
}
.feature-list li i {
    color: var(--primary);
    font-size: 0.8rem;
}

@media (max-width: 1024px) {
    .feature-row {
        grid-template-columns: 1fr;
        gap: 28px;
        padding: 36px 0;
    }
    .feature-row.reverse .feature-visual,
    .feature-row.reverse .feature-copy {
        order: initial;
    }
    .feature-visual {
        height: 220px;
    }
}

/* =========================================================
   WORK / PORTFOLIO
   ========================================================= */
.work-section {
    background: var(--night);
    position: relative;
    overflow: hidden;
}
.work-section .section-eyebrow {
    color: #94a3b8;
}
.work-section .section-title {
    color: var(--on-night);
}
.work-section .section-description {
    color: var(--on-night-soft);
}
.work-section .container {
    position: relative;
    z-index: 2;
}

.work-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.2;
    transition: opacity 0.25s ease;
    z-index: 0;
}
.work-bg.is-fading {
    opacity: 0;
}
.work-bg-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 20, 25, 0.80) 0%, rgba(15, 20, 25, 0.70) 60%, rgba(15, 20, 25, 0.75) 100%);
    z-index: 1;
}

.work-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}
.work-filter {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--on-night-soft);
    background: transparent;
    border: 1px solid var(--night-line);
    border-radius: 999px;
    padding: 8px 16px;
    cursor: pointer;
    transition: all var(--fast);
}
.work-filter:hover {
    border-color: var(--primary);
    color: var(--on-night);
}
.work-filter.is-active {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}
.work-banner[hidden] {
    display: none;
}
.work-empty {
    text-align: center;
    color: var(--on-night-muted);
    font-size: 0.9rem;
    padding: 24px 0;
}

.work-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.work-banner {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 24px;
    background: var(--night-card);
    border: 1px solid var(--night-line);
    border-radius: var(--r-lg);
    padding: 28px 32px;
    cursor: pointer;
    transition: all var(--med);
}
.work-banner:hover,
.work-banner.is-active {
    border-color: var(--primary);
    background: rgba(0, 102, 204, 0.04);
}
.work-banner-main {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.work-banner-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-mono);
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #94a3b8;
}
.work-banner-tag .sw {
    width: 8px;
    height: 8px;
    border-radius: 2px;
    background: var(--primary);
    display: inline-block;
}
.work-banner-tag--amber {
    color: #ffb900;
}
.work-banner-tag--amber .sw {
    background: #ffb900;
}
.work-banner-tag--green {
    color: #4caf50;
}
.work-banner-tag--green .sw {
    background: #4caf50;
}
.work-banner h3 {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0;
    color: var(--on-night);
}
.work-banner-detail {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.45s ease, margin-top 0.3s ease;
}
.work-banner.is-active .work-banner-detail {
    max-height: 360px;
    margin-top: 14px;
}
.work-banner-detail p {
    font-size: 0.88rem;
    color: var(--on-night-soft);
    margin: 0 0 12px;
    max-width: 600px;
    line-height: 1.5;
}
.work-banner-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}
.work-ptag {
    font-size: 0.7rem;
    padding: 4px 10px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 999px;
    color: var(--on-night-muted);
}
.work-banner-highlights {
    list-style: none;
    margin: 0 0 16px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 7px;
}
.work-banner-highlights li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    color: var(--on-night-soft);
}
.work-banner-highlights li i {
    color: var(--primary);
    font-size: 0.7rem;
    flex-shrink: 0;
}
.work-banner-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    font-weight: 600;
    color: #fff;
    background: var(--primary);
    padding: 9px 18px;
    border-radius: 999px;
    text-decoration: none;
    transition: all var(--fast);
}
.work-banner-link:hover {
    background: var(--primary-dark);
    color: #fff;
}
.work-banner-arrow {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--night-line);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--on-night);
    transition: all var(--med);
    flex-shrink: 0;
}
.work-banner.is-active .work-banner-arrow {
    transform: rotate(90deg);
    border-color: var(--primary);
    color: var(--primary);
}

@media (max-width: 640px) {
    .work-banner {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .work-banner-arrow {
        display: none;
    }
    .work-banner.is-active .work-banner-detail {
        max-height: 420px;
    }
}

/* =========================================================
   TESTIMONIALS
   ========================================================= */
.testimonials-section {
    background: var(--canvas);
}
.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.testimonial-card {
    background: var(--surface);
    border: 1px solid var(--line-soft);
    border-radius: var(--r-lg);
    padding: 28px 26px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.testimonial-mark {
    color: var(--primary);
    font-size: 1.3rem;
    opacity: 0.4;
}
.testimonial-quote {
    font-size: 0.92rem;
    color: var(--ink-soft);
    margin: 0;
    flex: 1;
    line-height: 1.6;
}
.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
}
.testimonial-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.testimonial-author strong {
    display: block;
    font-size: 0.88rem;
    color: var(--ink);
}
.testimonial-author span {
    font-size: 0.78rem;
    color: var(--ink-muted);
}

@media (max-width: 1024px) {
    .testimonial-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================================================
   CTA BAND
   ========================================================= */
.cta-band {
    background: var(--primary);
    padding: 56px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.cta-band .container {
    position: relative;
    z-index: 1;
}
.cta-band h2 {
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 650;
    margin: 0 0 10px;
    color: #fff;
}
.cta-band p {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.85);
    margin: 0 0 24px;
}
.cta-actions {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}
.cta-band .btn-primary {
    background: #fff;
    color: var(--primary);
}
.cta-band .btn-primary:hover {
    background: var(--primary-tint);
    color: var(--primary-dark);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}
.cta-band .btn-outline-light {
    border-color: rgba(255, 255, 255, 0.4);
}
.cta-band .btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    border-color: #fff;
}

/* =========================================================
   CONTACT
   ========================================================= */
.contact-section {
    background: var(--canvas);
}
.contact-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 48px;
}
.contact-form {
    background: var(--surface);
    border: 1px solid var(--line-soft);
    border-radius: var(--r-lg);
    padding: 32px;
}
.form-row {
    margin-bottom: 16px;
}
.form-row label {
    display: block;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--ink-soft);
    margin-bottom: 6px;
}
.form-row input,
.form-row textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: var(--r-sm);
    font-family: var(--font);
    font-size: 0.9rem;
    color: var(--ink);
    background: var(--surface);
    transition: all var(--fast);
}
.form-row input:focus,
.form-row textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-tint);
}
.form-row input::placeholder,
.form-row textarea::placeholder {
    color: #a19f9d;
}
.btn-submit {
    width: 100%;
    justify-content: center;
    background: var(--primary);
    color: #fff;
    padding: 13px 22px;
}
.btn-submit:hover {
    background: var(--primary-dark);
}

.contact-info-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.contact-info-card {
    display: flex;
    gap: 16px;
    padding: 18px 20px;
    background: var(--surface);
    border: 1px solid var(--line-soft);
    border-radius: var(--r-md);
    transition: all var(--fast);
}
.contact-info-card:hover {
    border-color: var(--primary);
}
.contact-info-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary-tint);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}
.contact-info-card h4 {
    font-size: 0.68rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ink-muted);
    margin: 0 0 4px;
}
.contact-info-card p {
    font-size: 0.92rem;
    margin: 0;
    color: var(--ink-soft);
}
.contact-info-card a {
    color: var(--primary);
    text-decoration: none;
}
.contact-info-card a:hover {
    text-decoration: underline;
}

@media (max-width: 1024px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }
}

/* =========================================================
   CONTACT TABS
   ========================================================= */
.contact-tabs {
    margin-top: 12px;
}

.contact-tab-headers {
    display: flex;
    gap: 8px;
    margin-bottom: 32px;
    border-bottom: 1px solid var(--line);
    padding-bottom: 4px;
    flex-wrap: wrap;
}

.contact-tab-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    font-family: var(--font);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--ink-muted);
    cursor: pointer;
    transition: all var(--fast);
    border-radius: var(--r-sm) var(--r-sm) 0 0;
}

.contact-tab-btn:hover {
    color: var(--ink);
    background: var(--canvas);
}

.contact-tab-btn.is-active {
    color: var(--primary);
    border-bottom-color: var(--primary);
    background: var(--primary-tint);
}

.contact-tab-btn i {
    font-size: 1rem;
}

.contact-tab-panel {
    display: none;
    animation: fadeSlideIn 0.4s var(--ease);
}

.contact-tab-panel.is-active {
    display: block;
}

@keyframes fadeSlideIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Project form enhancements */
.form-divider {
    border: none;
    border-top: 1px solid var(--line-soft);
    margin: 24px 0;
}

.form-row-half {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.required {
    color: var(--acc-red);
    font-weight: 600;
}

/* File upload */
.file-upload-wrap {
    position: relative;
}

.file-upload-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 32px 20px;
    border: 2px dashed var(--line);
    border-radius: var(--r-md);
    cursor: pointer;
    transition: all var(--fast);
    background: var(--canvas);
    text-align: center;
}

.file-upload-label:hover {
    border-color: var(--primary);
    background: var(--primary-tint);
}

.file-upload-label i {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 8px;
}

.file-upload-label span {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--ink-soft);
}

.file-upload-label small {
    font-size: 0.75rem;
    color: var(--ink-muted);
    margin-top: 4px;
}

.file-upload-wrap input[type="file"] {
    position: absolute;
    width: 0;
    height: 0;
    opacity: 0;
    pointer-events: none;
}

.file-upload-list {
    margin-top: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.file-upload-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px 6px 10px;
    background: var(--primary-tint);
    border-radius: var(--r-sm);
    font-size: 0.8rem;
    color: var(--ink-soft);
}

.file-upload-item i {
    color: var(--primary);
    font-size: 0.8rem;
}

.file-upload-item .file-remove {
    cursor: pointer;
    color: var(--acc-red);
    font-size: 0.75rem;
    padding: 0 4px;
}

.file-upload-item .file-remove:hover {
    color: var(--acc-red-dark);
}

/* Checkbox */
.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.85rem;
    color: var(--ink-soft);
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    margin-top: 1px;
    accent-color: var(--primary);
    cursor: pointer;
}

.checkbox-label input[type="checkbox"]:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

@media (max-width: 1024px) {
    .contact-tab-btn {
        padding: 10px 16px;
        font-size: 0.8rem;
        flex: 1;
        justify-content: center;
    }
    .contact-tab-btn i {
        font-size: 0.85rem;
    }
    .form-row-half {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

@media (max-width: 480px) {
    .contact-tab-headers {
        flex-direction: column;
        gap: 4px;
    }
    .contact-tab-btn {
        border-bottom: none;
        border-left: 3px solid transparent;
        border-radius: 0 var(--r-sm) var(--r-sm) 0;
        justify-content: flex-start;
    }
    .contact-tab-btn.is-active {
        border-bottom-color: transparent;
        border-left-color: var(--primary);
    }
}

/* =========================================================
   FOOTER
   ========================================================= */
.footer {
    background: var(--night);
    border-top: 1px solid var(--night-line);
    padding: 48px 0 24px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr 1.2fr;
    gap: 32px;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--night-line);
}
.footer-brand-block {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.footer-logo-row {
    display: flex;
    align-items: center;
    gap: 10px;
}
.footer-logo-row img {
    width: 28px;
    height: 28px;
    border-radius: 6px;
}
.footer-logo-row span {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--on-night);
}
.footer-brand-block p {
    font-size: 0.85rem;
    color: var(--on-night-muted);
    margin: 0;
    max-width: 240px;
    line-height: 1.5;
}
.footer h4 {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--on-night-soft);
    margin: 0 0 14px;
}
.footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.footer ul a {
    font-size: 0.85rem;
    color: var(--on-night-muted);
    text-decoration: none;
    transition: color var(--fast);
}
.footer ul a:hover {
    color: var(--primary);
}
.footer-contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}
.footer-contact-list li i {
    width: 16px;
    color: var(--primary);
    margin-top: 2px;
    font-size: 0.8rem;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 24px;
    flex-wrap: wrap;
    gap: 12px;
}
.footer-bottom p {
    font-size: 0.78rem;
    color: var(--on-night-muted);
    margin: 0;
}
.footer-socials {
    display: flex;
    gap: 14px;
}
.footer-socials a {
    color: var(--on-night-muted);
    font-size: 1rem;
    transition: color var(--fast);
}
.footer-socials a:hover {
    color: var(--primary);
}

@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .footer-brand-block {
        grid-column: span 2;
    }
}
@media (max-width: 640px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .footer-brand-block {
        grid-column: span 1;
        align-items: flex-start;
    }
    .footer-brand-block p {
        max-width: 100%;
        text-align: left;
    }
    .footer-contact-list li {
        justify-content: flex-start;
    }
    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }
}

/* =========================================================
   ANIMATE ON DISPLAY
   ========================================================= */
[data-aod] {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}
[data-aod].aod-in {
    opacity: 1;
    transform: translate(0, 0);
}

/* =========================================================
   ALERTS
   ========================================================= */
.alert {
    position: fixed;
    top: 74px;
    right: 20px;
    max-width: 380px;
    padding: 14px 18px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-left: 4px solid var(--primary);
    border-radius: var(--r-md);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    z-index: 9999;
    transform: translateX(120%);
    transition: transform var(--med);
}
.alert.show {
    transform: translateX(0);
}
.alert-error {
    border-left-color: var(--acc-red);
}
.alert-content {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--ink);
    font-size: 0.9rem;
}
.alert-success i {
    color: var(--primary);
}
.alert-error i {
    color: var(--acc-red);
}
.alert-close {
    background: none;
    border: none;
    color: var(--ink-muted);
    cursor: pointer;
    margin-left: auto;
}

/* =========================================================
   ADDITIONAL ENHANCEMENTS
   ========================================================= */
.form-row input.error,
.form-row textarea.error {
    border-color: #c62828;
    box-shadow: 0 0 0 3px rgba(198, 40, 40, 0.12);
}
.field-error {
    display: block;
    color: #c62828;
    font-size: 0.75rem;
    font-weight: 500;
    margin-top: 4px;
}

.floating-orb {
    will-change: transform;
}

.scroll-progress {
    position: fixed;
    top: 60px;
    left: 0;
    height: 2px;
    background: linear-gradient(90deg, #0066cc, #009688);
    width: 0%;
    z-index: 999;
    transition: width 0.1s ease;
}

::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--canvas);
}
::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 4px;
}
:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}

.parallax-bg {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
    background-image: url('imgs/img8.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.08;
    pointer-events: none;
    will-change: transform;
    transform: translateZ(0);
}

/* =========================================================
   UI ENHANCEMENTS — Added
   ========================================================= */

/* Hero: auto-play progress bar on active dot */
.hero-dot.is-active::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 5px;
    background: rgba(255,255,255,0.4);
    animation: dotProgress 5s linear forwards;
}
@keyframes dotProgress {
    from { clip-path: inset(0 100% 0 0); }
    to   { clip-path: inset(0 0% 0 0); }
}

/* Hero arrow: stronger hover feedback */
.hero-arrow:hover {
    background: rgba(255, 255, 255, 0.22) !important;
    border-color: rgba(255, 255, 255, 0.7) !important;
    transform: scale(1.1);
}
.hero-arrow:active {
    transform: scale(0.95);
}

/* Solution cards: more pronounced lift on hover */
.solution-card {
    transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s ease;
}
.solution-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 48px rgba(0, 102, 204, 0.10), 0 4px 12px rgba(0,0,0,0.06);
    border-color: var(--primary) !important;
}
.solution-card:hover .solution-link {
    color: var(--primary-dark);
    gap: 10px;
}
.solution-link {
    transition: gap 0.2s ease, color 0.2s ease;
}

/* Mosaic tiles: subtle glow on hover */
.mosaic-tile {
    transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.mosaic-tile:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(0, 102, 204, 0.10);
}

/* Contact info cards: left accent line on hover */
.contact-info-card {
    transition: transform 0.2s var(--ease), border-color 0.2s ease, box-shadow 0.2s ease;
    border-left: 3px solid transparent;
}
.contact-info-card:hover {
    transform: translateX(4px);
    border-color: var(--primary) !important;
    border-left-color: var(--primary) !important;
    box-shadow: 0 4px 16px rgba(0, 102, 204, 0.08);
}

/* Form: glowing focus ring & input icon placeholder */
.form-row input:focus,
.form-row textarea:focus {
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.15), 0 2px 8px rgba(0, 102, 204, 0.08);
    background: #fafcff;
}
.form-row input.error,
.form-row textarea.error {
    border-color: var(--acc-red);
    background: #fff8f8;
    box-shadow: 0 0 0 3px rgba(198, 40, 40, 0.08);
}

/* Submit button: shimmer on hover */
.btn-submit {
    position: relative;
    overflow: hidden;
    transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}
.btn-submit::after {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
    transition: left 0.5s ease;
}
.btn-submit:hover::after {
    left: 160%;
}
.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 102, 204, 0.30);
}
.btn-submit:active {
    transform: translateY(0);
}

/* Stack badges: pop on hover */
.stack-badge {
    transition: transform 0.2s var(--ease), background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}
.stack-badge:hover {
    transform: translateY(-3px) scale(1.05);
    background: var(--primary);
    color: #fff;
    box-shadow: 0 6px 18px rgba(0, 102, 204, 0.25);
}
.stack-badge:hover i {
    color: #fff;
}

/* GitHub cards: lift + blue left border */
.github-card {
    transition: transform 0.22s var(--ease), border-color 0.22s ease, box-shadow 0.22s ease;
    border-left: 3px solid transparent !important;
}
.github-card:hover {
    transform: translateY(-4px);
    border-left-color: var(--primary) !important;
    box-shadow: 0 12px 32px rgba(0, 102, 204, 0.10) !important;
}

/* Section eyebrow: subtle underline pulse */
.section-eyebrow {
    position: relative;
}

/* Floating CTA: stronger pop */
.floating-cta {
    transition: transform 0.2s var(--ease), box-shadow 0.2s ease;
}
.floating-cta:hover {
    transform: translateY(-4px) scale(1.04);
    box-shadow: 0 16px 40px rgba(0, 102, 204, 0.30);
}

/* Nav brand: subtle scale on hover */
.navbar-brand {
    transition: opacity 0.2s ease, transform 0.2s ease;
}
.navbar-brand:hover {
    opacity: 0.85;
    transform: scale(1.02);
}

/* Footer links: smooth underline from left */
.footer a {
    position: relative;
    transition: color 0.2s ease;
}
.footer ul li a::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--primary);
    transition: width 0.2s ease;
}
.footer ul li a:hover::after {
    width: 100%;
}
.footer ul li a:hover {
    color: var(--primary);
}

/* =========================================================
   GREYED OUT OPTIONS STYLING
   ========================================================= */
select option:disabled,
select option[disabled],
select option.greyed-out {
    color: #a0a0a0 !important;
    background-color: #f5f5f5 !important;
    font-style: italic;
}

select option:disabled::before,
select option[disabled]::before,
select option.greyed-out::before {
    content: "⛔ ";
}

/* Style for the greyed-out class on option elements */
select option.greyed-out {
    opacity: 0.6;
    cursor: not-allowed;
}