/* ============================================
   EKSON Technology - Light Theme Stylesheet
   ============================================ */

/* --- CSS Variables (EKSON Brand Colors) --- */
:root {
    --primary: #0891B2;
    --primary-light: #22D3EE;
    --primary-dark: #0E7490;
    --secondary: #2DD4BF;
    --accent: #FBBF24;
    --white: #FFFFFF;
    --snow: #FAFCFF;
    --ice: #F0F9FF;
    --mist: #E0F2FE;
    --gray-200: #E2E8F0;
    --gray-300: #CBD5E1;
    --gray-400: #94A3B8;
    --gray-500: #64748B;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1E293B;
    --gray-900: #0F172A;
    --text: #1E293B;
    --text-muted: #64748B;
    --text-light: #94A3B8;
    --bg: #FFFFFF;
    --bg-alt: var(--snow);
    --bg-card: #FFFFFF;
    --gradient: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.04);
    --shadow: 0 4px 20px rgba(8, 145, 178, 0.06);
    --shadow-lg: 0 12px 40px rgba(8, 145, 178, 0.10);
    --border: #E8F0FE;
    --radius: 12px;
    --radius-lg: 20px;
    --transition: all 0.25s ease;
    --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-heading: 'Space Grotesk', sans-serif;
}

/* --- Reset & Base --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

::selection {
    background: var(--primary);
    color: white;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover { color: var(--primary-dark); }

img { max-width: 100%; height: auto; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* --- Preloader --- */
#preloader {
    position: fixed;
    inset: 0;
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    transition: opacity 0.4s, visibility 0.4s;
}

#preloader.loaded {
    opacity: 0;
    visibility: hidden;
}

.loader {
    position: relative;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.loader-ring {
    position: absolute;
    border: 2px solid transparent;
    border-radius: 50%;
    animation: loaderSpin 1.5s linear infinite;
}

.loader-ring:nth-child(1) {
    width: 80px; height: 80px;
    border-top-color: var(--primary);
}

.loader-ring:nth-child(2) {
    width: 60px; height: 60px;
    border-right-color: var(--primary-light);
    animation-duration: 1.2s;
    animation-direction: reverse;
}

.loader-ring:nth-child(3) {
    width: 40px; height: 40px;
    border-bottom-color: var(--secondary);
    animation-duration: 0.9s;
}

.loader-text {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 12px;
    color: var(--primary);
    letter-spacing: 2px;
}

@keyframes loaderSpin {
    to { transform: rotate(360deg); }
}

/* --- Navbar --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 14px 0;
    /* solid by default so the bar stays readable over the dark slider at the top */
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    transition: var(--transition);
}

.navbar.scrolled {
    padding: 10px 0;
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.06);
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.navbar-brand {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 38px;
    width: auto;
}

.navbar-menu {
    display: flex;
    align-items: center;
    gap: 8px;
}

.navbar-nav {
    display: flex;
    list-style: none;
    gap: 4px;
}

.nav-link {
    position: relative;
    padding: 8px 16px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-muted);
    transition: var(--transition);
    border-radius: 8px;
}

.nav-link:hover, .nav-link.active {
    color: var(--primary);
}

.nav-indicator {
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--gradient);
    border-radius: 2px;
    transition: width 0.3s;
}

.nav-link:hover .nav-indicator,
.nav-link.active .nav-indicator {
    width: 20px;
}

.btn-nav {
    margin-left: 16px;
    padding: 8px 20px;
    font-size: 0.85rem;
}

/* --- Nav Dropdown --- */
.nav-item.has-dropdown { position: relative; }

.nav-caret {
    font-size: 0.62rem;
    margin-left: 5px;
    transition: transform 0.25s ease;
}

.has-dropdown:hover .nav-caret { transform: rotate(180deg); }

.dropdown-toggle { display: none; }

.nav-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 240px;
    list-style: none;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: var(--shadow-lg);
    padding: 8px;
    margin-top: 12px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
    z-index: 1001;
}

/* invisible bridge so the menu stays open while the cursor travels to it */
.nav-dropdown::before {
    content: '';
    position: absolute;
    top: -14px;
    left: 0;
    right: 0;
    height: 14px;
}

.has-dropdown:hover .nav-dropdown,
.has-dropdown:focus-within .nav-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 14px;
    border-radius: 9px;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text-muted);
    white-space: nowrap;
}

.dropdown-link i {
    width: 18px;
    text-align: center;
    color: var(--primary);
    font-size: 0.95rem;
}

.dropdown-link:hover {
    background: var(--ice);
    color: var(--primary);
}

.dropdown-divider {
    margin-top: 6px;
    padding-top: 6px;
    border-top: 1px solid var(--border);
}

.navbar-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.toggle-line {
    width: 24px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: var(--transition);
}

.navbar-toggle.active .toggle-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.navbar-toggle.active .toggle-line:nth-child(2) {
    opacity: 0;
}
.navbar-toggle.active .toggle-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    font-family: var(--font);
    font-size: 0.95rem;
    font-weight: 600;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary {
    background: var(--gradient);
    color: white;
    box-shadow: 0 4px 15px rgba(14, 116, 144, 0.25);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(14, 116, 144, 0.3);
    color: white;
}

.btn-outline {
    background: transparent;
    color: var(--text);
    border: 2px solid var(--border);
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(14, 116, 144, 0.04);
}

.btn-lg { padding: 16px 36px; font-size: 1rem; }

.btn-product {
    background: var(--product-color, var(--primary));
    color: white;
    width: 100%;
    justify-content: center;
    padding: 14px 28px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.btn-product:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    color: white;
    filter: brightness(1.05);
}

/* --- Hero Section --- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 0 80px;
    background: var(--white);
    overflow: hidden;
}

.hero-gradient {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 30%, rgba(8, 145, 178, 0.04) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 70%, rgba(34, 211, 238, 0.03) 0%, transparent 60%);
    pointer-events: none;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 20px;
    background: var(--ice);
    border: 1px solid var(--mist);
    border-radius: 50px;
    font-size: 0.85rem;
    color: var(--primary);
    margin-bottom: 24px;
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: var(--secondary);
    border-radius: 50%;
    animation: badge-pulse 2.4s ease-in-out infinite;
}
@keyframes badge-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(45, 212, 191, 0.45); }
    50%      { box-shadow: 0 0 0 5px rgba(45, 212, 191, 0); }
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 5vw, 3.8rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 24px;
    color: var(--gray-900);
}

.gradient-text {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 520px;
    margin-bottom: 36px;
    line-height: 1.8;
}

.hero-cta {
    display: flex;
    gap: 16px;
    margin-bottom: 60px;
}

.hero-stats {
    display: flex;
    gap: 48px;
}

.stat-item { text-align: left; }

.stat-number {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--gray-900);
}

.stat-suffix {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

.stat-label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 4px;
}

/* Hero Visual */
.hero-visual {
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-image {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.hero-image img {
    width: 100%;
    height: 480px;
    object-fit: cover;
    display: block;
}

.hero-image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(14, 116, 144, 0.1) 0%, transparent 60%);
}

/* Hero typewriter headline. The hidden sizer holds the complete final title
   (with the longest cycling word), so the typed layer rendering on top never
   changes the section height mid-type. */
.hero-title-type { position: relative; }

.hero-title-size { visibility: hidden; }

.hero-title-live {
    position: absolute;
    inset: 0;
}

.hero-typed { color: var(--primary); }

.hero-caret {
    display: inline-block;
    width: 3px;
    height: 0.85em;
    margin-left: 3px;
    background: var(--secondary);
    vertical-align: -0.06em;
    animation: heroCaret 0.9s steps(1) infinite;
}
@keyframes heroCaret { 50% { opacity: 0; } }

/* Why EKSON interactive panel */
.why-panel {
    width: 100%;
    max-width: 480px;
    background: var(--white);
    border: 1px solid var(--mist);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 32px;
    position: relative;
    transition: transform 0.15s ease-out;
    will-change: transform;
}

.why-panel::before {
    content: '';
    position: absolute;
    top: -60px;
    right: -60px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(34, 211, 238, 0.14), transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.why-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 20px;
}

/* Cards stack in the same grid cell; the grid sizes to the tallest one,
   so switching never causes a height jump. */
.why-cards { display: grid; }

.why-card {
    grid-area: 1 / 1;
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.45s ease, transform 0.45s ease;
    pointer-events: none;
}

.why-card[hidden] { visibility: hidden; display: block; }

.why-card.is-active {
    opacity: 1;
    transform: none;
    pointer-events: auto;
}

.why-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    background: var(--ice);
    color: var(--primary);
    font-size: 1.4rem;
    margin-bottom: 18px;
}

.why-card h3 {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    color: var(--gray-900);
    margin-bottom: 10px;
}

.why-card p {
    color: var(--text-muted);
    line-height: 1.7;
}

.why-tabs {
    display: flex;
    gap: 10px;
    margin-top: 26px;
}

.why-tab {
    flex: 1;
    height: 44px;
    border: 1px solid var(--mist);
    border-radius: 12px;
    background: var(--white);
    color: var(--text-muted);
    font-size: 1rem;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: color 0.3s ease, border-color 0.3s ease;
}

.why-tab i { position: relative; z-index: 1; }

.why-tab-fill {
    position: absolute;
    inset: 0;
    background: var(--ice);
    transform: scaleX(0);
    transform-origin: left;
}

.why-tab:hover { color: var(--primary); }

.why-tab.is-active {
    color: var(--primary);
    border-color: var(--primary-light);
}

/* The fill doubles as the auto-advance timer (JS listens for animationend). */
.why-tab.is-active .why-tab-fill {
    animation: whyFill 5s linear forwards;
}
@keyframes whyFill { to { transform: scaleX(1); } }

/* Hovering the panel pauses both the fill and the auto-advance. */
.why-panel:hover .why-tab.is-active .why-tab-fill {
    animation-play-state: paused;
}

@media (prefers-reduced-motion: reduce) {
    .hero-caret { animation: none; }
    .why-tab.is-active .why-tab-fill { animation: none; transform: scaleX(1); }
    .why-panel { transition: none; }
}

.hero-scroll {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.scroll-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--text-light);
    font-size: 0.75rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--primary-light), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

/* --- Sections Common --- */
.section {
    padding: 100px 0;
    position: relative;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.section-tag {
    display: inline-block;
    padding: 6px 16px;
    background: var(--ice);
    border: 1px solid var(--mist);
    border-radius: 50px;
    font-size: 1.0rem;
    font-weight: 600;
    color: var(--primary);
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--gray-900);
}

.section-subtitle {
    font-size: 1.05rem;
    color: var(--text-muted);
    line-height: 1.8;
}

/* --- About Section --- */
.about-section {
    background: var(--ice);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 80px;
}

.about-text p {
    color: var(--text-muted);
    margin-bottom: 20px;
    font-size: 1.05rem;
    line-height: 1.8;
}

.about-highlights {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 30px;
}

.highlight-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px;
    background: linear-gradient(135deg, #FFFFFF 0%, #F0FDFA 100%);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: var(--transition);
}

.highlight-item:hover {
    border-color: var(--mist);
    background: linear-gradient(135deg, #FFFFFF 0%, #E0F9F4 100%);
    box-shadow: var(--shadow);
}

.highlight-icon {
    flex: 0 0 auto;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(45, 212, 191, 0.14);
    color: var(--primary);
    border-radius: 11px;
    font-size: 1.05rem;
}

.highlight-item strong {
    display: block;
    margin-bottom: 2px;
    color: var(--gray-800);
}

.highlight-item p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 0;
}

.about-image {
    position: relative;
}

.image-frame {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.about-image img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    border-radius: var(--radius-lg);
    display: block;
}

.image-placeholder {
    aspect-ratio: 4/3;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
}

.placeholder-content {
    text-align: center;
    color: var(--text-muted);
}

.placeholder-content i {
    font-size: 4rem;
    display: block;
    margin-bottom: 16px;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.placeholder-content span {
    font-size: 1.1rem;
    font-weight: 500;
}

.image-decoration {
    position: absolute;
    border-radius: 50%;
    z-index: -1;
}

.dec-1 {
    width: 200px; height: 200px;
    background: rgba(14, 116, 144, 0.06);
    top: -30px; right: -30px;
}

.dec-2 {
    width: 150px; height: 150px;
    background: rgba(20, 184, 166, 0.05);
    bottom: -20px; left: -20px;
}

/* --- Values --- */
.values-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    text-align: center;
    margin-bottom: 40px;
    font-weight: 600;
    color: var(--gray-800);
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

.value-card {
    text-align: center;
    padding: 30px 20px;
    background: linear-gradient(145deg, #FFFFFF 0%, #F0F9FF 100%);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: var(--transition);
}

.value-card:hover {
    transform: translateY(-3px);
    border-color: var(--mist);
    background: linear-gradient(145deg, #FFFFFF 0%, #E0F2FE 100%);
    box-shadow: var(--shadow);
}

.value-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    background: var(--gradient);
    border-radius: 12px;
    font-size: 1.2rem;
    color: white;
}

.value-card h4 {
    font-size: 0.95rem;
    margin-bottom: 8px;
    color: var(--gray-800);
}

.value-card p {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* --- Services Section --- */
.services-section {
    background: var(--white);
    position: relative;
}

.section-bg-pattern {
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(rgba(8, 145, 178, 0.04) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
}

/* Service cards — 2×2 grid, icon tiles + outlined index numbers */
.svc-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
}

.svc-card {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 34px 30px 28px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    color: inherit;
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.svc-card:hover {
    transform: translateY(-6px);
    border-color: var(--mist);
    box-shadow: 0 18px 48px rgba(8, 145, 178, 0.14);
    color: inherit;
}

/* soft cyan glow blooming from the corner on hover */
.svc-card::before {
    content: '';
    position: absolute;
    top: -45%;
    right: -20%;
    width: 75%;
    aspect-ratio: 1;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(34, 211, 238, 0.16) 0%, transparent 68%);
    opacity: 0;
    transition: opacity 0.45s ease;
    pointer-events: none;
}

.svc-card:hover::before { opacity: 1; }

/* gradient accent line sweeping in along the top */
.svc-card::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--gradient);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.svc-card:hover::after { transform: scaleX(1); }

.svc-icon {
    width: 58px;
    height: 58px;
    display: flex;
    align-items: center;
    justify-content: center;
    /* background: var(--gradient); */
    border-radius: 16px;
    font-size: 1.85rem;
    color: #1ac0dc;
    /* box-shadow: 0 8px 22px rgba(8, 145, 178, 0.28); */
    margin-bottom: 22px;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.svc-card:hover .svc-icon {
    transform: translateY(-4px) rotate(-6deg) scale(1.06);
    box-shadow: 0 12px 28px rgba(8, 145, 178, 0.4);
}

.svc-card h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    margin-bottom: 10px;
    color: var(--gray-800);
    transition: color 0.25s ease;
}

.svc-card:hover h3 { color: var(--primary); }

.svc-card p {
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.7;
    margin-bottom: 18px;
    flex-grow: 1;
}

.svc-link {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.svc-link i { transition: transform 0.3s ease; }
.svc-card:hover .svc-link i { transform: translateX(5px); }

@media (max-width: 760px) {
    .svc-grid { grid-template-columns: 1fr; }
}

/* --- Products Section --- */
.products-section {
    background: var(--snow);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

.product-card {
    padding: 40px;
    background: linear-gradient(135deg, #FFFFFF 0%, #F0FDFA 100%);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.product-card::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 250px;
    height: 250px;
    background: var(--product-color);
    opacity: 0.03;
    border-radius: 50%;
    transition: var(--transition);
}

.product-card:hover {
    transform: translateY(-4px);
    border-color: var(--mist);
    background: linear-gradient(135deg, #FFFFFF 0%, #E0F9F4 100%);
    box-shadow: var(--shadow-lg);
}

.product-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.product-icon-wrap {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--product-color);
    border-radius: 16px;
    font-size: 1.6rem;
    color: white;
    box-shadow: 0 6px 20px color-mix(in srgb, var(--product-color) 25%, transparent);
}

.product-badge {
    padding: 4px 12px;
    background: rgba(20, 184, 166, 0.08);
    color: var(--secondary);
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 50px;
    border: 1px solid rgba(20, 184, 166, 0.15);
}

.product-name {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--gray-900);
}

.product-tagline {
    color: var(--product-color);
    font-size: 0.95rem;
    font-weight: 500;
    margin-bottom: 16px;
}

.product-description {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 24px;
}

.product-features {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 28px;
}

.feature-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: linear-gradient(135deg, #FFFFFF 0%, #F0FDFA 100%);
    border: 1px solid var(--mist);
    border-radius: 50px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.feature-tag i {
    color: var(--secondary);
    font-size: 0.7rem;
}

/* --- Contact Section --- */
.contact-section {
    background: var(--white);
    position: relative;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 48px;
    align-items: start;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-card {
    padding: 28px;
    background: linear-gradient(135deg, #FFFFFF 0%, #F0F9FF 100%);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: var(--transition);
}

.contact-card:hover {
    border-color: var(--mist);
    background: linear-gradient(135deg, #FFFFFF 0%, #E0F2FE 100%);
    box-shadow: var(--shadow);
}

.contact-icon {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient);
    border-radius: 12px;
    font-size: 1.1rem;
    color: white;
    margin-bottom: 16px;
}

.contact-card h4 {
    font-size: 1rem;
    margin-bottom: 6px;
    color: var(--gray-800);
}

.contact-card p,
.contact-card a {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Contact Form */
.contact-form {
    padding: 40px;
    background: linear-gradient(145deg, #FFFFFF 0%, #F0F9FF 100%);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}

.form-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-field {
    position: relative;
    margin-bottom: 20px;
}

.form-group .form-field { margin-bottom: 0; }

.form-field input,
.form-field textarea {
    width: 100%;
    padding: 16px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    font-family: var(--font);
    font-size: 0.95rem;
    transition: var(--transition);
    outline: none;
}

.form-field input:focus,
.form-field textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(14, 116, 144, 0.08);
}

.form-field label {
    position: absolute;
    top: 16px;
    left: 16px;
    color: var(--text-light);
    font-size: 0.95rem;
    pointer-events: none;
    transition: var(--transition);
}

.form-field input:focus + label,
.form-field input:not(:placeholder-shown) + label,
.form-field textarea:focus + label,
.form-field textarea:not(:placeholder-shown) + label {
    top: -10px;
    left: 12px;
    font-size: 0.75rem;
    color: var(--primary);
    background: var(--snow);
    padding: 0 6px;
}

.field-line {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient);
    transition: width 0.3s;
    border-radius: 0 0 var(--radius) var(--radius);
}

.form-field input:focus ~ .field-line,
.form-field textarea:focus ~ .field-line {
    width: 100%;
}

.btn-submit {
    width: 100%;
    justify-content: center;
    margin-top: 8px;
}

.btn-loader {
    display: none;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: loaderSpin 0.8s linear infinite;
}

.btn-submit.loading .btn-loader { display: block; }
.btn-submit.loading span,
.btn-submit.loading i { display: none; }

.cf-turnstile { margin-bottom: 20px; }

/* --- Footer --- */
.footer {
    position: relative;
    background: #1E3A4F;
    color: #CBD5E1;
    padding: 80px 0 0;
}

.footer-wave {
    position: absolute;
    top: -1px;
    left: 0;
    right: 0;
    color: var(--white);
}

.footer-wave svg {
    display: block;
    width: 100%;
    height: 60px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 40px;
    padding-bottom: 50px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-brand {
    display: inline-block;
    margin-bottom: 16px;
}

.footer-logo-img {
    height: 32px;
    width: auto;
    filter: brightness(0) invert(1);
}

.footer-about p {
    color: var(--gray-400);
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 20px;
}

.footer-social {
    display: flex;
    gap: 12px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    color: var(--gray-400);
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
    transform: translateY(-2px);
}

.footer-col h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--white);
}

.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }

.footer-col a {
    color: var(--gray-400);
    font-size: 0.9rem;
    transition: var(--transition);
}

.footer-col a:hover {
    color: var(--primary-light);
    padding-left: 4px;
}

.footer-contact li {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.footer-contact i {
    color: var(--primary-light);
    margin-top: 4px;
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 0;
    font-size: 0.85rem;
    color: var(--gray-500);
}

.footer-bottom-links {
    display: flex;
    gap: 24px;
}

.footer-bottom-links a {
    color: var(--gray-500);
    font-size: 0.85rem;
}

.footer-bottom-links a:hover { color: var(--primary-light); }

/* --- Back to Top --- */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    background: var(--gradient);
    border: none;
    border-radius: 14px;
    color: white;
    font-size: 1.1rem;
    cursor: pointer;
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(14, 116, 144, 0.25);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-2px);
}

/* --- Animations (minimal) --- */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes scrollPulse {
    0%, 100% { opacity: 1; height: 40px; }
    50% { opacity: 0.3; height: 25px; }
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero-subtitle { margin: 0 auto 36px; }
    .hero-cta { justify-content: center; }
    .hero-stats { justify-content: center; }
    .hero-visual { margin-top: 40px; }
    .why-panel { text-align: left; margin: 0 auto; }
    /* stacked layout leaves no clear floor for the indicator — it lands on the panel */
    .hero-scroll { display: none; }
    .about-grid { grid-template-columns: 1fr; }
    .about-image { order: -1; }
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .values-grid { grid-template-columns: repeat(3, 1fr); }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .navbar-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 320px;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        padding: 80px 30px 30px;
        transition: right 0.3s ease;
        box-shadow: -10px 0 40px rgba(0, 0, 0, 0.08);
    }

    .navbar-menu.active { right: 0; }

    .navbar-nav {
        flex-direction: column;
        gap: 8px;
        width: 100%;
    }

    .nav-link {
        padding: 12px 16px;
        font-size: 1rem;
    }

    /* Dropdown becomes an inline accordion in the mobile panel */
    .nav-item.has-dropdown { width: 100%; position: relative; }
    .nav-caret { display: none; }

    .dropdown-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        position: absolute;
        top: 2px;
        right: 0;
        width: 44px;
        height: 44px;
        background: none;
        border: none;
        color: var(--text-muted);
        cursor: pointer;
        font-size: 0.8rem;
    }

    .dropdown-toggle i { transition: transform 0.25s ease; }
    .nav-item.open .dropdown-toggle i { transform: rotate(180deg); }
    .nav-item.open .dropdown-toggle { color: var(--primary); }

    .nav-dropdown {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        background: transparent;
        min-width: 0;
        margin: 0;
        padding: 0 0 0 14px;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    .nav-item.open .nav-dropdown { max-height: 360px; }
    .nav-dropdown::before { display: none; }
    .dropdown-divider { margin-top: 4px; padding-top: 8px; }

    .btn-nav {
        margin-left: 0;
        margin-top: 16px;
        width: 100%;
        justify-content: center;
    }

    .navbar-toggle { display: flex; }

    .section { padding: 70px 0; }
    .hero { padding: 100px 0 60px; }
    .hero-title { font-size: 2rem; }
    .hero-stats { flex-direction: column; gap: 16px; }
    .hero-image img { height: 300px; }
    .why-panel { padding: 24px; }

    .services-grid { grid-template-columns: 1fr; }
    .products-grid { grid-template-columns: 1fr; }
    .values-grid { grid-template-columns: repeat(2, 1fr); }
    .contact-grid { grid-template-columns: 1fr; }
    .form-group { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }

    .hero-cta { flex-direction: column; align-items: center; }
    .product-card { padding: 28px; }
    .contact-form { padding: 24px; }
}

/* Overlay for mobile menu */
.nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* ============================================
   Solutions Page
   ============================================ */
.solutions-hero {
    padding-top: 140px;
    background: var(--ice);
    overflow: hidden;
}

.solutions-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
    margin-top: 8px;
}

.solutions-nav-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 22px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text);
    box-shadow: var(--shadow-sm);
}

.solutions-nav-link i { color: var(--primary); }

.solutions-nav-link:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

/* Solution blocks */
.solution-block { scroll-margin-top: 90px; }
.solution-block--alt { background: var(--snow); }

.solution-head {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 28px;
    align-items: start;
    max-width: 900px;
    margin: 0 auto 50px;
}

.solution-head-icon {
    width: 72px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient);
    border-radius: 18px;
    font-size: 1.8rem;
    color: white;
    box-shadow: var(--shadow);
    flex-shrink: 0;
}

.solution-head-text .section-tag { margin-bottom: 12px; }
.solution-head-text .section-title { font-size: clamp(1.6rem, 3vw, 2.2rem); }

.solution-caps {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

.cap-tag {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 14px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 50px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text);
}

.cap-tag i { color: var(--secondary); font-size: 0.75rem; }

/* Sample cards */
.sample-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.sample-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
}

.sample-card:hover {
    transform: translateY(-6px);
    border-color: var(--mist);
    box-shadow: var(--shadow-lg);
}

.sample-media {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--ice);
}

.sample-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.sample-card:hover .sample-media img { transform: scale(1.06); }

.sample-body {
    padding: 22px 22px 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.sample-body h3 {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    margin-bottom: 8px;
    color: var(--gray-800);
}

.sample-body p {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 16px;
    flex-grow: 1;
}

.sample-link {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.sample-link:hover { gap: 10px; }

/* Solutions CTA */
.solutions-cta { background: var(--ice); }

.solutions-cta-inner {
    text-align: center;
    max-width: 640px;
    margin: 0 auto;
    padding: 56px 40px;
    background: var(--gradient);
    border-radius: var(--radius-lg);
    color: white;
    box-shadow: var(--shadow-lg);
}

.solutions-cta-inner h2 {
    font-family: var(--font-heading);
    font-size: clamp(1.6rem, 3vw, 2.1rem);
    margin-bottom: 12px;
}

.solutions-cta-inner p {
    opacity: 0.92;
    margin-bottom: 28px;
    font-size: 1.05rem;
}

.solutions-cta-inner .btn-primary {
    background: var(--white);
    color: var(--primary-dark);
}

.solutions-cta-inner .btn-primary:hover { color: var(--primary-dark); }

@media (max-width: 1024px) {
    .sample-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .solutions-hero { padding-top: 120px; }
    .solution-head {
        grid-template-columns: 1fr;
        gap: 18px;
    }
    .sample-grid { grid-template-columns: 1fr; }
}

/* ============================================
   Projects (home section + cards)
   ============================================ */
.projects-section { background: var(--snow); }

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.proj-card {
    display: flex;
    flex-direction: column;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    color: inherit;
    transition: var(--transition);
}

.proj-card:hover {
    transform: translateY(-6px);
    border-color: var(--mist);
    box-shadow: var(--shadow-lg);
    color: inherit;
}

.proj-media {
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--ice);
}

.projects-cta {
    text-align: center;
    margin-top: 48px;
}

.proj-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.proj-card:hover .proj-media img { transform: scale(1.06); }

.proj-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.proj-body h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    margin-bottom: 10px;
    color: var(--gray-800);
}

.proj-body p {
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.7;
    margin-bottom: 18px;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.proj-link {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: auto;
}

.proj-card:hover .proj-link { gap: 10px; }

/* --- Individual project page --- */
.project-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 28px;
}

.project-back:hover { color: var(--primary); gap: 12px; }

.project-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.project-detail-media {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.project-detail-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.project-detail-content .section-tag { margin-bottom: 16px; }
.project-detail-content .section-title { text-align: left; }

.project-detail-desc {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.8;
    margin: 20px 0 28px;
}

@media (max-width: 1024px) {
    .projects-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
    .project-detail-grid { grid-template-columns: 1fr; gap: 30px; }
    .project-detail-media { order: -1; }
}

@media (max-width: 768px) {
    .projects-grid { grid-template-columns: 1fr; }
}

/* ============================================
   Diagonal Slider (ported from LMS landing page)
   ============================================ */
.dslider {
    position: relative;
    /* Sit below the fixed navbar and fill the rest of the viewport, so the
       slider reads as a clean full-height top section (no peek of the next
       section, top not hidden behind the navbar). svh avoids mobile-chrome overflow. */
    margin-top: 78px;
    height: calc(100vh - 78px);
    height: calc(100svh - 78px);
    min-height: 460px;
    overflow: hidden;
    background: #0f172a;
}
.dslider-track {
    display: flex;
    height: 100%;
    transform: skewX(-9deg); /* skew the whole strip so panel edges are diagonal */
    margin: 0 -3.5%;          /* small bleed to hide the skewed corners */
    width: 107%;
}
.dpanel {
    position: relative;
    flex: 0 1 14.5%;
    overflow: hidden;
    border-left: 3px solid rgba(255, 255, 255, .9);
    cursor: pointer;
}
.dpanel:first-child { border-left: none; }
.dpanel.is-active { flex-basis: 42%; }

/* background image, counter-skewed so it stays straight */
.dpanel::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--img);
    background-size: cover;
    background-position: center;
    transform: skewX(9deg) scale(1.25);
    transition: filter .6s ease, transform .6s ease;
    filter: brightness(.65) saturate(1.1);
}
.dpanel.is-active::before { filter: brightness(.85) saturate(1.2); transform: skewX(9deg) scale(1.1); }

.dpanel::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(to bottom,
        rgba(0, 0, 0, 0) 0%,
        rgba(0, 0, 0, 0) 35%,
        rgba(0, 0, 0, .55) 70%,
        rgba(0, 0, 0, .9) 100%);
    pointer-events: none;
}
.dpanel-inner {
    position: relative;
    z-index: 2;
    height: 100%;
    transform: skewX(9deg); /* counter-skew the content so text stays upright */
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 0 10% 12%;
    color: #fff;
}
.dpanel-content {
    max-width: 360px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity .5s ease .15s, transform .5s ease .15s;
    pointer-events: none;
}
.dpanel.is-active .dpanel-content { opacity: 1; transform: translateY(0); pointer-events: auto; }
.dpanel-tag {
    display: inline-block;
    font-size: .75rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
    background: rgba(255, 255, 255, .2);
    padding: 5px 12px; border-radius: 999px;
    backdrop-filter: blur(4px);
    color: #fff;
}
.dpanel-content h2 {
    font-family: var(--font-heading);
    font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 800; margin: 14px 0 8px;
    color: #fff;
}
.dpanel-content p { font-size: 1.05rem; opacity: .9; margin-bottom: 20px; line-height: 1.6; }
.dpanel-content .btn { background: #ffffff00; color: #ffffff; box-shadow: 0 6px 20px rgba(0,0,0,.25); border: 3px solid #ffffff; }
.dpanel-content .btn:hover { background: #e2e8f0; color: #0f172a; transform: translateY(-1px); }

.dslider-dots {
    position: absolute;
    bottom: 22px; left: 50%; transform: translateX(-50%);
    display: flex; gap: 10px; z-index: 5;
}
.dslider-dots button {
    width: 12px; height: 12px; border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, .7);
    background: transparent; cursor: pointer; padding: 0;
    transition: background .3s, transform .3s;
}
.dslider-dots button.active { background: #fff; transform: scale(1.25); }

@media (max-width: 640px) {
    .dslider {
        margin-top: 66px;
        height: calc(100vh - 66px);
        height: calc(100svh - 66px);
        min-height: 420px;
    }
    .dpanel-content h2 { font-size: 1.4rem; }
    .dpanel-content p { display: none; }
}

/* ============================================
   Technology / Innovation — scroll-driven video with numbers
   ============================================ */
.tech-scroll {
    position: relative;
    /* Scroll track: the inner panel sticks while you scroll through this.
       ~1.4x viewport keeps it short so it finishes quickly. */
    height: 250vh;
    background: linear-gradient(180deg, #200b13 0%, #0f172a 55%, #0b1120 100%);
}
.tech-sticky {
    position: sticky;
    top: 0;
    height: 100vh;
    height: 100svh;
    display: flex;
    flex-direction: column;
    justify-content: flex-end; /* numbers sit at the bottom, video behind */
    overflow: hidden;
    background: #0a0f1e;
}

/* Background video, scrubbed by scroll progress */
.tech-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
    z-index: 0;
}
/* Vertical black gradient so the numbers stay readable over the video */
.tech-video-shade {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 100%;
    background: linear-gradient(180deg, rgba(3, 3, 3, 0) 0%, rgba(0, 0, 0, 0.196) 40%, rgba(0, 0, 0, .97) 100%);
    pointer-events: none;
    z-index: 1;
}
.tech-video-loader {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 4;
    background: radial-gradient(ellipse 92% 90% at 50% 45%, #12283f 0%, #0a0f1e 72%);
    transition: opacity .5s ease, visibility .5s ease;
}
.tech-video-loader.is-hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.tech-spinner {
    width: 42px; height: 42px;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, .15);
    border-top-color: var(--primary-light);
    animation: tech-spin .8s linear infinite;
}
.tech-loader-fail { color: rgba(255, 255, 255, .5); font-size: .9rem; }
@keyframes tech-spin { to { transform: rotate(360deg); } }

/* Bottom region — the animated numbers, centered over the gradient */
.tech-copy {
    position: relative;
    z-index: 2;
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    text-align: center;
    padding: 0 clamp(1rem, 5vw, 4rem) clamp(1.5rem, 5vh, 3.5rem);
    color: #fff;
}
.tech-copy .section-tag {
    align-self: center;
    margin-bottom: 1rem;
    background: rgba(34, 211, 238, .12);
    color: var(--primary-light);
    border: 1px solid rgba(34, 211, 238, .25);
}
.tech-stats-heading {
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 2.6vw, 2.4rem);
    font-weight: 800;
    line-height: 1.15;
    color: #fff;
    margin: 0 auto 1.75rem;
    max-width: 34rem;
}
.tech-stats {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 1.5rem 1.25rem;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
}
.tech-stat {
    position: relative;
}
.tech-stat-value {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 2px;
    font-family: var(--font-heading);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.02em;
}
.tech-stat-num,
.tech-stat-suffix {
    font-size: clamp(1.9rem, 2.8vw, 3rem);
    background: #fff;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    /* tabular figures keep the number from jittering as it counts up */
    font-variant-numeric: tabular-nums;
}
.tech-stat-suffix { font-size: clamp(1.3rem, 2vw, 2rem); }
.tech-stat-label {
    margin-top: 0.55rem;
    font-size: clamp(0.72rem, 0.9vw, 0.9rem);
    font-weight: 500;
    letter-spacing: 0.03em;
    color: rgba(255, 255, 255, .62);
}
.tech-progress {
    margin-top: 1.75rem;
    width: 100%;
    max-width: 34rem;
    height: 3px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .12);
    overflow: hidden;
}
.tech-progress-bar {
    display: block;
    height: 100%;
    width: 100%;
    transform: scaleX(0);
    transform-origin: left center;
    background: var(--gradient);
    transition: transform .15s linear;
}

@media (max-width: 860px) {
    .tech-stats-heading { margin-bottom: 1.25rem; }
    /* Wrap the number bar to 3 columns on tablets, 2 on phones */
    .tech-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem 1rem; }
}
@media (max-width: 460px) {
    .tech-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ============================================
   Robotics — interactive 3D arm (three.js)
   ============================================ */
.robot-section {
    position: relative;
    height: 92vh;
    min-height: 560px;
    overflow: hidden;
    background: radial-gradient(ellipse 92% 70% at 50% 100%, #12283f 0%, #0a0f1e 75%);
}
.robot-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    touch-action: pan-y; /* keep page scroll working over the canvas on touch */
}
.robot-copy {
    position: absolute;
    top: clamp(2rem, 7vh, 4.5rem);
    left: 0; right: 0;
    text-align: center;
    color: #fff;
    z-index: 2;
    pointer-events: none;
    padding: 0 1.5rem;
}
.robot-copy .section-tag {
    background: rgba(34, 211, 238, .12);
    color: var(--primary-light);
    border: 1px solid rgba(34, 211, 238, .25);
}
.robot-heading {
    font-family: var(--font-heading);
    font-size: clamp(1.6rem, 3vw, 2.6rem);
    font-weight: 800;
    line-height: 1.15;
    margin: 1rem auto 0.6rem;
}
.robot-sub {
    color: rgba(255, 255, 255, .6);
    font-size: clamp(0.9rem, 1.1vw, 1.05rem);
    max-width: 38rem;
    margin: 0 auto;
}
.robot-spark {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    pointer-events: none;
    z-index: 1;
}
.robot-hint {
    position: absolute;
    left: 0; right: 0;
    bottom: clamp(1rem, 3.5vh, 2.25rem);
    text-align: center;
    color: rgba(255, 255, 255, .38);
    font-size: 0.82rem;
    letter-spacing: 0.04em;
    z-index: 2;
    pointer-events: none;
}
.robot-loader {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 4;
    background: radial-gradient(ellipse 92% 90% at 50% 45%, #12283f 0%, #0a0f1e 72%);
    transition: opacity .5s ease, visibility .5s ease;
}
.robot-loader.is-hidden { opacity: 0; visibility: hidden; pointer-events: none; }

/* ============================================
   Events
   ============================================ */
.events-section { background: var(--ice); }

/* image-count badge on event cards */
.proj-media { position: relative; }
.proj-count {
    position: absolute;
    top: 12px;
    right: 12px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--white);
    background: rgba(15, 23, 42, 0.55);
    padding: 5px 10px;
    border-radius: 50px;
    backdrop-filter: blur(4px);
}

/* event detail */
.event-detail-head { max-width: 760px; margin: 0 auto 44px; text-align: center; }
.event-detail-head .section-title { text-align: center; }
.event-detail-desc {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.8;
    margin-top: 18px;
}
.event-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}
.event-gallery-item {
    margin: 0;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--ice);
    box-shadow: var(--shadow);
    aspect-ratio: 4 / 3;
}
.event-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.event-gallery-item:hover img { transform: scale(1.05); }

/* ============================================
   Testimonials
   ============================================ */
.testimonials-section { background: var(--snow); }

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.testimonial-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 30px 28px;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
}

.testimonial-stars { color: var(--accent); font-size: 0.85rem; letter-spacing: 2px; margin-bottom: 16px; }

.testimonial-quote {
    color: var(--text);
    font-size: 1rem;
    line-height: 1.75;
    flex-grow: 1;
    margin-bottom: 22px;
}

.testimonial-author { display: flex; align-items: center; gap: 14px; }

.testimonial-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.testimonial-avatar {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--gradient);
    color: #fff;
    overflow: hidden;
    font-weight: 700;
    font-family: var(--font-heading);
    font-size: 0.95rem;
}

.testimonial-meta { display: flex; flex-direction: column; }
.testimonial-meta strong { color: var(--gray-800); font-size: 0.95rem; }
.testimonial-meta span { color: var(--text-muted); font-size: 0.82rem; }

/* ============================================
   Trusted by / Partners
   ============================================ */
.partners-section { padding: 56px 0; background: var(--white); border-top: 1px solid var(--border); }

.partners-label {
    text-align: center;
    color: var(--text-light);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 28px;
}

/* Single line: no wrapping. When the logos overflow, JS turns the row
   into an auto-scrolling marquee (.is-marquee) with edge fades; the
   scrollbar stays hidden. The auto margins on the first/last card
   center the row when everything fits without clipping it mid-scroll. */
.partners-scroller { position: relative; }

.partners-row {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 24px;
    overflow-x: auto;
    padding: 6px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.partners-row::-webkit-scrollbar { display: none; }

/* Soft white fades over the edges while the marquee is running */
.partners-scroller::before,
.partners-scroller::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 70px;
    z-index: 1;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.partners-scroller::before {
    left: 0;
    background: linear-gradient(to right, var(--white), transparent);
}
.partners-scroller::after {
    right: 0;
    background: linear-gradient(to left, var(--white), transparent);
}
.partners-scroller.is-marquee::before,
.partners-scroller.is-marquee::after { opacity: 1; }

.partner-card:first-child { margin-left: auto; }
.partner-card:last-child { margin-right: auto; }

.partner-card {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 240px;
    height: 120px;
    padding: 22px 30px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: var(--transition);
}

.partner-card img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: grayscale(1);
    opacity: 0.65;
    transition: var(--transition);
}

.partner-card:hover {
    border-color: var(--mist);
    box-shadow: var(--shadow);
    transform: translateY(-3px);
}

.partner-card:hover img {
    filter: grayscale(0);
    opacity: 1;
}

@media (max-width: 1024px) {
    .testimonials-grid { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; }
    .event-gallery { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .event-gallery { grid-template-columns: 1fr; }
    .partners-row { gap: 16px; }
    .partner-card { width: 200px; height: 100px; padding: 18px 24px; }
    .partner-logo { font-size: 0.98rem; }
}
