/* ========================================
   APEX BUILD GROUP - PREMIUM STYLES v3.0
   Enhanced Animations & Fixed Split Layout
   Palette: Navy #0A2540 | Orange #F97316 | Light Gray #F3F4F6
   Font: Cabinet Grotesk
   ======================================== */

@import url('https://api.fontshare.com/v2/css?f[]=cabinet-grotesk@800,700,600,500,400&display=swap');

:root {
  --navy: #0A2540;
  --navy-dark: #051a2c;
  --navy-light: #1a3a5c;
  --orange: #F97316;
  --orange-dark: #e05e00;
  --orange-light: #ff8c42;
  --light-gray: #F3F4F6;
  --white: #FFFFFF;
  --gray: #6B7280;
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 20px 35px -10px rgba(0, 0, 0, 0.2);
  --shadow-glow: 0 0 30px rgba(249, 115, 22, 0.3);
  --shadow-glow-lg: 0 0 50px rgba(249, 115, 22, 0.4);
  --transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  --transition-bounce: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  --border-radius: 12px;
  --border-radius-lg: 24px;
  --border-radius-xl: 32px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden; /* Must be on html to also clip position:fixed children */
}

body {
  font-family: 'Cabinet Grotesk', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--navy);
  line-height: 1.6;
  overflow-x: hidden;
  background: var(--white);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--light-gray);
}

::-webkit-scrollbar-thumb {
  background: var(--orange);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--orange-dark);
}

/* Remove default link underline */
a {
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  text-decoration: none;
}

/* Custom Cursor - Enhanced */
@media (min-width: 992px) {
  body {
    cursor: none;
  }
  
  .cursor-dot {
    width: 8px;
    height: 8px;
    background: var(--orange);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 10000;
    transition: transform 0.1s ease;
    box-shadow: 0 0 10px rgba(249, 115, 22, 0.5);
  }
  
  .cursor-outline {
    width: 40px;
    height: 40px;
    border: 2px solid var(--orange);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    transition: all 0.2s ease;
    backdrop-filter: blur(2px);
  }
  
  .cursor-outline.hover {
    transform: scale(1.5);
    background: rgba(249, 115, 22, 0.2);
    border-color: var(--orange-light);
    box-shadow: 0 0 20px rgba(249, 115, 22, 0.4);
  }
}

/* Background Animated Elements - Enhanced */
.bg-blur-circle {
  position: fixed;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.15;
  pointer-events: none;
  z-index: -1;
  animation: floatBlur 20s infinite ease-in-out;
  /* Prevent any translate from pushing circles past the right edge */
  max-width: 100vw;
}

/* Hide decorative blurs on mobile entirely — they cause overflow & are invisible anyway */
@media (max-width: 768px) {
  .bg-blur-circle,
  .floating-shapes {
    display: none;
  }
}

.bg-blur-1 {
  width: 400px;
  height: 400px;
  background: var(--orange);
  top: 10%;
  left: -100px;
  animation-delay: 0s;
}

.bg-blur-2 {
  width: 500px;
  height: 500px;
  background: var(--navy);
  bottom: 20%;
  /* Pulled in from -150px so the circle edge sits at viewport right edge */
  right: -200px;
  animation-delay: -5s;
}

.bg-blur-3 {
  width: 300px;
  height: 300px;
  background: var(--orange-light);
  top: 50%;
  left: 40%;
  animation-delay: -10s;
}

.bg-blur-4 {
  width: 350px;
  height: 350px;
  background: var(--navy-light);
  bottom: 10%;
  left: 20%;
  animation-delay: -15s;
}

@keyframes floatBlur {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -30px) scale(1.1); }
  66% { transform: translate(-20px, 20px) scale(0.9); }
}

.floating-shapes {
  position: fixed;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
}

.shape {
  position: absolute;
  font-size: 2rem;
  opacity: 0.03;
  animation: floatShape 15s infinite linear;
}

.shape-1 { top: 15%; left: 5%; animation-duration: 18s; animation-delay: 0s; }
.shape-2 { top: 70%; right: 8%; animation-duration: 22s; animation-delay: 2s; }
.shape-3 { bottom: 20%; left: 15%; animation-duration: 25s; animation-delay: 4s; }
.shape-4 { top: 40%; right: 20%; animation-duration: 20s; animation-delay: 1s; }

@keyframes floatShape {
  0% { transform: translateY(0) rotate(0deg); opacity: 0.03; }
  50% { transform: translateY(-50px) rotate(180deg); opacity: 0.06; }
  100% { transform: translateY(0) rotate(360deg); opacity: 0.03; }
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Cabinet Grotesk', 'Montserrat', sans-serif;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--navy);
}

h1 { font-size: 2.5rem; letter-spacing: -0.02em; font-weight: 800; }
h2 { font-size: 2rem; letter-spacing: -0.01em; font-weight: 700; }
h3 { font-size: 1.5rem; font-weight: 700; }

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--orange);
  background: rgba(249, 115, 22, 0.1);
  padding: 0.35rem 1rem;
  border-radius: 40px;
  margin-bottom: 1rem;
  animation: fadeInUp 0.6s ease;
}

/* Section Spacing */
.section {
  padding: 100px 0;
  position: relative;
}

@media (max-width: 768px) {
  .section {
    padding: 60px 0;
  }
}

/* Buttons - Enhanced */
.btn {
  min-height: 48px;
  padding: 0.75rem 1.75rem;
  font-weight: 600;
  border-radius: 60px;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
  z-index: -1;
}

.btn:hover::before {
  width: 300px;
  height: 300px;
}

.btn-primary {
  background: var(--orange);
  color: var(--white);
  box-shadow: var(--shadow-sm);
  position: relative;
  z-index: 1;
}

.btn-primary:hover {
  background: var(--orange-dark);
  transform: translateY(-3px);
  box-shadow: var(--shadow-glow);
}

.btn-outline-primary {
  background: transparent;
  border: 2px solid var(--white);
  color: var(--white);
}

.btn-outline-primary:hover {
  background: var(--white);
  color: var(--orange);
  border-color: var(--white);
  transform: translateY(-3px);
}

.btn-lg { 
  padding: 1rem 2.2rem; 
  font-size: 1rem; 
  min-height: 56px;
}

.pulse-btn {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(249, 115, 22, 0.4); }
  50% { box-shadow: 0 0 0 15px rgba(249, 115, 22, 0); }
}

/* Preloader - Enhanced */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--navy);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.8s ease, visibility 0.8s;
}

.preloader-content {
  text-align: center;
  animation: fadeInScale 0.6s ease;
}

.loader-ring {
  width: 80px;
  height: 80px;
  border: 3px solid rgba(249, 115, 22, 0.3);
  border-top: 3px solid var(--orange);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 1.5rem;
  position: relative;
}

.loader-ring::before {
  content: '';
  position: absolute;
  top: -5px;
  left: -5px;
  right: -5px;
  bottom: -5px;
  border: 2px solid rgba(249, 115, 22, 0.2);
  border-radius: 50%;
  animation: pulse 1.5s ease-in-out infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.loader-text {
  color: var(--white);
  font-weight: 600;
  letter-spacing: 2px;
  margin-bottom: 1rem;
  text-align: center;
  font-size: 0.9rem;
}

.loader-progress {
  width: 200px;
  height: 2px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 2px;
  overflow: hidden;
  margin: 0 auto;
}

.loader-progress-bar {
  width: 0%;
  height: 100%;
  background: var(--orange);
  animation: loadProgress 2s ease forwards;
}

@keyframes loadProgress {
  0% { width: 0%; }
  100% { width: 100%; }
}

/* Navbar - Enhanced */
.navbar {
  padding: 1rem 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  z-index: 1030;
  position: sticky;
  top: 0;
}

.navbar.scrolled {
  padding: 0.7rem 0;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow-md);
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Cabinet Grotesk', sans-serif;
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--navy) !important;
  transition: var(--transition);
}

.navbar-brand:hover {
  transform: scale(1.02);
}

.brand-logo, .footer-logo {
  height: 40px;
  width: auto;
  object-fit: contain;
  transition: var(--transition);
}

.navbar-brand span {
  color: var(--orange);
}

.navbar-toggler {
  border: none;
  background: transparent;
  font-size: 1.5rem;
  color: var(--navy);
  padding: 0;
  transition: var(--transition);
}

.navbar-toggler:hover {
  color: var(--orange);
  transform: rotate(90deg);
}

.navbar-toggler:focus {
  box-shadow: none;
}

/* Desktop Navigation */
@media (min-width: 992px) {
  .mobile-menu-close {
    display: none !important;
  }

  .navbar-nav {
    align-items: center;
  }
  
  .navbar-nav .nav-link {
    font-weight: 600;
    color: var(--navy) !important;
    padding: 0.6rem 1rem !important;
    margin: 0 0.1rem;
    border-radius: 40px;
    font-size: 0.9rem;
    transition: var(--transition);
    position: relative;
  }
  
  .navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--orange);
    transition: var(--transition);
    transform: translateX(-50%);
  }
  
  .navbar-nav .nav-link:hover::after,
  .navbar-nav .nav-link.active::after {
    width: 70%;
  }
  
  .navbar-nav .nav-link:hover,
  .navbar-nav .nav-link.active {
    color: var(--orange) !important;
    transform: translateY(-2px);
  }
  
  /* Dropdown Hover */
  .navbar-nav .dropdown:hover .dropdown-menu {
    display: block;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
  
  .dropdown-menu {
    display: block;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    border-radius: var(--border-radius);
    border: none;
    box-shadow: var(--shadow-md);
    padding: 0.5rem 0;
    margin-top: 0.5rem;
  }
  
  .dropdown-item {
    padding: 0.5rem 1.5rem;
    font-size: 0.9rem;
    transition: var(--transition);
    font-weight: 500;
  }
  
  .dropdown-item:hover {
    background: rgba(249, 115, 22, 0.1);
    color: var(--orange);
    padding-left: 1.8rem;
    transform: translateX(5px);
  }
  
  .nav-cta {
    margin-left: 1rem;
  }
}

/* Mobile Menu - Fully Fixed */

/* Overlay backdrop */
.mobile-nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(10, 37, 64, 0.55);
  z-index: 1045;
  opacity: 0;
  transition: opacity 0.35s ease;
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
}

.mobile-nav-overlay.active {
  display: block;
  opacity: 1;
}

@media (max-width: 991px) {
  /* Elevate navbar above the slide-in panel so toggler is always clickable */
  .navbar {
    z-index: 1060 !important;
  }

  .navbar-collapse {
    position: fixed;
    top: 0;
    right: 0;
    /* Use transform instead of `right` – GPU-composited, works reliably on all
       Android / iOS versions; `right:-100%` leaks on some browsers */
    transform: translateX(100%);
    width: 85%;
    max-width: 360px;
    /* 100dvh respects iOS dynamic toolbar; falls back to 100vh */
    height: 100vh;
    height: 100dvh;
    background: var(--white);
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.2);
    transition: transform 0.4s cubic-bezier(0.2, 0.9, 0.4, 1.1),
                visibility 0.4s;
    padding: 5rem 1.5rem 2rem;
    z-index: 1050;
    overflow-y: auto;
    overflow-x: hidden;
    /* Prevents momentum-scroll bleed on iOS Safari */
    -webkit-overflow-scrolling: touch;
    display: flex !important;
    flex-direction: column;
    /* Hidden from assistive tech & touch events when off-screen */
    visibility: hidden;
  }

  /* ---- Close button inside the drawer ---- */
  .mobile-menu-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 44px;           /* Bumped to 44px — Apple's minimum tappable size */
    height: 44px;
    border: none;
    background: var(--light-gray);
    color: var(--navy);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    cursor: pointer;
    transition: var(--transition);
    z-index: 10;
    flex-shrink: 0;
    /* iOS Safari: remove default button styling that can block tap events */
    -webkit-appearance: none;
    appearance: none;
    /* Prevent the grey flash on tap in iOS Safari */
    -webkit-tap-highlight-color: transparent;
    /* Ensure the tap target is not eaten by scroll handling */
    touch-action: manipulation;
    /* Make sure pointer events are on */
    pointer-events: auto;
  }

  .mobile-menu-close:hover {
    background: var(--orange);
    color: var(--white);
    transform: rotate(90deg);
  }

  .navbar-collapse.show {
    transform: translateX(0);
    visibility: visible;
  }

  .navbar-nav {
    flex-direction: column;
    width: 100%;
    margin-bottom: 1.5rem;
  }

  /* nav-item: default state has NO animation – items are already visible
     inside a visible menu. Animation only fires once menu is opened (.show). */
  .nav-item {
    width: 100%;
    opacity: 1;
    transform: none;
    animation: none;
  }

  /* Scoped to .show so items only animate when drawer slides in */
  .navbar-collapse.show .nav-item {
    opacity: 0;
    transform: translateX(20px);
    animation: slideInNav 0.4s ease forwards;
  }

  .navbar-collapse.show .nav-item:nth-child(1) { animation-delay: 0.05s; }
  .navbar-collapse.show .nav-item:nth-child(2) { animation-delay: 0.10s; }
  .navbar-collapse.show .nav-item:nth-child(3) { animation-delay: 0.15s; }
  .navbar-collapse.show .nav-item:nth-child(4) { animation-delay: 0.20s; }
  .navbar-collapse.show .nav-item:nth-child(5) { animation-delay: 0.25s; }
  .navbar-collapse.show .nav-item:nth-child(6) { animation-delay: 0.30s; }

  @keyframes slideInNav {
    to {
      opacity: 1;
      transform: translateX(0);
    }
  }

  .nav-link {
    padding: 0.75rem 0;
    font-weight: 600;
    color: var(--navy);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.1rem;
  }

  .dropdown-toggle::after {
    margin-left: auto;
  }

  .dropdown-menu {
    position: static !important;
    transform: none !important;
    border: none;
    padding-left: 1rem;
    background: transparent;
    box-shadow: none;
    display: none;
  }

  .dropdown-menu.show {
    display: block;
    animation: fadeInDown 0.3s ease;
  }

  .dropdown-item {
    padding: 0.5rem 0;
    color: var(--gray);
    font-weight: 500;
  }

  .mobile-cta {
    margin-top: 1rem;
  }

  .mobile-cta .btn {
    justify-content: center;
    width: 100%;
  }
}

/* Hero Section - Fixed Heights: 3/4 on desktop, 1/2 on mobile */
.hero {
  position: relative;
  height: 75vh;
  min-height: 550px;
  max-height: 800px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  isolation: isolate;
}

@media (max-width: 768px) {
  .hero {
    height: 50vh;
    min-height: 400px;
  }
}

@media (max-width: 480px) {
  .hero {
    height: 50vh;
    min-height: 380px;
  }
}

.hero-video {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: translate(-50%, -50%);
  z-index: -2;
  opacity: 1;
}

/* Reduced overlay - video is more visible */
.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(10, 37, 64, 0.6), rgba(10, 37, 64, 0.4));
  z-index: -1;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  padding: 0 1.5rem;
  animation: fadeInUp 1s ease;
}

@media (max-width: 768px) {
  .hero-content {
    padding: 0 1.5rem;
  }
}

.hero-badge {
  background: rgba(249, 115, 22, 0.25);
  backdrop-filter: blur(8px);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.4rem 1rem;
  border-radius: 40px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: white;
  animation: fadeInUp 0.6s ease 0.2s both;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero h1 {
  color: white;
  font-size: 2.8rem;
  margin-bottom: 1rem;
  animation: fadeInUp 0.6s ease 0.4s both;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

@media (max-width: 768px) {
  .hero h1 {
    font-size: 2rem;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.75rem;
  }
}

@media (min-width: 768px) {
  .hero h1 {
    font-size: 4rem;
  }
}

.glow-text {
  animation: glow 3s ease-in-out infinite;
}

@keyframes glow {
  0%, 100% { text-shadow: 0 0 20px rgba(249, 115, 22, 0.3), 0 2px 20px rgba(0, 0, 0, 0.3); }
  50% { text-shadow: 0 0 40px rgba(249, 115, 22, 0.6), 0 2px 20px rgba(0, 0, 0, 0.3); }
}

.hero p {
  color: rgba(255, 255, 255, 0.95);
  font-size: 1.1rem;
  margin-bottom: 2rem;
  animation: fadeInUp 0.6s ease 0.6s both;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
  .hero p {
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
  }
}

.hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInUp 0.6s ease 0.8s both;
}

@media (max-width: 480px) {
  .hero-cta {
    flex-direction: column;
    gap: 0.8rem;
    width: 100%;
  }
  
  .hero-cta .btn {
    width: 100%;
    justify-content: center;
  }
}

.hero-scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  color: white;
  text-align: center;
  animation: bounce 2s infinite;
  cursor: pointer;
  z-index: 2;
  opacity: 0.8;
  transition: var(--transition);
}

.hero-scroll-indicator:hover {
  opacity: 1;
  transform: translateX(-50%) translateY(-5px);
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(10px); }
}

/* About Section - Enhanced */
.about-section {
  background: var(--white);
}

.about-grid {
  display: grid;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 768px) {
  .about-grid {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }
}

.feature-list div {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 0.75rem;
  color: var(--gray);
  opacity: 0;
  transform: translateX(-20px);
  animation: slideInLeft 0.5s ease forwards;
}

.feature-list div:nth-child(1) { animation-delay: 0.2s; }
.feature-list div:nth-child(2) { animation-delay: 0.3s; }
.feature-list div:nth-child(3) { animation-delay: 0.4s; }

@keyframes slideInLeft {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.feature-list i {
  color: var(--orange);
  font-size: 1.2rem;
}

.about-video-wrapper {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 16/9;
  cursor: pointer;
  transition: var(--transition);
}

.about-video-wrapper:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-glow);
}

.video-placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s;
}

.about-video-wrapper:hover .video-placeholder {
  transform: scale(1.05);
}

.video-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 70px;
  height: 70px;
  background: var(--orange);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: white;
  transition: var(--transition);
  cursor: pointer;
  animation: pulseRing 2s infinite;
}

@keyframes pulseRing {
  0% {
    box-shadow: 0 0 0 0 rgba(249, 115, 22, 0.7);
  }
  70% {
    box-shadow: 0 0 0 15px rgba(249, 115, 22, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(249, 115, 22, 0);
  }
}

.video-play-btn:hover {
  transform: translate(-50%, -50%) scale(1.1);
  background: var(--orange-dark);
}

/* Capabilities Section - Enhanced */
.capabilities-section {
  background: var(--light-gray);
  position: relative;
  overflow: hidden;
}

.capabilities-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.2rem;
}

@media (min-width: 768px) {
  .capabilities-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.capability-card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 4/3;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  cursor: pointer;
}

.capability-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: var(--shadow-lg);
}

.capability-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s;
}

.capability-card:hover img {
  transform: scale(1.1);
}

.capability-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.2rem;
  background: linear-gradient(transparent, rgba(10, 37, 64, 0.95));
  color: white;
  transform: translateY(20px);
  transition: transform 0.4s;
}

.capability-card:hover .capability-overlay {
  transform: translateY(0);
}

.capability-overlay h4 {
  color: white;
  font-size: 1rem;
  margin-bottom: 0.25rem;
  transform: translateY(10px);
  transition: transform 0.3s ease 0.1s;
}

.capability-card:hover .capability-overlay h4 {
  transform: translateY(0);
}

.capability-overlay p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.7rem;
  margin: 0;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s ease 0.15s;
}

.capability-card:hover .capability-overlay p {
  opacity: 1;
  transform: translateY(0);
}

/* Split Layout - FIXED: SHRINK WITHOUT REARRANGING */
.feature-split-section {
  background: var(--white);
  position: relative;
  overflow: hidden;
}

.feature-split-section.bg-light {
  background: var(--light-gray);
}

.feature-split {
  display: flex;
  flex-direction: row;
  gap: 3rem;
  align-items: center;
  justify-content: space-between;
  /* Prevent children from ever exceeding wrapper width */
  min-width: 0;
}

/* First section: image left, text right */
.feature-split:not(.reverse) .feature-img {
  order: 1;
}

.feature-split:not(.reverse) .feature-text {
  order: 2;
}

/* Second section: image right, text left */
.feature-split.reverse .feature-img {
  order: 2;
}

.feature-split.reverse .feature-text {
  order: 1;
}

.feature-img {
  flex: 1;
  min-width: 0; /* Allows flex child to shrink below its content size */
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  aspect-ratio: 4/3;
  transition: var(--transition);
  position: relative;
}

.feature-text {
  flex: 1;
  min-width: 0; /* Allows flex child to shrink below its content size */
}

/* ---- SHRINK, NEVER STACK ----
   Row layout is preserved at ALL screen sizes.
   Order locked: default = img-left/text-right, .reverse = text-left/img-right.
   We only tighten gap & scale down type so everything fits the screen. */

@media (max-width: 900px) {
  .feature-split { gap: 1.5rem; }
  .feature-text h3    { font-size: 1.2rem; }
  .feature-text p     { font-size: 0.85rem; }
  .feature-bullets li { font-size: 0.8rem; }
  .discover-link      { font-size: 0.85rem; }
}

@media (max-width: 600px) {
  .feature-split { gap: 0.75rem; }
  .feature-text h3    { font-size: 0.95rem; }
  .feature-text p     { font-size: 0.75rem; line-height: 1.45; }
  .feature-bullets    { margin: 0.4rem 0; }
  .feature-bullets li { font-size: 0.72rem; gap: 0.35rem; margin-bottom: 0.3rem; }
  .feature-bullets i  { font-size: 0.8rem; flex-shrink: 0; }
  .discover-link      { font-size: 0.75rem; }
  .feature-split-section .section-tag { font-size: 0.62rem; padding: 0.2rem 0.6rem; }
  .feature-split-section.section { padding: 36px 0; }
}

.feature-img::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.2), transparent);
  opacity: 0;
  transition: var(--transition);
  z-index: 1;
  pointer-events: none;
}

.feature-img:hover::before {
  opacity: 1;
}

.feature-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s;
}

.feature-img:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-glow);
}

.feature-img:hover img {
  transform: scale(1.05);
}

.feature-text {
  animation: fadeInRight 0.8s ease;
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.feature-bullets {
  list-style: none;
  padding-left: 0;
  margin: 1rem 0;
}

.feature-bullets li {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 0.6rem;
  font-weight: 500;
  opacity: 0;
  transform: translateX(-20px);
  animation: slideInLeft 0.5s ease forwards;
}

.feature-bullets li:nth-child(1) { animation-delay: 0.2s; }
.feature-bullets li:nth-child(2) { animation-delay: 0.3s; }
.feature-bullets li:nth-child(3) { animation-delay: 0.4s; }

.feature-bullets i {
  color: var(--orange);
  font-size: 1.1rem;
}

.discover-link {
  font-weight: 700;
  color: var(--orange);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition);
  position: relative;
}

.discover-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--orange);
  transition: var(--transition);
}

.discover-link:hover::after {
  width: 100%;
}

.discover-link:hover {
  gap: 1rem;
  color: var(--orange-dark);
}

/* Swiper Slider - Enhanced */
.slider-section {
  background: var(--light-gray);
  overflow: hidden;
  position: relative;
}

.project-swiper {
  padding: 1rem 0 3rem;
  position: relative;
}

.project-card {
  background: var(--white);
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  position: relative;
}

.project-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.2), transparent);
  opacity: 0;
  transition: var(--transition);
  z-index: 1;
  pointer-events: none;
}

.project-card:hover::before {
  opacity: 1;
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-glow);
}

.project-card img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  transition: transform 0.6s;
}

.project-card:hover img {
  transform: scale(1.05);
}

.project-info {
  padding: 1.5rem;
  position: relative;
  z-index: 2;
}

.project-info h4 {
  margin-bottom: 0.5rem;
  transition: var(--transition);
}

.project-card:hover .project-info h4 {
  color: var(--orange);
}

.project-tag {
  display: inline-block;
  background: rgba(249, 115, 22, 0.1);
  color: var(--orange);
  padding: 0.2rem 0.8rem;
  border-radius: 40px;
  font-size: 0.7rem;
  font-weight: 600;
  margin-top: 0.5rem;
  transition: var(--transition);
}

.project-card:hover .project-tag {
  background: var(--orange);
  color: var(--white);
}

/* Swiper Navigation Styling - Enhanced */
.swiper-button-prev,
.swiper-button-next {
  background: var(--white);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
}

.swiper-button-prev::after,
.swiper-button-next::after {
  font-size: 1.2rem;
  font-weight: bold;
  color: var(--orange);
  transition: var(--transition);
}

.swiper-button-prev:hover,
.swiper-button-next:hover {
  background: var(--orange);
  transform: scale(1.1);
}

.swiper-button-prev:hover::after,
.swiper-button-next:hover::after {
  color: var(--white);
}

.swiper-pagination-bullet {
  background: var(--gray);
  width: 8px;
  height: 8px;
  transition: var(--transition);
}

.swiper-pagination-bullet-active {
  background: var(--orange);
  width: 24px;
  border-radius: 10px;
}

@media (max-width: 768px) {
  .swiper-button-prev,
  .swiper-button-next {
    width: 36px;
    height: 36px;
  }
  
  .swiper-button-prev::after,
  .swiper-button-next::after {
    font-size: 0.9rem;
  }

  /* Keep swiper arrows inside the container */
  .project-swiper {
    padding-left: 44px;
    padding-right: 44px;
  }
}

/* Logo Marquee - Enhanced */
.expertise-section {
  background: var(--white);
  padding: 60px 0;
  position: relative;
  overflow: hidden;
}

.expertise-title {
  text-align: center;
  margin-bottom: 2rem;
}

.logo-marquee {
  width: 100%;
  overflow: hidden;
  position: relative;
  padding: 1.5rem 0;
}

.logo-marquee::before,
.logo-marquee::after {
  content: '';
  position: absolute;
  top: 0;
  width: 100px;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

.logo-marquee::before {
  left: 0;
  background: linear-gradient(to right, var(--white), transparent);
}

.logo-marquee::after {
  right: 0;
  background: linear-gradient(to left, var(--white), transparent);
}

.logo-track {
  display: flex;
  gap: 2rem;
  animation: slideLogos 20s linear infinite;
  width: max-content;
}

.logo-track:hover {
  animation-play-state: paused;
}

.logo-item {
  flex-shrink: 0;
  background: var(--light-gray);
  padding: 1rem 2rem;
  border-radius: 60px;
  font-weight: 600;
  color: var(--navy);
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
  cursor: pointer;
}

.logo-item i {
  color: var(--orange);
  font-size: 1.2rem;
  transition: var(--transition);
}

.logo-item:hover {
  transform: scale(1.05);
  background: var(--orange);
  color: var(--white);
}

.logo-item:hover i {
  color: var(--white);
  transform: rotate(360deg);
}

@keyframes slideLogos {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* CTA Section - Enhanced */
.cta-section {
  background: linear-gradient(135deg, var(--navy), var(--navy-dark));
  padding: 4rem 2rem;
  text-align: center;
  border-radius: 48px;
  margin: 2rem 0 3rem;
  color: white;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(249, 115, 22, 0.1) 0%, transparent 70%);
  animation: rotate 20s linear infinite;
}

@keyframes rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.cta-section::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.1), transparent);
  pointer-events: none;
}

.cta-section:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-glow-lg);
}

.cta-section h3 {
  color: white;
  font-size: 1.8rem;
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}

@media (max-width: 768px) {
  .cta-section h3 {
    font-size: 1.4rem;
  }
}

.cta-section p {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 1;
}

/* Footer - Enhanced */
.footer {
  background: var(--navy-dark);
  color: rgba(255, 255, 255, 0.8);
  padding: 3rem 0 1.5rem;
  margin-top: 2rem;
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--orange), transparent);
}

.footer-brand h4 {
  color: white;
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-brand span {
  color: var(--orange);
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.social-links a {
  background: rgba(255, 255, 255, 0.1);
  width: 38px;
  height: 38px;
  border-radius: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  color: white;
}

.social-links a:hover {
  background: var(--orange);
  transform: translateY(-3px) rotate(360deg);
}

.footer-links h5 {
  color: white;
  font-size: 1rem;
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
}

.footer-links h5::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 30px;
  height: 2px;
  background: var(--orange);
}

.footer-links a {
  display: block;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 0.5rem;
  font-size: 0.85rem;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--orange);
  padding-left: 5px;
  transform: translateX(5px);
}

.footer-contact p {
  margin-bottom: 0.5rem;
  font-size: 0.85rem;
  transition: var(--transition);
}

.footer-contact p:hover {
  transform: translateX(5px);
}

.footer-contact i {
  width: 24px;
  color: var(--orange);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  margin-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
  margin: 0;
  font-size: 0.8rem;
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.7);
  transition: var(--transition);
}

.footer-bottom a:hover {
  color: var(--orange);
}

/* Back to Top - Enhanced */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 1.5rem;
  width: 48px;
  height: 48px;
  border-radius: 60px;
  background: var(--orange);
  color: white;
  border: none;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 99;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: var(--orange-dark);
  transform: translateY(-5px) scale(1.1);
  box-shadow: var(--shadow-glow);
}

/* Keyframe Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive Typography */
@media (min-width: 768px) {
  h1 {
    font-size: 3.5rem;
  }
  
  h2 {
    font-size: 2.5rem;
  }
}

@media (max-width: 768px) {
  .cursor-dot,
  .cursor-outline {
    display: none;
  }
  
  body {
    cursor: auto;
  }
  
  .section-tag {
    font-size: 0.7rem;
  }
}

/* ========================================
   MOBILE OVERFLOW & LAYOUT FIXES
   Ensures nothing bleeds past the right edge
   ======================================== */

/* Prevent ALL sections/wrappers from ever causing horizontal scroll */
section,
.container,
.about-grid,
.capabilities-grid,
.feature-split,
.slider-section,
.expertise-section,
.cta-section,
.footer {
  max-width: 100%;
  overflow-x: clip; /* clip (not hidden) preserves position:sticky */
}

/* Ensure Bootstrap container never overflows on tiny screens */
/* — Replaced below by the unified container system — */

@media (max-width: 480px) {
  /* Tighten section padding so content doesn't feel cramped */
  .section {
    padding: 50px 0;
  }

  /* CTA section — scale down border-radius on very small screens */
  .cta-section {
    border-radius: 24px;
    padding: 2.5rem 1.25rem;
    margin: 1.5rem 0 2rem;
  }

  /* Capabilities grid — single column on very small phones */
  .capabilities-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }

  /* Footer columns */
  .footer .row {
    gap: 1.5rem 0;
  }

  /* Navbar brand text wrapping */
  .navbar-brand {
    font-size: 1.1rem;
  }

  /* Hero badge — wrap if needed */
  .hero-badge {
    font-size: 0.7rem;
    padding: 0.3rem 0.8rem;
  }
}

/* Swiper slide images responsive height */
@media (max-width: 640px) {
  .project-card img {
    height: 180px;
  }
}


/* ========================================
   UNIFIED CONTAINER + GUTTER SYSTEM
   ─────────────────────────────────────────
   Max-width: 1200px  (readable on any wide
   screen — content never stretches to fill
   a 1920px monitor wall-to-wall)

   Gutters (side padding):
     Mobile  ≤ 767px  : 20px
     Tablet  768–1023px: 32px
     Desktop 1024–1279px: 56px
     Wide    ≥ 1280px  : 80px

   The `max()` calls also respect iOS notch
   / safe-area insets automatically.
   ======================================== */

/* 1 ── Core container rule (overrides Bootstrap's defaults) */
.container,
.container-sm,
.container-md,
.container-lg,
.container-xl,
.container-xxl,
.container-fluid {
  width: 100%;
  max-width: 1200px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* 2 ── Mobile  ( ≤ 767px ) — 20px gutters */
@media (max-width: 767px) {
  .container,
  .container-sm,
  .container-md,
  .container-lg,
  .container-xl,
  .container-xxl {
    padding-left:  max(20px, env(safe-area-inset-left))  !important;
    padding-right: max(20px, env(safe-area-inset-right)) !important;
  }

  /* Navbar inner container gets the same treatment */
  .navbar > .container {
    padding-left:  max(20px, env(safe-area-inset-left))  !important;
    padding-right: max(20px, env(safe-area-inset-right)) !important;
  }

  /* Hero text block — rendered inside full-bleed section, not .container */
  .hero-content {
    padding-left:  20px;
    padding-right: 20px;
  }

  /* CTA box inner copy */
  .cta-section {
    padding-left:  20px;
    padding-right: 20px;
  }
}

/* 3 ── Tablet  ( 768px – 1023px ) — 32px gutters */
@media (min-width: 768px) and (max-width: 1023px) {
  .container,
  .container-sm,
  .container-md,
  .container-lg,
  .container-xl,
  .container-xxl {
    padding-left:  max(32px, env(safe-area-inset-left))  !important;
    padding-right: max(32px, env(safe-area-inset-right)) !important;
  }

  .navbar > .container {
    padding-left:  32px !important;
    padding-right: 32px !important;
  }

  .hero-content {
    padding-left:  32px;
    padding-right: 32px;
  }
}

/* 4 ── Desktop ( 1024px – 1279px ) — 56px gutters */
@media (min-width: 1024px) and (max-width: 1279px) {
  .container,
  .container-sm,
  .container-md,
  .container-lg,
  .container-xl,
  .container-xxl {
    padding-left:  56px !important;
    padding-right: 56px !important;
  }

  .navbar > .container {
    padding-left:  56px !important;
    padding-right: 56px !important;
  }
}

/* 5 ── Wide screens ( ≥ 1280px ) — 80px gutters, max-width caps the spread */
@media (min-width: 1280px) {
  .container,
  .container-sm,
  .container-md,
  .container-lg,
  .container-xl,
  .container-xxl {
    padding-left:  80px !important;
    padding-right: 80px !important;
  }

  .navbar > .container {
    padding-left:  80px !important;
    padding-right: 80px !important;
  }
}
/* ========================================
   STICKY NAVBAR — FORCE OVERRIDE (all devices)
   Paste at bottom of style.css. Overrides
   everything above via !important + specificity.
   ======================================== */

.navbar {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  z-index: 1060 !important;
}

/* Pushes page body down so content isn't hidden behind the fixed navbar */
body {
  padding-top: 72px !important;
}

/* Tighten the offset on mobile since the navbar is slightly shorter */
@media (max-width: 991px) {
  body {
    padding-top: 65px !important;
  }
}