/* Base Reset & Variables */
:root {
    --bg-dark: #050505;
    --bg-light: #f4f4f4;
    --text-dark: #f4f4f4;
    --text-light: #050505;
    --text-muted: #888;
    --accent: #222;
    --border-dark: rgba(255,255,255,0.1);
    --border-light: rgba(0,0,0,0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg-dark);
    color: var(--text-dark);
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
    font-family: 'Montserrat', sans-serif;
    letter-spacing: -0.02em;
}

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

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 5%;
}

/* Smooth Scrolling Support */
html { overflow-x: hidden; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

/* Main Navbar */
.main-navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 5%;
    z-index: 1000;
    background: transparent;
    transition: all 0.3s ease;
    mix-blend-mode: difference;
    color: #fff;
}
.main-navbar.nav-hidden {
    transform: translateY(-100%);
}

/* Fix for Logo Color with Mix-Blend-Mode */
.navbar-no-blend {
    mix-blend-mode: normal !important;
    pointer-events: none;
    z-index: 1001 !important;
}
.navbar-no-blend .navbar-logo {
    pointer-events: auto;
}
.navbar-no-blend .navbar-logo span,
.navbar-no-blend .navbar-links,
.navbar-no-blend .navbar-actions {
    visibility: hidden !important;
}
.main-navbar:not(.navbar-no-blend) .navbar-logo img {
    visibility: hidden !important;
}
.navbar-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.navbar-logo {
    display: flex;
    align-items: center;
    color: #fff;
    text-decoration: none;
}
.navbar-logo span {
    /* Removed mix-blend-mode */
}
.navbar-links {
    display: flex;
    gap: 40px;
}
.navbar-links a {
    text-decoration: none;
    color: #fff;
    font-weight: 500;
    font-size: 0.95rem;
    transition: opacity 0.3s ease;
}
.navbar-links a:hover {
    opacity: 0.6;
}
.navbar-actions .btn-primary:hover {
    background: #333 !important;
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    position: relative;
    z-index: 2000;
}
.mobile-menu-btn span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: currentColor;
    transition: all 0.3s ease;
}
.navbar-no-blend .mobile-menu-btn {
    pointer-events: auto;
}
.navbar-no-blend .mobile-menu-btn span {
    opacity: 0 !important;
}

/* Mobile View for Navbar & Scroll Nav */
@media (max-width: 991px) {
    .navbar-links, .navbar-actions {
        display: none;
    }
    .scroll-nav {
        display: none !important;
    }
    .mobile-menu-btn {
        display: flex;
    }
    
    /* Default state for animation (hidden) */
    .main-navbar.navbar-no-blend .navbar-links {
        display: grid !important;
        grid-template-columns: 1fr 1fr;
        position: fixed;
        top: 0; left: 0; width: 100vw; height: auto;
        padding: 100px 20px 40px 20px;
        background: rgba(17, 17, 17, 0.95);
        backdrop-filter: blur(10px);
        z-index: 1500;
        gap: 20px;
        border-bottom-left-radius: 20px;
        border-bottom-right-radius: 20px;
        text-align: center;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        
        clip-path: circle(0px at calc(100% - 40px) 40px);
        visibility: hidden;
        pointer-events: none;
        transition: clip-path 0.5s cubic-bezier(0.86, 0, 0.07, 1), visibility 0.5s;
    }
    .main-navbar.navbar-no-blend .navbar-links a {
        font-size: 1.1rem;
        color: #fff;
        padding: 10px 0;
        opacity: 0;
        transform: translateY(-10px);
        transition: opacity 0.3s ease, transform 0.3s ease;
    }
    .main-navbar.navbar-no-blend .navbar-links a.active {
        display: none !important; /* Hide current page link from mobile menu */
    }

    /* When mobile menu is open */
    body.mobile-menu-open {
        overflow: hidden;
    }
    body.mobile-menu-open .main-navbar.navbar-no-blend .navbar-links {
        clip-path: circle(150% at calc(100% - 40px) 40px);
        visibility: visible !important;
        pointer-events: auto;
    }
    body.mobile-menu-open .main-navbar.navbar-no-blend .navbar-links a {
        opacity: 1;
        transform: translateY(0);
        transition-delay: 0.2s;
    }
    
    body.mobile-menu-open .main-navbar.navbar-no-blend .navbar-actions {
        display: flex;
        position: fixed;
        bottom: 20px;
        left: 50%;
        transform: translateX(-50%);
        visibility: visible !important;
        z-index: 1501;
        pointer-events: auto;
    }
    
    body.mobile-menu-open .main-navbar.navbar-no-blend .mobile-menu-btn span {
        opacity: 1 !important;
    }
    body.mobile-menu-open .main-navbar:not(.navbar-no-blend) .mobile-menu-btn span {
        opacity: 0 !important;
    }
    
    /* Hamburger to X animation */
    body.mobile-menu-open .mobile-menu-btn span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    body.mobile-menu-open .mobile-menu-btn span:nth-child(2) {
        opacity: 0 !important;
    }
    body.mobile-menu-open .mobile-menu-btn span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
}

/* Utilities */
.dark-theme { background: var(--bg-dark); color: var(--text-dark); }
.light-theme { background: var(--bg-light); color: var(--text-light); }
.muted { color: var(--text-muted); }
.center { text-align: center; }

.overline {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.btn-primary {
    display: inline-block;
    padding: 16px 32px;
    background: var(--text-dark);
    color: var(--bg-dark);
    border-radius: 100px;
    font-weight: 500;
    transition: transform 0.3s ease;
}

.btn-primary:hover {
    transform: scale(1.05);
}

.btn-outline {
    display: inline-block;
    padding: 16px 32px;
    background: transparent;
    color: var(--text-dark);
    border: 1px solid var(--border-dark);
    border-radius: 100px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-outline:hover {
    background: var(--text-dark);
    color: var(--bg-dark);
}


/* Curved Transitions */
.transition-curve {
    width: 100%;
    height: 40px;
    position: relative;
    z-index: 10;
}
.bottom-curve { background: var(--bg-dark); border-radius: 50% 50% 0 0 / 40px 40px 0 0; margin-top: -40px; }
.top-curve-dark { background: var(--bg-dark); border-radius: 0 0 65% 35% / 0 0 50px 25px; height: 50px; }
.bottom-curve-light { background: var(--bg-dark); border-radius: 50% 50% 0 0 / 100px 100px 0 0; margin-top: -50px; }

/* Circle shape band (Growing White Background Effect) */
.circle-shape-wrapper {
  height: 30vh;
  position: relative;
  z-index: 5;
  background: var(--bg-dark); /* Bridge from dark hero */
}
.circle-shape-container {
  height: 30vh;
  position: sticky;
  top: 0;
}
.circle-shape-block {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  transform: translateY(30px); /* Move the entire assembly down */
}
.circle-shape {
  width: 5rem;
  height: 5rem;
  border-radius: 100%;
  background-color: var(--bg-light);
  position: absolute;
  z-index: 2;
}
.circle-text {
  opacity: 0.5;
  height: 10rem;
  text-align: center;
  font-size: 1rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
}


/* Navigation */
.nav-wrapper {
    position: fixed;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.nav-pill {
    background: #fff;
    color: #000;
    padding: 15px 25px;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    transition: transform 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-pill:hover {
    transform: scale(1.05);
}

.nav-dropdown {
    position: absolute;
    top: 0;
    background: #111;
    color: #fff;
    border: 1px solid #333;
    border-radius: 24px;
    padding: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    width: 300px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-20px) scale(0.95);
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.nav-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.nav-close {
    position: absolute;
    top: 20px;
    right: 20px;
    cursor: pointer;
}

.nav-dropdown a {
    font-size: 1.5rem;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-dropdown a:hover {
    color: var(--text-muted);
}

.nav-socials {
    display: flex;
    gap: 15px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #333;
    width: 100%;
    justify-content: center;
}

/* Hero Section Arch */
.section-home-header {
  height: 100vh;
  position: relative;
}
.circle-component {
  height: 100vh;
  position: relative;
  overflow: hidden;
}
.header-component-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-template-rows: repeat(6, 1fr);
  width: 100%;
  height: 100vh;
}
.circle-container {
  grid-column: 1 / -1;
  grid-row: 1 / -1;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}
.circle-wrapper {
  position: relative;
  z-index: 2;
  transform: scale(1.1);
}
.circle-block {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  transform-style: preserve-3d;
}
.circle-item {
  position: absolute;
  width: 4.5rem;
  height: 18rem;
  border-radius: 100%;
  perspective: 1000px;
  transform-origin: center bottom;
}
.circle-item._01 { z-index: 13; transform: rotate(0deg); }
.circle-item._02 { z-index: 12; transform: rotate(27.7deg); }
.circle-item._03 { z-index: 11; transform: rotate(55.4deg); }
.circle-item._04 { z-index: 10; transform: rotate(83.1deg); }
.circle-item._05 { z-index: 9; transform: rotate(110.8deg); }
.circle-item._06 { z-index: 8; transform: rotate(138.5deg); }
.circle-item._07 { z-index: 7; transform: rotate(166.2deg); }
.circle-item._08 { z-index: 6; transform: rotate(193.8deg); }
.circle-item._09 { z-index: 5; transform: rotate(221.5deg); }
.circle-item._10 { z-index: 4; transform: rotate(249.2deg); }
.circle-item._11 { z-index: 3; transform: rotate(276.9deg); }
.circle-item._12 { z-index: 2; transform: rotate(304.6deg); }
.circle-item._13 { z-index: 1; transform: rotate(332.3deg); }

.circle-block-outer {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  justify-content: center;
  align-items: center;
  transform-style: preserve-3d;
}
.circle-item-outer {
  position: absolute;
  width: 4.5rem;
  height: 25rem; /* Outer radius */
  border-radius: 100%;
  perspective: 1000px;
  transform-origin: center bottom;
  opacity: 0.3;
}
/* 8 items for the outer circle, 45 degrees apart */
.circle-item-outer._01 { z-index: 8; transform: rotate(0deg); }
.circle-item-outer._02 { z-index: 7; transform: rotate(45deg); }
.circle-item-outer._03 { z-index: 6; transform: rotate(90deg); }
.circle-item-outer._04 { z-index: 5; transform: rotate(135deg); }
.circle-item-outer._05 { z-index: 4; transform: rotate(180deg); }
.circle-item-outer._06 { z-index: 3; transform: rotate(225deg); }
.circle-item-outer._07 { z-index: 2; transform: rotate(270deg); }
.circle-item-outer._08 { z-index: 1; transform: rotate(315deg); }
.circle-image-item {
  position: absolute;
  top: -40%;
  width: 4.5rem;
  height: 5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.circle-image-item i {
  font-size: 3.5rem;
  color: #000;
}
.circle-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.header-overlay {
  position: absolute;
  inset: 0;
  height: 150%;
  background: radial-gradient(circle at center, transparent 30%, var(--bg-light) 80%);
  z-index: 2;
  pointer-events: none;
}
.header-content-wrap {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  justify-content: center;
  align-items: center;
  pointer-events: none;
}
.header-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
  transform: translateY(50px);
}
.hero-title {
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 500;
  line-height: 1.1;
  position: relative;
}
.hero-title .line { display: block; overflow: hidden; }
.hero-title .line-inner { display: block; }
.header-description {
  max-width: 25rem;
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.6;
}
.hero-bottom-text {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  font-size: 8.5vw;
  font-weight: 700;
  line-height: 0.85;
  letter-spacing: -0.02em;
  color: rgba(0, 0, 0, 0.8);
  margin-bottom: 0;
  padding: 0 1vw 1vw 1vw;
  z-index: 10;
  pointer-events: none;
}

/* Orbit System */
.orbit-container {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 1400px;
    height: 1400px;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 1;
}

.orbit-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.05);
    transform: translate(-50%, -50%);
}

.outer-ring {
    width: 1200px;
    height: 1200px;
}

.inner-ring {
    width: 700px;
    height: 700px;
}

.orbit-item {
    position: absolute;
    top: 50%; left: 50%;
    background: #222;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0,0,0,0.5);
}

.outer-ring .orbit-item {
    width: 140px;
    height: 140px;
    margin-left: -70px;
    margin-top: -70px;
}

.inner-ring .orbit-item {
    width: 100px;
    height: 100px;
    margin-left: -50px;
    margin-top: -50px;
}

/* Distribute images dynamically via JS */
.orbit-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Counter rotate class applied in JS */

/* Hero Text Block */
.hero-text {
    padding: 20px 0 100px; /* Reduced top padding to remove empty black space */
    overflow: hidden;
}

.giant-text {
    font-size: clamp(4rem, 10vw, 12rem);
    white-space: nowrap;
    display: flex;
    border-bottom: 1px solid var(--border-dark);
    padding-bottom: 20px;
}

.hero-text-sub {
    max-width: 1400px;
    margin: 0 auto;
    padding: 80px 5%;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
}

.sub-left { flex: 1; }
.sub-left h2 { font-size: 2.5rem; line-height: 1.3; font-weight: 400; }

.sub-right { flex: 1; max-width: 500px; }
.sub-right p { color: var(--text-muted); line-height: 1.6; margin-bottom: 40px; }

.social-row { display: flex; gap: 15px; align-items: center; }

.social-icon { 
    width: 45px; height: 45px; 
    border: 1px solid var(--border-dark); 
    border-radius: 50%; 
    display: flex; align-items: center; justify-content: center;
    transition: background 0.3s;
}
.social-icon:hover { background: #222; cursor: pointer; }

/* Services (Light Theme) */
.services-section { padding: 100px 0 150px; position: relative; z-index: 10; }
.keep-scrolling { 
    position: absolute;
    top: 45%; /* Positioned higher up */
    left: 50%;
    transform: translateX(-50%);
    text-align: center; 
    font-weight: 500; 
    z-index: 10;
    mix-blend-mode: difference;
    color: #fff;
    pointer-events: none;
}
.keep-scrolling .dot { width: 8px; height: 8px; background: #fff; border-radius: 50%; margin: 15px auto; }
.section-header h2 { font-size: clamp(3rem, 5vw, 4.5rem); margin-bottom: 80px; }

.services-grid { 
    display: grid; 
    grid-template-columns: repeat(4, 1fr); 
    gap: 15px; 
    align-items: stretch; 
    min-height: 88vh; 
}
.container.services-grid {
    max-width: 1700px;
    padding: 0 2%;
}
.services-col { display: flex; flex-direction: column; gap: 15px; height: 100%; }

@media (max-width: 1024px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .services-grid { grid-template-columns: 1fr; } }

.service-card {
    background: #fff;
    border-radius: 24px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.02);
}
.service-card:hover { transform: translateY(-5px); }

.service-card.tall-card {
    flex: 1;
    justify-content: flex-start;
}
.service-card.small-card {
    height: auto;
    justify-content: center;
    gap: 15px;
}

.avatars { display: flex; align-items: center; }
.avatars img { width: 40px; height: 40px; border-radius: 50%; border: 3px solid #fff; margin-left: -15px; }
.avatars img:first-child { margin-left: 0; }

.stars { display: flex; gap: 5px; }
.stars i { width: 22px; height: 22px; background: #000; color: #fff; padding: 4px; border-radius: 4px; }

.card-label { font-family: monospace; font-size: 0.65rem; font-weight: 600; letter-spacing: 1px; margin-bottom: 15px; color: var(--text-muted); position: relative; z-index: 2; }
.service-card h3 { font-size: 2.2rem; font-weight: 400; padding-bottom: 20px; margin-bottom: 20px; border-bottom: 1px dotted #ddd; position: relative; z-index: 2; }
.service-card p:not(.card-label):not(.overline) { color: #666; font-size: 0.95rem; line-height: 1.5; position: relative; z-index: 2; }

.globe-icon {
    position: absolute;
    bottom: -40px;
    right: -40px;
    width: 250px;
    height: 250px;
    background-image: url('https://cdn.prod.website-files.com/6995302bd78651f6cf0f7066/699fa8f0e1b3450d490317b9_circle-shape.svg');
    background-size: contain;
    background-repeat: no-repeat;
    z-index: 1;
}

/* Horizontal Scroll Section */
.horizontal-wrapper { padding: 0 0 100px; overflow: hidden; position: relative; z-index: 10; }
.horizontal-section { height: 100vh; display: flex; flex-direction: column; justify-content: center; }

.horizontal-track {
    display: flex;
    width: max-content;
    padding: 0 5vw;
    gap: 40px;
    margin-top: 60px;
}

.case-card {
    width: 700px;
    height: 500px;
    border-radius: 32px;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
    cursor: pointer;
}
@media (max-width: 768px) { .case-card { width: 85vw; height: 60vh; } }

.case-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1); filter: brightness(0.7); }
.case-card:hover img { transform: scale(1.05); filter: brightness(1); }

.card-tag {
    position: absolute;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    color: #000;
    padding: 15px 30px;
    border-radius: 50px;
    display: flex;
    gap: 40px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 10;
}

.card-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 80px;
    height: 80px;
    background: #fff;
    color: #000;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.4s;
    pointer-events: none;
    z-index: 10;
}

.case-card:hover .card-btn {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}

/* Testimonials (From Template) */
.section-home-testimonial { position: relative; overflow: clip; padding: 4rem 0; background-color: var(--bg-dark); }
.testimonial-component { margin-top: 3rem; }
.testimonial-circles { position: relative; height: 28rem; margin-bottom: 3rem; }
.testimonial-circle-01, .testimonial-circle-03 { position: absolute; display: flex; gap: 1rem; }
.testimonial-circle-01 { top: 0; left: 50%; transform: translateX(-50%); }
.testimonial-circle-03 { bottom: 0; left: 50%; transform: translateX(-50%); }
.image-circle { position: relative; width: 8rem; height: 8rem; border-radius: 50%; overflow: visible; }
.testimonial-avatar { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.message-bubble-wrap { position: absolute; top: -2.5rem; left: 50%; transform: translateX(-50%); background: #1f1f1f; border: 1px solid rgba(255, 255, 255, 0.15); border-radius: 1rem; padding: 0.5rem 1rem; white-space: nowrap; z-index: 2; }
.bubble-text { font-size: 0.875rem; color: #fff; }
.testimonial-slider { position: relative; overflow: visible; padding-bottom: 2rem; touch-action: pan-y; }
.testimonial-slides { display: block; position: relative; height: 300px; perspective: 1000px; touch-action: pan-y; }
.testimonial-slide { position: absolute; top: 0; left: 0; width: 100%; opacity: 0; visibility: hidden; }
.testimonial-content-wrapper { display: flex; flex-direction: row; justify-content: space-between; align-items: center; gap: 1.5rem; padding: 20px; border-top: 1px solid rgba(255, 255, 255, 0.15); border-radius: 2rem; background-color: #1f1f1f; max-width: 50rem; margin: 0 auto; color: #fff; box-shadow: 0 10px 40px rgba(0,0,0,0.5); text-align: left; }
.testimonial-picture { width: 10rem; height: 10rem; border-radius: 1.5rem; object-fit: cover; flex-shrink: 0; }
.testimonial-text { font-size: 1.25rem; line-height: 1.6; margin-bottom: 1.5rem; }
.testimonial-author { font-size: 1rem; margin-bottom: 0.25rem; }
.testimonial-role { font-size: 0.875rem; color: #a7a7a7; }
.slider-nav { display: flex; justify-content: center; gap: 0.5rem; margin-top: 2rem; }
.slider-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255, 255, 255, 0.15); transition: background 0.35s; cursor: pointer; border: none; padding: 0; }
.slider-dot.is-active { background: #fff; }

/* Background Marquee */
.bg-marquee-container { position: absolute; top: 50%; left: 0; width: 100vw; transform: translateY(-50%); overflow: hidden; pointer-events: none; z-index: 0; opacity: 0.04; display: flex; flex-direction: column; gap: 2rem; }
.bg-marquee-track { display: flex; white-space: nowrap; gap: 4rem; width: max-content; }
.bg-marquee-track.track-1 { animation: marquee-scroll 45s linear infinite; }
.bg-marquee-track.track-2 { animation: marquee-scroll 55s linear infinite; animation-delay: -15s; }
.bg-marquee-track.track-3 { animation: marquee-scroll 50s linear infinite; animation-delay: -30s; }
.bg-marquee-track span { font-size: 15rem; font-family: 'Montserrat', sans-serif; font-weight: 900; color: transparent; -webkit-text-stroke: 3px #fff; text-transform: uppercase; line-height: 1; }
@keyframes marquee-scroll { 0% { transform: translateX(0); } 100% { transform: translateX(calc(-50% - 2rem)); } }
.section-home-testimonial .padding-global { position: relative; z-index: 1; }

@media (max-width: 991px) {
  .testimonial-circles { height: 20rem; }
  .image-circle { width: 5rem; height: 5rem; }
}

@media (max-width: 767px) {
  .testimonial-content-wrapper { flex-direction: row; align-items: center; text-align: left; padding: 15px; }
  .testimonial-picture { width: 7.5rem; height: 7.5rem; border-radius: 1.2rem; }
  .testimonial-text { font-size: 1rem; margin-bottom: 0.5rem; }
}
.pt-image-wrapper img { width: 220px; height: 220px; border-radius: 16px; object-fit: cover; display: block; }

.pt-content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 15px 0;
}

.pt-content p { font-size: 1.15rem; line-height: 1.6; color: #f0f0f0; margin: 0; font-weight: 400; }
.pt-meta { margin-top: 20px; }
.pt-meta strong { display: block; font-size: 1rem; font-weight: 500; color: #fff; }
.pt-meta span { display: block; color: #888; font-size: 0.9rem; margin-top: 2px; }

.pt-pagination { display: flex; justify-content: center; align-items: center; gap: 8px; margin-top: 40px; }
.pt-pagination .dot { width: 6px; height: 6px; border-radius: 50%; background: #444; cursor: pointer; transition: background 0.3s; }
.pt-pagination .dot.active { background: #fff; }

@media (max-width: 768px) {
    .premium-testimonial-card { flex-direction: column; padding: 12px; gap: 20px; }
    .pt-image-wrapper img { width: 100%; height: auto; aspect-ratio: 1; }
    .pt-content { padding: 0 10px 10px; gap: 20px; }
}

/* Pricing */
.pricing-section { padding: 60px 0; }
.pricing-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-top: 60px; }
@media (max-width: 768px) { .pricing-grid { grid-template-columns: 1fr; } }

.price-card {
    background: #111;
    border: 1px solid #222;
    border-radius: 32px;
    padding: 60px 50px;
}

.price-header { border-bottom: 1px solid var(--border-dark); padding-bottom: 20px; margin-bottom: 40px; }
.price-amt { display: flex; align-items: baseline; gap: 10px; margin-bottom: 20px; }
.price-amt h2 { font-size: 4rem; }
.desc { color: var(--text-muted); line-height: 1.6; margin-bottom: 40px; }

.features { margin-bottom: 50px; }
.features p { margin-bottom: 20px; font-weight: 600; }
.features ul { list-style: none; }
.features li { display: flex; align-items: center; gap: 15px; margin-bottom: 15px; color: #ccc; font-size: 0.95rem; }
.features i { color: #fff; width: 18px; height: 18px; }
.price-card .btn-outline { width: 100%; text-align: center; }

/* FAQ */
.faq-section { padding: 60px 0; }
.faq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-top: 80px; }
@media (max-width: 768px) { .faq-grid { grid-template-columns: 1fr; } }

.faq-item {
    background: #111;
    border: 1px solid #222;
    border-radius: 20px;
    margin-bottom: 20px;
    overflow: hidden;
    cursor: pointer;
}

.faq-q {
    padding: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 500;
    font-size: 1.1rem;
}

.faq-a {
    padding: 0 30px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
    color: var(--text-muted);
    line-height: 1.6;
}

.faq-item.active .faq-a {
    max-height: 300px;
    padding: 0 30px 30px;
}

.faq-item i { transition: transform 0.4s ease; }
.faq-item.active i { transform: rotate(45deg); }

/* Footer */
footer { position: relative; padding: 60px 0 50px; text-align: center; overflow: hidden; }

.footer-orbit {
    position: absolute;
    top: 100%; /* Positioned so it shows as an arch */
    left: 50%;
    width: 1400px;
    height: 1400px;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 1;
}

.footer-cta { position: relative; z-index: 10; max-width: 700px; margin: 0 auto 100px; }
.footer-cta h1 { font-size: 5rem; margin-bottom: 20px; color: #ffffff; opacity: 1 !important; visibility: visible !important; }
.footer-cta p { color: var(--text-muted); margin-bottom: 40px; font-size: 1.1rem; line-height: 1.6; }

.footer-bottom { border-top: 1px solid var(--border-dark); padding: 50px 5%; position: relative; z-index: 10; max-width: 1400px; margin: 0 auto; display: flex; flex-direction: column; align-items: flex-start; text-align: left; }
.footer-bottom-top { display: flex; justify-content: space-between; align-items: center; width: 100%; margin-bottom: 30px; flex-wrap: wrap; gap: 20px; }
.footer-brand { display: flex; align-items: center; gap: 15px; }
.footer-brand h2 { font-size: 1.5rem; margin: 0; }
.footer-brand span { color: var(--text-muted); font-size: 0.9rem; }
.footer-links-new { display: flex; gap: 30px; flex-wrap: wrap; width: 100%; margin-bottom: 30px; }
.footer-links-new a { color: #fff; text-decoration: none; font-weight: 500; transition: color 0.3s; }
.footer-links-new a:hover { color: var(--text-muted); }
.footer-divider { width: 100%; height: 1px; background-color: var(--border-dark); margin-bottom: 30px; }
.footer-contact-new { display: flex; gap: 30px; width: 100%; flex-wrap: wrap; }
.footer-contact-new a { color: var(--text-muted); text-decoration: none; font-size: 0.9rem; transition: color 0.3s; }
.footer-contact-new a:hover { color: #fff; }
@media (max-width: 768px) {
    .footer-brand { flex-direction: column; align-items: flex-start; gap: 5px; }
    .footer-bottom-top { flex-direction: column; align-items: flex-start; }
}

/* Utility Reveals */
.reveal-up {
    opacity: 0;
    transform: translateY(40px);
}

/* ==========================================================================
   SUBPAGE STYLES (DARK THEME & GSAP RE-DESIGN)
   ========================================================================== */

.subpage-wrapper {
    background-color: var(--bg-dark);
    color: var(--text-light);
    min-height: 100vh;
}

/* Page Hero */
.page-hero {
    padding-top: 180px !important;
    padding-bottom: 60px;
    position: relative;
    overflow: hidden;
}

.page-hero-label {
    font-family: 'Inter', sans-serif;
    color: #e2f952;
    letter-spacing: 2px;
    font-size: 14px;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.page-hero-title {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(3rem, 6vw, 6rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--text-light);
    margin-bottom: 30px;
    text-transform: uppercase;
}

.page-hero-sub {
    font-family: 'Inter', sans-serif;
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.7);
    max-width: 700px;
    line-height: 1.6;
}

/* Value Cards / Bento Grid */
.value-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 40px 30px;
    height: 100%;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.value-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-5px);
}

.value-card-num {
    font-size: 1.5rem;
    color: #e2f952;
    margin-bottom: 20px;
    opacity: 0.8;
}

.value-card-title {
    font-size: 1.5rem;
    color: var(--text-light);
    margin-bottom: 15px;
}

.value-card-desc {
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Section Headings */
.section-heading {
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: 30px;
    line-height: 1.1;
}

.about-text {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
    margin-bottom: 20px;
}

/* Background Elements (Shapes from Hero) */
.section-bg-elements {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

/* Make sure text is above BG */
.container-fluid {
    position: relative;
    z-index: 2;
}

/* Service Detail Cards */
.ss-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-light);
}

.ss-card-title, .svc-card-num {
    color: var(--text-light);
}

.ss-card-desc, .svc-list {
    color: rgba(255, 255, 255, 0.6);
}

/* Box for 'Our AI Services' sidebar */
.offset-lg-1 .p-4 {
    background: rgba(255, 255, 255, 0.02) !important;
    border-color: rgba(255, 255, 255, 0.05) !important;
}

/* Override text-theme-heading */
.text-theme-heading {
    color: var(--text-light) !important;
}

/* Service Grid (ss-grid) */
.ss-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.ss-card--wide {
    grid-column: 1 / -1;
}

.ss-card {
    position: relative;
    padding: 40px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    overflow: hidden;
    transition: all 0.4s ease;
}

.ss-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.1);
}

.ss-card-inner {
    position: relative;
    z-index: 2;
}

.svc-card-num {
    font-size: 1.25rem;
    color: #e2f952;
    margin-bottom: 15px;
}

.svc-list {
    margin-top: 20px;
    padding-left: 20px;
}

.svc-list li {
    margin-bottom: 10px;
    color: rgba(255, 255, 255, 0.6);
}

.ss-card-btn {
    display: inline-flex;
    align-items: center;
    margin-top: 30px;
    color: #e2f952;
    text-decoration: none;
    font-weight: 500;
}

/* Page Transition Overlay */
.transition-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #0a0a0a;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: none;
    transform-origin: top;
    transform: scaleY(1);
}

.transition-logo {
    height: 48px;
    opacity: 1;
    filter: drop-shadow(0 0 10px rgba(226, 249, 82, 0.3));
}

/* Subpage Hero Parallax */
.page-hero {
    position: relative;
    overflow: hidden;
}
.parallax-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}
.parallax-img {
    position: absolute;
    top: -15%;
    left: 0;
    width: 100%;
    height: 130%;
    object-fit: cover;
    z-index: 1;
}
.parallax-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(10,10,10,0.6) 0%, rgba(10,10,10,1) 100%);
    z-index: 2;
}
.page-hero .container-fluid {
    position: relative;
    z-index: 5; /* Keep text above the parallax */
}

/* Selemen-Style Services Redesign */
.selemen-services-wrapper {
    position: relative;
    width: 100%;
}

.color-zone {
    width: 100%;
    padding: 15vh 5vw;
    min-height: 80vh;
    display: flex;
    align-items: center;
    position: relative;
}

.selemen-service-block {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.selemen-service-block.right-align {
    align-items: flex-end;
    text-align: right;
}

.service-giant-title {
    font-size: clamp(4rem, 8vw, 10rem);
    line-height: 0.9;
    letter-spacing: -0.03em;
    margin: 0;
    text-transform: uppercase;
}

.service-details {
    max-width: 600px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.service-details h4 {
    font-size: 1.5rem;
    font-weight: 300;
    margin: 0;
}

.service-details h2 {
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    line-height: 1.2;
    margin: 0;
}

.service-details ul {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.selemen-service-block.right-align .service-details ul {
    justify-content: flex-end;
}

.service-details ul li {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 1px solid currentColor;
    padding: 8px 16px;
    border-radius: 30px;
}

/* Mix Blend Mode for dynamic contrast on changing backgrounds */
.mix-blend-text {
    mix-blend-mode: difference;
    color: #fff; /* When the background is white, difference makes it black, etc */
}

/* Smooth background transition for the wrapper */
.subpage-wrapper {
    transition: background-color 0.8s ease;
}

/* Stacked Parallax Services (Selemen Page 5 Style) */
#services-stacked-container {
    height: 100vh;
    width: 100%;
    position: relative;
}

.service-panel {
    position: absolute;
    top: 0;
    left: 0;
    height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
    overflow: hidden;
}

.service-panel-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 1;
}

.service-panel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 10, 0.4);
    z-index: 2;
}

.service-panel-content {
    position: relative;
    z-index: 5;
    padding: 0 20px;
    max-width: 800px;
}

.service-panel-content h1 {
    color: #ffffff;
    font-size: clamp(3rem, 6vw, 6rem);
    text-transform: uppercase;
    margin-bottom: 20px;
    line-height: 1;
}

.service-panel-content p {
    color: #ffffff;
    font-size: clamp(1rem, 2vw, 1.25rem);
    font-weight: 300;
}

/* Initial Clip Paths */
#sp-1 {
    z-index: 10;
    clip-path: polygon(0 100%, 100% 100%, 100% 0%, 0 0%);
}
#sp-2 {
    z-index: 11;
    clip-path: polygon(0 100%, 100% 100%, 100% 100%, 0 100%);
}
#sp-3 {
    z-index: 12;
    clip-path: polygon(0 100%, 100% 100%, 100% 100%, 0 100%);
}
#sp-4 {
    z-index: 13;
    clip-path: polygon(0 100%, 100% 100%, 100% 100%, 0 100%);
}
#sp-5 {
    z-index: 14;
    clip-path: polygon(0 100%, 100% 100%, 100% 100%, 0 100%);
}
#sp-6 {
    z-index: 15;
    clip-path: polygon(0 100%, 100% 100%, 100% 100%, 0 100%);
}
#sp-7 {
    z-index: 16;
    clip-path: polygon(0 100%, 100% 100%, 100% 100%, 0 100%);
}

/* Pinned Parallax Services Gallery */
#pinned-services {
    position: absolute;
    top: 0;
    left: 0;
    overflow: hidden;
    height: 100%;
    width: 100%;
    z-index: 200; /* MUST be higher than gallery__item--xl (100) */
    pointer-events: none; /* Initially non-interactable so hero gets clicks */
}

/* We will re-enable pointer-events when the hero flip finishes */
#pinned-services.active .pt {
    pointer-events: auto;
}

.pt {
    position: absolute;
    top: 0;
    left: 0;
    height: 100vh;
    width: 100%;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
    overflow: hidden;
}

.pt-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(10, 10, 10, 0.6); /* Dark overlay for text readability */
    z-index: 0;
}

.pt .textt,
.caption .textt {
    position: relative;
    z-index: 10;
    max-width: 800px;
    padding: 0 20px;
}

.pt .textt h1,
.caption .textt h1 {
    color: #ffffff;
    text-transform: uppercase;
    font-size: clamp(3rem, 6vw, 6rem);
    font-family: 'Podium', sans-serif;
    font-weight: 400;
    margin-bottom: 20px;
}

.pt .textt p,
.caption .textt p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.2rem;
    font-weight: 300;
    font-family: 'Inter', sans-serif;
}

.service-features {
    list-style: none;
    margin: 30px 0;
    padding: 0;
}

.service-features li {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    font-family: 'Inter', sans-serif;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.service-features li svg {
    color: #e2f952;
    width: 20px;
    height: 20px;
    stroke-width: 2.5;
}

.pt .textt .btn-primary,
.caption .textt .btn-primary {
    background: #e2f952;
    color: #050505;
    padding: 14px 28px;
    border-radius: 100px;
    font-size: 1rem;
    font-weight: 600;
    margin-top: 20px;
    display: inline-block;
    position: relative;
    z-index: 20;
    transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1), background 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
}

.pt .textt .btn-primary:hover,
.caption .textt .btn-primary:hover {
    background: #fff;
    color: #000;
    transform: scale(1.05) translateY(-2px);
    box-shadow: 0 10px 25px rgba(226, 249, 82, 0.4);
}

@media (max-width: 991px) {
    .pt .textt h1,
    .caption .textt h1 {
        font-size: 2.2rem;
        margin-bottom: 10px;
    }
    .pt .textt p,
    .caption .textt p {
        font-size: 1rem;
        margin-bottom: 10px;
    }
    .service-features {
        margin: 15px 0;
    }
    .service-features li {
        font-size: 0.9rem;
        margin-bottom: 8px;
    }
    .service-features li svg {
        width: 16px; height: 16px;
    }
    .pt .textt .btn-primary,
    .caption .textt .btn-primary {
        padding: 10px 20px;
        font-size: 0.9rem;
        margin-top: 10px;
    }
}

@media (max-height: 500px) and (orientation: landscape) {
    .pt .textt h1,
    .caption .textt h1 {
        font-size: 1.8rem;
        margin-bottom: 5px;
    }
    .pt .textt p,
    .caption .textt p {
        font-size: 0.85rem;
        margin-bottom: 5px;
    }
    .service-features {
        margin: 5px 0;
    }
    .service-features li {
        font-size: 0.8rem;
        margin-bottom: 4px;
        gap: 6px;
    }
    .pt .textt .btn-primary,
    .caption .textt .btn-primary {
        padding: 8px 16px;
        font-size: 0.8rem;
        margin-top: 5px;
    }
}

/* Initial Clip Paths */
#pt1 {
    clip-path: polygon(0 100%, 100% 100%, 100% 0%, 0 0%);
}

#pt2, #pt3, #pt4, #pt5, #pt6, #pt7 {
    clip-path: polygon(0 100%, 100% 100%, 100% 100%, 0 100%);
}

/* Dynamic text color against white/black backgrounds */
.mix-blend-text {
    mix-blend-mode: difference;
}

/* ======== Selemen-Style Hero Section ======== */
.sml-hero {
    position: relative;
    height: 100vh;
    width: 100%;
    background-color: #0a0a0a;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    overflow: hidden;
}

/* Light Theme Overrides for sml-hero */
.sml-hero.light-theme {
    background-color: #f4f4f4;
}
.sml-hero.light-theme .sml-hero-heading h1 {
    color: #050505;
}
.sml-hero.light-theme .sml-hero-heading p,
.sml-hero.light-theme .sml-hero-heading .sml-label {
    color: #ffffff;
    text-shadow: 0px 2px 8px rgba(0, 0, 0, 0.8);
    opacity: 0.9;
}
.sml-hero.light-theme .sml-hero-bottom h4 {
    color: #050505;
    text-shadow: none;
    font-weight: 500;
}
.sml-hero.light-theme .sml-scroll-cue span {
    color: rgba(5, 5, 5, 0.5);
}
.sml-hero.light-theme .sml-scroll-line {
    background: linear-gradient(to bottom, rgba(5, 5, 5, 0), rgba(5, 5, 5, 0.6));
}
.sml-hero.light-theme .caption {
    color: #ffffff;
    text-shadow: 0px 2px 8px rgba(0, 0, 0, 0.8);
}
.sml-hero.light-theme .caption h1,
.sml-hero.light-theme .caption p,
.sml-hero.light-theme .caption ul,
.sml-hero.light-theme .caption li {
    color: #ffffff;
    text-shadow: 0px 2px 8px rgba(0, 0, 0, 0.8);
}
.sml-hero.light-theme .hero-overlay {
    background-color: rgba(244, 244, 244, 0.3);
}

.sml-hero-heading {
    position: relative;
    z-index: 110;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
    overflow: hidden;
}

.sml-hero-heading .sml-label {
    font-size: 13px;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.45);
    font-family: 'Inter', sans-serif;
    margin-bottom: 20px;
}

.sml-hero-heading h1 {
    font-family: 'Podium', sans-serif;
    font-size: clamp(5rem, 10vw, 11rem);
    font-weight: 400;
    color: #fff;
    letter-spacing: -0.04em;
    line-height: 0.95;
    text-transform: uppercase;
    overflow: hidden;
}

.sml-hero-heading p {
    font-size: 1rem;
    color: rgba(255,255,255,0.5);
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    max-width: 480px;
    margin-top: 24px;
}

/* GSAP Flip Gallery */
.gallery-wrap {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    z-index: 1;
}

.gallery {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    flex: none;
}

.gallery__item {
    background-position: 50% 50%;
    background-size: cover;
    flex: none;
    border-radius: 6px;
    position: relative;
    filter: grayscale(1) brightness(0.6); /* Black and white, darkened */
}

.gallery--row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    --size-factor: 1.25;
    --item-height: 20vh;
}

.gallery--row .gallery__item {
    width: auto;
    aspect-ratio: 2 / 3;
}

.gallery--row .gallery__item--s { height: var(--item-height); }
.gallery--row .gallery__item--m { height: calc(var(--size-factor) * var(--item-height)); }
.gallery--row .gallery__item--l { height: calc(var(--size-factor) * 2 * var(--item-height)); }

.gallery--row .gallery__item--xl {
    z-index: 100;
    height: calc(var(--size-factor) * 3 * var(--item-height));
    filter: grayscale(1) brightness(1); /* Black and white, full brightness */
}

/* The state we animate TO on scroll */
.gallery--switch.gallery--row {
    gap: 0; /* Remove gap so it doesn't push the center image */
}

.gallery--switch .gallery__item--center {
    height: 100vh;
    width: 100%;
    aspect-ratio: auto;
    border-radius: 0;
    filter: grayscale(0) brightness(0.5); /* Full original color, darkened for text */
    flex: none; /* Prevents flexbox from shrinking it below 100vw */
    margin: 0;
}

/* Hide other images when switched */
.gallery--switch.gallery--row .gallery__item:not(.gallery__item--center) {
    height: 0;
    width: 0; /* Important: shrink width so flex doesn't constrain center item */
    opacity: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

/* Caption sliding logic */
.gallery--row .caption {
    position: absolute;
    width: 100%;
    height: 100vh;
    top: 50%;
    left: 50%;
    margin: 100vh 0 0 -50%; /* Start below screen */
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    z-index: 150; /* MUST be higher than gallery__item--xl (100) */
}

.gallery--switch.gallery--row .caption {
    margin-top: -50vh; /* Slide into center */
    opacity: 1;
}

/* Dark overlay for hero gallery so text is readable */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(10, 10, 10, 0.6);
    z-index: 105; /* Above gallery__item--xl (100) but below hero-caption (110) */
    pointer-events: none;
}

/* Ensure text is above the gallery */
.hero-caption {
    z-index: 110; /* Must be above gallery__item--xl (100) */
    pointer-events: none;
}

/* Category pill at bottom */
.sml-hero-bottom {
    position: absolute;
    bottom: 30px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    z-index: 10;
}

.sml-hero-bottom h4 {
    color: rgba(255,255,255,0.4);
    font-size: 13px;
    font-weight: 300;
    font-family: 'Inter', sans-serif;
    letter-spacing: 3px;
    text-transform: uppercase;
}

/* Scroll Cue in Hero */
.sml-scroll-cue {
    position: absolute;
    bottom: 70px;
    right: 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    z-index: 20;
}

.sml-scroll-cue span {
    font-size: 10px;
    letter-spacing: 4px;
    color: rgba(255,255,255,0.35);
    font-family: 'Inter', sans-serif;
    text-transform: uppercase;
    writing-mode: vertical-rl;
}

.sml-scroll-line {
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, rgba(255,255,255,0), rgba(255,255,255,0.4));
    animation: scrollLineGrow 2s ease-in-out infinite;
    transform-origin: top;
}

@keyframes scrollLineGrow {
    0% { scaleY: 0; opacity: 0; }
    50% { opacity: 1; }
    100% { transform: scaleY(1.2); opacity: 0; }
}

/* Hero ? Services Bridge Section */
.services-bridge {
    position: relative;
    height: 100vh;
    width: 100%;
    overflow: hidden;
    /* starts clipped at 100% bottom, reveals upward */
    clip-path: polygon(0 100%, 100% 100%, 100% 100%, 0 100%);
}

.bridge-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transform: scale(1.1); /* slight scale for parallax room */
}

.bridge-text {
    position: relative;
    z-index: 10;
}

/* ======== About Page ======== */
/* ======== Portal Zoom Hero ======== */
#portal-pin {
    height: 100vh;
    width: 100vw;
    position: relative;
    overflow: hidden;
    background-color: #ffffff;
    isolation: isolate;
    clip-path: inset(0);
}

.portal-content {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
}

.portal-content .portal-final-text {
    color: #0b0f19;
    font-size: clamp(3rem, 8vw, 6rem);
}

.portal-dark-bg {
    position: absolute;
    inset: 0;
    background-color: var(--bg-dark);
    z-index: 1;
}

.portal-node-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    opacity: 0.6;
}

.portal-white-circle {
    position: absolute;
    width: 20vw;
    height: 20vw;
    background: radial-gradient(circle at center, #ffffff 0%, #f8f8f8 60%, rgba(255,255,255,0.92) 100%);
    clip-path: circle(50% at 50% 50%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(1);
    z-index: 2;
    transform-origin: center center;
    will-change: transform;
    animation: portalGlow 2.5s ease-in-out infinite alternate;
}

/* The glow bleeds outward from the circle edge, simulating light from inside */
.portal-white-circle::before {
    content: '';
    position: absolute;
    inset: -8%;
    clip-path: circle(50% at 50% 50%);
    background: radial-gradient(circle at center, rgba(255,255,255,0) 50%, rgba(255,255,255,0.6) 100%);
    filter: blur(14px);
    animation: portalGlowInner 2.5s ease-in-out infinite alternate;
    pointer-events: none;
}

/* Dust Swarm */
.dust-cluster {
    position: absolute;
    width: 400px;
    height: 400px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}
.dust-dot {
    position: absolute;
    background: #000000;
    border-radius: 50%;
    opacity: 0;
    pointer-events: none;
}

@keyframes portalGlow {
    from { filter: none; }
    to   { filter: brightness(1.05); }
}

@keyframes portalGlowInner {
    from {
        filter: blur(14px);
        opacity: 0.8;
    }
    to {
        filter: blur(20px);
        opacity: 1;
    }
}

.portal-logo-wrap {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.portal-logo-svg {
    width: 15vw;
    max-width: 180px;
    min-width: 80px;
    will-change: transform, opacity;
}

.portal-text-layer {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    z-index: 10;
    color: #ffffff;
    pointer-events: none;
}

/* Horizontal Scroll Values */
.values-horizontal-section {
    position: relative;
    width: 100%;
    /* No explicit height here, ScrollTrigger handles pinning */
}

.values-pin-container {
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.values-scroll-wrapper {
    display: flex;
    width: 400vw; /* 4 items */
    height: 100%;
    align-items: center;
}

.value-scroll-item {
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 10vw;
}

.value-scroll-item .value-card {
    width: 100%;
    max-width: 800px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 4rem;
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

/* Mobile Responsiveness for about.html */
@media (max-width: 768px) {
    .footer-cta h1 {
        font-size: clamp(2.5rem, 8vw, 5rem);
    }
    .footer-orbit {
        width: 800px;
        height: 800px;
    }
    .value-card {
        padding: 1.5rem !important;
    }
    .value-card-title {
        font-size: 1.2rem !important;
        margin-top: 0.5rem !important;
        margin-bottom: 0.5rem !important;
    }
    .value-card-num {
        font-size: 1.2rem !important;
    }
    .value-card-desc {
        font-size: 0.85rem !important;
    }
    
    .about-stat {
        padding-left: 1rem !important;
    }
    .about-stat-num {
        font-size: 2.5rem !important;
    }
    .about-stat-label {
        font-size: 0.9rem !important;
    }
    
    .team-mobile-grid {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px !important;
        height: auto !important;
        padding-top: 2rem !important;
    }
    .team-scatter-node {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        transform: none !important; /* On mobile, we might skip the GSAP scatter transform or just let it animate from 0 */
    }
    .team-bubble {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        bottom: auto !important;
        margin-top: -15px !important;
        border-radius: 15px !important;
        padding: 10px !important;
        z-index: 2 !important;
    }
}

/* Rotate Prompt Overlay */
.rotate-prompt-overlay {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background: rgba(5,5,5,0.95);
    backdrop-filter: blur(10px);
    z-index: 999999;
    display: none; /* Hidden by default on laptop/desktop and landscape */
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    padding: 2rem;
    opacity: 1;
    transition: opacity 0.5s ease;
    pointer-events: none;
}
@media (max-width: 991px) and (orientation: portrait) {
    .rotate-prompt-overlay {
        display: flex;
    }
}
.rotate-icon {
    width: 50px; height: 50px;
    margin-bottom: 1.5rem;
    animation: rotatePhone 2s infinite ease-in-out;
}
.rotate-text {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}
.rotate-sub {
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    color: #aaa;
    max-width: 300px;
}
@keyframes rotatePhone {
    0% { transform: rotate(0deg); }
    50% { transform: rotate(-90deg); }
    100% { transform: rotate(0deg); }
}

/* Landscape Zoom Fixes for Home and Services */
@media (max-width: 991px) and (orientation: landscape) {
    #home-page .full-media-section, #home-page .our-works-preview { zoom: 0.55; }
    #home-page #hero-gallery-wrap, #home-page #pinned-services { zoom: 0.55; }
    #home-page .section-home-testimonial { zoom: 0.55; }
}

/* ==================================================
   Our Works Page Styles
   ================================================== */

.works-hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding-top: 80px;
}
.works-hero-content {
    text-align: center;
}
.huge-title {
    font-size: 8vw;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.02em;
    margin: 0;
    text-transform: uppercase;
}

.works-grid-section {
    position: relative;
    z-index: 10;
    padding: 100px 0;
    background: linear-gradient(to bottom, #ffffff 50%, var(--bg-dark) 50%);
    overflow: hidden;
}
.works-container {
    width: 100%;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 50px;
}
.marquee-wrapper {
    width: 100%;
    overflow: hidden;
    position: relative;
    display: flex;
}
.marquee-track {
    display: flex;
    gap: 30px;
    width: max-content;
    animation: scrollLeft 40s linear infinite;
}
.marquee-wrapper:hover .marquee-track {
    animation-play-state: paused;
}
.marquee-track.reverse {
    animation: scrollRight 40s linear infinite;
}
.marquee-group {
    display: flex;
    gap: 30px;
    padding-right: 30px;
}
@keyframes scrollLeft {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
@keyframes scrollRight {
    0% { transform: translateX(-50%); }
    100% { transform: translateX(0); }
}

.standard-work-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: var(--text-light);
    width: 400px;
    flex-shrink: 0;
}
.standard-work-card .image-wrap {
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
    background: #111;
    margin-bottom: 25px;
}
.standard-work-card .image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.standard-work-card:hover .image-wrap img {
    transform: scale(1.05);
}
.standard-work-card .info-wrap {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.standard-work-card h3 {
    font-size: 1.6rem;
    font-weight: 500;
    margin: 0;
    color: #ffffff;
}
.standard-work-card p {
    font-size: 0.95rem;
    color: rgba(255,255,255,0.6);
    margin: 0;
    line-height: 1.5;
}
.standard-work-card .card-link {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    color: #fff;
    margin-top: 15px;
}
.standard-work-card .card-link i {
    width: 18px;
    height: 18px;
    transition: transform 0.3s ease;
}
.standard-work-card:hover .card-link i {
    transform: translateX(4px) translateY(-4px);
}

/* Colors for first row (on white background) */
.marquee-wrapper:first-child .standard-work-card h3 {
    color: #000000;
}
.marquee-wrapper:first-child .standard-work-card p {
    color: rgba(0,0,0,0.6);
}
.marquee-wrapper:first-child .standard-work-card .card-link {
    color: #000000;
}

@media (max-width: 992px) {
    .huge-title { font-size: 15vw; }
    
    /* Disable marquee animation and enable native horizontal scrolling */
    .marquee-track {
        animation: none !important;
        width: 100vw;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
        padding: 0 5vw;
        gap: 15px;
    }
    /* Hide scrollbar */
    .marquee-track::-webkit-scrollbar {
        display: none;
    }
    
    .marquee-group {
        gap: 15px;
        padding-right: 0;
    }
    
    /* Size card to fit exactly 2 on screen (approx 42vw each + gaps) */
    .standard-work-card { 
        width: 42vw; 
        scroll-snap-align: start; 
    }
    
    /* Adjust text sizes for smaller cards */
    .standard-work-card h3 {
        font-size: 1.1rem;
    }
    .standard-work-card p {
        font-size: 0.8rem;
    }
    color: #aaa;
    max-width: 300px;
}
@keyframes rotatePhone {
    0% { transform: rotate(0deg); }
    50% { transform: rotate(-90deg); }
    100% { transform: rotate(0deg); }
}

/* Landscape Zoom Fixes for Home and Services */
@media (max-width: 991px) and (orientation: landscape) {
    #home-page .full-media-section, #home-page .our-works-preview { zoom: 0.55; }
    #home-page #hero-gallery-wrap, #home-page #pinned-services { zoom: 0.55; }
    #home-page .section-home-testimonial { zoom: 0.55; }
}

/* ==================================================
   Our Works Page Styles
   ================================================== */

.works-hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding-top: 80px;
}
.works-hero-content {
    text-align: center;
}
.huge-title {
    font-size: 8vw;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.02em;
    margin: 0;
    text-transform: uppercase;
}

.works-grid-section {
    position: relative;
    z-index: 10;
    padding: 100px 0;
    background: linear-gradient(to bottom, #ffffff 50%, var(--bg-dark) 50%);
    overflow: hidden;
}
.works-container {
    width: 100%;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 50px;
}
.marquee-wrapper {
    width: 100%;
    overflow: hidden;
    position: relative;
    display: flex;
}
.marquee-track {
    display: flex;
    gap: 30px;
    width: max-content;
    animation: scrollLeft 40s linear infinite;
}
.marquee-wrapper:hover .marquee-track {
    animation-play-state: paused;
}
.marquee-track.reverse {
    animation: scrollRight 40s linear infinite;
}
.marquee-group {
    display: flex;
    gap: 30px;
    padding-right: 30px;
}
@keyframes scrollLeft {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
@keyframes scrollRight {
    0% { transform: translateX(-50%); }
    100% { transform: translateX(0); }
}

.standard-work-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: var(--text-light);
    width: 400px;
    flex-shrink: 0;
}
.standard-work-card .image-wrap {
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
    background: #111;
    margin-bottom: 25px;
}
.standard-work-card .image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.standard-work-card:hover .image-wrap img {
    transform: scale(1.05);
}
.standard-work-card .info-wrap {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.standard-work-card h3 {
    font-size: 1.6rem;
    font-weight: 500;
    margin: 0;
    color: #ffffff;
}
.standard-work-card p {
    font-size: 0.95rem;
    color: rgba(255,255,255,0.6);
    margin: 0;
    line-height: 1.5;
}
.standard-work-card .card-link {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    color: #fff;
    margin-top: 15px;
}
.standard-work-card .card-link i {
    width: 18px;
    height: 18px;
    transition: transform 0.3s ease;
}
.standard-work-card:hover .card-link i {
    transform: translateX(4px) translateY(-4px);
}

/* Colors for first row (on white background) */
.marquee-wrapper:first-child .standard-work-card h3 {
    color: #000000;
}
.marquee-wrapper:first-child .standard-work-card p {
    color: rgba(0,0,0,0.6);
}
.marquee-wrapper:first-child .standard-work-card .card-link {
    color: #000000;
}

@media (max-width: 992px) {
    .huge-title { font-size: 15vw; }
    
    /* Disable marquee animation and enable native horizontal scrolling */
    .marquee-track {
        animation: none !important;
        width: 100vw;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
        padding: 0 5vw;
        gap: 15px;
    }
    /* Hide scrollbar */
    .marquee-track::-webkit-scrollbar {
        display: none;
    }
    
    .marquee-group {
        gap: 15px;
        padding-right: 0;
    }
    
    /* Size card to fit exactly 2 on screen (approx 42vw each + gaps) */
    .standard-work-card { 
        width: 42vw; 
        scroll-snap-align: start; 
    }
    
    /* Adjust text sizes for smaller cards */
    .standard-work-card h3 {
        font-size: 1.1rem;
    }
    .standard-work-card p {
        font-size: 0.8rem;
    }
    .standard-work-card .card-link {
        font-size: 0.75rem;
    }
}

/* RESPONSIVE DESIGN - HOME PAGE */

/* Standard Mobile View (Portrait only, keep landscape as desktop) */
@media (max-width: 576px) and (orientation: portrait) {
    /* Hero Section - Scale orbit and text */
    .hero-title {
        font-size: clamp(2rem, 12vw, 3.5rem);
    }
    
    .orbit-container {
        transform: translate(-50%, -50%) scale(0.6) !important;
    }

    /* Giant Text Marquee */
    .giant-text {
        font-size: clamp(2rem, 8vw, 4rem);
    }
    
    /* Sub-text (Keep side-by-side but span social-row below) */
    .hero-text-sub {
        display: flex;
        flex-direction: row;
        gap: 15px;
        padding: 40px 5% 100px 5%; /* Bottom padding creates space for social-row */
        position: relative; /* Anchor for absolute social-row */
    }
    .sub-left {
        flex: 1;
    }
    .sub-right {
        flex: 1;
        max-width: none;
    }
    .social-row {
        position: absolute;
        bottom: 20px;
        left: 5%;
        width: 90%;
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
        justify-content: flex-start;
    }
    .sub-left h2 {
        font-size: 1.5rem !important; /* Force to 1.5rem as requested */
        line-height: 1.3;
    }
    .sub-right p {
        font-size: 0.8rem;
        margin-bottom: 0;
        line-height: 1.5;
    }
    .social-icon {
        width: 35px; height: 35px;
    }
    .social-icon svg, .social-icon i {
        width: 16px; height: 16px;
    }

    /* Footer */
    .footer-cta h1 {
        font-size: 3rem;
    }
    .footer-cta p {
        font-size: 1rem;
    }
    .footer-bottom-top {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
    .footer-links-new, .footer-contact-new {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }

    /* Testimonial Card Redesign for Mobile */
    .testimonial-content-wrapper {
        flex-direction: column;
        text-align: center;
        padding: 30px 20px;
        background-color: rgba(31, 31, 31, 0.4) !important; /* Make it transparent */
        backdrop-filter: blur(8px); /* Optional: add a slight blur behind it */
    }
    .testimonial-picture {
        width: 6rem;
        height: 6rem;
        border-radius: 50%;
        margin-bottom: 10px;
    }
    .testimonial-content {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .testimonial-author {
        order: -2;
        font-weight: 700;
        font-size: 1.1rem;
        margin-bottom: 2px;
    }
    .testimonial-role {
        order: -1;
        font-size: 0.85rem;
        margin-bottom: 15px;
        color: #aaa;
    }
    .testimonial-text {
        order: 1;
        font-size: 0.95rem;
        font-style: italic;
        margin-bottom: 0;
    }
}

/* Samsung Fold (Ultra Narrow) */
@media (max-width: 360px) and (orientation: portrait) {
    .orbit-container {
        transform: translate(-50%, -50%) scale(0.4) !important;
    }
    .sub-left h2 {
        font-size: 1rem !important;
    }
    .sub-right p {
        font-size: 0.75rem;
    }
    .hero-title {
        font-size: clamp(1.5rem, 10vw, 2.5rem);
    }
}
