/* ============================================
   ETHBAT PROFILE — PREMIUM DESIGN SYSTEM
   ============================================ */

/* ---------- Fonts ---------- */
@font-face {
    font-family: 'DroidArabicKufi';
    src: url('DroidArabicKufiRegular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

html {
    scroll-behavior: auto;
    /* Handled by Lenis */
}

/* ---------- CSS Custom Properties ---------- */
:root {
    /* Primary Palette - Enterprise Slate */
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --bg-card: rgba(30, 41, 59, 0.7);
    --bg-card-hover: rgba(51, 65, 85, 0.8);

    /* Accent - Ethbat Logo Teal */
    --accent: #287582;
    --accent-light: #3695a5;
    --accent-dark: #1a4b54;
    --accent-glow: rgba(40, 117, 130, 0.15);

    /* Gradient */
    --gradient-accent: linear-gradient(135deg, #3695a5 0%, #287582 100%);
    --gradient-hero: radial-gradient(circle at 50% 0%, #1e293b 0%, #0f172a 70%);
    --gradient-card: linear-gradient(135deg, rgba(40, 117, 130, 0.04) 0%, rgba(255, 255, 255, 0.01) 100%);

    /* Text */
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;

    /* Enterprise Glass */
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);

    /* Sizing */
    --nav-height: 72px;
    --section-padding: 120px 0;
    --max-width: 1200px;
    --radius: 16px;
    --radius-sm: 8px;

    /* Logo filter */
    --logo-filter: brightness(0) invert(1);
    --nav-scrolled-bg: rgba(15, 23, 42, 0.95);
    --mobile-menu-bg: rgba(15, 23, 42, 0.98);

    /* Client Logos */
    --client-blend: screen;
    --client-filter: invert(1) grayscale(100%) opacity(0.6);
    --client-filter-hover: invert(1) grayscale(100%) opacity(1);
}

/* ---------- Light Theme ---------- */
[data-theme="light"] {
    --bg-primary: #f8fafc;
    --bg-secondary: #ffffff;
    --bg-card: rgba(255, 255, 255, 0.9);
    --bg-card-hover: #ffffff;

    --accent: #287582;
    --accent-light: #3695a5;
    --accent-dark: #1a4b54;
    --accent-glow: rgba(40, 117, 130, 0.1);

    --gradient-accent: linear-gradient(135deg, #287582 0%, #1a4b54 100%);
    --gradient-hero: radial-gradient(circle at 50% 0%, #ffffff 0%, #f8fafc 70%);
    --gradient-card: linear-gradient(135deg, rgba(40, 117, 130, 0.02) 0%, rgba(0, 0, 0, 0.01) 100%);

    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;

    --glass-border: rgba(0, 0, 0, 0.06);
    --glass-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);

    --logo-filter: none;
    --nav-scrolled-bg: rgba(255, 255, 255, 0.95);
    --mobile-menu-bg: rgba(255, 255, 255, 0.98);

    /* Client Logos */
    --client-blend: multiply;
    --client-filter: grayscale(100%) opacity(0.6);
    --client-filter-hover: grayscale(100%) opacity(1);
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: auto;
    /* Handled by Lenis */
    scroll-padding-top: var(--nav-height);
    font-size: 100%;
    /* Increases base font size (1rem = 20px) for all content */
    overflow-x: hidden;
}

body {
    font-family: 'DroidArabicKufi', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* ---------- Utilities ---------- */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

.section-label {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--accent);
    margin-bottom: 12px;
    display: inline-block;
}

.section-title {
    font-size: clamp(1.6rem, 5vw, 3.2rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--text-primary) 40%, var(--accent-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 640px;
    line-height: 1.8;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: 50px;
    font-family: inherit;
    font-weight: 600;
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
    transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.btn-primary {
    background: var(--gradient-accent);
    color: #fff;
    box-shadow: 0 4px 24px rgba(40, 117, 130, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 36px rgba(40, 117, 130, 0.45);
}

.btn-outline {
    background: transparent;
    color: var(--accent-light);
    border: 1.5px solid rgba(100, 255, 218, 0.3);
}

.btn-outline:hover {
    background: rgba(100, 255, 218, 0.08);
    border-color: var(--accent-light);
}

/* ---------- Glass Card ---------- */
.glass-card {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 36px;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
}

.glass-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-card);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.glass-card:hover {
    background: var(--bg-card-hover);
    border-color: rgba(40, 117, 130, 0.3);
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2), 0 0 20px var(--accent-glow);
}

.glass-card:hover::before {
    opacity: 1;
}

.glass-card>* {
    position: relative;
    z-index: 1;
}

/* ---------- GSAP Animations Handled in script.js ---------- */

/* ============================================
   NAVIGATION
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    z-index: 1000;
    transition: all 0.4s ease;
}

.navbar.scrolled {
    background: var(--nav-scrolled-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.nav-logo .logo-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: var(--gradient-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 900;
    color: #fff;
}

.nav-logo span {
    background: linear-gradient(135deg, #fff 30%, var(--accent-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-logo-img {
    height: 36px;
    width: auto;
    filter: var(--logo-filter);
    transition: opacity 0.3s ease, filter 0.4s ease;
}

.nav-logo-img:hover {
    opacity: 0.85;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 36px;
}

.nav-links a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color 0.3s;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    border-radius: 2px;
    transition: width 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--accent-light);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

/* Mobile Toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Theme Toggle Button */
.theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--glass-border);
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.35s ease;
    flex-shrink: 0;
    line-height: 1;
    color: var(--text-primary);
}

.theme-toggle:hover {
    background: rgba(40, 117, 130, 0.12);
    border-color: rgba(40, 117, 130, 0.25);
    transform: rotate(30deg);
}

.theme-toggle .icon-sun,
.theme-toggle .icon-moon {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Dark mode: show sun, hide moon */
.theme-toggle .icon-sun {
    display: inline;
}

.theme-toggle .icon-moon {
    display: none;
}

/* Light mode: show moon, hide sun */
[data-theme="light"] .theme-toggle .icon-sun {
    display: none;
}

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

[data-theme="light"] .theme-toggle {
    background: rgba(0, 0, 0, 0.05);
}

/* ---------- Light Mode Overrides ---------- */
[data-theme="light"] .nav-logo span {
    background: linear-gradient(135deg, #1a1a2e 30%, var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

[data-theme="light"] .hero-grid {
    background-image:
        linear-gradient(rgba(40, 117, 130, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(40, 117, 130, 0.06) 1px, transparent 1px);
}

[data-theme="light"] .hero-orb-1 {
    background: radial-gradient(circle, rgba(40, 117, 130, 0.04), transparent 70%);
}

[data-theme="light"] .hero-orb-2 {
    background: radial-gradient(circle, rgba(40, 117, 130, 0.03), transparent 70%);
}

[data-theme="light"] .hero-orb-3 {
    background: radial-gradient(circle, rgba(40, 117, 130, 0.02), transparent 70%);
}

[data-theme="light"] .section-title {
    background: linear-gradient(135deg, var(--text-primary) 40%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

[data-theme="light"] .hero-title .gradient-text {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

[data-theme="light"] .glass-card:hover {
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.05), 0 0 20px var(--accent-glow);
}

[data-theme="light"] .btn-primary {
    box-shadow: 0 4px 24px rgba(40, 117, 130, 0.2);
}

[data-theme="light"] .btn-primary:hover {
    box-shadow: 0 8px 36px rgba(40, 117, 130, 0.35);
}

[data-theme="light"] .btn-outline {
    color: var(--accent);
    border-color: rgba(40, 117, 130, 0.3);
}

[data-theme="light"] .btn-outline:hover {
    background: rgba(40, 117, 130, 0.06);
    border-color: var(--accent);
}

[data-theme="light"] .platform::before {
    background: linear-gradient(90deg, transparent, var(--accent-glow), transparent);
}

[data-theme="light"] .footer {
    background: #e8ecf1;
    border-top: 1px solid var(--glass-border);
}

[data-theme="light"] .hero-badge {
    background: rgba(40, 117, 130, 0.08);
    border-color: rgba(40, 117, 130, 0.18);
}

[data-theme="light"] .phone-mockup {
    background: #fff;
    border-color: rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .phone-screen {
    background: #fafbfc;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    background: var(--gradient-hero);
    overflow: hidden;
}

/* Animated grid backdrop */
.hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(40, 117, 130, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(40, 117, 130, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    animation: gridPulse 8s ease-in-out infinite;
}

@keyframes gridPulse {

    0%,
    100% {
        opacity: 0.4;
    }

    50% {
        opacity: 0.8;
    }
}

/* Floating orbs */
.hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    animation: orbFloat 12s ease-in-out infinite;
}

.hero-orb-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(40, 117, 130, 0.08), transparent 70%);
    top: -10%;
    right: -5%;
    animation-delay: 0s;
}

.hero-orb-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(40, 117, 130, 0.06), transparent 70%);
    bottom: -5%;
    left: -5%;
    animation-delay: -4s;
}

.hero-orb-3 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(40, 117, 130, 0.04), transparent 70%);
    top: 50%;
    left: 40%;
    animation-delay: -8s;
}

@keyframes orbFloat {

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

    33% {
        transform: translate(30px, -30px) scale(1.05);
    }

    66% {
        transform: translate(-20px, 20px) scale(0.95);
    }
}

.hero .container {
    position: relative;
    z-index: 2;
    text-align: center;
    padding-top: var(--nav-height);
}

.hero-logo-svg {
    height: 200px;
    width: 200px;
    margin-bottom: 100px;
    margin-top: 100px;
    display: block;
    margin-left: auto;
    margin-right: auto;
    overflow: visible;
    /* Prevent scattered pieces from clipping */
}

/* ---- Hide hero pieces until GSAP takes over (prevents fully-assembled flash on slow connections) ---- */
.is-loading .logo-part,
.is-loading .logo-dot,
.is-loading .hero-badge,
.is-loading .hero-title,
.is-loading .hero-description,
.is-loading .hero-actions .btn,
.is-loading .hero-stats {
    opacity: 0 !important;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(40, 117, 130, 0.1);
    border: 1px solid rgba(40, 117, 130, 0.2);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent-light);
    margin-bottom: 32px;
    opacity: 0;
    animation: heroBadgeSlide 1s cubic-bezier(0.25, 0.1, 0.25, 1) 0.6s forwards,
        badgePulse 3s ease-in-out 1.6s infinite;
}

@keyframes badgePulse {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(40, 117, 130, 0.15);
    }

    50% {
        box-shadow: 0 0 0 12px rgba(40, 117, 130, 0);
    }
}

.hero-title {
    font-size: clamp(2.8rem, 7vw, 5.5rem);
    font-weight: 500;
    line-height: 1.05;
    letter-spacing: -2px;
    margin-bottom: 24px;
    opacity: 0;
    animation: heroFadeUp 1s cubic-bezier(0.25, 0.1, 0.25, 1) 0.3s forwards;
}

.hero-title .gradient-text {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 50%, #7c4dff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
    min-height: 1.1em;
    vertical-align: bottom;
}

.hero-description {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--text-secondary);
    max-width: 620px;
    margin: 0 auto 32px;
    line-height: 1.8;
    opacity: 0;
    animation: heroFadeUp 1s cubic-bezier(0.25, 0.1, 0.25, 1) 0.5s forwards;
}

.hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    opacity: 0;
    animation: heroFadeUp 1s cubic-bezier(0.25, 0.1, 0.25, 1) 0.7s forwards;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-top: 72px;
    padding-top: 40px;
    padding-bottom: 200px;
    border-top: 1px solid var(--glass-border);
    opacity: 0;
    animation: heroStatsReveal 1.2s cubic-bezier(0.25, 0.1, 0.25, 1) 1.8s forwards;
}

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

.hero-stat .stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--accent-light);
    line-height: 1;
    margin-bottom: 6px;
}

.hero-stat .stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 500;
}

/* ============================================
   ABOUT SECTION
   ============================================ */
.about {
    padding: var(--section-padding);
    position: relative;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-visual {
    position: relative;
}

.about-visual-card {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    padding: 40px;
    position: relative;
    overflow: hidden;
}

.about-visual-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg, transparent, var(--accent-glow), transparent 30%);
    animation: rotateBorder 6s linear infinite;
}

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

.about-visual-inner {
    position: relative;
    background: var(--bg-secondary);
    border-radius: 16px;
    padding: 32px;
    z-index: 1;
}

.about-architecture {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.arch-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

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

.arch-node {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: rgba(40, 117, 130, 0.05);
    border: 1px solid rgba(40, 117, 130, 0.1);
    border-radius: var(--radius-sm);
    transition: all 0.3s ease;
}

.arch-node:hover {
    background: rgba(40, 117, 130, 0.1);
    border-color: rgba(40, 117, 130, 0.25);
    transform: translateX(8px);
}

.arch-node-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--accent-glow);
    border: 1px solid rgba(40, 117, 130, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
    color: var(--accent);
}

.arch-node-label {
    font-weight: 600;
    font-size: 0.95rem;
    line-height: 1.4;
}

.arch-node-desc {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 2px;
}

.arch-connector {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 20px;
}

.arch-connector span {
    display: block;
    width: 2px;
    height: 100%;
    background: linear-gradient(180deg, var(--accent), rgba(40, 117, 130, 0.1));
    border-radius: 1px;
}

.about-content .highlight-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 32px;
}

.highlight-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.highlight-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: rgba(40, 117, 130, 0.08);
    border: 1px solid rgba(40, 117, 130, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.highlight-text h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.highlight-text p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ============================================
   PLATFORM (ETHBAT) SECTION
   ============================================ */
.platform {
    padding: var(--section-padding);
    position: relative;
    background: var(--bg-secondary);
}

.platform::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-glow), transparent);
}

.platform .section-header {
    text-align: center;
    margin-bottom: 64px;
}

.platform .section-subtitle {
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    perspective: 1400px;
}

.feature-card {
    --mx: 50;
    --my: 50;
    --tilt-x: 0;
    --tilt-y: 0;
    --lift: 0;
    --glow: 0;
    transform-style: preserve-3d;
    transform: perspective(1200px)
               rotateX(calc(var(--tilt-x) * 1deg))
               rotateY(calc(var(--tilt-y) * 1deg))
               translateY(calc(var(--lift) * 1px));
    transition: box-shadow 0.45s cubic-bezier(0.22, 1, 0.36, 1),
                border-color 0.45s ease,
                background 0.45s ease;
    will-change: transform;
}

.feature-card::before {
    background:
        radial-gradient(420px circle at calc(var(--mx) * 1%) calc(var(--my) * 1%),
            rgba(54, 149, 165, calc(0.18 * var(--glow))) 0%,
            rgba(54, 149, 165, calc(0.06 * var(--glow))) 35%,
            transparent 70%),
        var(--gradient-card);
    opacity: 1;
    transition: background 0.2s linear;
    z-index: 0;
}

.feature-card > * {
    position: relative;
    z-index: 1;
    transform: translateZ(0);
}

.feature-card:hover {
    transform: perspective(1200px)
               rotateX(calc(var(--tilt-x) * 1deg))
               rotateY(calc(var(--tilt-y) * 1deg))
               translateY(calc(var(--lift) * 1px));
    border-color: rgba(54, 149, 165, 0.35);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35),
                0 0 0 1px rgba(54, 149, 165, 0.12),
                0 0 60px rgba(40, 117, 130, 0.18);
}

.feature-card .feature-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 20px;
    position: relative;
    transform: translateZ(40px);
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1),
                box-shadow 0.5s ease,
                background 0.5s ease;
}

.feature-card:hover .feature-icon {
    background: rgba(54, 149, 165, 0.18);
    border-color: rgba(54, 149, 165, 0.45);
    box-shadow: 0 8px 24px rgba(40, 117, 130, 0.35),
                0 0 0 6px rgba(40, 117, 130, 0.06);
}

.feature-card h3,
.feature-card p,
.feature-card .feature-tags {
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.feature-card:hover h3 { transform: translateZ(28px); }
.feature-card:hover p { transform: translateZ(18px); }
.feature-card:hover .feature-tags { transform: translateZ(22px); }

.feature-icon.teal,
.feature-icon.purple,
.feature-icon.blue,
.feature-icon.amber,
.feature-icon.pink,
.feature-icon.cyan {
    background: var(--accent-glow);
    border: 1px solid rgba(40, 117, 130, 0.2);
    color: var(--accent);
}

.feature-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.feature-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.feature-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.feature-tag {
    font-size: 0.72rem;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 50px;
    background: rgba(40, 117, 130, 0.06);
    border: 1px solid rgba(40, 117, 130, 0.1);
    color: var(--accent-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ============================================
   APP SHOWCASE (CLIENT & EMPLOYEE)
   ============================================ */
.app-showcase {
    padding: var(--section-padding);
    position: relative;
}

#client-app,
#employee-app {
    min-height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
}

#client-app {
    z-index: 10;
}

#employee-app {
    z-index: 9;
    /* Slightly lower so client-app scrolls over it normally */
}

.app-showcase+.app-showcase {
    padding-top: 60px;
}

.showcase-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}



.showcase-content {
    display: flex;
    flex-direction: column;
    gap: 24px;
    text-align: start;
}

.showcase-content .app-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.app-badge.client {
    background: rgba(40, 117, 130, 0.1);
    border: 1px solid rgba(40, 117, 130, 0.2);
    color: var(--accent-light);
}

.app-badge.employee {
    background: rgba(124, 77, 255, 0.1);
    border: 1px solid rgba(124, 77, 255, 0.2);
    color: #b388ff;
}

.showcase-features {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.showcase-feature-item {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.showcase-feature-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.showcase-feature-icon.teal,
.showcase-feature-icon.purple {
    background: var(--accent-glow);
    color: var(--accent);
}

.showcase-feature-item h4 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 3px;
}

.showcase-feature-item p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.55;
}

/* Phone Mockup */
.showcase-visual {
    display: flex;
    justify-content: center;
    perspective: 1000px;
}

.phone-mockup {
    width: 280px;
    height: 570px;
    border-radius: 40px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    background: var(--bg-secondary);
    position: relative;
    overflow: hidden;
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.5),
        inset 0 0 0 1px rgba(255, 255, 255, 0.05);
    transform: rotateY(-8deg) rotateX(4deg);
    transition: transform 0.5s ease;
}

.phone-mockup:hover {
    transform: rotateY(0deg) rotateX(0deg);
}

.phone-notch {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 28px;
    background: var(--bg-primary);
    border-radius: 0 0 18px 18px;
    z-index: 10;
}

.phone-screen {
    position: absolute;
    inset: 3px;
    border-radius: 37px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.phone-status-bar {
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-secondary);
    background: rgba(0, 0, 0, 0.3);
}

.phone-app-content {
    flex: 1;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.phone-app-header {
    text-align: center;
    padding: 8px 0;
}

.phone-app-header h5 {
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.phone-app-header p {
    font-size: 0.65rem;
    color: var(--text-secondary);
}

.phone-stat-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.mini-stat {
    background: rgba(40, 117, 130, 0.08);
    border: 1px solid rgba(40, 117, 130, 0.1);
    border-radius: 12px;
    padding: 12px;
    text-align: center;
}

.mini-stat.purple-stat {
    background: rgba(124, 77, 255, 0.08);
    border-color: rgba(124, 77, 255, 0.1);
}

.mini-stat .mini-stat-val {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--accent-light);
}

.mini-stat.purple-stat .mini-stat-val {
    color: #b388ff;
}

.mini-stat .mini-stat-label {
    font-size: 0.6rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 2px;
}

.phone-list-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 12px;
}

.phone-list-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.phone-list-dot.green,
.phone-list-dot.orange,
.phone-list-dot.purple-dot {
    background: var(--accent);
}

.phone-list-text {
    flex: 1;
}

.phone-list-text span {
    font-size: 0.72rem;
    font-weight: 600;
}

.phone-list-text small {
    display: block;
    font-size: 0.6rem;
    color: var(--text-muted);
}

.phone-bottom-bar {
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 0 24px;
    background: rgba(0, 0, 0, 0.4);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.phone-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    font-size: 0.6rem;
    color: var(--text-muted);
}

.phone-nav-item.active-nav {
    color: var(--accent-light);
}

.phone-nav-item .nav-icon {
    font-size: 1.1rem;
}

/* ============================================
   TECH STACK SECTION
   ============================================ */
.tech-stack {
    padding: var(--section-padding);
    background: var(--bg-secondary);
    position: relative;
}

.tech-stack::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(124, 77, 255, 0.3), transparent);
}

.tech-stack .section-header {
    text-align: center;
    margin-bottom: 64px;
}

.tech-stack .section-subtitle {
    margin: 0 auto;
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.tech-item {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    padding: 28px 20px;
    text-align: center;
    transition: all 0.35s ease;
    cursor: default;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    min-height: 180px;
    overflow: hidden;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.tech-item:hover {
    border-color: rgba(40, 117, 130, 0.2);
    background: var(--bg-card-hover);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.tech-item .tech-icon {
    font-size: 2.2rem;
    margin-bottom: 14px;
    display: block;
}

.tech-item h4 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.3;
}

.tech-item p {
    font-size: 0.78rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin: 0;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    padding: 60px 0 32px;
    border-top: 1px solid var(--glass-border);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

.footer-brand .nav-logo {
    margin-bottom: 16px;
}

.footer-brand p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    max-width: 340px;
    line-height: 1.7;
}

.footer-col h4 {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.footer-col ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-col a {
    font-size: 0.9rem;
    color: var(--text-secondary);
    transition: color 0.3s;
}

ul.contact-items {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.contact-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.contact-actions a {
    color: var(--text-secondary);
    transition: color 0.3s, transform 0.3s;
    display: flex;
}

.contact-actions a:hover {
    color: var(--accent-light);
    transform: translateY(-2px);
}

.contact-number {
    color: var(--text-secondary);
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 32px;
    border-top: 1px solid var(--glass-border);
    font-size: 0.85rem;
    color: var(--text-muted);
}

.footer-bottom a {
    color: var(--accent);
    transition: color 0.3s;
}

.footer-bottom a:hover {
    color: var(--accent-light);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .tech-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 80px 0;
    }

    /* Nav */
    .nav-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: var(--nav-height);
        left: 0;
        right: 0;
        background: var(--mobile-menu-bg);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 32px 24px;
        gap: 24px;
        border-bottom: 1px solid var(--glass-border);
        transform: translateY(-120%);
        transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        z-index: 999;
    }

    .nav-links.open {
        transform: translateY(0);
    }

    /* Hero */
    .hero-stats {
        gap: 32px;
        flex-wrap: wrap;
    }

    .hero-stat .stat-number {
        font-size: 2rem;
    }

    /* About */
    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    /* Features */
    .features-grid {
        grid-template-columns: 1fr;
    }

    /* Showcase */
    .showcase-layout,
    .showcase-layout.reversed {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .showcase-visual {
        order: -1;
    }

    .phone-mockup {
        transform: none;
        width: 240px;
        height: 490px;
    }

    /* Tech */
    .tech-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .tech-item {
        padding: 24px 14px;
        min-height: 200px;
    }

    .tech-item h4 {
        font-size: 0.9rem;
    }

    .tech-item p {
        font-size: 0.75rem;
    }

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

    .footer-bottom {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-title {
        letter-spacing: -1px;
    }

    .hero-actions {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .hero-stats {
        gap: 24px;
    }

    .phone-mockup {
        width: 220px;
        height: 450px;
    }
}

/* Web Mockup Styles */
.mockups-group {
    position: relative;
    width: 100%;
    height: 570px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-inline-start: 60px;
    /* Adds space between the mockups and the text */
}

.web-mockup {
    width: 600px;
    height: 400px;
    border-radius: 12px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    background: var(--bg-secondary);
    position: absolute;
    inset-inline-start: -80px;
    /* Offset towards the text */
    overflow: hidden;
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.5),
        inset 0 0 0 1px rgba(255, 255, 255, 0.05);
    transform: rotateY(8deg) rotateX(4deg);
    transition: transform 0.5s ease;
    display: flex;
    flex-direction: column;
    z-index: 1;
}

.mockups-group:hover .web-mockup {
    transform: rotateY(0deg) rotateX(0deg);
}

.mockups-group .phone-mockup {
    position: absolute;
    inset-inline-end: 0;
    /* Align phone to the outside edge */
    z-index: 2;
    transform: rotateY(-8deg) rotateX(4deg) translateZ(40px);
    box-shadow: -20px 20px 60px rgba(0, 0, 0, 0.6);
}

.mockups-group:hover .phone-mockup {
    transform: rotateY(0deg) rotateX(0deg) translateZ(60px);
}

.web-browser-bar {
    height: 32px;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    padding: 0 12px;
    gap: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.browser-dots {
    display: flex;
    gap: 6px;
}

.browser-dots .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.browser-dots .dot.close {
    background: #ff5f56;
}

.browser-dots .dot.minimize {
    background: #ffbd2e;
}

.browser-dots .dot.maximize {
    background: #27c93f;
}

.browser-url {
    background: rgba(0, 0, 0, 0.4);
    border-radius: 6px;
    padding: 2px 16px;
    font-size: 0.7rem;
    color: var(--text-secondary);
    flex-grow: 1;
    text-align: center;
    font-family: monospace;
}

.web-screen {
    flex-grow: 1;
    display: flex;
    overflow: hidden;
}

.web-sidebar {
    width: 120px;
    background: rgba(0, 0, 0, 0.2);
    border-inline-end: 1px solid rgba(255, 255, 255, 0.05);
    padding: 16px 12px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.web-logo {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 12px;
}

.web-nav-item {
    font-size: 0.75rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 6px;
}

.web-nav-item.active {
    background: rgba(14, 184, 165, 0.1);
    color: var(--primary-color);
}

.web-nav-item i {
    width: 14px;
    height: 14px;
}

.web-content {
    flex-grow: 1;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    background: var(--bg-primary);
}

.web-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.web-header h4 {
    font-size: 1.1rem;
    margin: 0;
}

.web-user {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--bg-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.web-user i {
    width: 16px;
    height: 16px;
}

.web-stats {
    display: flex;
    gap: 16px;
}

.web-stat-card {
    flex: 1;
    background: var(--bg-secondary);
    border-radius: 8px;
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.web-stat-card h5 {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin: 0 0 8px 0;
}

.web-stat-card h3 {
    font-size: 1.5rem;
    margin: 0;
    color: var(--primary-color);
}

.web-recent {
    background: var(--bg-secondary);
    border-radius: 8px;
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    flex-grow: 1;
}

.web-recent h5 {
    font-size: 0.85rem;
    margin: 0 0 12px 0;
    color: var(--text-primary);
}

.web-recent-item {
    font-size: 0.75rem;
    color: var(--text-secondary);
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

@media (max-width: 991px) {
    .mockups-group {
        margin-inline-start: 0;
    }
}

@media (max-width: 768px) {
    .mockups-group {
        transform: scale(0.8);
    }
}

@media (max-width: 480px) {
    .mockups-group {
        transform: scale(0.6);
    }
}

/* Global Mobile Font Size Reset */
@media (max-width: 768px) {
    html {
        font-size: 105%;
        /* Slightly smaller on mobile to prevent layout breaking */
    }
}

/* Mobile Architecture Optimizations */
@media (max-width: 480px) {
    .about-visual-inner {
        padding: 20px 16px;
    }

    .arch-node {
        padding: 12px 14px;
        gap: 12px;
    }

    .arch-node-icon {
        width: 36px;
        height: 36px;
        font-size: 1.1rem;
    }

    .arch-node-label {
        font-size: 0.85rem;
    }
}

@keyframes heroFadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   CLIENTS SECTION
   ============================================ */
.clients-section {
    padding: 80px 0;
    border-bottom: 1px solid var(--glass-border);
    overflow: hidden;
    position: relative;
    background: var(--bg-primary);
}

.clients-title {
    text-align: center;
    font-size: 1.5rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    letter-spacing: 1px;
}

.clients-marquee-wrapper {
    display: flex;
    flex-direction: column;
    gap: 24px;
    mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
}

.clients-marquee {
    display: flex;
    gap: 24px;
    overflow: hidden;
    direction: ltr;
    /* Ensure consistent animation direction */
}

.clients-marquee:hover .marquee-content {
    animation-play-state: paused;
}

.marquee-content {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    gap: 24px;
    animation: scroll 35s linear infinite;
}

.track-right .marquee-content {
    animation-direction: reverse;
}

.client-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 24px 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: pointer;
    position: relative;
}

.client-card::after {
    content: attr(data-name);
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    opacity: 0;
    pointer-events: none;
    white-space: nowrap;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    z-index: 10;
}

.client-card:hover::after {
    opacity: 1;
    bottom: 12px;
}

[data-theme="light"] .client-card {
    background: rgba(255, 255, 255, 0.5);
}

[data-theme="light"] .client-card::after {
    background: rgba(255, 255, 255, 0.85);
    color: var(--text-primary);
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.05);
}

.client-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-color: rgba(100, 255, 218, 0.2);
}

[data-theme="light"] .client-card:hover {
    background: rgba(255, 255, 255, 0.8);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.client-card img {
    height: 50px;
    width: 130px;
    object-fit: contain;
    filter: var(--client-filter);
    mix-blend-mode: var(--client-blend);
    transition: all 0.4s ease;
}

.client-card:hover img {
    filter: var(--client-filter-hover);
    transform: scale(1.05) translateY(-8px);
}

@keyframes scroll {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(calc(-100% - 24px));
    }
}

/* ============================================
   POLISH PACK — Global Animations & Micro-interactions
   ============================================ */

/* ---- Scroll Progress Bar ---- */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0%;
    z-index: 1200;
    background: linear-gradient(90deg, var(--accent) 0%, var(--accent-light) 50%, var(--accent) 100%);
    background-size: 200% 100%;
    box-shadow: 0 0 12px rgba(54, 149, 165, 0.55);
    transition: width 0.08s linear;
    pointer-events: none;
    animation: shimmerSlide 3s linear infinite;
}

@keyframes shimmerSlide {
    from { background-position: 0% 0%; }
    to   { background-position: 200% 0%; }
}

/* ---- Section Label — animated bar prefix ---- */
.section-label {
    position: relative;
}

.section-label::before {
    content: '';
    display: inline-block;
    vertical-align: middle;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-light));
    margin-inline-end: 0;
    border-radius: 2px;
    transition: width 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.2s,
                margin-inline-end 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.2s;
}

.section-label.in-view::before {
    width: 28px;
    margin-inline-end: 10px;
}

/* ---- Section Title — animated underline ---- */
.section-title {
    position: relative;
    display: inline-block;
}

.section-header {
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    inset-inline-start: 0;
    bottom: -10px;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-light), transparent);
    border-radius: 3px;
    transition: width 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.35s;
}

.section-header .section-title::after {
    inset-inline-start: auto;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(90deg, transparent, var(--accent-light), transparent);
}

.section-title.in-view::after {
    width: 64px;
}

.section-header.in-view .section-title::after {
    width: 96px;
}

/* ---- Button Primary — shimmer sweep on hover ---- */
.btn-primary {
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -120%;
    width: 80%;
    height: 100%;
    background: linear-gradient(100deg,
        transparent 0%,
        rgba(255, 255, 255, 0.28) 50%,
        transparent 100%);
    transform: skewX(-20deg);
    transition: left 0.8s cubic-bezier(0.22, 1, 0.36, 1);
    z-index: 0;
}

.btn-primary:hover::before {
    left: 130%;
}

.btn-primary > * {
    position: relative;
    z-index: 1;
}

/* ---- Button Outline — soft fill sweep ---- */
.btn-outline {
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.btn-outline::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%),
        rgba(54, 149, 165, 0.22) 0%,
        transparent 60%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
}

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

/* ---- Tech Item Icon — rotate + glow on hover ---- */
.tech-item .tech-icon {
    transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1),
                color 0.4s ease,
                filter 0.4s ease;
}

.tech-item:hover .tech-icon {
    transform: rotate(-8deg) scale(1.12) translateZ(0);
    color: var(--accent-light);
    filter: drop-shadow(0 6px 14px rgba(54, 149, 165, 0.45));
}

/* ---- Tech Item — animated gradient border on hover ---- */
.tech-item {
    position: relative;
    isolation: isolate;
}

.tech-item::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: conic-gradient(from var(--angle, 0deg),
        transparent 0deg,
        rgba(54, 149, 165, 0.55) 80deg,
        transparent 160deg,
        transparent 360deg);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
            mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
            mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    z-index: 2;
    animation: rotateAngle 4s linear infinite paused;
}

.tech-item:hover::before {
    opacity: 1;
    animation-play-state: running;
}

@property --angle {
    syntax: '<angle>';
    initial-value: 0deg;
    inherits: false;
}

@keyframes rotateAngle {
    to { --angle: 360deg; }
}

/* ---- Arch Node — icon pulse on hover ---- */
.arch-node-icon {
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
                box-shadow 0.4s ease,
                background 0.4s ease;
}

.arch-node:hover .arch-node-icon {
    transform: scale(1.08) rotate(-4deg);
    background: rgba(54, 149, 165, 0.2);
    box-shadow: 0 8px 20px rgba(40, 117, 130, 0.3),
                0 0 0 6px rgba(40, 117, 130, 0.08);
}

/* ---- Arch Connectors — animated flow ---- */
.arch-connector span {
    position: relative;
    overflow: hidden;
}

.arch-connector span::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
        transparent 0%,
        var(--accent-light) 50%,
        transparent 100%);
    animation: connectorFlow 2.4s cubic-bezier(0.65, 0, 0.35, 1) infinite;
}

@keyframes connectorFlow {
    0%   { transform: translateY(-100%); opacity: 0; }
    30%  { opacity: 1; }
    70%  { opacity: 1; }
    100% { transform: translateY(100%); opacity: 0; }
}

/* ---- Highlight Icon — pop on hover ---- */
.highlight-item .highlight-icon {
    transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
                background 0.4s ease,
                box-shadow 0.4s ease,
                border-color 0.4s ease;
}

.highlight-item:hover .highlight-icon {
    transform: scale(1.08) rotate(-6deg);
    background: rgba(54, 149, 165, 0.18);
    border-color: rgba(54, 149, 165, 0.35);
    box-shadow: 0 8px 24px rgba(40, 117, 130, 0.25);
}

.highlight-item {
    padding: 8px;
    border-radius: 12px;
    transition: background 0.4s ease;
    margin: -8px;
}

.highlight-item:hover {
    background: rgba(54, 149, 165, 0.04);
}

/* ---- Nav Logo — subtle float on hover ---- */
.nav-logo-img {
    transition: opacity 0.3s ease, filter 0.4s ease, transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.nav-logo:hover .nav-logo-img {
    transform: rotate(-6deg) scale(1.04);
}

/* ---- Theme Toggle — smoother 180° flip on click ---- */
.theme-toggle {
    transition: all 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

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

/* ---- Stat Number — gradient glow ---- */
.hero-stat .stat-number {
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1),
                filter 0.5s ease;
}

.hero-stat:hover .stat-number {
    transform: translateY(-4px);
    filter: drop-shadow(0 6px 16px rgba(54, 149, 165, 0.4));
}

/* ---- Feature Tag hover ---- */
.feature-tag {
    transition: all 0.35s cubic-bezier(0.22, 1, 0.36, 1);
    cursor: default;
}

.feature-tag:hover {
    background: rgba(54, 149, 165, 0.14);
    border-color: rgba(54, 149, 165, 0.4);
    color: var(--text-primary);
    transform: translateY(-2px);
}

/* ---- Floating background dust (hero) ---- */
.hero-dust {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 1;
}

.hero-dust span {
    position: absolute;
    width: 2px;
    height: 2px;
    border-radius: 50%;
    background: var(--accent-light);
    opacity: 0;
    box-shadow: 0 0 8px rgba(54, 149, 165, 0.7);
    animation: dustFloat linear infinite;
}

@keyframes dustFloat {
    0%   { transform: translateY(100vh) translateX(0); opacity: 0; }
    10%  { opacity: 0.9; }
    90%  { opacity: 0.6; }
    100% { transform: translateY(-10vh) translateX(60px); opacity: 0; }
}

/* ---- Respect reduced motion ---- */
/* ---------- Contact Section ---------- */
.contact-section {
    padding: 100px 0 120px;
    position: relative;
    overflow: hidden;
}

.contact-section::before {
    content: '';
    position: absolute;
    top: -10%;
    left: 50%;
    transform: translateX(-50%);
    width: 70%;
    height: 70%;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 65%);
    pointer-events: none;
    z-index: 0;
}

.contact-section .container {
    position: relative;
    z-index: 1;
}

.contact-shell {
    margin-top: 60px;
    display: grid;
    grid-template-columns: 1.55fr 1fr;
    background: var(--bg-card);
    backdrop-filter: blur(18px) saturate(140%);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
    border: 1px solid rgba(148, 163, 184, 0.12);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25), 0 0 60px var(--accent-glow);
}

html[dir="rtl"] .contact-shell {
    direction: ltr;
}

html[dir="rtl"] .contact-form-area,
html[dir="rtl"] .contact-info-area {
    direction: rtl;
}

html:not([dir="rtl"]) .contact-shell {
    direction: rtl;
}

html:not([dir="rtl"]) .contact-form-area,
html:not([dir="rtl"]) .contact-info-area {
    direction: ltr;
}

[data-theme="light"] .contact-shell {
    background: rgba(255, 255, 255, 0.85);
    border-color: rgba(15, 23, 42, 0.08);
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.08);
}

.contact-form-area {
    padding: 48px 40px;
    position: relative;
}

.contact-info-area {
    padding: 48px 40px;
    position: relative;
    background: rgba(15, 23, 42, 0.45);
    border-inline-start: 1px solid rgba(148, 163, 184, 0.1);
}

[data-theme="light"] .contact-info-area {
    background: rgba(15, 23, 42, 0.04);
    border-inline-start-color: rgba(15, 23, 42, 0.06);
}

.contact-info-area::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 80% 15%, var(--accent-glow), transparent 60%);
    opacity: 0.55;
    pointer-events: none;
}

.contact-info-area > * { position: relative; z-index: 1; }

.contact-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.contact-field {
    position: relative;
}

.contact-field-full {
    grid-column: 1 / -1;
}

.contact-field input,
.contact-field textarea {
    width: 100%;
    padding: 22px 16px 10px;
    background: rgba(15, 23, 42, 0.4);
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 0.95rem;
    font-family: inherit;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    outline: none;
}

.contact-field textarea {
    padding: 28px 16px 14px;
    min-height: 150px;
    resize: vertical;
    line-height: 1.6;
}

[data-theme="light"] .contact-field input,
[data-theme="light"] .contact-field textarea {
    background: rgba(255, 255, 255, 0.7);
    border-color: rgba(15, 23, 42, 0.1);
}

.contact-field input:focus,
.contact-field textarea:focus {
    border-color: var(--accent-light);
    box-shadow: 0 0 0 4px var(--accent-glow);
    background: rgba(15, 23, 42, 0.55);
}

[data-theme="light"] .contact-field input:focus,
[data-theme="light"] .contact-field textarea:focus {
    background: #ffffff;
}

.contact-field label {
    position: absolute;
    inset-inline-start: 16px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: var(--text-muted);
    font-size: 0.95rem;
    transition: top 0.2s ease, transform 0.2s ease, font-size 0.2s ease, color 0.2s ease, letter-spacing 0.2s ease;
}

.contact-field textarea + label {
    top: 18px;
    transform: none;
}

.contact-field input:focus + label,
.contact-field input:not(:placeholder-shown) + label,
.contact-field textarea:focus + label,
.contact-field textarea:not(:placeholder-shown) + label {
    top: 8px;
    transform: none;
    font-size: 0.7rem;
    letter-spacing: 0.6px;
    color: var(--accent-light);
}

.contact-field input.is-invalid,
.contact-field textarea.is-invalid {
    border-color: #f87171;
    box-shadow: 0 0 0 4px rgba(248, 113, 113, 0.15);
}

.contact-field input.is-invalid + label,
.contact-field textarea.is-invalid + label {
    color: #f87171;
}

.contact-honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.contact-turnstile-slot {
    margin-top: 22px;
}

.contact-turnstile-slot:empty {
    margin-top: 0;
}

.contact-actions-row {
    margin-top: 28px;
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
}

.contact-submit {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    color: #ffffff;
    border: none;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
    box-shadow: 0 8px 24px var(--accent-glow);
}

.contact-submit-icon {
    width: 18px;
    height: 18px;
    transition: transform 0.2s ease;
}

.contact-submit:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px var(--accent-glow);
}

.contact-submit:hover:not(:disabled) .contact-submit-icon {
    transform: translateX(-3px);
}

html[dir="rtl"] .contact-submit:hover:not(:disabled) .contact-submit-icon {
    transform: translateX(-3px);
}

html:not([dir="rtl"]) .contact-submit:hover:not(:disabled) .contact-submit-icon {
    transform: translateX(3px);
}

.contact-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.contact-submit-spinner {
    display: none;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: contact-spin 0.7s linear infinite;
}

.contact-submit.is-loading .contact-submit-spinner {
    display: inline-block;
}

@keyframes contact-spin {
    to { transform: rotate(360deg); }
}

.contact-helper {
    margin: 0;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.contact-feedback {
    margin: 14px 0 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
    min-height: 1.2em;
}

.contact-feedback.is-success {
    color: #34d399;
}

.contact-feedback.is-error {
    color: #f87171;
}

/* Right-side info panel */
.contact-info-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 8px;
    color: var(--text-primary);
}

.contact-info-subtitle {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin: 0 0 28px;
    line-height: 1.7;
}

.contact-info-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 18px;
    border-radius: 14px;
    background: rgba(15, 23, 42, 0.55);
    border: 1px solid rgba(148, 163, 184, 0.12);
    text-decoration: none;
    transition: border-color 0.25s ease, transform 0.25s ease;
    margin-bottom: 28px;
}

[data-theme="light"] .contact-info-card {
    background: rgba(255, 255, 255, 0.7);
    border-color: rgba(15, 23, 42, 0.08);
}

.contact-info-card:hover {
    border-color: var(--accent-light);
    transform: translateY(-2px);
}

.contact-info-card-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.contact-info-card-label {
    font-size: 0.7rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text-muted);
}

.contact-info-card-value {
    font-size: 0.95rem;
    color: var(--text-primary);
    font-weight: 500;
    word-break: break-all;
}

.contact-info-card-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: rgba(40, 117, 130, 0.18);
    color: var(--accent-light);
    border: 1px solid rgba(40, 117, 130, 0.3);
}

.contact-info-card-icon i {
    width: 18px;
    height: 18px;
}

.contact-channels-label {
    display: block;
    font-size: 0.7rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 14px;
}

.contact-channels-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.contact-channel-row {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 14px;
}

html:not([dir="rtl"]) .contact-channel-row {
    flex-direction: row-reverse;
}

html[dir="rtl"] .contact-channel-row {
    justify-content: flex-start;
}

.contact-channel-actions {
    display: flex;
    gap: 8px;
}

.channel-btn {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: rgba(15, 23, 42, 0.55);
    border: 1px solid rgba(148, 163, 184, 0.12);
    color: var(--text-secondary);
    transition: color 0.25s ease, border-color 0.25s ease, transform 0.25s ease, background 0.25s ease;
}

[data-theme="light"] .channel-btn {
    background: rgba(255, 255, 255, 0.7);
    border-color: rgba(15, 23, 42, 0.08);
}

.channel-btn i,
.channel-btn svg {
    width: 16px;
    height: 16px;
}

.channel-btn:hover {
    color: var(--accent-light);
    border-color: var(--accent-light);
    transform: translateY(-2px);
}

.channel-btn-wa:hover {
    color: #25D366;
    border-color: #25D366;
}

.channel-btn-ig:hover {
    color: #E1306C;
    border-color: #E1306C;
}

.contact-channel-number {
    font-size: 0.95rem;
    color: var(--text-secondary);
    letter-spacing: 0.3px;
    text-decoration: none;
    transition: color 0.25s ease;
}

a.contact-channel-number:hover {
    color: var(--accent-light);
}

@media (max-width: 900px) {
    .contact-shell {
        grid-template-columns: 1fr;
    }
    .contact-info-area {
        border-inline-start: none;
        border-top: 1px solid rgba(148, 163, 184, 0.1);
    }
    [data-theme="light"] .contact-info-area {
        border-top-color: rgba(15, 23, 42, 0.06);
    }
}

@media (max-width: 640px) {
    .contact-form-area,
    .contact-info-area {
        padding: 32px 22px;
    }
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }
    .contact-section {
        padding: 70px 0 90px;
    }
    .contact-shell {
        border-radius: 18px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .scroll-progress,
    .tech-item::before,
    .arch-connector span::after,
    .hero-dust span {
        animation: none !important;
    }
    *,
    *::before,
    *::after {
        transition-duration: 0.01ms !important;
    }
}