/* ==================== CSS VARIABLES ==================== */
:root {
    /* Colors - Dark Navy Base */
    --color-navy: #0a0f1a;
    --color-navy-light: #111827;
    --color-navy-lighter: #1e293b;

    /* Colors - Light */
    --color-light: #f8fafc;
    --color-light-secondary: #f1f5f9;
    --color-light-tertiary: #e2e8f0;

    /* Colors - Vastiq Accent */
    --color-green: #028a0e;
    --color-green-dark: #1a235c;
    --color-green-light: rgba(2, 138, 14, 0.12);
    --color-green-glow: rgba(2, 138, 14, 0.3);

    /* Text Colors */
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --text-tertiary: rgba(255, 255, 255, 0.5);
    --text-dark: #0f172a;
    --text-dark-secondary: #334155;
    --text-dark-tertiary: #64748b;
    
    /* Borders */
    --border-light: rgba(255, 255, 255, 0.1);
    --border-dark: rgba(15, 23, 42, 0.1);
    
    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.15);
    --shadow-glow: 0 0 40px var(--color-green-glow);
    --shadow-card: 0 25px 50px -12px rgba(0, 0, 0, 0.35);
    
/* Typography */
--font-heading: 'Kumbh Sans', Helvetica, Arial, sans-serif;
--font-body: 'Kumbh Sans', Helvetica, Arial, sans-serif;
--font: var(--font-body);
    
    /* Spacing */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --space-20: 5rem;
    --space-24: 3rem;
    --space-32: 8rem;
    
    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
    --transition-smooth: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    
    /* Z-index */
    --z-header: 1000;
    --z-dropdown: 100;
}
/* ==================== RESET & BASE ==================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: auto;
    font-size: 16px;
}

html.lenis,
html.lenis body {
    height: auto;
}

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

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


html, body, body * {
    font-family: 'Kumbh Sans', Helvetica, Arial, sans-serif;
}

h1, h2, h3, h4, h5, h6,
.hero-title,
.section-title,
.about-title,
.solution-card-title,
.industry-title,
.portfolio-title,
.case-study-title,
.industries-serve__title,
.industry-name,
.our-work-heading,
.work-modal-title {
    font-family: 'Kumbh Sans', Helvetica, Arial, sans-serif !important;
}

body {
    font-family: var(--font-body);
    font-weight: 400;
    line-height: 1.65;
    color: var(--text-dark);
    background-color: var(--color-light);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
/* ==================== TYPOGRAPHY STANDARDIZATION ==================== */
h1, h2, h3, h4, h5, h6,
.hero-title,
.section-title,
.about-title,
.solution-card-title,
.industry-title,
.portfolio-title,
.case-study-title {
    font-family: var(--font-heading);
}

p,
.hero-subtitle,
.about-text,
.solution-card-desc,
.industry-desc,
.portfolio-desc,
.case-study-desc,
.vast-ai-intro,
.contact-text,
.nav-link,
.nav-mobile-link,
.dropdown-link,
.submenu-link,
.nav-mobile-dropdown-link,
.nav-mobile-nested-link,
.section-label,
.btn,
.header-cta,
input,
textarea,
select,
button {
    font-family: var(--font-body);
}
img, video {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-base);
}

ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* ==================== UTILITY CLASSES ==================== */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--space-6);
}

@media (min-width: 768px) {
    .container { padding: 0 var(--space-8); }
}

@media (min-width: 1024px) {
    .container { padding: 0 var(--space-12); }
}

/* Reveal Animation */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s var(--transition-smooth), transform 0.7s var(--transition-smooth);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Section Labels & Titles */
.section-label {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--color-green);
    margin-bottom: var(--space-4);
}


.section-label-light { color: var(--color-green); }

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3.8rem);
    font-weight: 500;
    line-height: 1.5;
    color: var(--text-dark);
    letter-spacing: 0.01em;
}

.section-title-light { color: var(--text-primary); }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-6);
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 8px;
    transition: var(--transition-base);
}

.btn-primary {
    background-color: var(--color-green);
    color: var(--text-primary);
}

.btn-primary:hover {
    background-color: var(--color-green-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.btn-outline {
    background-color: transparent;
    color: var(--text-primary);
    border: 1.5px solid rgba(255, 255, 255, 0.25);
}

.btn-outline:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.4);
}

.btn-full { width: 100%; }

/* ==================== HEADER ==================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: var(--z-header);
    padding: 0;
    background: transparent;
    border-bottom: none;
    transition: all 0.35s ease;
    pointer-events: none;
}

.header-container {
    pointer-events: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1440px;
    margin: 0 auto;
    min-height: 78px;
    padding: 0 var(--space-6);
    background: transparent;
    border: 1px solid transparent;
    border-radius: 0;
    box-shadow: none;
    transition: all 0.35s ease;
}

.logo {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
}

.logo img {
    height: 34px;
    width: auto;
    display: block;
    /* Task 5: monochrome (B&W) logo over the dark pre-scroll header */
    filter: brightness(0) invert(1);
    transition: filter 0.35s ease;
}

/* Task 5: reveal the full-colour logo once the header turns solid on scroll */
.header.scrolled .logo img {
    filter: none;
}

/* ===== when scrolled ===== */
.header.scrolled {
    top: 0;
    background: transparent;
}

.header.scrolled .header-container {
    max-width: 1420px;
    min-height: 70px;
    padding: 0 1.5rem;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: 0 0 28px 28px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.10);
}

/* Desktop Nav */
.nav-desktop {
    display: none;
}

@media (min-width: 1280px) {
    .nav-desktop {
        display: block;
        margin: 0 auto;
    }
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 1.35rem;
}

.nav-link {
    font-size: 0.82rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.88);
    position: relative;
    padding: 0.4rem 0;
    white-space: nowrap;
    transition: color 0.3s ease, opacity 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-green);
    transition: var(--transition-base);
}

.nav-link:hover,
.nav-link.active {
    color: #ffffff;
}
.header.scrolled .nav-link {
    color: rgba(110, 116, 125, 0.92);
}

.header.scrolled .nav-link:hover,
.header.scrolled .nav-link.active {
    color: #111111;
}

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

/* ── VAST-NXT.AI nav image ── */
.nav-link--img {
    padding: 0;
    display: inline-flex;
    align-items: center;
    /* center the logo on the same line as the text nav items */
    vertical-align: middle;
}

.nav-vastai-img {
    height: 31px;
    width: auto;
    display: block;
    opacity: 0.9;
    transition: opacity 0.25s ease;
}

/* Two-image scroll swap (matches the main logo switching logic):
   VastAiWhite.png (already white) over the dark pre-scroll header,
   vastai.png (full colour) once the header turns solid on scroll. */
.nav-vastai-img--colour { display: none; }
.header.scrolled .nav-vastai-img--white { display: none; }
.header.scrolled .nav-vastai-img--colour { display: block; }

.nav-link--img:hover .nav-vastai-img,
.nav-link--img.active .nav-vastai-img {
    opacity: 1;
}

/* ── AiSEC nav image (Task 4) — transparent logo trimmed to its wordmark.
   White on the dark pre-scroll header, natural colour when scrolled (same treatment as VAST-NXT.AI). ── */
.nav-aisec-img {
    height: 22px;
    width: 60px;
    object-fit: cover;
    object-position: center;
    display: block;
    filter: brightness(0) invert(1);
    opacity: 0.92;
    transition: opacity 0.25s ease, filter 0.25s ease;
}

.nav-link--img:hover .nav-aisec-img,
.nav-link--img.active .nav-aisec-img {
    opacity: 1;
}

.header.scrolled .nav-aisec-img {
    filter: none;
    opacity: 0.9;
}

.header.scrolled .nav-link--img:hover .nav-aisec-img,
.header.scrolled .nav-link--img.active .nav-aisec-img {
    opacity: 1;
    filter: none;
}

/* ── Hero logo image ── */
.hero-title--logo {
    margin: 0 0 20px;
    text-shadow: none;
    line-height: 1;
}

.hero-logo-img {
    display: block;
    height: clamp(60px, 10vw, 110px);
    width: auto;
    /* Keep the logo luminous on the dark video background */
    filter: brightness(0) invert(1) drop-shadow(0 0 18px rgba(37,211,102,0.45));
}

/* Dropdown */
.nav-dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 14px);
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    z-index: var(--z-dropdown);
}

.dropdown-bridge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    width: 220px;
    height: 14px;
}

.nav-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-list {
    background: #ffffff;
    border: 1px solid rgba(17, 17, 17, 0.08);
    border-radius: 16px;
    padding: var(--space-2);
    min-width: 280px;
    box-shadow: 0 18px 45px rgba(17, 17, 17, 0.12);
}

.dropdown-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-3);
    padding: var(--space-3) var(--space-4);
    font-size: 0.8rem;
    font-weight: 500;
    color: rgba(110, 116, 125, 0.92);
    border-radius: 10px;
    transition: var(--transition-fast);
}

.dropdown-link:hover,
.dropdown-link:focus {
    background-color: rgba(17, 17, 17, 0.05);
    color: #111111;
}

/* Submenu */
.has-submenu {
    position: relative;
}

.has-submenu::after {
    content: '›';
    position: absolute;
    right: var(--space-4);
    top: 50%;
    transform: translateY(-50%);
    color: rgba(110, 116, 125, 0.72);
}

.submenu {
    position: absolute;
    top: 0;
    left: 100%;
    margin-left: var(--space-2);
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
}

.submenu-bridge {
    position: absolute;
    top: 0;
    left: calc(-1 * var(--space-2));
    width: var(--space-2);
    height: 100%;
}

.has-submenu:hover .submenu {
    opacity: 1;
    visibility: visible;
}

.submenu-list {
    background: #ffffff;
    border: 1px solid rgba(17, 17, 17, 0.08);
    border-radius: 16px;
    padding: var(--space-2);
    min-width: 260px;
    box-shadow: 0 18px 45px rgba(17, 17, 17, 0.12);
}

.submenu-link {
    display: block;
    padding: var(--space-2) var(--space-4);
    font-size: 0.75rem;
    font-weight: 500;
    color: rgba(110, 116, 125, 0.92);
    border-radius: 8px;
    transition: var(--transition-fast);
}

.submenu-link:hover,
.submenu-link:focus {
    background-color: rgba(17, 17, 17, 0.05);
    color: #111111;
}
/* CTA */
.header-cta {
    display: none;
    align-items: center;
    justify-content: center;
    padding: 0.9rem 1.45rem;
    min-height: 44px;
    font-size: 0.85rem;
    font-weight: 700;
    color: #ffffff;
    background-color: var(--color-green);
    border-radius: 12px;
    transition: var(--transition-base);
    flex-shrink: 0;
}

.header-cta:hover {
    background-color: var(--color-green-dark);
    transform: translateY(-1px);
}

@media (min-width: 1280px) {
    .header-cta {
        display: inline-flex;
    }
}

/* Mobile toggle */
.menu-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    z-index: 1002;
    flex-shrink: 0;
    background: transparent;
    border: 0;
    cursor: pointer;
}

@media (min-width: 1280px) {
    .menu-toggle {
        display: none;
    }
}

.menu-toggle span {
    width: 24px;
    height: 2px;
    border-radius: 999px;
    background: #ffffff;
    transition: 0.35s ease;
    transform-origin: center;
    box-shadow: 0 0 10px rgba(83, 155, 255, 0.25);
}

.menu-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Task 6: keep the hamburger visible on the white scrolled navbar (mobile/tablet).
   Skipped while the menu is open so the X stays white over the dark overlay. */
.header.scrolled .menu-toggle:not(.active) span {
    background: #111111;
    box-shadow: none;
}

.nav-mobile {
    position: fixed;
    inset: 0;
    background:
        radial-gradient(circle at top right, rgba(53, 87, 255, 0.18), transparent 28%),
        radial-gradient(circle at bottom left, rgba(0, 217, 255, 0.12), transparent 24%),
        rgba(8, 14, 32, 0.96);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    padding: 88px 20px 24px;
    transform: translateX(100%);
    transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
    overflow-y: auto;
    z-index: 1001;
    visibility: hidden;
    pointer-events: none;
}

.nav-mobile.active {
    transform: translateX(0);
    visibility: visible;
    pointer-events: auto;
}

.nav-mobile-inner {
    width: 100%;
    max-width: 560px;
    margin: 0 auto;
}

.nav-mobile-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-mobile-link,
.nav-mobile-dropdown-toggle,
.nav-mobile-nested-toggle,
.nav-mobile-dropdown-link,
.nav-mobile-nested-link {
    position: relative;
    text-decoration: none;
}

.nav-mobile-link,
.nav-mobile-dropdown-toggle,
.nav-mobile-nested-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 16px 18px;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.08);
    background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.025));
    color: #f8fbff;
    font-size: 1rem;
    font-weight: 500;
    transition: 0.3s ease;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.06),
        0 10px 30px rgba(0,0,0,0.16);
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
}

.nav-mobile-dropdown-toggle.is-sub,
.nav-mobile-nested-toggle {
    font-size: 0.96rem;
    color: rgba(255,255,255,0.9);
    background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02));
}

.nav-mobile-link:hover,
.nav-mobile-dropdown-toggle:hover,
.nav-mobile-nested-toggle:hover,
.nav-mobile-dropdown-link:hover,
.nav-mobile-nested-link:hover {
    border-color: rgba(83, 155, 255, 0.35);
    box-shadow:
        0 0 0 1px rgba(83, 155, 255, 0.1),
        0 0 24px rgba(53, 87, 255, 0.15),
        inset 0 1px 0 rgba(255,255,255,0.08);
    transform: translateY(-1px);
}

.dropdown-icon {
    width: 18px;
    height: 18px;
    color: #8eb8ff;
    flex-shrink: 0;
    transition: transform 0.3s ease, color 0.3s ease;
}

.nav-mobile-dropdown-toggle.active .dropdown-icon,
.nav-mobile-nested-toggle.active .dropdown-icon {
    transform: rotate(180deg);
    color: #ffffff;
}

.nav-mobile-dropdown-list,
.nav-mobile-nested-list {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, opacity 0.35s ease, margin-top 0.35s ease;
    opacity: 0;
    margin-top: 0;
    padding-left: 14px;
    list-style: none;
}

.nav-mobile-dropdown-list.active,
.nav-mobile-nested-list.active {
    max-height: 1000px;
    opacity: 1;
    margin-top: 8px;
}

.nav-mobile-dropdown-link,
.nav-mobile-nested-link {
    display: block;
    padding: 13px 16px;
    margin-bottom: 8px;
    border-radius: 14px;
    color: rgba(220, 233, 255, 0.82);
    font-size: 0.92rem;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.05);
    transition: 0.3s ease;
}

.nav-mobile-nested-link {
    font-size: 0.9rem;
    color: rgba(205, 223, 255, 0.78);
    background: rgba(255,255,255,0.025);
}

.nav-mobile-dropdown-link:hover,
.nav-mobile-nested-link:hover {
    color: #fff;
    background: rgba(53, 87, 255, 0.12);
}

.nav-mobile-dropdown,
.nav-mobile-nested {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.nav-mobile::-webkit-scrollbar {
    width: 6px;
}

.nav-mobile::-webkit-scrollbar-thumb {
    background: rgba(123, 160, 255, 0.35);
    border-radius: 999px;
}




/* ==================== NOVA CHATBOT (global) ==================== */
.nova {
  --nova-header: #0B132B;
  --nova-accent: #00C853;
  --nova-btn: #16C95F;
  --nova-btn-hover: #12b352;
  --nova-bg: #FFFFFF;
  --nova-bot-bubble: #F1F3F6;
  --nova-bot-text: #1B2333;
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 99999;
  font-family: 'Kumbh Sans', sans-serif;
}

/* Floating launcher */
.nova-fab {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  padding: 12px 20px 12px 13px;
  border: 1px solid rgba(255,255,255,0.28);
  border-radius: 999px;
  background: #24E06D;
  color: #0B132B;
  box-shadow: 0 10px 28px rgba(0,200,83,0.28), 0 0 24px rgba(22,201,95,0.20);
  cursor: pointer;
  font-family: inherit;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease, filter 0.3s ease, background 0.3s ease, opacity 0.22s ease;
}
/* Hover matches the CSR section pill button (.btn-primary) hover exactly */
.nova-fab:hover {
  transform: translateY(-3px);
  box-shadow:
    0 16px 38px rgba(0, 216, 79, 0.38),
    0 0 0 1px rgba(255, 255, 255, 0.08) inset,
    0 0 34px rgba(0, 255, 170, 0.32);
  filter: brightness(1.04);
}
.nova-fab:active { transform: scale(0.97); }
.nova-fab__icon {
  width: 34px; height: 34px; border-radius: 50%;
  background: #0B2A5B;
  display: grid; place-items: center; flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(0,0,0,0.20), 0 0 14px rgba(255,255,255,0.22);
}
.nova-fab__icon svg { width: 19px; height: 19px; stroke: #FFFFFF; fill: none; }
.nova-fab__label { font-size: 0.9rem; font-weight: 600; white-space: nowrap; letter-spacing: 0.01em; color: #0B132B; }

.nova.is-open .nova-fab { opacity: 0; visibility: hidden; transform: scale(0.6); pointer-events: none; }
.nova.is-dragging .nova-fab { transition: none; cursor: grabbing; }

/* Chat window */
.nova-window {
  position: absolute;
  right: 0; bottom: 76px;
  width: 372px;
  max-width: calc(100vw - 32px);
  height: 540px;
  max-height: calc(100vh - 130px);
  background: var(--nova-bg);
  border-radius: 20px;
  overflow: hidden;
  display: flex; flex-direction: column;
  box-shadow: 0 34px 74px rgba(11,19,43,0.4), 0 6px 16px rgba(0,0,0,0.16);
  opacity: 0; visibility: hidden;
  transform: translateY(18px) scale(0.96);
  transform-origin: bottom right;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.34s cubic-bezier(0.22,1,0.36,1), visibility 0.3s;
}
.nova.is-open .nova-window { opacity: 1; visibility: visible; transform: translateY(0) scale(1); pointer-events: auto; }

/* Header */
.nova-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 15px 16px;
  background: var(--nova-header);
  color: #fff;
  flex-shrink: 0;
}
.nova-header__id { display: flex; align-items: center; gap: 12px; }
.nova-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: linear-gradient(135deg, var(--nova-btn), var(--nova-accent));
  display: grid; place-items: center;
}
.nova-avatar svg { width: 21px; height: 21px; stroke: #06210f; fill: none; }
.nova-name { font-family: 'Poppins', sans-serif; font-weight: 600; font-size: 0.98rem; line-height: 1.2; }
.nova-status { display: flex; align-items: center; gap: 6px; font-size: 0.74rem; color: rgba(255,255,255,0.6); margin-top: 3px; }
.nova-status__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--nova-accent); box-shadow: 0 0 0 3px rgba(0,200,83,0.22); animation: nova-pulse 2s ease-in-out infinite; }
@keyframes nova-pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.35; } }
.nova-close {
  border: none; background: rgba(255,255,255,0.1); color: #fff;
  width: 32px; height: 32px; border-radius: 50%; cursor: pointer;
  display: grid; place-items: center; font-size: 1.2rem; line-height: 1;
  transition: background 0.2s ease;
}
.nova-close:hover { background: rgba(255,255,255,0.22); }

/* Body */
.nova-body {
  flex: 1; overflow-y: auto;
  padding: 18px 16px;
  background: var(--nova-bg);
  display: flex; flex-direction: column; gap: 10px;
  scrollbar-width: thin;
}
.nova-msg {
  max-width: 82%; padding: 11px 14px; font-size: 0.9rem; line-height: 1.5;
  border-radius: 16px; word-wrap: break-word;
  animation: nova-msg-in 0.3s ease both;
}
@keyframes nova-msg-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.nova-msg--bot { align-self: flex-start; background: var(--nova-bot-bubble); color: var(--nova-bot-text); border-bottom-left-radius: 5px; }
.nova-msg--user { align-self: flex-end; background: var(--nova-btn); color: #fff; border-bottom-right-radius: 5px; }
.nova-msg a { color: inherit; font-weight: 600; text-decoration: underline; }
.nova-msg--bot a { color: #0a7a35; }

.nova-typing { align-self: flex-start; display: inline-flex; gap: 4px; padding: 13px 15px; background: var(--nova-bot-bubble); border-radius: 16px; border-bottom-left-radius: 5px; }
.nova-typing span { width: 6px; height: 6px; border-radius: 50%; background: #9aa4b2; animation: nova-bounce 1.2s infinite; }
.nova-typing span:nth-child(2) { animation-delay: 0.15s; }
.nova-typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes nova-bounce { 0%,60%,100% { transform: translateY(0); opacity: 0.5; } 30% { transform: translateY(-5px); opacity: 1; } }

/* Quick actions */
.nova-quick { display: flex; gap: 8px; padding: 0 16px 12px; flex-wrap: wrap; background: var(--nova-bg); flex-shrink: 0; }
.nova-quick__btn {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.8rem; font-weight: 600; padding: 8px 13px; border-radius: 999px;
  border: 1px solid rgba(0,200,83,0.32); color: #0a7a35; background: rgba(0,200,83,0.07);
  text-decoration: none; cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.nova-quick__btn:hover { background: rgba(0,200,83,0.14); border-color: var(--nova-accent); }

/* Input */
.nova-input {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 14px; border-top: 1px solid rgba(11,19,43,0.08); background: var(--nova-bg); flex-shrink: 0;
}
.nova-input__field {
  flex: 1; min-width: 0; border: 1px solid rgba(11,19,43,0.14); border-radius: 999px;
  padding: 11px 16px; font-size: 0.9rem; font-family: inherit; color: #1b2333;
  outline: none; transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.nova-input__field:focus { border-color: var(--nova-accent); box-shadow: 0 0 0 3px rgba(0,200,83,0.14); }
.nova-send {
  flex-shrink: 0; width: 42px; height: 42px; border-radius: 50%; border: none;
  background: var(--nova-btn); color: #fff; cursor: pointer;
  display: grid; place-items: center; transition: background 0.2s ease, transform 0.15s ease;
}
.nova-send:hover { background: var(--nova-btn-hover); }
.nova-send:active { transform: scale(0.92); }
.nova-send svg { width: 18px; height: 18px; }

@media (max-width: 640px) {
  .nova { right: 16px; bottom: 16px; }
  .nova-fab { padding: 11px 16px 11px 11px; }
  .nova-fab__label { font-size: 0.84rem; }
  .nova-window {
    position: fixed;
    left: 12px; right: 12px; bottom: 12px; top: auto;
    width: auto; height: 76vh; max-height: calc(100vh - 24px);
    transform-origin: bottom center;
  }
}

.whatsapp-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 9998;
  padding: 12px 18px;
  border-radius: 999px;
  background: #25d366;
  color: #fff;
}

.chatbot-panel {
  position: fixed;
  right: 20px;
  bottom: 84px;
  width: min(360px, calc(100vw - 24px));
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(16px);
  transition: 0.3s ease;
  z-index: 9999;
}

.chatbot-panel.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}


/* ==================== HERO SECTION ==================== */
/* HERO SECTION */
.hero {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    background:
        radial-gradient(circle at 15% 20%, rgba(0, 255, 170, 0.14), transparent 18%),
        radial-gradient(circle at 85% 18%, rgba(0, 153, 255, 0.12), transparent 20%),
        radial-gradient(circle at 50% 85%, rgba(0, 255, 170, 0.08), transparent 22%),
        linear-gradient(135deg, #020617 0%, #03132c 45%, #020617 100%);
}

/* VIDEO BACKGROUND */
.hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    filter: brightness(0.55); /* makes text readable */
}

/* GRID OVERLAY (keep your tech vibe) */
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 70px 70px;
    z-index: 1;
}

/* LIGHT DARK OVERLAY */
.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 70% 50%, rgba(0,255,170,0.15), transparent 60%),
                linear-gradient(rgba(2,6,23,0.6), rgba(2,6,23,0.85));
    z-index: 1;
}

/* CONTENT ABOVE VIDEO */
.hero-wrapper {
    position: relative;
    z-index: 2;
}

/* TECH GRID */
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;

    background:
        linear-gradient(
            to bottom,
            rgba(2, 6, 23, 0) 50%,
            rgba(2, 6, 23, 0.85) 80%,
            rgba(2, 6, 23, 1) 100%
        );
}

/* GLOW LIGHT */
.hero::after {
    content: "";
    position: absolute;
    width: 500px;
    height: 500px;
    right: 10%;
    top: 50%;
    transform: translateY(-50%);
    background: radial-gradient(circle, rgba(0, 255, 170, 0.15), transparent 70%);
    filter: blur(50px);
    pointer-events: none;
}

/* WRAPPER */
.hero-wrapper {
    position: relative;
    z-index: 1;
    max-width: 1400px;
    margin: auto;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
    padding: 120px 50px 80px;
}

/* CONTENT */
.hero-content {
    flex: 1;
    text-align: center;
}

/* TAG */
.hero-tag {
    display: inline-block;
    padding: 8px 14px;
    margin-bottom: 24px;
    border: 1px solid rgba(0, 255, 170, 0.3);
    border-radius: 999px;
    color: #9fe8d3;
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* 🔥 HERO TITLE (GLOW + 2 LINES) */
.hero-title {
    margin: 0 0 40px;
    font-family: var(--font-heading);
    font-size: clamp(3.2rem, 7vw, 6.3rem);
    font-weight: 700;
    line-height: 0.95;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: #ffffff;

    /* REMOVE THIS if you used before */
    max-width: none;

    /* GLOW EFFECT */
    text-shadow:
        0 0 6px rgb(37 211 102 / 71%), 0 0 14px rgb(88 157 165), 0 0 30px rgb(11 44 93), 0 0 60px rgba(0, 255, 170, 0.25)
}

.hero-title1 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 0.95;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: #ffffff;

    /* REMOVE THIS if you used before */
    max-width: none;

    /* GLOW EFFECT */
    text-shadow:
        0 0 6px rgb(37 211 102 / 71%), 0 0 14px rgb(88 157 165), 0 0 30px rgb(11 44 93), 0 0 60px rgba(0, 255, 170, 0.25)
}

/* SUBTITLE */
.hero-subtitle {
    margin: 0 0 30px;
    font-size: 1.1rem;
    line-height: 1.8;
    color: rgba(255,255,255,0.7);
}

/* BUTTON */
.hero-btn {
    display: inline-block;
    padding: 14px 26px;
    border-radius: 10px;
    background: linear-gradient(135deg, #00b140, #00d84f);
    color: #fff;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 10px 25px rgba(0, 216, 79, 0.3);
    transition: 0.3s ease;
}

.hero-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(0, 216, 79, 0.4);
}

/* IMAGE */
.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.hero-image img {
    width: 100%;
    max-width: 750px;
    animation: float 5s ease-in-out infinite;
    filter: drop-shadow(0 0 30px rgba(0,150,255,0.2));
}

/* FLOAT ANIMATION */
@keyframes float {
    0%,100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

/* RESPONSIVE */
@media (max-width: 991px) {
    .hero-wrapper {
        flex-direction: column;
        text-align: center;
        padding: 100px 20px;
    }

    .hero-title {
        max-width: none;
    }

    .hero-image img {
        max-width: 500px;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 3rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }
}
/* ==================== ABOUT SECTION ==================== */
.about {
    position: relative;
    background: var(--color-navy);
    padding: 80px 0;
    overflow: hidden;
}

.about .container {
    max-width: 1280px;
}

.about-content {
    position: relative;
    z-index: 1;
    text-align: center;
    margin: 0 auto;
}

.about-title {
    font-family: var(--font-heading);
    font-size: clamp(2.4rem, 4.2vw, 3.8rem);
    font-weight: 500;
    line-height: 1;
    color: var(--text-primary);
    letter-spacing: -0.03em;
    margin-bottom: clamp(2rem, 4vw, 3rem);
    margin-left: auto;
    margin-right: auto;
    text-wrap: balance;
}

/* About section — desktop side-by-side, mobile stacked with image between heading and body */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
        "header image"
        "body   image";
    column-gap: 4rem;
    align-items: center;
}
.about-header {
    grid-area: header;
    max-width: 520px;
}
.about-body {
    grid-area: body;
    max-width: 520px;
}
.about-body p {
    font-size: 1rem;
    line-height: 1.85;
    color: #ffffff;
    text-align: justify;
    hyphens: auto;
}
.about-body p + p {
    margin-top: 1rem;
}
.about-image  {
    grid-area: image;
    border-radius: 18px;
    overflow: hidden;
    aspect-ratio: 4/3;
    box-shadow: 0 8px 40px rgba(0,0,0,0.13);
}
.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

@media (max-width: 767px) {
    .about-grid {
        grid-template-columns: 1fr;
        grid-template-areas:
            "header"
            "image"
            "body";
        row-gap: 1.5rem;
    }
    .about-image {
        width: 100%;
        border-radius: 12px;
        aspect-ratio: 4/3;
    }
}

/* Vision Mission Layout */
.visonMisson {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 30px;
}

/* Card */
.cardVM {
    position: relative;
    flex: 1 1 300px;
    min-width: 280px;
    border-radius: 18px;
    padding: 34px 30px;
    background: rgba(255, 255, 255, 0.04);
    color: white;
    overflow: hidden;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
}

/* outline glow */
.cardVM::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 18px;
    padding: 1px;
    background: linear-gradient(
        135deg,
        rgba(0, 255, 170, 0.7),
        rgba(0, 153, 255, 0.45),
        rgba(0, 255, 170, 0.7)
    );
    -webkit-mask: 
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0.45;
    pointer-events: none;
    transition: opacity 0.35s ease, filter 0.35s ease;
    filter: blur(0px);
}

/* soft inner glow / hover light */
.cardVM::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(
        circle 220px at var(--x, 50%) var(--y, 50%),
        rgba(0, 255, 170, 0.12),
        transparent 60%
    );
    opacity: 0;
    transition: opacity 0.25s ease;
    border-radius: 18px;
}

.cardVM:hover {
    transform: translateY(-8px);
    border-color: rgba(0, 255, 170, 0.22);
    box-shadow:
        0 18px 35px rgba(0, 0, 0, 0.32),
        0 0 22px rgba(0, 255, 170, 0.08);
}

.cardVM:hover::before {
    opacity: 1;
}

.cardVM:hover::after {
    opacity: 1;
    filter: blur(1px);
}

/* text */
.cardVM h3 {
    margin-bottom: 16px;
    font-size: 2rem;
    font-weight: 600;
    color: #ffffff;
}

.cardVM p {
    font-size: 1.05rem;
    line-height: 1.85;
    color: rgba(255, 255, 255, 0.82);
    margin: 0;
}

.about-btn {
    min-width: 310px;
    padding: 1rem 2rem;
    border-radius: 999px;
    font-size: 1rem;
    font-weight: 600;
    margin-top: 34px;
}

/* tablet */
@media (max-width: 1024px) {
    .about-title {
        font-size: clamp(1.9rem, 4.8vw, 3.2rem);
        line-height: 1.02;
        max-width: 950px;
    }
}

/* mobile */
@media (max-width: 640px) {
    .about {
        padding: 60px 0;
    }

    .about-title {
        font-size: clamp(1.6rem, 7.5vw, 2.4rem);
        line-height: 1.06;
        letter-spacing: -0.02em;
    }

    .cardVM {
        padding: 28px 22px;
    }

    .cardVM h3 {
        font-size: 1.6rem;
    }

    .cardVM p {
        font-size: 0.98rem;
        line-height: 1.7;
    }

    .about-btn {
        min-width: auto;
        width: 100%;
        max-width: 320px;
    }
}

/* ==================== SOLUTIONS SECTION (STACKING CARDS) ==================== */
.solutions {
    position: relative;
    background-color: var(--color-navy);
    padding: 80px 0;
}

.solutions-header {
    text-align: center;
    margin-bottom: var(--space-16);
}

.solutions-header .section-label,
.solutions-header .section-title {
    color: var(--text-primary);
}

/* Desktop Stacking Cards */
.solutions-stack {
    position: relative;
    display: none;
}

@media (min-width: 1024px) {
    .solutions-stack {
        display: block;
        height: 360vh;
    }
}

.solution-card {
    position: sticky;
    top: 110px;
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
    padding: 0;
    transition: transform 0.55s ease, opacity 0.55s ease;
    will-change: transform;
    transform-origin: center top;
    backface-visibility: hidden;
    transform: translateZ(0);
}

.solution-card:nth-child(1) { z-index: 1; }
.solution-card:nth-child(2) { z-index: 2; }
.solution-card:nth-child(3) { z-index: 3; }
.solution-card:nth-child(4) { z-index: 4; }

.solution-card-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
    height: 680px;
    min-height: 680px;
    max-height: 680px;
    gap: 0;
    border-radius: 28px;
    overflow: hidden;
    box-sizing: border-box;
    background: linear-gradient(135deg, rgba(16, 24, 45, 0.96), rgba(11, 18, 35, 0.98));
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: var(--shadow-card);
    backdrop-filter: blur(20px);
    position: relative;
}

.solution-card-inner::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 28px;
    pointer-events: none;

    background: radial-gradient(
        250px circle at var(--x, 50%) var(--y, 50%),
        rgba(0, 255, 170, 0.12),
        transparent 60%
    );

    opacity: 0;
    transition: opacity 0.25s ease;
}

/* Activate on hover */
.solution-card-inner:hover::before {
    opacity: 1;
}

.solution-card-inner::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 28px;
    padding: 1px;

    background: linear-gradient(
        135deg,
        rgba(0,255,170,0.6),
        rgba(0,153,255,0.4),
        rgba(0,255,170,0.6)
    );

    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;

    opacity: 0.3;
    transition: 0.3s ease;
}

.solution-card-inner:hover::after {
    opacity: 1;
}

.solution-card-visual {
    position: relative;
    width: 100%;
    height: 680px;
    min-height: 680px;
    max-height: 680px;
    overflow: hidden;
}

.solution-card-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.solution-card-content {
    width: 100%;
    height: 680px;
    min-height: 680px;
    max-height: 680px;
    padding: 56px 48px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-sizing: border-box;
    overflow: hidden;
}

.solution-card-content > * {
    max-width: 100%;
}

.solution-card-number {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--color-green);
    margin-bottom: var(--space-3);
}

.solution-card-title {
    font-family: var(--font-heading);
    font-size: clamp(2.25rem, 3vw, 3.25rem);
    font-weight: 600;
    color: #ffffff;
    margin-bottom: var(--space-4);
    line-height: 1.02;
    letter-spacing: 0.01em;
}

.solution-card-desc {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.7;
    margin-bottom: var(--space-5);
}

.solution-card-features {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    margin-bottom: var(--space-6);
}

.solution-card-features li {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.74);
    padding-left: var(--space-5);
    position: relative;
}

.solution-card-features li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.8em;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    background-color: var(--color-green);
    border-radius: 50%;
}

.solution-card-link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-green);
    transition: var(--transition-base);
}

.solution-card-link:hover {
    color: var(--color-green-dark);
}

.solution-card-inner {
    position: relative;
    z-index: 1;
}

.solution-card-inner::before,
.solution-card-inner::after {
    pointer-events: none;
}

/* Slightly smaller desktop / laptop */
@media (max-width: 1279px) {
    .solution-card-inner,
    .solution-card-visual,
    .solution-card-content {
        height: 620px;
        min-height: 620px;
        max-height: 620px;
    }

    .solution-card-content {
        padding: 44px 38px;
    }
}

/* Mobile Solutions */
.solutions-mobile {
    display: block;
}

@media (min-width: 1024px) {
    .solutions-mobile {
        display: none;
    }
}

.solutions-mobile-grid {
    display: grid;
    gap: var(--space-6);
}

@media (min-width: 640px) {
    .solutions-mobile-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.solution-mobile-card {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.8), rgba(17, 24, 39, 0.9));
    border: 1px solid var(--border-light);
    border-radius: 16px;
    overflow: hidden;
    padding: var(--space-6);
}

.solution-mobile-card img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: var(--space-4);
}

.solution-mobile-card h4 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-2);
}

.solution-mobile-card p {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* Tablet and Mobile fallback */
@media (max-width: 1023px) {
    .solutions-stack {
        display: none;
        height: auto;
    }

    .solution-card {
        position: relative;
        top: auto;
        transform: none !important;
        opacity: 1 !important;
        z-index: auto !important;
    }

    .solution-card-inner {
        grid-template-columns: 1fr;
        height: auto;
        min-height: 0;
        max-height: none;
    }

    .solution-card-visual,
    .solution-card-content {
        height: auto;
        min-height: 0;
        max-height: none;
    }
}
/* ==================== VAST.NXT.AI SECTION ==================== */
.vast-ai {
    position: relative;
    padding: 80px 0;
    overflow: hidden;
}

.vast-ai::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(37, 55, 154, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(37, 55, 154, 0.05) 1px, transparent 1px);
    background-size: 72px 72px;
    mask-image: linear-gradient(to bottom, rgba(0,0,0,0.7), transparent 85%);
    pointer-events: none;
}

.vast-ai .container {
    width: 100%;
    max-width: 100%;
    padding: 0;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.vast-ai-top {
    display: flex;
    flex-direction: column;
    gap: 34px;
    width: 100%;
}

.vast-ai-left {
    width: 100%;
    text-align: center;
    padding: 0 80px;
}

.vast-ai-logo-wrap.small {
    width: 100px;
    margin: 0 auto 12px;
}

.vast-ai-logo {
    width: 100%;
    display: block;
}

.vast-ai-brand {
    margin: 0 0 6px;
    font-family: var(--font-heading);
    font-size: clamp(2.4rem, 4vw, 4.3rem);
    font-weight: 600;
    line-height: 1;
    letter-spacing: -0.03em;
    color: #102b75;
    margin: 0;
}

.vast-ai-subhead {
    margin: 50px 0px 0px 18px;
    font-size: 0.78rem;
    line-height: 1;
    margin-bottom: -20px;
    font-weight: 700;
    letter-spacing: 0.14em;
    color: #0f172a;
    text-transform: uppercase;
    opacity: 0.9;
}

.vast-ai-headline {
    margin: 0 0 16px;
        font-family: var(--font-heading);
    font-size: clamp(2.5rem, 5vw, 4.8rem);
    font-weight: 500;
    line-height: 0.98;
    color: var(--text-dark);
    letter-spacing: 0.01em;
}

.vast-arrow {
    margin-right: 8px;
}

.vast-ai-lead {
    max-width: 820px;
    margin: 0 auto;
    color: #475569;
    font-size: 0.96rem;
    line-height: 1.75;
}

.vast-ai-cta-row {
    margin-top: 20px;
}

.vast-ai-bottom-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 0 30px;
    border-radius: 999px;
    background: linear-gradient(135deg, #00a51a, #00c227);
    color: #ffffff;
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 700;
    box-shadow: 0 10px 24px rgba(0, 165, 26, 0.18);
}


.vast-ai-bottom-cta:hover {
    background: #1a235c;
    transform: translateY(-1px);
}
.vast-ai-right {
    width: 100%;
}

.slider-container {
    width: 100%;
    height: 620px;
    position: relative;
    overflow: hidden;
    perspective: 1200px;
    cursor: grab;
    user-select: none;
}

.slider-container.dragging {
    cursor: grabbing;
}

.slider-track {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    transform-style: preserve-3d;
    transition: filter 0.35s ease;
}

.slider-track.blurred {
    filter: blur(10px) brightness(0.45);
}

.card {
    position: absolute;
    width: 260px;
    border-radius: 24px;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(8, 16, 30, 0.84), rgba(8, 16, 30, 0.96));
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 24px 60px rgba(8, 16, 30, 0.2);
    transform-style: preserve-3d;
    backface-visibility: hidden;
    cursor: pointer;
}

.card::before {
    content: "";
    position: absolute;
    inset: -30px;
    background:
        radial-gradient(circle at 50% 35%, rgba(16, 185, 129, 0.18), transparent 45%),
        radial-gradient(circle at 50% 75%, rgba(37, 55, 154, 0.22), transparent 55%);
    filter: blur(35px);
    z-index: -1;
    opacity: 0.9;
    pointer-events: none;
}

.card::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
    pointer-events: none;
}

.card-image {
    height: 180px;
    overflow: hidden;
    background: #0f172a;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.card-body {
    padding: 18px 18px 22px;
    background: linear-gradient(180deg, rgba(9, 16, 30, 0.12), rgba(9, 16, 30, 0.98));
}

.card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.card-head h3 {
    margin: 0;
    color: #fff;
    font-size: 1rem;
    line-height: 1.1;
    font-weight: 800;
    text-transform: uppercase;
}

.card-head span {
    color: #10b981;
    font-size: 0.9rem;
    font-weight: 800;
    flex-shrink: 0;
}

.card-body p {
    margin: 0;
    color: rgba(255,255,255,0.74);
    font-size: 0.92rem;
    line-height: 1.6;
}

.card-popout-backdrop {
    position: fixed;
    inset: 0;
    background:
        radial-gradient(circle at 50% 10%, rgba(16,185,129,0.08), transparent 25%),
        linear-gradient(180deg, rgba(5,10,20,0.88), rgba(5,10,20,0.95));
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: 0.4s ease;
    z-index: 9998;
}

.card-popout-backdrop.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* ================= POPUP ================= */
.card-popout {
    position: fixed;
    top: 55%;
    left: 50%;
    width: min(860px, calc(100vw - 32px));
    background:
        linear-gradient(180deg, rgba(6,12,24,0.96), rgba(4,10,20,0.98));
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.08);

    box-shadow:
        0 40px 120px rgba(0,0,0,0.5),
        0 0 40px rgba(16,185,129,0.08);

    transform: translate(-50%, -50%) translateY(40px) scale(0.92);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transition:
        transform 0.45s cubic-bezier(.22,.9,.32,1),
        opacity 0.35s ease,
        visibility 0.35s ease;

    z-index: 9999;
}

/* grid overlay */
.card-popout::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 52px 52px;
    opacity: 0.18;
    pointer-events: none;
}

/* glow border */
.card-popout::after {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: 24px;
    padding: 1px;
    background: linear-gradient(
        135deg,
        rgba(16,185,129,0.5),
        rgba(37,99,235,0.2),
        transparent,
        rgba(16,185,129,0.3)
    );
    -webkit-mask:
        linear-gradient(#000 0 0) content-box,
        linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
}

/* ACTIVE ANIMATION */
.card-popout.active {
    transform: translate(-50%, -50%) translateY(0) scale(1);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;

    animation: popGlow 0.8s ease;
}

/* glow pulse on open */
@keyframes popGlow {
    0% {
        box-shadow:
            0 0 0 rgba(16,185,129,0),
            0 0 0 rgba(0,0,0,0);
    }
    50% {
        box-shadow:
            0 0 60px rgba(16,185,129,0.18),
            0 40px 120px rgba(0,0,0,0.6);
    }
    100% {
        box-shadow:
            0 40px 120px rgba(0,0,0,0.5),
            0 0 40px rgba(16,185,129,0.08);
    }
}

/* ================= CLOSE BUTTON ================= */
.card-popout-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 42px;
    height: 42px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.05);
    color: #ffffff;
    font-size: 1.4rem;
    cursor: pointer;
    transition: 0.25s ease;
    backdrop-filter: blur(10px);
}

.card-popout-close:hover {
    background: rgba(16,185,129,0.15);
    border-color: rgba(16,185,129,0.4);
    box-shadow: 0 0 20px rgba(16,185,129,0.25);
    transform: scale(1.08);
}

/* ================= MEDIA ================= */
.card-popout-media {
    position: relative;
    height: 320px;
    overflow: hidden;
}

.card-popout-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.04);
}

.card-popout-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, transparent, rgba(5,10,20,0.55)),
        radial-gradient(circle at top left, rgba(16,185,129,0.12), transparent 40%);
}

/* ================= CONTENT ================= */
.card-popout-content {
    padding: 28px;
    background:
        radial-gradient(circle at top left, rgba(16,185,129,0.08), transparent 25%),
        linear-gradient(180deg, rgba(9,16,30,0.1), rgba(9,16,30,0.98));
}

.card-popout-top h3 {
    color: #fff;
    font-weight: 800;
    letter-spacing: -0.02em;
    text-transform: uppercase;
}

.card-popout-top span {
    color: #10b981;
    font-weight: 800;
}

.card-popout-content p {
    color: rgba(255,255,255,0.82);
    line-height: 1.75;
}

@media (max-width: 767px) {
    .vast-ai {
        padding: 64px 0;
    }

    .vast-ai-left {
        padding: 0 18px;
    }

    .vast-ai-brand {
        font-size: 1.6rem;
    }

    .vast-ai-headline {
        font-size: 1.35rem;
    }

    .vast-ai-lead {
        font-size: 0.9rem;
    }

    .slider-container {
        height: 420px;
    }

    .card {
        width: 170px;
        
    }

    .card-image {
        height: 300px;

    }

    .card-body {
        padding: 12px;
         border-radius: 24px;
    }

    .card-head h3 {
        font-size: 0.76rem;
    }

    .card-head span {
        font-size: 0.68rem;
    }

    .card-body p {
        display: none;
    }

    .card-popout {
        width: calc(100vw - 20px);
        border-radius: 18px;
    }

    .card-popout-media {
        height: 220px;
    }

    .card-popout-content {
        padding: 20px 18px 22px;
    }

    .card-popout-top h3 {
        font-size: 1.1rem;
    }

    .card-popout-content p {
        font-size: 0.92rem;
        line-height: 1.65;
    }
}

.card-popout {
    --x: 50%;
    --y: 50%;
}

/* dynamic glow layer */
.card-popout::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(
            circle 280px at var(--x) var(--y),
            rgba(16,185,129,0.18),
            transparent 60%
        );
    opacity: 0;
    transition: opacity 0.25s ease;
    pointer-events: none;
    z-index: 1;
}

/* activate glow on hover */
.card-popout:hover::before {
    opacity: 1;
}

/* ================= CLOSE BUTTON (UPGRADED) ================= */
.card-popout-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 42px;
    height: 42px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.05);
    color: #ffffff;
    font-size: 1.3rem;
    cursor: pointer;
    transition: all 0.25s ease;
    backdrop-filter: blur(10px);
    z-index: 10;

    display: flex;
    align-items: center;
    justify-content: center;
}

/* glow ring */
.card-popout-close::before {
    content: "";
    position: absolute;
    inset: -2px;
    border-radius: inherit;
    background: radial-gradient(circle, rgba(16,185,129,0.5), transparent 70%);
    opacity: 0;
    transition: opacity 0.25s ease;
    z-index: -1;
}

/* hover effect */
.card-popout-close:hover {
    transform: scale(1.12) rotate(90deg);
    background: rgba(16,185,129,0.12);
    border-color: rgba(16,185,129,0.5);
    box-shadow:
        0 0 20px rgba(16,185,129,0.35),
        0 0 40px rgba(16,185,129,0.15);
}

/* glow activates */
.card-popout-close:hover::before {
    opacity: 1;
}

/* click effect */
.card-popout-close:active {
    transform: scale(0.92);
}

.slider-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 999px;
    background: #cbd5e1;
    transition: all 0.35s ease;
    cursor: pointer;
}

.slider-dot.active {
    width: 30px;
    background: linear-gradient(90deg, #1d4ed8, #10b981);
    box-shadow: 0 0 12px rgba(16, 185, 129, 0.25);
} 


/* ================= MOBILE FIX ================= */
@media (max-width: 767px){

  /* Fix the huge arrow */
  .title span{
    font-size:30px !important;
  }
  

  /* Reduce headline */
  .vast-ai-headline{
    font-size:35px;
    line-height:1.1;
  }
  .material-symbols-rounded{
    font-size:15px !important;
  }
  /* Better spacing */
  .title{
    margin-top:0 !important;
    margin-bottom:10px !important;
  }

  .title div{
    margin-top:0 !important;
    margin-left:6px !important;
  }

  /* Fix logo size */
  .vast-ai-logo{
    width:60px;
    height:auto;
  }

  /* FIX CROPPED IMAGES */
  .vast-ai-feature-image{
    aspect-ratio:auto;
    height:220px;
  }

  .vast-ai-feature-image img{
    object-fit:cover;
    width:100%;
    height:100%;
  }

  /* Fix carousel width */
  .vast-ai-cards-track{
    grid-auto-columns:85%;
    gap:1rem;
    padding-top:1rem;
  }

  /* Smaller card text */
  .vast-ai-feature-head h3{
    font-size:14px;
  }

  .vast-ai-feature-body p{
    font-size:13px;
    line-height:1.4;
  }

  /* Smaller nav buttons */
  .vast-ai-nav-btn{
    width:44px;
    height:44px;
  }

}
.vast-arrow{
  font-size:100px;
}

@media (max-width:767px){
  .vast-arrow{
    font-size:40px;
  }
}
/* ==================== INDUSTRIES WE SERVE ==================== */
.industries-serve {
    position: relative;
    width: 100%;
    padding: 80px 0;
    overflow: hidden;
    background:
        radial-gradient(circle at 12% 18%, rgba(0, 180, 140, 0.10), transparent 18%),
        radial-gradient(circle at 88% 22%, rgba(0, 110, 255, 0.10), transparent 22%),
        linear-gradient(180deg, #f4f6fa 0%, #eef2f7 100%);
}

.industries-serve::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(10, 40, 90, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(10, 40, 90, 0.04) 1px, transparent 1px);
    background-size: 72px 72px;
    pointer-events: none;
}

.industries-serve__head {
    position: relative;
    z-index: 1;
    text-align: center;
    width: min(100%, 1600px);
    margin: 0 auto 64px;
    padding: 0 32px;
}

.industries-serve__title {
    font-family: var(--font-heading);
    font-size: clamp(2.4rem, 4vw, 4.3rem);
    font-weight: 600;
    line-height: 1;
    letter-spacing: -0.03em;
    color: #102b75;
    margin: 0;
}

/* FULL WIDTH */
.main-container {
    position: relative;
    z-index: 1;
    width: min(100%, 1600px);
    margin: 0 auto;
    padding: 100px 32px 32px 32px;
    display: flex;
    align-items: center;
    gap: 56px;
    min-height: 680px;
}

/* LEFT */
.carousel-section {
    flex: 1 1 50%;
    min-width: 0;
    height: 680px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-track {
    position: relative;
    width: 100%;
    height: 100%;
}

/* CARD */
.sector-card {
    position: absolute;
    top: 0;
    left: 50%;
    width: 100%;
    height: 100%;
    border-radius: 28px;
    overflow: hidden;
    opacity: 0;
    transform: translateX(-50%) scale(0.9);
    transition: all 0.65s ease;
    box-shadow:
        0 18px 50px rgba(7, 24, 60, 0.18),
        0 0 0 1px rgba(18, 70, 180, 0.08);
    background: #dfe6ef;
}

.sector-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(6, 20, 55, 0.08) 0%,
        rgba(6, 20, 55, 0.16) 100%
    );
    pointer-events: none;
}

.sector-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* STACK EFFECT */
.sector-card.center {
    transform: translateX(-50%) scale(1);
    opacity: 1;
    z-index: 3;
}

.sector-card.up-1 {
    transform: translate(-50%, -14%) scale(0.92);
    opacity: 0.36;
    z-index: 2;
    filter: saturate(0.9);
}

.sector-card.down-1 {
    transform: translate(-50%, 14%) scale(0.92);
    opacity: 0.36;
    z-index: 1;
    filter: saturate(0.9);
}

/* RIGHT */
.controls-section {
    flex: 1 1 50%;
    min-width: 0;
    min-height: 680px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 40px 24px 40px 16px;
}

.member-info {
    max-width: 640px;
    padding: 44px 46px;
    border-radius: 28px;
    background: linear-gradient(135deg, rgba(255,255,255,0.72), rgba(255,255,255,0.42));
    border: 1px solid rgba(16, 43, 117, 0.08);
    box-shadow:
        0 20px 50px rgba(18, 32, 80, 0.08),
        inset 0 1px 0 rgba(255,255,255,0.55);
    backdrop-filter: blur(12px);
}

.industry-kicker {
    display: inline-flex;
    align-items: center;
    margin-bottom: 18px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(16, 43, 117, 0.06);
    border: 1px solid rgba(0, 170, 120, 0.18);
    color: #00a06b;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.member-name {
    font-family: var(--font-heading);
    font-size: clamp(2.6rem, 4vw, 4rem);
    line-height: 0.98;
    letter-spacing: -0.03em;
    color: #102b75;
    margin: 0 0 18px;
    transition: opacity 0.3s ease;
}

.member-role {
    margin: 0;
    color: #5f6675;
    font-size: 1.1rem;
    line-height: 1.8;
    transition: opacity 0.3s ease;

    /* only 3 lines */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* DOTS */
.dots {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 28px;
    padding-left: 6px;
}

.dot {
    width: 12px;
    height: 12px;
    border: 0;
    border-radius: 999px;
    background: rgba(16, 43, 117, 0.16);
    cursor: pointer;
    padding: 0;
    transition: all 0.3s ease;
}

.dot:hover {
    transform: scale(1.2);
    background: rgba(16, 43, 117, 0.32);
}

.dot.active {
    width: 28px;
    background: linear-gradient(90deg, #102b75, #00a06b);
    box-shadow: 0 0 18px rgba(0, 160, 107, 0.22);
}

/* RESPONSIVE */
@media (max-width: 1100px) {
    .main-container {
        flex-direction: column;
        min-height: auto;
        gap: 40px;
    }

    .carousel-container {
        height: 150px;
    }

    .carousel-section,
    .controls-section {
        width: 100%;
        min-height: auto;
    }

    .carousel-section {
        height: 520px;
    }

    .controls-section {
        padding: 0;
        align-items: stretch;
    }

    .member-info {
        max-width: 100%;
    }

    .dots {
        justify-content: center;
        padding-left: 0;
    }
}

@media (max-width: 768px) {

  /* push whole section down a bit */
  .industries-serve {
    padding-top: 80px;
  }

  /* center + enlarge image */
  .industries-image-wrap,
  .industries-main-image {
    width: 100%;
    display: flex;
    justify-content: center;
  }

  .industries-main-image img {
    width: 100%;
    max-width: 360px; /* increase size */
    transform: scale(1.1); /* slightly zoom */
  }

  /* OR if using background image card */
  .industries-image {
    width: 100%;
    max-width: 360px;
    transform: scale(1.1);
    margin: 0 auto;
  }

  /* bring content lower */
  .industries-content {
    margin-top: 40px;
  }

  /* heading spacing fix */
  .industries-serve__title {
    margin-bottom: 30px;
    line-height: 1.1;
  }
}
/* ==================== PORTFOLIO SECTION ==================== */
/* ==================== CSR / PORTFOLIO SECTION ==================== */

/* SECTION */
.portfolio {
    padding: 80px 0;
    background: #efede8;
    overflow: hidden;
}

.container {
    max-width: 1200px;
    margin: auto;
    padding: 0 20px;
}

/* HEADER */
.section-header {
    text-align: center;
    margin-bottom: 64px;
}

/* FAN LAYOUT */
.portfolio-grid {
    position: relative;
    height: 600px;
}

/* CARDS */
.portfolio-item {
    position: absolute;
    width: 300px;
    height: 500px;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
    transition: all 0.4s ease;
    cursor: pointer;
}

/* IMAGE */
.portfolio-image {
    position: absolute;
    inset: 0;
}

.portfolio-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* OVERLAY */
.portfolio-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85), transparent 60%);
}

/* CONTENT */
.portfolio-content {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 24px;
    color: white;
}

.portfolio-category {
    font-size: 12px;
    font-weight: 600;
    background: white;
    color: #082a7b;
    padding: 6px 10px;
    border-radius: 20px;
    display: inline-block;
    margin-bottom: 10px;
}

.portfolio-title {
    font-size: 1.5rem;
    line-height: 1.2;
    margin-bottom: 10px;
}

.portfolio-desc {
    font-size: 0.9rem;
    line-height: 1.65;
    opacity: 0.9;
}

/* FAN POSITIONS */
.portfolio-item:nth-child(1) {
    left: 10%;
    transform: rotate(-12deg);
    z-index: 1;
}

.portfolio-item:nth-child(2) {
    left: 35%;
    transform: rotate(0deg) scale(1.05);
    z-index: 3;
}

.portfolio-item:nth-child(3) {
    left: 60%;
    transform: rotate(12deg);
    z-index: 1;
}

/* HOVER UP EFFECT */
.portfolio-item:hover {
    z-index: 10;
}

.portfolio-item:nth-child(1):hover {
    transform: translateY(-30px) rotate(-12deg) scale(1.05);
}

.portfolio-item:nth-child(2):hover {
    transform: translateY(-30px) rotate(0deg) scale(1.08);
}

.portfolio-item:nth-child(3):hover {
    transform: translateY(-30px) rotate(12deg) scale(1.05);
}

/* ==================== TABLET ==================== */
@media (max-width: 1024px) {
    .portfolio {
        padding: 90px 0 70px;
    }

    .section-header {
        margin-bottom: 42px;
    }

    .portfolio-grid {
        height: 540px;
    }

    .portfolio-item {
        width: 260px;
        height: 430px;
        border-radius: 24px;
    }

    .portfolio-item:nth-child(1) {
        left: 0%;
    }

    .portfolio-item:nth-child(2) {
        left: 0%;
    }

    .portfolio-item:nth-child(3) {
        left: 0%;
    }

    .portfolio-content {
        padding: 20px;
    }

    .portfolio-title {
        font-size: 1.25rem;
    }

    .portfolio-desc {
        font-size: 0.86rem;
    }
}

/* ==================== MOBILE ==================== */
@media (max-width: 768px) {
    .portfolio {
        padding: 70px 0 110px;
    }

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

    .portfolio-grid {
        position: static;
        height: auto;
        display: grid;
        grid-template-columns: 1fr;
        gap: 20px;
        justify-items: center;
    }

    .portfolio-item {
        position: relative;
        width: 100%;
        max-width: 360px;
        height: 400px;
        transform: none !important;
        margin: 0 auto;
        border-radius: 22px;
    }

    .portfolio-item:hover {
        transform: translateY(-8px) !important;
    }

    .portfolio-image {
        position: absolute;
        inset: 0;
        height: 100%;
        border-radius: 22px;
        overflow: hidden;
    }

    .portfolio-content {
        left: 50%;
        right: auto;
        transform: translateX(-50%);
        width: calc(100% - 24px);
        bottom: 12px;
        padding: 16px;
        text-align: center;
    }

    .portfolio-category {
        display: inline-block;
        margin: 0 auto 10px;
        font-size: 11px;
        padding: 7px 12px;
    }

    .portfolio-title {
        font-size: 1.1rem;
        line-height: 1.2;
        text-align: center;
        margin-bottom: 8px;
    }

    .portfolio-desc {
        font-size: 0.86rem;
        line-height: 1.55;
        text-align: center;
    }
}

/* ==================== SMALL MOBILE ==================== */
@media (max-width: 480px) {
    .portfolio {
        padding: 60px 0 120px;
    }

    .portfolio-item {
        max-width: 320px;
        height: 370px;
        border-radius: 20px;
    }

    .portfolio-image {
        border-radius: 20px;
    }

    .portfolio-content {
        width: calc(100% - 20px);
        bottom: 10px;
        padding: 14px;
    }

    .portfolio-category {
        font-size: 10px;
        padding: 6px 11px;
    }

    .portfolio-title {
        font-size: 1rem;
    }

    .portfolio-desc {
        font-size: 0.82rem;
        line-height: 1.5;
    }
}

/* ==================== OUR WORK MARQUEE ==================== */
.our-work-marquee {
    background: var(--color-navy);
    overflow: hidden;
}

.our-work-head {
    text-align: center;
    margin-bottom: 2.5rem;
}

.our-work-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1.1rem;
    border: 1px solid rgba(20, 28, 60, 0.12);
    border-radius: 999px;
    background: rgba(255,255,255,0.32);
    color: #1c2b64;
    font-family: var(--font-body);
    font-size: 0.82rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 1.2rem;
}

.our-work-pill-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #3557ff;
    display: inline-block;
}

.our-work-heading {
    font-family: var(--font-heading);
    font-size: clamp(2.4rem, 4vw, 3.8rem);
    line-height: 1.02;
    font-weight: 500;
    color: whitesmoke;
    letter-spacing: -0.01em;
    margin: 0;
}

.our-work-slider {
    overflow: hidden;
    width: 100%;
    position: relative;
}

.our-work-track {
    display: flex;
    align-items: stretch;
    gap: 1.25rem;
    width: max-content;
    animation: ourWorkScroll 70s linear infinite;
}

@keyframes ourWorkScroll {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}

.work-card {
    position: relative;
    width: 330px;
    min-width: 330px;
    height: 460px;
    border-radius: 28px;
    overflow: hidden;
    background: #10182d;
    cursor: pointer;
    flex-shrink: 0;
}

.work-card-media,
.work-card-media img,
.work-card-overlay {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.work-card-media img {
    object-fit: cover;
    display: block;
}

.work-card-overlay {
    background:
        linear-gradient(to top, rgba(16, 24, 45, 0.92) 0%, rgba(16, 24, 45, 0.65) 35%, rgba(16, 24, 45, 0.2) 60%, rgba(16, 24, 45, 0.06) 100%);
}

.work-card-content {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 18px;
    z-index: 2;
    padding: 1rem 1rem 1.05rem;
    border-radius: 18px;
    background: rgba(72, 55, 95, 0.34);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.work-card-kicker {
    font-family: var(--font-body);
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1.2;
    color: rgba(255,255,255,0.88);
    margin: 0 0 0.8rem;
}

.work-card-title {
    font-family: var(--font-body);
    font-size: 1.5rem;
    line-height: 1.12;
    font-weight: 500;
    color: #ffffff;
    margin: 0 0 0.45rem;
}

.work-card-text {
    font-family: var(--font-body);
    font-size: 0.9rem;
    line-height: 1.4;
    color: rgba(255,255,255,0.88);
    margin: 0 0 0.85rem;
}

.work-card-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: #ffffff;
    color: #1c2b64;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    font-family: var(--font-body);
    font-size: 0;
    position: relative;
    cursor: pointer;
}

.work-card-action::before {
    content: "▶";
    font-size: 1.1rem;
    line-height: 1;
    margin-left: 2px;
}

.work-card:hover .work-card-content {
    transform: translateY(-4px);
    transition: transform 0.3s ease;
}

/* modal */
.work-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
}

.work-modal.is-open {
    display: block;
}

.work-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(8, 12, 22, 0.72);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.work-modal-dialog {
    position: relative;
    width: min(1100px, calc(100vw - 32px));
    margin: 5vh auto;
    background: #f4f5f8;
    border-radius: 28px;
    overflow: hidden;
    z-index: 2;
    box-shadow: 0 30px 80px rgba(0,0,0,0.24);
}

.work-modal-close {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 48px;
    height: 48px;
    border: none;
    border-radius: 50%;
    background: rgba(28,43,100,0.08);
    color: #1c2b64;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    z-index: 5;
}

.work-modal-grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    min-height: 620px;
}

.work-modal-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.work-modal-content {
    padding: 4.5rem 3rem 3rem;
}

.work-modal-kicker {
    font-family: var(--font-body);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-green);
    margin: 0 0 1rem;
}

.work-modal-title {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 4vw, 4rem);
    line-height: 0.98;
    font-weight: 500;
    color: #111827;
    margin: 0 0 1.25rem;
}

.work-modal-description {
    font-family: var(--font-body);
    font-size: 1.05rem;
    line-height: 1.75;
    color: #4c556a;
    margin: 0 0 1.6rem;
}

.work-modal-points {
    list-style: none;
    padding: 0;
    margin: 0;
}

.work-modal-points li {
    position: relative;
    padding-left: 1.3rem;
    margin-bottom: 0.9rem;
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.6;
    color: #1f2937;
}

.work-modal-points li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.68rem;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--color-green);
}

@media (max-width: 1024px) {
    .work-card {
        width: 290px;
        min-width: 290px;
        height: 420px;
    }

    .our-work-track {
        animation-duration: 58s;
    }

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

    .work-modal-media {
        height: 320px;
    }
}

@media (max-width: 640px) {
    .our-work-heading {
        font-size: clamp(1.9rem, 8vw, 2.55rem);
    }

    .work-card {
        width: 260px;
        min-width: 260px;
        height: 390px;
        border-radius: 22px;
    }

    .work-card-title {
        font-size: 1.55rem;
    }

    .work-card-text {
        font-size: 0.92rem;
    }

    .work-card-action {
        width: 50px;
        height: 50px;
    }

    .work-modal-content {
        padding: 4rem 1.4rem 2rem;
    }
}

.work {
    min-width: 150px;
    border-radius: 999px;
    font-size: 0.95rem;
    font-weight: 700;
}

/* ✨ Cursor Glow Effect */
.work-card-content {
    position: absolute;
    overflow: hidden; /* IMPORTANT */
}

/* Glow layer */
/* ✨ Brand Cursor Glow */
.work-card-content::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(
        circle at var(--x, 50%) var(--y, 50%),
        rgba(53, 87, 255, 0.35),   /* 🔥 brand blue glow */
        rgba(53, 87, 255, 0.15) 20%,
        transparent 45%
    );
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

/* Show on hover */
.work-card:hover .work-card-content::before {
    opacity: 1;
}

/* ==================== EVENTS STACK SECTION ==================== */
.events-stack-section {
    position: relative;
    background: var(--color-light);
    padding: 80px 0;
}

.events-stack-header {
    text-align: center;
    margin-bottom: var(--space-16);
}

.events-stack-header-top {
    display: flex;
    align-items: flex-end;
    text-align: left;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

.events-stack-title {
    margin: 0;
}

.events-stack {
    position: relative;
    display: none;
}

@media (min-width: 1024px) {
    .events-stack {
        display: block;
        height: 360vh;
        max-width: 1120px;
        margin: 0 auto;
    }
}

.event-stack-card {
    position: sticky;
    top: 110px;
    width: 100%;
    margin: 0 auto;
    padding: 0;
    transition: transform 0.55s ease, opacity 0.55s ease;
    will-change: transform, opacity;
    transform-origin: center top;
    backface-visibility: hidden;
    transform: translateZ(0);
}

.event-stack-card:nth-child(1) { z-index: 1; }
.event-stack-card:nth-child(2) { z-index: 2; }
.event-stack-card:nth-child(3) { z-index: 3; }
.event-stack-card:nth-child(4) { z-index: 4; }

.event-stack-card-inner {
    position: relative;
    width: 100%;
    height: 680px;
    min-height: 680px;
    max-height: 680px;
    border-radius: 28px;
    overflow: hidden;
    background: #10182d;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.28);
}

/* MATCHES HTML */
.event-stack-media {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.event-stack-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* MATCHES HTML */
.event-stack-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(10, 15, 26, 0.10) 0%, rgba(10, 15, 26, 0.14) 18%, rgba(10, 15, 26, 0.72) 100%),
        linear-gradient(90deg, rgba(10, 15, 26, 0.52) 0%, rgba(10, 15, 26, 0.12) 52%, rgba(10, 15, 26, 0.38) 100%);
    pointer-events: none;
}

.event-stack-tags {
    position: absolute;
    top: 24px;
    left: 24px;
    display: flex;
    gap: 12px;
    z-index: 3;
    flex-wrap: wrap;
}

.event-stack-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 0 18px;
    border-radius: 999px;
    font-size: 0.88rem;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.92);
    color: #4b5563;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.event-stack-tag--primary {
    background: #2f54eb;
    color: #ffffff;
}

/* BOTTOM CONTENT AREA */
.event-stack-content {
    position: absolute;
    left: 24px;
    right: 24px;
    bottom: 24px;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    z-index: 2;
    border-radius: 26px;
}

/* CURSOR GLOW EFFECT */
.event-stack-content::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 26px;
    pointer-events: none;
    background: radial-gradient(
        260px circle at var(--x, 50%) var(--y, 50%),
        rgba(0, 255, 170, 0.12),
        transparent 60%
    );
    opacity: 0;
    transition: opacity 0.25s ease;
    z-index: 0;
}

.event-stack-content::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 26px;
    padding: 1px;
    pointer-events: none;
    background: linear-gradient(
        135deg,
        rgba(0, 255, 170, 0.55),
        rgba(47, 84, 235, 0.4),
        rgba(0, 255, 170, 0.55)
    );
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.25s ease;
    z-index: 0;
}

.event-stack-content:hover::before,
.event-stack-content:hover::after {
    opacity: 1;
}

.event-stack-content > * {
    position: relative;
    z-index: 1;
}

.event-stack-card-title {
    font-size: clamp(2.4rem, 4vw, 4rem);
    line-height: 0.98;
    color: #ffffff;
    margin-bottom: 16px;
}

.event-stack-card-text {
    font-size: 1rem;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.86);
    margin: 0;
}

.event-stack-card-copy,
.event-stack-content-box {
    max-width: 58%;
    background: rgba(49, 56, 88, 0.72);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-radius: 26px;
    padding: 28px 24px;
}

/* Since your HTML uses .event-stack-content directly for text,
   this keeps spacing inside it clean */
.event-stack-content {
    padding: 0;
}

/* action */
.event-stack-action {
    flex-shrink: 0;
}

.event-stack-link {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    min-height: 64px;
    padding: 10px 12px 10px 24px;
    border-radius: 999px;
    background: #ffffff;
    color: #24336b;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.event-stack-link span {
    width: 48px;
    height: 48px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #243b8f;
    color: #ffffff;
    transition: transform 0.3s ease, background 0.3s ease;
}

.event-stack-content:hover .event-stack-link {
    transform: translateY(-2px);
    box-shadow: 0 16px 30px rgba(0, 0, 0, 0.16);
}

.event-stack-content:hover .event-stack-link span {
    transform: rotate(8deg);
}

@media (max-width: 1279px) {
    .event-stack-card-inner {
        height: 620px;
        min-height: 620px;
        max-height: 620px;
    }

    .event-stack-card-title {
        font-size: clamp(2rem, 3.6vw, 3.3rem);
    }

    .event-stack-card-copy,
    .event-stack-content-box {
        max-width: 62%;
    }
}

@media (max-width: 1023px) {
    .events-stack {
        display: none;
        height: auto;
    }

    .event-stack-card {
        position: relative;
        top: auto;
        transform: none !important;
        opacity: 1 !important;
    }
}

/* ==================== CONTACT SECTION ==================== */
.contact {
    padding: 80px 0;
    background-color: var(--color-light);
}

.contact-grid {
    display: grid;
    gap: var(--space-12);
}

@media (min-width: 1024px) {
    .contact-grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-16);
    }
}

.contact-text {
    font-size: 1.125rem;
    color: var(--text-dark-secondary);
    line-height: 1.7;
    margin-bottom: var(--space-8);
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.contact-info-item {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    font-size: 1rem;
    color: var(--text-dark);
}

.contact-info-item svg {
    width: 20px;
    height: 20px;
    color: var(--color-green);
    flex-shrink: 0;
}

.contact-info-item a:hover {
    color: var(--color-green);
}

.contact-form-wrapper {
    background-color: var(--color-light-secondary);
    border-radius: 16px;
    padding: var(--space-8);
    box-shadow: var(--shadow-lg);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-5);
}

.form-row {
    display: grid;
    gap: var(--space-5);
}

@media (min-width: 480px) {
    .form-row {
        grid-template-columns: 1fr 1fr;
    }
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.form-group label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-dark);
}

.form-group input,
.form-group textarea {
    padding: var(--space-3) var(--space-4);
    font-size: 1rem;
    font-family: inherit;
    color: var(--text-dark);
    background-color: var(--color-light);
    border: 1px solid var(--color-light-tertiary);
    border-radius: 8px;
    transition: var(--transition-base);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-green);
    box-shadow: 0 0 0 3px var(--color-green-light);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-dark-tertiary);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* ==================== FOOTER ==================== */
.footer {
    padding: var(--space-16) 0 var(--space-8);
    background: linear-gradient(180deg, #233142 0%, #1b2735 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
    overflow: hidden;
}

/* subtle tech grid */
.footer::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 56px 56px;
    opacity: 0.25;
    pointer-events: none;
}

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

/* ================= GRID (3 COLUMNS) ================= */
.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-10);
    margin-bottom: var(--space-10);
}

@media (min-width: 640px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1.6fr 1fr 1.1fr;
        gap: var(--space-12);
        align-items: start;
    }
}

.footer-col {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

/* ================= BRAND ================= */
.footer .footer-logo {
    height: 40px;
    width: auto;
    max-width: 180px;
    margin-bottom: var(--space-5);
    display: block;
    object-fit: contain;
}

/* ================= TITLES ================= */
.footer-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: var(--space-4);
}

/* ================= ADDRESS ================= */
.footer-address {
    margin-bottom: var(--space-4);
}

.footer-address h5 {
    font-size: 0.95rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 6px;
}

.footer-address p {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.78);
    line-height: 1.7;
}

/* ================= EMAIL LINKS ================= */
.footer-contact-links {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: var(--space-4);
}

.footer-contact-links a {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--color-green);
    transition: var(--transition-base);
    word-break: break-word;
}

.footer-contact-links a:hover {
    color: #ffffff;
}

/* ================= PHONE / WHATSAPP ROWS ================= */
.footer-phones {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-phone {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9375rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.88);
    transition: var(--transition-base);
}

.footer-phone:hover {
    color: #ffffff;
}

.footer-phone-icon {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--color-green);
    color: #ffffff;
}

.footer-phone-icon svg {
    width: 15px;
    height: 15px;
    display: block;
}

/* ================= QUICK LINKS ================= */
.footer-nav-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-nav-list a {
    font-size: 0.9375rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.78);
    transition: var(--transition-base);
}

.footer-nav-list a:hover {
    color: #ffffff;
}

/* ================= SOCIAL (CONNECT WITH US) ================= */
.footer-social-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

.footer-social-pill {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 8px 16px 8px 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffffff;
    transition: all 0.3s ease;
}

.footer-social-pill:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(2, 138, 14, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.25);
}

.footer-social-icon {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.footer-social-pill:hover .footer-social-icon {
    background: var(--color-green);
}

.footer-social-icon svg {
    width: 18px;
    height: 18px;
    display: block;
}

.footer-social-label {
    flex: 1 1 auto;
    font-size: 0.9375rem;
    font-weight: 600;
    color: #ffffff;
}

.footer-social-arrow {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.6);
    transition: transform 0.3s ease, color 0.3s ease;
}

.footer-social-arrow svg {
    width: 18px;
    height: 18px;
    display: block;
}

.footer-social-pill:hover .footer-social-arrow {
    color: #ffffff;
    transform: translateX(3px);
}

/* ================= BOTTOM ================= */
.footer-bottom {
    padding-top: var(--space-6);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.footer-copyright {
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.64);
}

/* ================= MOBILE ================= */
@media (max-width: 767px) {
    .footer {
        padding: var(--space-12) 0 var(--space-8);
    }

    .footer-social-pill {
        width: 100%;
    }
}
/* ==================== REDUCED MOTION ==================== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .reveal {
        opacity: 1;
        transform: none;
    }
    
    .scroll-line {
        animation: none;
    }
    
    .hero-media video,
    .hero-media img {
        transform: none;
    }
    
    .solution-card {
        position: relative;
        top: auto;
        margin-bottom: var(--space-8);
    }
    
    .solutions-stack {
        height: auto;
    }
}
/* ==================== NEWSLETTER SECTION ==================== */
.newsletter {
    padding: 80px 0;
    background-color: var(--color-light);
}

.newsletter-card {
    position: relative;
    display: grid;
    gap: var(--space-8);
    background: linear-gradient(135deg, #07162c 0%, #0d2342 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(7, 22, 44, 0.16);
}

@media (min-width: 1024px) {
    .newsletter-card {
        grid-template-columns: 1.2fr 0.8fr;
        align-items: stretch;
    }
}

.newsletter-content {
    padding: var(--space-8);
}

@media (min-width: 768px) {
    .newsletter-content {
        padding: var(--space-10);
    }
}

.newsletter-title {
    margin-top: var(--space-3);
    margin-bottom: var(--space-4);
    font-size: clamp(1.4rem, 2.4vw, 2rem);
    line-height: 1.1;
    color: #ffffff;
}

.newsletter-text {
    max-width: 620px;
    font-size: 1rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.78);
    margin-bottom: var(--space-6);
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    margin-bottom: var(--space-4);
}

@media (min-width: 640px) {
    .newsletter-form {
        flex-direction: row;
        align-items: center;
    }
}

.newsletter-input {
    width: 100%;
    min-height: 56px;
    padding: 0 var(--space-4);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    font-size: 0.98rem;
    transition: var(--transition-base);
}

.newsletter-input::placeholder {
    color: rgba(255, 255, 255, 0.52);
}

.newsletter-input:focus {
    outline: none;
    border-color: var(--color-green);
    box-shadow: 0 0 0 3px rgba(0, 177, 64, 0.16);
    background: rgba(255, 255, 255, 0.1);
}

.newsletter-btn {
    min-width: 160px;
    min-height: 56px;
    border-radius: 999px;
    flex-shrink: 0;
}

.newsletter-note {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.58);
}

.newsletter-visual {
    position: relative;
    min-height: 260px;
    overflow: hidden;
}

@media (max-width: 1023px) {
    .newsletter-visual {
        min-height: 220px;
    }
}

.newsletter-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.newsletter-visual-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(7, 22, 44, 0.12) 0%, rgba(7, 22, 44, 0.7) 100%);
}

.newsletter-badge {
    position: absolute;
    left: 20px;
    bottom: 20px;
    display: inline-flex;
    align-items: center;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(10px);
    color: #ffffff;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.04em;
}

@media (max-width: 639px) {
    .newsletter-card {
        border-radius: 20px;
    }

    .newsletter-content {
        padding: var(--space-6);
    }

    .newsletter-title {
        font-size: 1.3rem;
    }

    .newsletter-btn {
        width: 100%;
    }
}
html {
    scroll-behavior: auto !important;
}

html.lenis,
html.lenis body {
    height: auto;
}

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

.lenis.lenis-stopped {
    overflow: hidden;
}
/* ==================== EVENTS STACK SECTION ==================== */
.events-stack-section {
    background: #eef0f4;
    padding: 80px 0;
}

.events-stack-header {
    margin-bottom: 2.5rem;
}

.events-stack-header-top {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 2rem;
}

.events-stack-title {
    max-width: 860px;
}

.events-stack {
    position: relative;
    height: 420vh;
}

.event-stack-card {
    position: sticky;
    top: 110px;
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
    padding: 0;
    will-change: transform;
    backface-visibility: hidden;
    transform: translateZ(0);
    transition: transform 0.55s ease, opacity 0.55s ease;
}

.event-stack-card-inner {
    position: relative;
    height: 690px;
    min-height: 690px;
    border-radius: 30px;
    overflow: hidden;
    background: #10182d;
    box-shadow: 0 22px 50px rgba(0, 0, 0, 0.18);
}

.event-stack-card:nth-child(1) { z-index: 1; }
.event-stack-card:nth-child(2) { z-index: 2; }
.event-stack-card:nth-child(3) { z-index: 3; }
.event-stack-card:nth-child(4) { z-index: 4; }


.event-stack-media,
.event-stack-media img,
.event-stack-overlay {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.event-stack-media img {
    object-fit: cover;
    display: block;
}

.event-stack-overlay {
    background:
        linear-gradient(to top, rgba(16, 24, 45, 0.92) 0%, rgba(16, 24, 45, 0.60) 34%, rgba(16, 24, 45, 0.20) 60%, rgba(16, 24, 45, 0.08) 100%);
}

.event-stack-tags {
    position: absolute;
    top: 28px;
    left: 28px;
    z-index: 2;
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.event-stack-tag {
    display: inline-flex;
    align-items: center;
    padding: 0.78rem 1.15rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    color: #5b6476;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1;
}

.event-stack-tag--primary {
    background: #2447e6;
    color: #ffffff;
}

.event-stack-content {
    position: absolute;
    left: 28px;
    bottom: 28px;
    z-index: 2;
    width: min(620px, calc(100% - 220px));
    padding: 1.75rem 1.75rem 1.6rem;
    border-radius: 22px;
    background: rgba(73, 76, 96, 0.52);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.event-stack-card-title {
    font-family: var(--font-body);
    font-size: clamp(2.2rem, 4vw, 3.5rem);
    line-height: 1.1;
    font-weight: 500;
    color: #ffffff;
    margin: 0 0 1rem;
}

.event-stack-card-text {
    font-family: var(--font-body);
    font-size: 1.05rem;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.92);
    margin: 0;
    max-width: 90%;
}

.event-stack-action {
    position: absolute;
    right: 28px;
    bottom: 28px;
    z-index: 2;
}

.event-stack-link {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    padding: 0.9rem 0.9rem 0.9rem 1.5rem;
    border-radius: 999px;
    background: #ffffff;
    color: #1c2b64;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
}

.event-stack-link span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #1c2b64;
    color: #ffffff;
    font-size: 1.25rem;
    line-height: 1;
}

@media (max-width: 1023px) {
    .events-stack-header-top {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .events-stack {
        height: auto;
    }

    .event-stack-card {
        position: relative;
        top: auto;
        margin-bottom: 1.5rem;
        transform: none !important;
        opacity: 1 !important;
    }

    .event-stack-card-inner {
        min-height: 560px;
    }

    .event-stack-content {
        width: calc(100% - 56px);
    }

    .event-stack-action {
        position: absolute;
        left: 28px;
        bottom: 28px;
        right: auto;
    }
}

/* ===== Amendments Mar 2026 ===== */
.hero-controls {
    width: auto;
    padding: 0.625rem 0.875rem;
    border-radius: 999px;
    background: rgba(6, 16, 34, 0.55);
    border: 1px solid rgba(255,255,255,0.16);
    backdrop-filter: blur(10px);
}

.slider-dot {
    appearance: none;
    border: 0;
    cursor: pointer;
}

.vast-ai-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    white-space: nowrap;
}

.footer-logo-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    margin-bottom: var(--space-4);
}

.footer-logo {
    height: 36px;
    width: auto;
    margin-bottom: 0;
    display: block;
    background: transparent !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

html.lenis,
html.lenis body {
    height: auto;
}

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

.lenis.lenis-stopped {
    overflow: hidden;
}
.vast-ai-cta-row {
    display: flex;
    justify-content: center;
    margin-top: 32px;
}

.vast-ai-bottom-cta {
    min-width: 220px;
    padding: 0.95rem 1.6rem;
    border-radius: 999px;
    font-size: 0.95rem;
    font-weight: 700;
}

.hover-text-slide {
    position: relative;
    display: inline-block;
    overflow: hidden;
    cursor: pointer;
}

.hover-text-slide span {
    display: inline-block;
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1),
                color 0.3s ease,
                text-shadow 0.3s ease;
    will-change: transform;
}

.hover-text-slide:hover span {
    transform: translateX(14px);
    color: #ffffff;
    text-shadow:
        0 0 10px rgba(83, 155, 255, 0.35),
        0 0 24px rgba(53, 87, 255, 0.22);
}



/* =========================
   GLOBAL RESPONSIVE PATCH
========================= */

html {
  -webkit-text-size-adjust: 100%;
}

body {
  overflow-x: hidden;
}

.container {
  width: min(100%, 1280px);
}

/* safer media */
img,
video,
svg,
canvas {
  max-width: 100%;
  height: auto;
}

/* better tap targets */
button,
a {
  -webkit-tap-highlight-color: transparent;
}

/* headings */
.hero-title,
.hero-title1,
.about-title,
.section-title,
.our-work-heading,
.industries-serve__title,
.member-name,
.work-card-title,
.solution-card-title {
  overflow-wrap: break-word;
  word-break: normal;
}

/* hover effects only on real hover devices */
@media (hover: hover) and (pointer: fine) {
  .hover-text-slide span,
  .hover-scroll-text span {
    transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
                text-shadow 0.3s ease;
  }

  .hover-text-slide:hover span,
  .hover-scroll-text:hover span {
    transform: translateX(10px);
    text-shadow:
      0 0 10px rgba(83, 155, 255, 0.35),
      0 0 24px rgba(53, 87, 255, 0.2);
  }
}

@media (hover: none), (pointer: coarse) {
  .hover-text-slide span,
  .hover-scroll-text span {
    transform: none !important;
    text-shadow: none !important;
  }
}

/* =========================
   LARGE DESKTOP
========================= */
@media (max-width: 1440px) {
  .hero-wrapper {
    gap: 40px;
    padding: 120px 32px 80px;
  }

  .main-container {
    gap: 40px;
  }
}

/* =========================
   LAPTOP / TABLET
========================= */
@media (max-width: 1199px) {
  .header-container {
    padding: 0 20px;
  }

  .hero-wrapper {
    gap: 32px;
    padding: 110px 24px 64px;
  }

  .hero-content {
    max-width: 100%;
  }

  .hero-title {
    font-size: clamp(2.8rem, 7vw, 5rem);
    line-height: 0.95;
  }

  .hero-title1 {
    font-size: clamp(1.45rem, 3.2vw, 2.4rem);
    line-height: 1;
  }

  .hero-subtitle {
    font-size: 1rem;
    line-height: 1.7;
  }

  .about-title {
    font-size: clamp(1.8rem, 4vw, 3.2rem);
    line-height: 1.05;
  }

  .section-title {
    font-size: clamp(1.6rem, 3.6vw, 3.2rem);
    line-height: 1.15;
  }

  .our-work-track {
    gap: 1rem;
  }

  .work-card {
    width: 300px;
    min-width: 300px;
    height: 430px;
  }

  .solution-card-inner,
  .solution-card-visual,
  .solution-card-content {
    height: 580px;
    min-height: 580px;
    max-height: 580px;
  }

  .solution-card-content {
    padding: 40px 32px;
  }
}

/* =========================
   TABLET
========================= */
@media (max-width: 991px) {
  .header {
    top: 0;
  }

  .header.scrolled {
    top: 0;
  }

  .header.scrolled .header-container {
    min-height: 72px;
    border-radius: 0;
    max-width: 100%;
  }

  .hero {
    min-height: auto;
  }

  .hero-wrapper {
    min-height: auto;
    flex-direction: column;
    text-align: center;
    gap: 28px;
    padding: 110px 20px 56px;
  }

  .hero-content {
    max-width: 760px;
  }

  .hero-cta-group {
    justify-content: center;
  }

  .hero-image {
    width: 100%;
  }

  .hero-image img {
    max-width: 520px;
    margin: 0 auto;
  }

  .about {
    padding: 80px 0;
  }

  .about-body p {
    text-align: left;
    hyphens: none;
  }

  .visonMisson {
    flex-direction: column;
    gap: 16px;
  }

  .cardVM {
    min-width: 0;
    width: 100%;
  }

  .our-work-heading {
    font-size: clamp(1.75rem, 5.6vw, 2.9rem);
    line-height: 1.05;
  }

  .our-work-slider {
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    padding: 0 20px 10px;
  }

  .our-work-track {
    width: max-content;
    animation: none !important;
    gap: 16px;
  }

  .work-card {
    scroll-snap-align: start;
  }

  .solutions {
    padding: 64px 0;
  }

  .solutions-header {
    margin-bottom: 48px;
  }

  .industries-serve {
    padding: 64px 0;
  }

  .main-container {
    flex-direction: column;
    gap: 28px;
    height: auto;
  }

  .carousel-section,
  .controls-section {
    width: 100%;
  }

  .controls-section {
    padding: 0 20px;
    text-align: center;
  }

  .member-info {
    max-width: 720px;
    margin: 0 auto;
  }

  .member-name {
    font-size: clamp(2rem, 6vw, 3rem);
  }

  .member-role {
    font-size: 1rem;
    line-height: 1.7;
  }
}

/* =========================
   MOBILE
========================= */
@media (max-width: 767px) {
  .container {
    padding: 0 18px;
  }

  .header-container {
    min-height: 72px;
    padding: 0 16px;
  }

  .logo img {
    height: 28px;
  }

  .nav-mobile {
    padding: 84px 16px 20px;
  }

  .nav-mobile-inner {
    max-width: 100%;
  }

  .nav-mobile-link,
  .nav-mobile-dropdown-toggle,
  .nav-mobile-nested-toggle {
    padding: 14px 16px;
    font-size: 0.96rem;
  }

  .nav-mobile-dropdown-link,
  .nav-mobile-nested-link {
    padding: 12px 14px;
    font-size: 0.88rem;
  }

  .hero::before {
    background-size: 44px 44px;
  }

  .hero::after {
    width: 260px;
    height: 260px;
    right: 50%;
    top: 30%;
    transform: translate(50%, -50%);
  }

  /* Restore full-viewport hero on mobile so the video fills the screen
     and content is genuinely centered rather than sitting high with an
     empty gap below the button. */
  .hero {
    min-height: 100svh;
  }

  .hero-wrapper {
    min-height: 100svh;
    align-items: center;
    justify-content: center;
    padding: 90px 20px 60px;
    gap: 20px;
  }

  .hero-tag {
    font-size: 0.7rem;
    padding: 7px 12px;
    margin-bottom: 18px;
  }

  .hero-title {
    font-size: clamp(2.2rem, 11vw, 3.2rem);
    line-height: 0.95;
    margin-bottom: 14px;
  }

  .hero-title1 {
    font-size: clamp(1.05rem, 5.6vw, 1.6rem);
    margin-bottom: 16px;
  }

  .hero-subtitle {
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 24px;
  }

  .hero-btn {
    width: 100%;
    max-width: 280px;
    padding: 14px 20px;
  }

  .hero-image img {
    max-width: 100%;
  }

  .about {
    padding: 48px 0 32px;
  }

  .section-label {
    font-size: 0.68rem;
    letter-spacing: 0.14em;
  }

  .about-title {
    font-size: clamp(1.5rem, 6.5vw, 2.1rem);
    line-height: 1.08;
    margin-bottom: 24px;
  }

  .cardVM {
    padding: 24px 18px;
    border-radius: 16px;
  }

  .cardVM h3 {
    font-size: 1.35rem;
    margin-bottom: 12px;
  }

  .cardVM p {
    font-size: 0.94rem;
    line-height: 1.7;
  }

  .about-btn {
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }

  .our-work-marquee {
    padding: 52px 0;
  }

  .our-work-head {
    margin-bottom: 24px;
  }

  .our-work-heading {
    font-size: clamp(1.5rem, 7.2vw, 2.25rem);
    line-height: 1.06;
  }

  .our-work-slider {
    padding: 0 16px 8px;
  }

  .work-card {
    width: 260px;
    min-width: 260px;
    height: 390px;
    border-radius: 22px;
  }

  .work-card-content {
    left: 14px;
    right: 14px;
    bottom: 14px;
    padding: 0.9rem;
    border-radius: 16px;
  }

  .work-card-title {
    font-size: 1.2rem;
    line-height: 1.12;
  }

  .work-card-text {
    font-size: 0.85rem;
    line-height: 1.45;
  }

  .work-card-action {
    width: 48px;
    height: 48px;
  }

  .solutions {
    padding: 48px 0;
  }

  .section-title {
    font-size: clamp(1.5rem, 6.4vw, 2.25rem);
    line-height: 1.12;
  }

  .section-title br {
    display: none;
  }

  .solutions-mobile-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .solution-mobile-card {
    padding: 18px;
    border-radius: 14px;
  }

  .solution-mobile-card h4 {
    font-size: 1rem;
  }

  .solution-mobile-card p {
    font-size: 0.85rem;
    line-height: 1.6;
  }

  .industries-serve__title {
    font-size: clamp(1.5rem, 6.4vw, 2.25rem);
    line-height: 1.08;
    text-align: center;
  }

  .main-container {
    gap: 20px;
  }

  .carousel-container {
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
  }

  .carousel-track {
    width: 100%;
    height: 100%;
  }

  .sector-card {
    width: 260px !important;
    height: 160px !important;
    left: 50% !important;
  }

  .controls-section {
    padding: 0 16px;
  }

  .industry-kicker {
    font-size: 0.72rem;
    letter-spacing: 0.14em;
  }

  .member-name {
    font-size: clamp(1.7rem, 8vw, 2.4rem);
    line-height: 1.05;
  }

  .member-role {
    font-size: 0.95rem;
    line-height: 1.7;
  }

  .dots {
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
  }

  .dot {
    width: 10px;
    height: 10px;
  }

  .btn,
  .btn-primary,
  .btn-outline {
    width: 100%;
    max-width: 320px;
  }
}

/* =========================
   SMALL MOBILE
========================= */
@media (max-width: 479px) {
  .container {
    padding: 0 14px;
  }

  .header-container {
    padding: 0 14px;
  }

  .hero-wrapper {
    padding: 96px 14px 42px;
  }

  .hero-title {
    font-size: clamp(2rem, 12vw, 2.6rem);
  }

  .hero-title1 {
    font-size: clamp(0.95rem, 4.8vw, 1.3rem);
  }

  .hero-subtitle {
    font-size: 0.9rem;
  }

  .about-title,
  .section-title,
  .our-work-heading,
  .industries-serve__title {
    font-size: clamp(1.35rem, 7.2vw, 1.85rem);
  }

  .cardVM {
    padding: 20px 16px;
  }

  .cardVM h3 {
    font-size: 1.2rem;
  }

  .cardVM p {
    font-size: 0.9rem;
  }

  .work-card {
    width: 238px;
    min-width: 238px;
    height: 370px;
  }

  .work-card-title {
    font-size: 1.08rem;
  }

  .sector-card {
    width: 230px !important;
    height: 145px !important;
  }

  .member-name {
    font-size: 1.5rem;
  }

  .member-role {
    font-size: 0.9rem;
  }
}

/* =========================
   LANDSCAPE PHONE / SHORT HEIGHT
========================= */
@media (max-height: 700px) and (orientation: landscape) {
  .hero {
    min-height: auto;
  }

  .hero-wrapper {
    min-height: auto;
    padding-top: 90px;
    padding-bottom: 40px;
  }

  .nav-mobile {
    padding-top: 72px;
  }
}

/* =========================================
   VAST AI + CSR MOBILE RESPONSIVE FIX
   paste at bottom of stylesheet
========================================= */

/* ---------- TABLET ---------- */
@media (max-width: 991px) {
  .vast-ai {
    padding: 64px 0;
  }

  .vast-ai-left {
    padding: 0 24px;
  }

  .vast-ai-logo-wrap.small {
    width: 82px;
    margin-bottom: 10px;
  }

  .vast-ai-subhead {
    margin: 0 0 10px;
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    line-height: 1.4;
  }

  .vast-ai-headline {
    font-size: clamp(2rem, 7vw, 3.2rem);
    line-height: 1.04;
    margin-bottom: 14px;
  }

  .vast-ai-lead {
    max-width: 100%;
    font-size: 0.95rem;
    line-height: 1.7;
    padding: 0 10px;
  }

  .slider-container {
    width: 100%;
    height: 430px;
    margin-left: 0;
    perspective: 900px;
    overflow: hidden;
  }

  .card {
    width: 210px;
    border-radius: 18px;
  }


  .card-body {
    padding: 14px 14px 18px;
    border-radius: 24px;
  }

  .card-head h3 {
    font-size: 0.88rem;
  }

  .card-head span {
    font-size: 0.78rem;
  }

  .card-body p {
    font-size: 0.82rem;
    line-height: 1.5;
  }

  .card-popout {
    width: min(92vw, 680px);
    border-radius: 20px;
  }

  .portfolio {
    padding: 64px 0;
  }

  .portfolio .section-header {
    text-align: center;
    margin-bottom: 24px;
  }

  .portfolio .section-title {
    font-size: clamp(2rem, 7vw, 3rem);
    line-height: 1.1;
    max-width: 560px;
    margin: 0 auto;
  }

  .portfolio-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .portfolio-item {
    border-radius: 24px;
    overflow: hidden;
  }

 

  .portfolio-content {
    bottom: 16px;
    padding: 18px 18px 20px;
  }

  .portfolio-title {
    font-size: 1.3rem;
    line-height: 1.2;
  }

  .portfolio-desc {
    font-size: 0.95rem;
    line-height: 1.65;
  }
}

/* ---------- MOBILE ---------- */
@media (max-width: 767px) {
  .vast-ai {
    padding: 56px 0;
  }

  .vast-ai::before {
    background-size: 44px 44px;
  }

  .vast-ai-top {
    gap: 22px;
  }

  .vast-ai-left {
    padding: 0 16px;
  }

  .vast-ai-logo-wrap.small {
    width: 72px;
    margin: 0 auto 8px;
  }

  .vast-ai-subhead {
    margin: 0 0 8px;
    font-size: 0.68rem;
    line-height: 1.4;
    letter-spacing: 0.12em;
  }

  .vast-ai-headline {
    font-size: clamp(1.75rem, 8vw, 2.5rem);
    line-height: 1.06;
    margin-bottom: 12px;
  }

  .vast-ai-lead {
    font-size: 0.9rem;
    line-height: 1.65;
    padding: 0;
  }

  .vast-ai-cta-row {
    margin-top: 16px;
  }

  .vast-ai-bottom-cta {
    min-height: 46px;
    padding: 0 22px;
    font-size: 0.82rem;
  }

  .slider-container {
    width: 100%;
    height: 340px;
    margin-left: 0;
    perspective: 700px;
    overflow: hidden;
  }

  .slider-track {
    transform-style: flat;
  }

  .card {
    width: 200px;
    border-radius: 16px;
  }


  .card-body {
    padding: 12px 12px 15px;
    border-radius: 24px;
  }

  .card-head {
    gap: 8px;
    margin-bottom: 8px;
  }

  .card-head h3 {
    font-size: 0.78rem;
    line-height: 1.15;
  }

  .card-head span {
    font-size: 0.72rem;
  }

  .card-body p {
    font-size: 0.74rem;
    line-height: 1.45;
  }

  .card-popout {
    width: calc(100vw - 20px);
    top: 50%;
    border-radius: 18px;
  }

  .card-popout-close {
    width: 40px;
    height: 40px;
    top: 12px;
    right: 12px;
  }

  .portfolio {
    padding: 52px 0;
  }

  .portfolio .section-header {
    margin-bottom: 20px;
  }

  .portfolio .section-title {
    font-size: clamp(1.8rem, 9vw, 2.5rem);
    line-height: 1.12;
    max-width: 320px;
    margin: 0 auto;
    text-align: center;
  }

  .portfolio .section-title br {
    display: none;
  }

  .portfolio-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .portfolio-item {
    border-radius: 22px;
    overflow: hidden;
  }

  .portfolio-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .portfolio-content {
    bottom: 12px;
    padding: 14px 14px 16px;
    border-radius: 16px;
  }

  .portfolio-category {
    font-size: 0.75rem;
    padding: 8px 12px;
    border-radius: 999px;
  }

  .portfolio-title {
    font-size: 1.08rem;
    line-height: 1.18;
    margin: 10px 0 8px;
  }

  .portfolio-desc {
    font-size: 0.88rem;
    line-height: 1.55;
  }
}

/* ---------- SMALL MOBILE ---------- */
@media (max-width: 479px) {
  .vast-ai {
    padding: 48px 0;
  }

  .vast-ai-left {
    padding: 0 14px;
  }

  .vast-ai-headline {
    font-size: clamp(1.55rem, 9vw, 2.1rem);
  }

  .vast-ai-lead {
    font-size: 0.86rem;
  }

  .slider-container {
    height: 300px;
  }

  .card {
    width: 180px;
    border-radius: 14px;
  }

  .card-body {
    padding: 10px 10px 12px;
  }

  .card-head h3 {
    font-size: 0.72rem;
  }

  .card-head span {
    font-size: 0.66rem;
  }

  .card-body p {
    font-size: 0.7rem;
    line-height: 1.4;
  }

  .portfolio {
    padding: 46px 0;
  }

  .portfolio .section-title {
    font-size: clamp(1.65rem, 9vw, 2.1rem);
    max-width: 290px;
  }


  .portfolio-content {
    bottom: 10px;
    padding: 12px 12px 14px;
  }

  .portfolio-title {
    font-size: 1rem;
  }

  .portfolio-desc {
    font-size: 0.84rem;
  }
}


/* ===== Mobile refinement: Vision & Mission card bottom spacing ===== */
@media (max-width: 640px) {
  .visonMisson {
    gap: 18px;
  }

  .cardVM {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    min-height: unset !important;
    height: auto !important;
    padding: 40px 18px 2px !important;
  }

  .cardVM h3 {
    margin-bottom: 10px;
  }

  .cardVM p {
    margin: 0 !important;
    line-height: 1.58;
  }
}
/* ===== Mobile: section spacing for inline-padded sections ===== */
@media (max-width: 768px) {
  #what-we-solve {
    padding: 40px 0 !important;
  }

  #partners {
    padding: 48px 0 !important;
  }

  /* Industries: reduce bottom margin between heading and card area */
  .industries-serve__head {
    margin-bottom: 28px;
  }

  /* Events: reduce large top padding (no existing mobile override) */
  .events-stack-section {
    padding: 52px 0;
  }

  /* Contact: reduce large top padding (no existing mobile override) */
  .contact {
    padding: 48px 0;
  }
}

/* ===== Mobile: Technology Partners grid wraps to 2 columns ===== */
@media (max-width: 768px) {
  .partners-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 0.85rem !important;
  }
}

/* ==================== BUTTON STANDARDIZATION ==================== */
:root {
    --btn-glow-bg: linear-gradient(135deg, #00b140, #00d84f);
    --btn-glow-shadow: 0 10px 25px rgba(0, 216, 79, 0.28);
    --btn-glow-shadow-hover: 0 16px 38px rgba(0, 216, 79, 0.38);
    --btn-glow-ring: rgba(0, 255, 170, 0.22);
}

/* Shared solid glow button */
.btn-primary,
.hero-btn,
.header-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: 14px 26px;
    min-height: 50px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    background: var(--btn-glow-bg);
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
    box-shadow:
        var(--btn-glow-shadow),
        0 0 0 1px rgba(255, 255, 255, 0.05) inset,
        0 0 24px var(--btn-glow-ring);
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease,
        filter 0.3s ease,
        background 0.3s ease;
    position: relative;
    overflow: hidden;
}

/* soft glow shimmer */
.btn-primary::before,
.hero-btn::before,
.header-cta::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        120deg,
        transparent 0%,
        rgba(255, 255, 255, 0.18) 35%,
        transparent 70%
    );
    transform: translateX(-120%);
    transition: transform 0.7s ease;
    pointer-events: none;
}

.btn-primary:hover,
.hero-btn:hover,
.header-cta:hover {
    transform: translateY(-3px);
    box-shadow:
        var(--btn-glow-shadow-hover),
        0 0 0 1px rgba(255, 255, 255, 0.08) inset,
        0 0 34px rgba(0, 255, 170, 0.32);
    filter: brightness(1.04);
}

.btn-primary:hover::before,
.hero-btn:hover::before,
.header-cta:hover::before {
    transform: translateX(120%);
}

.btn-primary:focus-visible,
.hero-btn:focus-visible,
.header-cta:focus-visible {
    outline: none;
    box-shadow:
        var(--btn-glow-shadow-hover),
        0 0 0 3px rgba(255, 255, 255, 0.12),
        0 0 0 6px rgba(0, 255, 170, 0.18);
}

.btn-primary:active,
.hero-btn:active,
.header-cta:active {
    transform: translateY(-1px) scale(0.985);
}

/* Keep outline buttons different but cleaner */
.btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: 14px 26px;
    min-height: 50px;
    border-radius: 10px;
    border: 1.5px solid rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-primary);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: var(--transition-base);
}

.btn-outline:hover {
    transform: translateY(-3px);
    border-color: rgba(0, 255, 170, 0.45);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 24px rgba(0, 255, 170, 0.14);
}
/* =========================================================
   LAPTOP / VIEWPORT FIXES
   Paste this at the VERY BOTTOM of styles.css
========================================================= */

:root {
  --stack-sticky-top: clamp(88px, 9vh, 110px);
  --stack-card-height: clamp(520px, calc(100dvh - 150px), 680px);
}

/* Make hero adapt better to laptop height */
.hero {
  min-height: 100svh;
  min-height: 100dvh;
}

.hero-wrapper {
  min-height: min(100dvh, 980px);
  padding: clamp(96px, 11vh, 120px) clamp(20px, 3vw, 50px) clamp(44px, 8vh, 80px);
}

@media (max-width: 1199px) {
  .hero-wrapper {
    min-height: min(100dvh, 860px);
    gap: 28px;
    padding: clamp(88px, 10vh, 108px) 24px clamp(36px, 6vh, 64px);
  }

  .hero-title {
    font-size: clamp(2.6rem, 6vw, 4.8rem);
    line-height: 0.95;
  }

  .hero-title1 {
    font-size: clamp(1.25rem, 2.8vw, 2.15rem);
    line-height: 1;
  }

  .hero-subtitle {
    font-size: 0.98rem;
    line-height: 1.65;
  }
}

/* Prevent sticky cards from visually bleeding into other sections */
.solutions,
.events-stack-section,
.newsletter,
.footer {
  position: relative;
  isolation: isolate;
}

/* Desktop / laptop stack sizing */
@media (min-width: 1024px) {
  .solutions-stack,
  .events-stack {
    height: auto !important;
  }

  .solution-card,
  .event-stack-card {
    top: var(--stack-sticky-top) !important;
    contain: layout paint;
    will-change: transform, opacity;
  }

  .solution-card-inner,
  .solution-card-visual,
  .solution-card-content,
  .event-stack-card-inner {
    height: var(--stack-card-height) !important;
    min-height: var(--stack-card-height) !important;
    max-height: var(--stack-card-height) !important;
  }

  .solution-card-content {
    overflow: auto;
  }
}

@media (min-width: 1024px) and (max-width: 1279px) {
  .solution-card-content {
    padding: 32px 28px !important;
  }

  .event-stack-content {
    width: min(560px, calc(100% - 180px)) !important;
  }

  .event-stack-card-text {
    max-width: 100% !important;
  }
}

/* Keep mobile/tablet clean */
@media (max-width: 1023px) {
  .solutions-stack,
  .events-stack {
    display: none !important;
    height: auto !important;
  }

  .solution-card,
  .event-stack-card {
    position: relative !important;
    top: auto !important;
    transform: none !important;
    opacity: 1 !important;
    z-index: auto !important;
  }

  .solution-card-inner,
  .solution-card-visual,
  .solution-card-content,
  .event-stack-card-inner {
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
  }
}
/* =========================================================
   PATCH 2 — remove scrollbar + clean sharp edges
   Paste at the VERY BOTTOM of styles.css
========================================================= */

@media (min-width: 1024px) {
  .solution-card,
  .event-stack-card {
    isolation: isolate;
  }

  .solution-card-inner {
    overflow: hidden !important;
    border-radius: 28px !important;
    backface-visibility: hidden;
    transform: translateZ(0);
    outline: 1px solid transparent;
    clip-path: inset(0 round 28px);
  }

  .event-stack-card-inner {
    overflow: hidden !important;
    border-radius: 30px !important;
    backface-visibility: hidden;
    transform: translateZ(0);
    outline: 1px solid transparent;
    clip-path: inset(0 round 30px);
  }

  .solution-card-content {
    overflow: hidden !important;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .solution-card-content::-webkit-scrollbar {
    display: none;
  }
}

/* ==================== VASTIQ NAV + FOOTER PATCH ==================== */
.menu-toggle {
  position: relative;
}

.nav-mobile-top {
  display: none;
}

.nav-mobile-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
  font-size: 1.45rem;
  line-height: 1;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
  transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

.nav-mobile-close:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

@media (max-width: 1279px) {
  .header-container {
    gap: 10px;
  }

  .header-cta {
    display: inline-flex;
    padding: 11px 16px;
    min-height: 42px;
    font-size: 0.82rem;
    border-radius: 12px;
    box-shadow:
      0 10px 22px rgba(2, 138, 14, 0.22),
      0 0 0 1px rgba(255, 255, 255, 0.06) inset;
  }

  .nav-mobile {
    padding-top: 92px;
  }

  .nav-mobile-top {
    position: sticky;
    top: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 0 auto 18px;
    padding: 0 0 4px;
    max-width: 560px;
  }

  .nav-mobile-title {
    font-size: 0.92rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.72);
  }
}

@media (max-width: 767px) {
  .header-container {
    min-height: 72px;
    padding: 0 14px;
  }

  .header-cta {
    padding: 9px 13px;
    min-height: 38px;
    font-size: 0.76rem;
    border-radius: 10px;
  }

  .menu-toggle {
    padding: 6px;
  }

  .menu-toggle span {
    width: 22px;
  }

  .nav-mobile {
    padding: 82px 16px 20px;
  }

  .nav-mobile-top {
    margin-bottom: 14px;
  }

  .nav-mobile-close {
    width: 40px;
    height: 40px;
    font-size: 1.3rem;
  }
}

/* "What we solve" problem cards — 2-up grid (moved from inline style, desktop unchanged) */
.solve-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}
.solve-grid > div { min-width: 0; }

/* Very narrow phones (e.g. iPhone SE 320px): keep the header row on one line */
@media (max-width: 374px) {
  .header-container {
    padding: 0 10px;
    gap: 8px;
  }
  .header-cta {
    padding: 8px 10px;
    font-size: 0.72rem;
  }
  /* stack the problem cards so long words don't force horizontal overflow */
  .solve-grid {
    grid-template-columns: 1fr;
  }
}


/* ── Nav dropdown (shared across all pages) ── */
.nav-desktop .nav-list {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-desktop .nav-item {
  position: relative;
}
.nav-desktop .nav-link {
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
  font-size: 0.85rem;
  color: #fff;
  text-decoration: none;
  transition: opacity 0.2s;
  white-space: nowrap;
}
.nav-desktop .nav-link:hover { opacity: 0.7; }
.nav-desktop .dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: rgba(17, 22, 31, 0.95);
  backdrop-filter: blur(12px);
  border-radius: 12px;
  padding: 0.75rem 0;
  min-width: 180px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all 0.2s ease;
  z-index: 1000;
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 12px 28px rgba(0,0,0,0.25);
}
.nav-desktop .nav-item:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav-desktop .dropdown-menu a {
  display: block;
  padding: 0.6rem 1.2rem;
  font-family: 'Poppins', sans-serif;
  font-size: 0.8rem;
  color: #eee;
  text-decoration: none;
  transition: background 0.2s;
}
.nav-desktop .dropdown-menu a:hover {
  background: rgba(255,255,255,0.08);
  color: #fff;
}

/* ── Mobile nav (shared across all pages) ── */
.nav-mobile-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.nav-mobile-list li {
  margin: 0.25rem 0;
}
.nav-mobile-link {
  display: block;
  padding: 0.75rem 1rem;
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  color: #fff;
  text-decoration: none;
  border-radius: 10px;
  transition: background 0.2s;
}
.nav-mobile-link:hover {
  background: rgba(255,255,255,0.1);
}
.nav-mobile-sub {
  padding-left: 1.25rem;
  margin-top: 0.25rem;
  margin-bottom: 0.5rem;
  border-left: 1px solid rgba(255,255,255,0.2);
}
.nav-mobile-sub .nav-mobile-link {
  font-size: 0.9rem;
  padding-left: 1.5rem;
}


/* ==================== UPCOMING EVENTS CAROUSEL (Phase 2) ==================== */
.uev-section {
  background: #0a0f1a;
  padding: 96px 0 104px;
  overflow: hidden;
}
.uev-header {
  max-width: 1440px;
  margin: 0 auto 2.75rem;
  padding: 0 1.5rem;
  text-align: center;
}
.uev-header .section-title { color: #ffffff; }
.uev-sub {
  font-family: 'Kumbh Sans', sans-serif;
  color: #FFFFFF;
  font-size: 0.95rem;
  max-width: 580px;
  margin: 0.75rem auto 0;
  line-height: 1.7;
}
.uev-carousel {
  position: relative;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 clamp(0.75rem, 4vw, 3rem);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.uev-track {
  display: flex;
  gap: 1.5rem;
  flex: 1;
  min-width: 0;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scroll-behavior: smooth;
  padding: 2rem clamp(1rem, 12vw, 12%);
  scrollbar-width: none;
  -ms-overflow-style: none;
  cursor: grab;
}
.uev-track::-webkit-scrollbar { display: none; }
.uev-track.uev-dragging { cursor: grabbing; scroll-behavior: auto; }

.uev-card {
  scroll-snap-align: center;
  flex: 0 0 clamp(280px, 58vw, 440px);
  background: rgba(255,255,255,0.045);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 24px;
  overflow: hidden;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transform: scale(0.9);
  opacity: 0.5;
  transition: transform 0.55s cubic-bezier(0.22,1,0.36,1), opacity 0.55s ease, border-color 0.55s ease;
  box-shadow: 0 24px 55px rgba(0,0,0,0.4);
}
.uev-card.is-active {
  transform: scale(1);
  opacity: 1;
  border-color: rgba(0,200,150,0.35);
}
.uev-card__media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.uev-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.uev-card__media-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(10,15,26,0.9) 0%, rgba(10,15,26,0.15) 55%, transparent 100%);
}
.uev-card__body { padding: 1.4rem 1.5rem 1.6rem; }
.uev-card__tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 0.9rem; }
.uev-tag {
  font-family: 'Poppins', sans-serif; font-size: 0.66rem; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: rgba(255,255,255,0.72);
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 999px; padding: 0.32rem 0.8rem;
}
.uev-tag--primary { color: #00c896; background: rgba(0,200,150,0.1); border-color: rgba(0,200,150,0.28); }
.uev-card__title {
  font-family: 'Poppins', sans-serif; font-size: 1.15rem; font-weight: 700;
  color: #ffffff; line-height: 1.3; margin-bottom: 0.65rem;
}
.uev-card__text {
  font-family: 'Kumbh Sans', sans-serif; font-size: 0.9rem;
  color: rgba(255,255,255,0.58); line-height: 1.7; margin-bottom: 1.1rem;
}
.uev-card__link {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-family: 'Poppins', sans-serif; font-size: 0.82rem; font-weight: 600;
  color: #00c896; transition: gap 0.25s ease;
}
.uev-card__link:hover { gap: 0.65rem; }

.uev-nav {
  flex-shrink: 0; width: 48px; height: 48px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.14);
  color: #fff; cursor: pointer; z-index: 2;
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}
.uev-nav:hover { background: rgba(0,200,150,0.18); border-color: rgba(0,200,150,0.4); transform: translateY(-2px); }
.uev-nav svg { width: 20px; height: 20px; }

.uev-dots { display: flex; justify-content: center; gap: 0.5rem; margin-top: 1.5rem; }
.uev-dot { width: 8px; height: 8px; border-radius: 50%; border: none; background: rgba(255,255,255,0.22); cursor: pointer; padding: 0; transition: all 0.3s ease; }
.uev-dot.active { background: #00c896; width: 26px; border-radius: 999px; }

@media (max-width: 767px) {
  .uev-section { padding: 72px 0 80px; }
  .uev-nav { display: none; }
  .uev-carousel { padding: 0; }
  .uev-track { padding: 1.5rem 11%; gap: 1rem; }
  .uev-card { flex-basis: 80vw; }
}

/* ==================== WHO TRUSTS US — interactive scroller (Task 8) ==================== */
.our-work-slider.owt-interactive {
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
  cursor: grab;
  scroll-behavior: auto;
}
.our-work-slider.owt-interactive::-webkit-scrollbar { display: none; }
.our-work-slider.owt-dragging { cursor: grabbing; }
.our-work-slider.owt-interactive .our-work-track { animation: none !important; }

/* ==================== UPCOMING EVENTS — stage arrows + card links (Phase 2.2) ==================== */
/* Base stage: arrows overlaid absolutely (used by the vast-nxt-ai .vn-platform
   carousel, which shares .uev-stage / .uev-nav). */
.uev-stage {
  position: relative;
}
.uev-stage .uev-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 200;
}
.uev-stage .uev-nav--prev { left: clamp(4px, 2vw, 24px); }
.uev-stage .uev-nav--next { right: clamp(4px, 2vw, 24px); }
.uev-stage .uev-nav:hover { transform: translateY(calc(-50% - 2px)); }

/* Homepage Upcoming Events only: arrows sit OUTSIDE the carousel via a flex row
   of [prev] [carousel (flex:1)] [next], so the buttons never overlap the tilted
   peek cards and are never clipped by the carousel's overflow:hidden.
   Scoped to #upcoming-events so the vast-nxt-ai carousel keeps its own layout. */
#upcoming-events .uev-stage {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(10px, 2.5vw, 34px);
}
#upcoming-events .uev-stage .slider-container {
  flex: 1 1 0%;
  min-width: 0;
}
#upcoming-events .uev-stage .uev-nav {
  position: static;
  transform: none;
  flex-shrink: 0;
}
#upcoming-events .uev-stage .uev-nav:hover { transform: translateY(-2px); }

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 10px;
  font-family: 'Poppins', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  color: #00c896;
  transition: gap 0.25s ease;
}
.card-link:hover { gap: 0.65rem; }

.card-popout-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 14px;
  font-family: 'Poppins', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: #00c896;
  transition: gap 0.25s ease;
}
.card-popout-link:hover { gap: 0.65rem; }

/* ==================== UPCOMING EVENTS — bigger single-active cards (Phase 2.3) ==================== */
#upcoming-events .slider-container { padding: 15px; }
/* #id specificity overrides the responsive .slider-container heights (430/420/300) so the
   taller single-active cards never clip on tablet / mobile. Desktop keeps its native height. */
@media (max-width: 991px) { #upcoming-events .slider-container { height: 520px; } }
#upcoming-events .card { width: 300px; }
@media (max-width: 991px) { #upcoming-events .card { width: 250px; } }
@media (max-width: 767px) { #upcoming-events .card { width: 235px; } }
@media (max-width: 479px) { #upcoming-events .card { width: 210px; } }

/* Roomier, more premium content spacing on the Upcoming Events cards (desktop/tablet).
   Scoped to #upcoming-events so the shared .card styles on other carousels are untouched.
   The card is a flex column: the image stays fixed at the top, the body fills the rest,
   and the CTA is pushed to the bottom with margin-top:auto — so every card has identical
   bottom padding and the "Explore More" button lines up regardless of title/description
   length (no per-card or hardcoded spacing). */
@media (min-width: 768px) {
  #upcoming-events .card { display: flex; flex-direction: column; }
  #upcoming-events .card-image { flex-shrink: 0; }
  #upcoming-events .card-body {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    padding: 22px 22px 26px;
  }
  #upcoming-events .card-head { margin-bottom: 16px; }   /* title -> description */
  #upcoming-events .card-body p { margin-bottom: 0; }
  #upcoming-events .card-link { margin-top: auto; }        /* pin CTA to the bottom */
}

/* Mobile: let each card size to its OWN content so it ends right after the CTA.
   height:auto !important overrides the per-card pixel height the carousel JS writes
   inline, so no card is stretched to match the tallest one and no empty dark-blue
   band is left below the content. */
@media (max-width: 767px) {
  #upcoming-events .card { height: auto !important; }
  #upcoming-events .card-body { padding-bottom: 20px; }
}

/* ==================== VAST-NXT.AI "The Platform" — single-active carousel (Phase 3) ==================== */
/* Mirrors the homepage Upcoming Events sizing; scoped to .vn-platform so the homepage is untouched. */
.vn-platform .slider-container { padding: 15px; }
@media (max-width: 991px) { .vn-platform .slider-container { height: 520px; } }
.vn-platform .card { width: 300px; }
@media (max-width: 991px) { .vn-platform .card { width: 250px; } }
@media (max-width: 767px) { .vn-platform .card { width: 235px; } }
@media (max-width: 479px) { .vn-platform .card { width: 210px; } }
/* Task 2: 20px padding around the text-content area (image stays full-width at top) */
.vn-platform .card-body { padding: 20px; }

/* ═══════════════════════════════════════════════════════════════
   PAST EVENTS SECTION (homepage) — duplicated from Events page
   ═══════════════════════════════════════════════════════════════ */
.ev-section { padding: 80px 0; }
.ev-section--dark  { background: var(--color-navy); }

.ev-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.ev-section-label {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 0.65rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.9rem;
}

.ev-section-label::before {
    content: '';
    display: block;
    width: 18px;
    height: 2px;
    flex-shrink: 0;
}

.ev-section-label--on-dark  { color: rgba(255,255,255,0.38); }
.ev-section-label--on-dark::before  { background: rgba(255,255,255,0.22); }

.ev-section-heading {
    font-family: 'Poppins', sans-serif !important;
    font-weight: 600 !important;
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    line-height: 1.15;
    letter-spacing: -0.025em;
}

.ev-section-heading--light { color: #ffffff; }

.ev-past__head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 2.75rem;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.ev-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.ev-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: border-color 0.25s ease, transform 0.25s ease;
}

.ev-card:hover {
    border-color: rgba(2,138,14,0.3);
    transform: translateY(-4px);
}

.ev-card__media {
    position: relative;
    aspect-ratio: 16/10;
    overflow: hidden;
    background: #050d14;
}

.ev-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    opacity: 0.75;
    transition: opacity 0.3s ease, transform 0.5s ease;
}

.ev-card:hover .ev-card__media img {
    opacity: 0.9;
    transform: scale(1.04);
}

.ev-card__media-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(6,15,26,0.7) 0%, transparent 55%);
}

.ev-card__tags {
    position: absolute;
    bottom: 0.9rem;
    left: 1rem;
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
    z-index: 2;
}

.ev-tag {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 0.6rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.28rem 0.7rem;
    border-radius: 100px;
}

.ev-tag--primary {
    background: var(--color-green);
    color: #ffffff;
}

.ev-tag--secondary {
    background: rgba(255,255,255,0.15);
    color: rgba(255,255,255,0.88);
    backdrop-filter: blur(4px);
}

.ev-card__body {
    padding: 1.5rem 1.5rem 1rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.ev-card__date {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-family: 'Kumbh Sans', sans-serif;
    font-size: 0.75rem;
    color: rgba(255,255,255,0.3);
    margin-bottom: 0.85rem;
}

.ev-card__date svg {
    width: 12px; height: 12px;
    stroke: rgba(255,255,255,0.28); fill: none;
    stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
    flex-shrink: 0;
}

.ev-card__title {
    font-family: 'Poppins', sans-serif !important;
    font-weight: 600 !important;
    font-size: 1rem;
    color: #ffffff;
    line-height: 1.35;
    margin-bottom: 0.6rem;
}

.ev-card__desc {
    font-family: 'Kumbh Sans', sans-serif;
    font-size: 0.85rem;
    line-height: 1.7;
    color: rgba(255,255,255,0.48);
    flex: 1;
}

.ev-card__footer {
    padding: 0 1.5rem 1.4rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.ev-card__link {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 0.78rem;
    color: var(--color-green);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    transition: gap 0.18s ease;
}

.ev-card__link:hover { gap: 0.65rem; }

.ev-card__link svg {
    width: 13px; height: 13px;
    stroke: currentColor; fill: none;
    stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round;
}

.ev-card__location {
    font-family: 'Kumbh Sans', sans-serif;
    font-size: 0.72rem;
    color: rgba(255,255,255,0.25);
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.ev-card__location svg {
    width: 11px; height: 11px;
    stroke: rgba(255,255,255,0.22); fill: none;
    stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}

.ev-blog-row {
    margin-top: 2.5rem;
    text-align: center;
}

.ev-blog-link {
    font-family: 'Kumbh Sans', sans-serif;
    font-size: 1.1rem;
    color: #ffffff;
}

.ev-blog-link a {
    color: #ffffff;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.18s ease, opacity 0.18s ease;
}

.ev-blog-link a:hover { color: #ffffff; opacity: 0.7; }

@media (max-width: 1024px) {
    .ev-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .ev-grid { grid-template-columns: 1fr; }
    .ev-past__head { flex-direction: column; align-items: flex-start; }
}
