/* ========================================
   CONTAINER & LAYOUT
   ======================================== */

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.container-narrow {
  max-width: var(--container-narrow);
}

.container-wide {
  max-width: var(--container-wide);
}

/* ========================================
   NOISE / GRAIN OVERLAY
   ======================================== */

body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
}

/* ========================================
   HEADER
   ======================================== */

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: var(--space-lg) 0;
  transition: all var(--transition-base);
  background: transparent;
}

.header.scrolled {
  background: rgba(10, 14, 26, 0.9);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid var(--color-border);
  padding: var(--space-sm) 0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-logo img {
  height: 36px;
  width: auto;
  filter: brightness(0) invert(1);
}

.header-right {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

.header-phone {
  display: none;
  align-items: center;
  gap: var(--space-sm);
  color: var(--color-text-secondary);
  font-weight: var(--font-weight-normal);
  font-size: var(--font-size-sm);
  transition: color var(--transition-fast);
}

.header-phone:hover {
  color: var(--color-text-heading);
}

.header-phone svg {
  width: 16px;
  height: 16px;
}

.header-cta .btn {
  padding: 10px 24px;
  font-size: var(--font-size-sm);
}

/* Mobile menu */
.mobile-menu-btn {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}

.mobile-menu-btn span {
  width: 22px;
  height: 1.5px;
  background: var(--color-text);
  transition: all var(--transition-base);
}

.mobile-menu-btn.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

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

.mobile-menu-btn.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

@media (min-width: 768px) {
  .header-phone {
    display: flex;
  }

  .mobile-menu-btn {
    display: none;
  }

  .mobile-nav {
    display: none !important;
  }
}

/* ---- Mobile Navigation Drawer ---- */
.mobile-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 999;
  background: rgba(10, 14, 26, 0.97);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  padding: 100px var(--space-lg) var(--space-2xl);
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
              opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
}

.mobile-nav.open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.mobile-nav__phone {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  color: var(--color-accent);
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-medium);
  margin-bottom: var(--space-2xl);
  padding: var(--space-md) 0;
}

.mobile-nav__phone svg {
  width: 20px;
  height: 20px;
}

.mobile-nav__links {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--space-2xl) 0;
  border-top: 1px solid var(--color-border);
}

.mobile-nav__links li {
  border-bottom: 1px solid var(--color-border);
}

.mobile-nav__links a {
  display: block;
  padding: var(--space-lg) 0;
  color: var(--color-text);
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-normal);
  transition: color var(--transition-fast);
  min-height: 48px;
  display: flex;
  align-items: center;
}

.mobile-nav__links a:hover,
.mobile-nav__links a:focus {
  color: var(--color-accent);
}

/* ========================================
   HERO — Full Viewport, Centered
   ======================================== */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding: 120px var(--space-lg) 80px;
}

/* Primary gradient orb behind hero text — DRAMATIC */
.hero::before {
  content: '';
  position: absolute;
  top: 25%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 1400px;
  height: 1000px;
  background: radial-gradient(ellipse 80% 60% at 50% 40%, rgba(59, 155, 143, 0.25) 0%, rgba(40, 80, 100, 0.11) 30%, rgba(30, 50, 90, 0.09) 50%, transparent 70%);
  filter: blur(60px);
  pointer-events: none;
  z-index: 0;
  animation: heroGlow 8s ease-in-out infinite alternate;
}

/* Secondary cool-blue orb for depth */
.hero::after {
  content: '';
  position: absolute;
  bottom: 5%;
  right: 10%;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle at center, rgba(30, 60, 110, 0.15) 0%, rgba(40, 60, 120, 0.06) 40%, transparent 60%);
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
  animation: heroGlow2 10s ease-in-out infinite alternate;
}

@keyframes heroGlow {
  0% { opacity: 0.7; transform: translate(-50%, -50%) scale(1); }
  100% { opacity: 1; transform: translate(-50%, -50%) scale(1.12); }
}

@keyframes heroGlow2 {
  0% { opacity: 0.5; transform: scale(1); }
  100% { opacity: 1; transform: scale(1.15) translate(-20px, -30px); }
}

/* Floating decorative shapes — larger and more visible */
.hero-decoration {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: radial-gradient(circle at center, rgba(59, 155, 143, 0.06), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.hero-decoration--1 {
  width: 400px;
  height: 400px;
  top: 10%;
  left: -8%;
  animation: float 20s ease-in-out infinite;
  border-color: rgba(59, 155, 143, 0.12);
  background: radial-gradient(circle at center, rgba(59, 155, 143, 0.08), transparent 70%);
}

.hero-decoration--2 {
  width: 280px;
  height: 280px;
  bottom: 15%;
  right: 3%;
  animation: float 15s ease-in-out infinite reverse;
  border-color: rgba(30, 60, 110, 0.1);
  background: radial-gradient(circle at center, rgba(30, 60, 110, 0.06), transparent 70%);
}

.hero-decoration--3 {
  width: 200px;
  height: 200px;
  top: 55%;
  left: 8%;
  border-radius: 30%;
  transform: rotate(45deg);
  animation: float 18s ease-in-out infinite 2s;
  border-color: rgba(20, 60, 100, 0.1);
  background: radial-gradient(circle at center, rgba(20, 60, 100, 0.05), transparent 70%);
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  25% { transform: translateY(-20px) rotate(3deg); }
  50% { transform: translateY(-10px) rotate(-2deg); }
  75% { transform: translateY(-25px) rotate(1deg); }
}

/* ========================================
   HERO ILLUSTRATION — Minimalist visa document
   ======================================== */

.hero-illustration {
  position: absolute;
  right: 4%;
  top: 50%;
  transform: translateY(-50%);
  width: 320px;
  height: auto;
  opacity: 0.12;
  pointer-events: none;
  z-index: 0;
  animation: illustrationFloat 12s ease-in-out infinite;
}

.hero-illustration svg {
  width: 100%;
  height: auto;
}

@keyframes illustrationFloat {
  0%, 100% { transform: translateY(-50%) translateX(0); }
  50% { transform: translateY(calc(-50% - 15px)) translateX(5px); }
}

@media (max-width: 767px) {
  .hero-illustration {
    display: none;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .hero-illustration {
    width: 220px;
    opacity: 0.08;
    right: 2%;
  }
}

@media (min-width: 1400px) {
  .hero-illustration {
    width: 380px;
    right: 6%;
  }
}

/* ========================================
   SECTION ILLUSTRATIONS — Minimalist line art
   ======================================== */

.section-illustration {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 280px;
  height: auto;
  opacity: 0.45;
  pointer-events: none;
  z-index: 0;
  display: none;
}

.section-illustration svg {
  width: 100%;
  height: auto;
}

.section-illustration--right {
  right: 2%;
}

.section-illustration--left {
  left: 2%;
}

.section-illustration--right {
  animation: illustrationFloat 12s ease-in-out infinite;
}

.section-illustration--left {
  animation: illustrationFloatLeft 14s ease-in-out infinite;
}

@keyframes illustrationFloatLeft {
  0%, 100% { transform: translateY(-50%) translateX(0); }
  50% { transform: translateY(calc(-50% - 10px)) translateX(-5px); }
}

/* ========================================
   FLOATING PARTICLES (CSS-only ambient dots)
   ======================================== */

.particles-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.particle {
  position: absolute;
  border-radius: 50%;
  opacity: 0;
  animation: particleDrift linear infinite;
}

.particle:nth-child(1) {
  width: 4px; height: 4px;
  background: rgba(59, 155, 143, 0.4);
  left: 15%; top: 100%;
  animation-duration: 25s; animation-delay: 0s;
  box-shadow: 0 0 12px rgba(59, 155, 143, 0.3);
}
.particle:nth-child(2) {
  width: 3px; height: 3px;
  background: rgba(30, 60, 110, 0.35);
  left: 35%; top: 100%;
  animation-duration: 30s; animation-delay: -5s;
  box-shadow: 0 0 10px rgba(30, 60, 110, 0.25);
}
.particle:nth-child(3) {
  width: 5px; height: 5px;
  background: rgba(59, 155, 143, 0.3);
  left: 55%; top: 100%;
  animation-duration: 22s; animation-delay: -10s;
  box-shadow: 0 0 15px rgba(59, 155, 143, 0.25);
}
.particle:nth-child(4) {
  width: 3px; height: 3px;
  background: rgba(20, 60, 100, 0.35);
  left: 75%; top: 100%;
  animation-duration: 28s; animation-delay: -3s;
  box-shadow: 0 0 10px rgba(20, 60, 100, 0.25);
}
.particle:nth-child(5) {
  width: 4px; height: 4px;
  background: rgba(59, 155, 143, 0.35);
  left: 90%; top: 100%;
  animation-duration: 26s; animation-delay: -8s;
  box-shadow: 0 0 12px rgba(59, 155, 143, 0.25);
}
.particle:nth-child(6) {
  width: 3px; height: 3px;
  background: rgba(30, 60, 110, 0.3);
  left: 5%; top: 100%;
  animation-duration: 32s; animation-delay: -15s;
  box-shadow: 0 0 10px rgba(30, 60, 110, 0.2);
}
.particle:nth-child(7) {
  width: 4px; height: 4px;
  background: rgba(20, 60, 100, 0.3);
  left: 45%; top: 100%;
  animation-duration: 24s; animation-delay: -12s;
  box-shadow: 0 0 12px rgba(20, 60, 100, 0.2);
}
.particle:nth-child(8) {
  width: 3px; height: 3px;
  background: rgba(59, 155, 143, 0.35);
  left: 65%; top: 100%;
  animation-duration: 27s; animation-delay: -7s;
  box-shadow: 0 0 10px rgba(59, 155, 143, 0.25);
}

@keyframes particleDrift {
  0% {
    transform: translateY(0) translateX(0);
    opacity: 0;
  }
  10% {
    opacity: 0.8;
  }
  50% {
    opacity: 0.4;
  }
  90% {
    opacity: 0.6;
  }
  100% {
    transform: translateY(-110vh) translateX(40px);
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .particles-bg { display: none; }
  .hero-decoration { animation: none; }
}

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

.hero-content {
  max-width: 900px;
  margin: 0 auto;
}

.hero h1 {
  margin-bottom: var(--space-xl);
}

.hero-subtitle {
  color: var(--color-text-secondary);
  font-size: var(--font-size-lg);
  line-height: var(--line-height-base);
  margin-bottom: var(--space-3xl);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  font-weight: var(--font-weight-light);
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  justify-content: center;
  margin-bottom: var(--space-4xl);
}

/* ========================================
   SECTIONS
   ======================================== */

.section {
  padding: var(--space-section) 0;
  position: relative;
  background: var(--gradient-section-1);
}

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

.section-alt {
  background: var(--gradient-section-2);
}

/* Ambient mesh glow for depth */
.section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-mesh);
  pointer-events: none;
  z-index: 0;
}

/* Ambient glow orbs on non-alt sections — DRAMATIC */
.section:not(.section-alt)::after {
  content: '';
  position: absolute;
  width: 900px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(59, 155, 143, 0.10), rgba(59, 155, 143, 0.03) 40%, transparent 70%);
  filter: blur(100px);
  pointer-events: none;
  z-index: 0;
  animation: orbFloat 12s ease-in-out infinite alternate;
}

.section:not(.section-alt):nth-of-type(odd)::after {
  top: 10%;
  right: -15%;
}

.section:not(.section-alt):nth-of-type(even)::after {
  bottom: 10%;
  left: -15%;
  background: radial-gradient(circle, rgba(30, 60, 110, 0.10), rgba(30, 60, 110, 0.03) 40%, transparent 70%);
  animation-delay: -6s;
}

@keyframes orbFloat {
  0% { transform: translate(0, 0) scale(1); opacity: 0.7; }
  50% { transform: translate(30px, -20px) scale(1.1); opacity: 1; }
  100% { transform: translate(-20px, 10px) scale(1.05); opacity: 0.85; }
}

/* Dot grid on alternate sections */
.section-alt::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.08;
  background-image: radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.5) 1px, transparent 0);
  background-size: 32px 32px;
}

/* Glow divider between sections — wider and more visible */
.section + .section::before {
  top: 0;
  left: 5%;
  right: 5%;
  height: 2px;
  bottom: auto;
  background: linear-gradient(90deg, transparent, rgba(59, 155, 143, 0.5), transparent);
  z-index: 1;
}

/* Softer glow halo at section boundaries */
.section + .section > .container {
  position: relative;
  z-index: 1;
}

.section > .container::before {
  content: '';
  position: absolute;
  top: -80px;
  left: 5%;
  right: 5%;
  height: 120px;
  background: radial-gradient(ellipse at center top, rgba(59, 155, 143, 0.09), transparent 80%);
  pointer-events: none;
  z-index: 0;
}

/* ========================================
   GRIDS (simplified)
   ======================================== */

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

.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }

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

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

/* ========================================
   FOOTER
   ======================================== */

.footer {
  background-color: var(--color-bg-elevated);
  border-top: 1px solid var(--color-border);
  color: var(--color-text-secondary);
  padding: var(--space-4xl) 0 var(--space-xl);
}

.footer-top {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-3xl);
  margin-bottom: var(--space-3xl);
  padding-bottom: var(--space-3xl);
  border-bottom: 1px solid var(--color-border);
}

.footer-logo img {
  height: 32px;
  width: auto;
  filter: brightness(0) invert(1);
  margin-bottom: var(--space-lg);
}

.footer-about p {
  font-size: var(--font-size-sm);
  line-height: var(--line-height-base);
  margin-bottom: var(--space-md);
  max-width: 360px;
}

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-sm);
  font-size: var(--font-size-sm);
}

.footer-contact-item svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  color: var(--color-text-tertiary);
}

.footer-contact-item a {
  color: var(--color-text-secondary);
}

.footer-contact-item a:hover {
  color: var(--color-text-heading);
}

.footer-heading {
  color: var(--color-text-heading);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  margin-bottom: var(--space-lg);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.footer-links li {
  margin-bottom: var(--space-sm);
}

.footer-links a {
  color: var(--color-text-secondary);
  font-size: var(--font-size-sm);
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--color-text-heading);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  justify-content: space-between;
  align-items: center;
  font-size: var(--font-size-xs);
  color: var(--color-text-tertiary);
}

.footer-sra {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius);
  padding: var(--space-md) var(--space-lg);
  font-size: var(--font-size-sm);
  margin-top: var(--space-lg);
}

.footer-sra strong {
  color: var(--color-text);
}

.footer-socials {
  display: flex;
  gap: var(--space-sm);
}

.footer-socials a {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--border-radius-full);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: var(--color-text-secondary);
  transition: all var(--transition-fast);
}

.footer-socials a:hover {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: #ffffff;
}

.footer-socials svg {
  width: 16px;
  height: 16px;
}

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

/* ========================================
   UTILITY CLASSES
   ======================================== */

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-accent { color: var(--color-accent-hover); }
.text-muted { color: var(--color-text-secondary); }
.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }
.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ========================================
   REVEAL ANIMATIONS (staggered)
   ======================================== */

/* Page entrance */
body {
  animation: pageIn 0.6s ease-out;
}

@keyframes pageIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Staggered children */
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1), transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-stagger.visible > *:nth-child(1) { transition-delay: 0ms; }
.reveal-stagger.visible > *:nth-child(2) { transition-delay: 80ms; }
.reveal-stagger.visible > *:nth-child(3) { transition-delay: 160ms; }
.reveal-stagger.visible > *:nth-child(4) { transition-delay: 240ms; }
.reveal-stagger.visible > *:nth-child(5) { transition-delay: 320ms; }
.reveal-stagger.visible > *:nth-child(6) { transition-delay: 400ms; }
.reveal-stagger.visible > *:nth-child(7) { transition-delay: 480ms; }
.reveal-stagger.visible > *:nth-child(8) { transition-delay: 560ms; }

.reveal-stagger.visible > * {
  opacity: 1;
  transform: translateY(0);
}
