/* ============================================
   TECH-N INFO SOLUTIONS PVT LTD - Main Stylesheet
   ============================================ */

/* CSS Variables */
:root {
  --primary: #0284c7;
  --primary-dark: #0369a1;
  --primary-container: #0c4a6e;
  --secondary: #06b6d4;
  --surface: #f8fafc;
  --surface-container-low: #f1f5f9;
  --surface-container-lowest: #ffffff;
  --surface-container-highest: #e2e8f0;
  --on-surface: #0f172a;
  --on-surface-variant: #475569;
  --outline-variant: #cbd5e1;
  --error: #dc2626;
  --success: #16a34a;
}

/* Reset & Base */
*,
*::before,
*::after {
  box-sizing: border-box !important;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  background-color: var(--surface) !important;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--surface);
  color: var(--on-surface);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  position: relative;
}

.page-wrapper {
  width: 100% !important;
  max-width: 100% !important;
  overflow: hidden !important;
  position: relative;
  margin: 0 !important;
  padding: 0 !important;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  line-height: 1.2;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100% !important;
  height: auto;
  display: block;
}

/* Material Symbols */
.material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
  vertical-align: middle;
}

.material-symbols-outlined[data-weight="fill"] {
  font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

/* ============================================
   Navigation
   ============================================ */
/* Enhanced Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  z-index: 1000 !important;
  overflow-x: hidden !important;
  background: transparent;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  margin: 0 !important;
  padding: 0.5rem 0;
}

.navbar.scrolled {
  background: rgba(15, 23, 42, 0.95);
  padding: 0.25rem 0;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  border-bottom-color: rgba(2, 132, 199, 0.2);
}

.nav-container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0.75rem 1.5rem; /* Reduced padding for more space */
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.25rem; /* Reduced gap to prevent merging issues */
}

.nav-logo {
  display: flex;
  align-items: center;
  padding: 0.4rem 1rem; /* Compact padding */
  background: #ffffff; /* Explicit white background for high-contrast branding */
  border-radius: 25px;
  border: 1px solid rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.nav-logo:hover {
  background: #f8fafc;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.nav-logo img {
  height: 38px; /* Slightly reduced height to save horizontal space */
  width: auto;
  display: block;
  filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.1));
}

.nav-links {
  display: none;
  gap: 1.5rem; /* Reduced gap between links */
  list-style: none;
}

.nav-links a {
  font-size: 0.95rem; /* Reduced font size for tighter fit */
  font-weight: 600;
  color: rgba(255, 255, 255, 0.8);
  transition: all 0.3s ease;
  padding: 0.5rem 0;
}

.navbar.scrolled .nav-links a {
  color: rgba(255, 255, 255, 0.7);
}

.nav-links a:hover,
.nav-links a.active {
  color: white;
}

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--primary);
  border-radius: 1px;
}

.nav-cta {
  display: none;
}

.nav-cta .btn {
  padding: 0.85rem 1.75rem;
  font-size: 1rem;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
  z-index: 110;
}

.mobile-menu-toggle span {
  width: 24px;
  height: 2.5px;
  background: var(--primary); /* Use primary color for better visibility */
  transition: all 0.3s ease;
  border-radius: 2px;
}

.mobile-menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Navigation Enhanced Overlay */
.mobile-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 99;
  display: flex;
  flex-direction: column;
  justify-content: center; /* Center everything vertically in the overlay */
  align-items: center;     /* Center everything horizontally */
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 80px 2rem 2rem; /* Top padding for header space */
}

.mobile-nav.active {
  opacity: 1;
  visibility: visible;
}

.mobile-nav-links {
  list-style: none;
  width: 100%;
  max-width: 400px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 20px; /* Exact 20px gap as requested */
}

.mobile-nav-links li {
  width: 100%;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.4s ease;
}

.mobile-nav.active .mobile-nav-links li {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered animation for links */
.mobile-nav .mobile-nav-links li:nth-child(1) { transition-delay: 0.1s; }
.mobile-nav .mobile-nav-links li:nth-child(2) { transition-delay: 0.15s; }
.mobile-nav .mobile-nav-links li:nth-child(3) { transition-delay: 0.2s; }
.mobile-nav .mobile-nav-links li:nth-child(4) { transition-delay: 0.25s; }
.mobile-nav .mobile-nav-links li:nth-child(5) { transition-delay: 0.3s; }
.mobile-nav .mobile-nav-links li:nth-child(6) { transition-delay: 0.35s; }

.mobile-nav-links a {
  display: block;
  font-family: 'Manrope', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: white;
  text-align: center;
  padding: 10px 0;
  border-radius: 12px;
  transition: all 0.3s ease;
}

.mobile-nav-links a:hover,
.mobile-nav-links a.active {
  color: var(--primary);
  background: rgba(255, 255, 255, 0.05);
}

.mobile-nav-cta {
  margin-top: 20px; /* Match the gap for consistency */
  width: 100%;
  display: flex;
  justify-content: center;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.4s ease 0.4s;
}

.mobile-nav-cta .btn {
  width: 80%; /* Prominent but not full-width */
  max-width: 280px;
}

.mobile-nav.active .mobile-nav-cta {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   Buttons
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 2.25rem;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  letter-spacing: 0.01em;
}

.btn-primary {
  background: var(--primary);
  color: white;
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(2, 132, 199, 0.4);
}

.btn-secondary {
  background: transparent;
  color: var(--on-surface);
  border: 1px solid var(--outline-variant);
}

.btn-secondary:hover {
  background: var(--surface-container-low);
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-3px);
}

.btn-white {
  background: white;
  color: #0f172a;
}

.btn-white:hover {
  background: #f8fafc;
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.btn-outline-white {
  background: transparent;
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-outline-white:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: white;
  transform: translateY(-3px);
}

/* Staggered Entrance Animations */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUpIn 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.hero-badge.fade-up {
  animation-delay: 0.2s;
}

h1.fade-up {
  animation-delay: 0.4s;
}

p.fade-up {
  animation-delay: 0.6s;
}

.hero-buttons.fade-up {
  animation-delay: 0.8s;
}

@keyframes fadeUpIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Global Grid Layouts */
/* Placeholder for structural rules */

/* Cinematic Hero (Slideshow) */
.hero-cinematic,
.hero.cinematic,
.hero {
  position: relative;
  height: 100vh;
  min-height: 700px;
  display: flex !important;
  align-items: center;
  justify-content: center;
  overflow: hidden !important;
  width: 100% !important;
  max-width: 100% !important;
  left: 0 !important;
  right: 0 !important;
  margin: 0 !important;
  text-align: center;
  color: white;
  padding-top: 80px;
  /* Space for navbar */
}

.hero-slideshow {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100% !important;
  max-width: 100% !important;
  overflow: hidden !important;
}

.slide {
  position: absolute;
  inset: 0;
  width: 100% !important;
  max-width: 100% !important;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
  transform: scale(1.1);
  /* Ensure coverage during pan */
}

.slide.active {
  opacity: 1;
  animation: panVideoSideBySide 12s linear forwards;
}

@keyframes panVideoSideBySide {
  0% {
    transform: scale(1.1) translateX(0);
  }

  100% {
    transform: scale(1.1) translateX(-3%);
  }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center,
      rgba(15, 23, 42, 0.3) 0%,
      rgba(15, 23, 42, 0.7) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 1000px;
  padding: 0 2rem;
}

.hero-content h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.hero-content p {
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  margin-bottom: 2.5rem;
  opacity: 0.9;
  max-width: 750px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}



/* ============================================
   Sections
   ============================================ */
.section {
  padding: 5rem 2rem;
  max-width: 1280px;
  margin: 0 auto !important;
  overflow-x: hidden !important;
  width: 100% !important;
  position: relative;
}

.section-alt {
  background: var(--surface-container-low);
}

.section-dark {
  background: var(--primary);
  color: white;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-header h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 1rem;
}

.section-header p {
  font-size: 1.125rem;
  color: var(--on-surface-variant);
  max-width: 600px;
  margin: 0 auto;
}

/* ============================================
   Cards
   ============================================ */
.card {
  background: var(--surface-container-lowest);
  border-radius: 20px;
  padding: 2.5rem;
  border: 1px solid rgba(203, 213, 225, 0.2);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
  overflow: hidden !important;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  max-width: 100% !important;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
  border-color: var(--primary);
}

.card-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.2;
  transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
  z-index: 0;
  pointer-events: none;
  filter: brightness(0.9);
}

.nuclear-bg {
  z-index: 1 !important;
}

.card:hover .nuclear-bg {
  opacity: 0.7 !important;
  transform: scale(1.05);
}

.card:hover .card-bg {
  opacity: 0.6;
  transform: scale(1.05);
  filter: brightness(1);
}

.card-icon {
  width: 64px;
  height: 64px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.75rem;
  transition: all 0.3s ease;
  position: relative;
  z-index: 2;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.card-icon .material-symbols-outlined {
  font-size: 32px;
  color: var(--primary);
}

.card:hover .card-icon {
  background: var(--primary);
  transform: scale(1.1) rotate(5deg);
}

.card:hover .card-icon .material-symbols-outlined {
  color: white;
}

.card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  position: relative;
  z-index: 2;
  color: var(--on-surface);
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

.card p {
  color: var(--on-surface-variant);
  font-size: 1rem;
  margin-bottom: 2.25rem;
  position: relative;
  z-index: 2;
  line-height: 1.6;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(4px);
  padding: 0.5rem;
  margin-left: -0.5rem;
  margin-right: -0.5rem;
  border-radius: 8px;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  color: var(--primary);
  transition: all 0.3s ease;
  margin-top: auto;
  position: relative;
  z-index: 2;
  background: rgba(255, 255, 255, 0.9);
  padding: 0.5rem 1rem;
  border-radius: 8px;
  width: fit-content;
}

.card:hover .card-link {
  gap: 1rem;
}

/* Services Grid */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ============================================
   Process Timeline
   ============================================ */
.process-section {
  padding: 5rem 2rem;
  background: var(--surface-container-low);
}

.process-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  max-width: 1280px;
  margin: 0 auto;
  position: relative;
}

.process-line {
  display: none;
  position: absolute;
  top: 64px;
  left: 15%;
  right: 15%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  border-radius: 2px;
}

.process-step {
  text-align: center;
  padding: 2rem;
}

.process-number {
  width: 64px;
  height: 64px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Manrope', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  margin: 0 auto 1.5rem;
  transition: transform 0.3s ease;
}

.process-step:hover .process-number {
  transform: scale(1.1);
}

.process-step h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.process-step p {
  color: var(--on-surface-variant);
  font-size: 0.95rem;
}

/* ============================================
   Why Choose Us
   ============================================ */
.why-us-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

.why-us-images {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.why-us-images img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  object-position: top center;
  border-radius: 16px;
  transition: transform 0.3s ease;
}

.why-us-images img:hover {
  transform: scale(1.05);
}

.why-us-content h2 {
  font-size: clamp(2rem, 4vw, 2.5rem);
  margin-bottom: 1rem;
}

.why-us-content>p {
  color: var(--on-surface-variant);
  margin-bottom: 2rem;
}

.feature-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.feature-item {
  display: flex;
  gap: 1rem;
}

.feature-item .icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, rgba(2, 132, 199, 0.1), rgba(6, 182, 212, 0.1));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.feature-item .icon .material-symbols-outlined {
  color: var(--primary);
}

.feature-item h4 {
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.feature-item p {
  font-size: 0.875rem;
  color: var(--on-surface-variant);
}

/* ============================================
   CTA Section
   ============================================ */
.cta-section {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  margin: 3rem 2rem;
  min-height: 400px;
  display: flex;
  align-items: center;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
}

.cta-bg {
  position: absolute;
  inset: 0;
}

.cta-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.cta-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--primary) 0%, rgba(2, 132, 199, 0.85) 100%);
}

.cta-content {
  position: relative;
  z-index: 10;
  padding: 4rem 2rem;
  color: white;
  max-width: 700px;
}

.cta-content h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin-bottom: 1rem;
}

.cta-content p {
  opacity: 0.9;
  margin-bottom: 2rem;
}

.cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* ============================================
   About Page
   ============================================ */
.about-hero {
  padding: 8rem 2rem 4rem;
  max-width: 1280px;
  margin: 0 auto;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: start;
}

.about-content .badge {
  display: inline-block;
  color: var(--primary);
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.about-content h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 1rem;
}

.about-content>p {
  color: var(--on-surface-variant);
  margin-bottom: 2rem;
}

.mission-vision-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.mv-card {
  background: var(--surface-container-low);
  padding: 1.5rem;
  border-radius: 16px;
  display: flex;
  gap: 1rem;
  align-items: start;
}

.mv-card .icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  flex-shrink: 0;
}

.mv-card h3 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.mv-card p {
  font-size: 0.875rem;
  color: var(--on-surface-variant);
}

.about-image {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
}

.about-image img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  object-position: top center;
}

.about-image-blur {
  position: absolute;
  width: 200px;
  height: 200px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.2;
  bottom: -50px;
  right: -50px;
  transition: all 0.5s ease;
}

.about-image:hover .about-image-blur {
  opacity: 0.4;
  transform: scale(1.2);
}

/* Timeline */
.timeline-section {
  padding: 5rem 2rem;
  background: var(--surface-container-low);
}

.timeline {
  max-width: 1280px;
  margin: 0 auto;
  position: relative;
}

.timeline-line {
  display: none;
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--primary), var(--secondary));
  transform: translateX(-50%);
}

.timeline-items {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.timeline-item {
  position: relative;
  padding-left: 3rem;
}

.timeline-marker {
  position: absolute;
  left: 0;
  top: 0;
  width: 40px;
  height: 40px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 0.75rem;
}

.timeline-item h3 {
  font-size: 1rem;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.timeline-item h4 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.timeline-item p {
  color: var(--on-surface-variant);
  font-size: 0.95rem;
}

/* Values Grid */
.values-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.value-card {
  background: var(--surface-container-lowest);
  padding: 2rem;
  border-radius: 16px;
  transition: all 0.3s ease;
}

.value-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.value-card .icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  margin-bottom: 1rem;
}

.value-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.value-card p {
  color: var(--on-surface-variant);
  font-size: 0.95rem;
}

.value-card-large {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
}

.value-card-large p {
  color: rgba(255, 255, 255, 0.8);
}

.stats-row {
  display: flex;
  gap: 3rem;
  margin-top: 1.5rem;
}

.stat {
  text-align: center;
}

.stat-value {
  font-size: 2.5rem;
  font-weight: 800;
  font-family: 'Manrope', sans-serif;
}

.stat-label {
  font-size: 0.875rem;
  opacity: 0.8;
}

/* Global Presence */
.global-section {
  padding: 5rem 2rem;
  background: var(--primary);
  color: white;
  overflow: hidden;
}

.global-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  max-width: 1280px;
  margin: 0 auto;
  align-items: center;
}

.global-content h2 {
  font-size: clamp(2rem, 4vw, 2.5rem);
  margin-bottom: 1rem;
}

.global-content>p {
  opacity: 0.9;
  margin-bottom: 2rem;
}

.global-locations {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.global-locations li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.1);
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-size: 0.875rem;
}

.global-image img {
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
  opacity: 0.8;
}

/* ============================================
   Team Page
   ============================================ */
/* Team Hero placeholder removed in favor of unified hero */

.team-section {
  padding: 3rem 2rem 5rem;
  max-width: 1280px;
  margin: 0 auto;
}

.team-section h2 {
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
}

.team-section>p {
  color: var(--on-surface-variant);
  margin-bottom: 2rem;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.team-card {
  background: var(--surface-container-lowest);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.team-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.team-card-image {
  position: relative;
  height: 380px;
  overflow: hidden;
}

.team-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  filter: grayscale(100%);
  transition: all 0.5s ease;
}

.team-card:hover .team-card-image img {
  filter: grayscale(0%);
  transform: scale(1.05);
}



.team-card-content {
  padding: 1.5rem;
}

.team-card h3 {
  font-size: 1.125rem;
  margin-bottom: 0.25rem;
}

.team-card .role {
  color: var(--primary);
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.team-card .experience {
  font-size: 0.75rem;
  color: var(--on-surface-variant);
}

.team-card-social {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--outline-variant);
}

.team-card-social a {
  width: 36px;
  height: 36px;
  background: var(--surface-container-low);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--on-surface-variant);
  transition: all 0.3s ease;
}

.team-card-social a:hover {
  background: var(--primary);
  color: white;
}

/* Expert Bento Grid */
.experts-section {
  padding: 3rem 2rem 5rem;
  max-width: 1280px;
  margin: 0 auto;
}

.experts-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.expert-card {
  background: var(--surface-container-lowest);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.expert-card:hover {
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.expert-card-large {
  position: relative;
  min-height: 400px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.expert-card-large .bg-image {
  position: absolute;
  inset: 0;
}

.expert-card-large .bg-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.expert-card-large .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(15, 23, 42, 0.9) 100%);
}

.expert-card-large .content {
  position: relative;
  z-index: 10;
  padding: 2rem;
  color: white;
}

.expert-card-large .role {
  font-size: 0.75rem;
  background: rgba(255, 255, 255, 0.2);
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  display: inline-block;
  margin-bottom: 0.5rem;
}

.expert-card-large h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.expert-card-large p {
  font-size: 0.875rem;
  opacity: 0.8;
  margin-bottom: 1rem;
}

.expert-card-small {
  padding: 1.5rem;
  display: flex;
  gap: 1rem;
  align-items: center;
}

.expert-card-small img {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  object-fit: cover;
  object-position: top center;
}

.expert-card-small h4 {
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.expert-card-small .role {
  font-size: 0.75rem;
  color: var(--primary);
}

/* ============================================
   Portfolio Page
   ============================================ */
/* Portfolio Hero placeholder removed in favor of unified hero */

.portfolio-filters {
  padding: 2rem;
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.filter-btn {
  padding: 0.75rem 1.5rem;
  background: var(--surface-container-lowest);
  border: 1px solid var(--outline-variant);
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.portfolio-grid {
  padding: 2rem;
  max-width: 1280px;
  margin: 0 auto;
  columns: 1;
  gap: 1.5rem;
}

.portfolio-item {
  break-inside: avoid;
  margin-bottom: 1.5rem;
  background: var(--surface-container-lowest);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.portfolio-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.portfolio-item-image {
  position: relative;
  overflow: hidden;
}

.portfolio-item-image img {
  width: 100%;
  height: auto;
  transition: transform 0.5s ease;
}

.portfolio-item:hover .portfolio-item-image img {
  transform: scale(1.05);
}

.portfolio-item-content {
  padding: 1.5rem;
}

.portfolio-item .category {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--primary);
  background: rgba(2, 132, 199, 0.1);
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  margin-bottom: 0.75rem;
}

.portfolio-item h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.portfolio-item p {
  color: var(--on-surface-variant);
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.portfolio-item .link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  color: var(--primary);
  transition: gap 0.3s ease;
}

.portfolio-item:hover .link {
  gap: 1rem;
}

.load-more {
  text-align: center;
  padding: 3rem 2rem;
}

/* ============================================
   Contact Page
   ============================================ */
.contact-section {
  max-width: 1280px;
  margin: -100px auto 0;
  padding: 0 2rem 4rem;
  position: relative;
  z-index: 20;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.contact-form-card {
  background: var(--surface-container-lowest);
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.contact-form-card h2 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.contact-form-card>p {
  color: var(--on-surface-variant);
  margin-bottom: 2rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 1rem;
  background: var(--surface-container-highest);
  border: none;
  border-radius: 12px;
  font-family: inherit;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.2);
}

.form-group textarea {
  min-height: 150px;
  resize: vertical;
}

.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath fill='%23475569' d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 3rem;
}

.contact-info-card {
  background: var(--primary-container);
  color: white;
  border-radius: 16px;
  padding: 2rem;
}

.contact-info-card h3 {
  font-size: 1.25rem;
  margin-bottom: 2rem;
}

.contact-info-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.contact-info-item .icon {
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-info-item h4 {
  font-size: 0.875rem;
  margin-bottom: 0.25rem;
}

.contact-info-item p,
.contact-info-item a {
  font-size: 0.95rem;
  opacity: 0.9;
}

.contact-social {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-social h4 {
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

.contact-social-links {
  display: flex;
  gap: 0.75rem;
}

.contact-social-links a {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.contact-social-links a:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.contact-map {
  margin-top: 2rem;
  border-radius: 12px;
  overflow: hidden;
  height: 200px;
}

.contact-map img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

/* Trusted By */
.trusted-section {
  padding: 5rem 2rem;
  background: var(--surface-container-low);
  text-align: center;
}

.trusted-section h2 {
  font-size: 1.5rem;
  margin-bottom: 3rem;
  color: var(--on-surface-variant);
}

.trusted-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 3rem;
}

.trusted-logos span {
  font-family: 'Manrope', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--on-surface);
  opacity: 0.3;
  transition: opacity 0.3s ease;
}

.trusted-logos span:hover {
  opacity: 0.6;
}

/* ============================================
   Footer
   ============================================ */
.footer {
  background: #0f172a;
  color: white;
  padding: 4rem 2rem 2rem;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  overflow-x: hidden !important;
  margin: 0 !important;
  left: 0 !important;
  right: 0 !important;
}

.footer-grid {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

.footer-brand {
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.5rem;
}

.footer-logo-container {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1.25rem; /* SAME as header .nav-logo */
  background: #ffffff !important; /* SAME white background as header */
  border-radius: 25px; /* SAME pill shape as header */
  border: 1px solid rgba(0, 0, 0, 0.05); /* SAME border as header */
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1); /* SAME shadow as header */
  width: fit-content;
  transition: all 0.3s ease;
}

.footer-brand-logo {
  height: 45px; /* SAME height as header .nav-logo img */
  width: auto;
  display: block;
  filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.1)); /* SAME filter as header */
}

.footer-logo-container:hover {
  transform: translateY(-3px);
  background: #f8fafc !important;
}



.footer-brand p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.footer-social {
  display: flex;
  gap: 0.75rem;
}

.footer-social a {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.footer-social a:hover {
  background: var(--primary);
  transform: translateY(-2px);
}

.footer-links h4 {
  font-size: 1rem;
  margin-bottom: 1.5rem;
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.95rem;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: white;
}

.footer-contact h4 {
  font-size: 1rem;
  margin-bottom: 1.5rem;
}

.footer-contact-item {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.95rem;
}

.footer-contact-item .material-symbols-outlined {
  color: var(--secondary);
}

.footer-bottom {
  max-width: 1280px;
  margin: 3rem auto 0;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.875rem;
}

/* ============================================
   Floating Action Buttons
   ============================================ */
.floating-buttons {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  z-index: 90;
}

.floating-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  position: relative;
}

.floating-btn:hover {
  transform: scale(1.1);
}

.floating-btn.whatsapp {
  background: #25D366;
}

.floating-btn.call {
  background: var(--primary);
  animation: bounce-subtle 2s infinite;
}

.floating-btn .tooltip {
  position: absolute;
  right: 70px;
  background: #0f172a;
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-size: 0.875rem;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.floating-btn:hover .tooltip {
  opacity: 1;
  visibility: visible;
}

@keyframes bounce-subtle {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-5px);
  }
}

/* ============================================
   Form Success Message
   ============================================ */
.form-success {
  display: none;
  text-align: center;
  padding: 2rem;
}

.form-success.show {
  display: block;
}

.form-success .icon {
  width: 80px;
  height: 80px;
  background: var(--success);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  color: white;
}

.form-success .icon .material-symbols-outlined {
  font-size: 40px;
}

.form-success h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.form-success p {
  color: var(--on-surface-variant);
}

/* ============================================
   Animations
   ============================================ */
.fade-in {
  animation: fadeIn 0.6s ease forwards;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.slide-up {
  animation: slideUp 0.6s ease forwards;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================
   Responsive Design
   ============================================ */
@media (min-width: 1024px) {
  .nav-links {
    display: flex;
  }

  .nav-cta {
    display: block;
  }

  .mobile-menu-toggle {
    display: none !important;
  }

  .hero-split {
    grid-template-columns: 1fr 1fr;
  }

  .process-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .process-line {
    display: block;
  }

  .why-us-grid {
    grid-template-columns: 1fr 1fr;
  }

  .about-grid {
    grid-template-columns: 1.2fr 0.8fr;
  }

  .mission-vision-cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .timeline-line {
    display: block;
  }

  .timeline-items {
    flex-direction: row;
    justify-content: space-between;
  }

  .timeline-item {
    flex: 1;
    padding: 0 1rem;
    text-align: center;
  }

  .timeline-marker {
    position: relative;
    margin: 0 auto 1rem;
  }

  .values-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .value-card-span-2 {
    grid-column: span 2;
  }

  .value-card-span-3 {
    grid-column: span 3;
  }

  .global-grid {
    grid-template-columns: 1fr 1fr;
  }

  .experts-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .expert-card-large {
    grid-column: span 2;
    grid-row: span 2;
  }

  .portfolio-grid {
    columns: 2;
  }

  .contact-grid {
    grid-template-columns: 2fr 1fr;
  }

  .footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
  }
}

@media (max-width: 1023px) {
  .nav-links, .nav-cta {
    display: none !important; /* Force hide desktop nav on all tablets/phones */
  }

  .nav-container {
    padding: 1rem 1.5rem !important;
  }
  
  .mobile-menu-toggle {
    display: flex !important;
  }

  .hero-cinematic,
  .hero.cinematic,
  .hero {
    height: auto;
    min-height: 50vh !important;
    padding: 100px 20px 60px;
  }

  .slide {
    background-size: contain !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    transform: none !important;
    animation: none !important;
    background-color: #0f172a; /* Fallback matching site theme */
  }

  .hero-content {
    position: relative;
    z-index: 10;
  }

  /* Prevent CTA cropping */
  .cta-section {
    min-height: 400px !important;
  }

  .cta-bg img,
  .expert-card-large .bg-image img,
  .value-card-large,
  .about-image img {
    object-fit: contain !important;
    background-color: #0f172a;
  }

  .footer-brand {
    align-items: center;
    text-align: center;
  }

  .footer-logo-container {
    max-width: 150px;
    margin-left: auto;
    margin-right: auto;
  }
}

@media (min-width: 1024px) {
  .portfolio-grid {
    columns: 3;
  }
}