/* ----------------------------------------------------
   Advanced Design Tokens
---------------------------------------------------- */
:root {
  /* Premium Corporate Colors */
  --primary: #004494; /* Deep Navy Blue */
  --primary-light: #0056b3; 
  --primary-dark: #002b5e;
  --accent: #f39c12; /* Subtle warning/highlight */
  
  /* Neutral & Surfaces */
  --bg-main: #ffffff;
  --bg-alt: #f8f9fc;
  --bg-dark: #12151c;
  
  /* Text Colors */
  --text-main: #1a1f2b;
  --text-muted: #64748b;
  --text-light: #ffffff;
  
  /* Utilities */
  --font-family: 'Inter', system-ui, -apple-system, sans-serif;
  --transition-fast: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  --ease-premium: cubic-bezier(0.16, 1, 0.3, 1);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  
  /* Shadows for depth */
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  --shadow-float: 0 30px 60px -12px rgba(0, 86, 179, 0.25);
}

/* ----------------------------------------------------
   CSS Resets & Globals
---------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-family: var(--font-family);
  color: var(--text-main);
  background: var(--bg-main);
  overflow-x: hidden;
}

body {
  overflow-x: hidden;
  line-height: 1.6;
}

a { text-decoration: none; color: inherit; transition: var(--transition-fast); }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* ----------------------------------------------------
   Typography & Hierarchy
---------------------------------------------------- */
h1, h2, h3, h4, h5, h6 { font-weight: 700; line-height: 1.2; color: var(--text-main); margin-bottom: 1rem; }
h1 { font-size: clamp(3rem, 5vw, 4.5rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(2rem, 4vw, 3rem); letter-spacing: -0.01em; }
h3 { font-size: 1.5rem; }
p { color: var(--text-muted); margin-bottom: 1.5rem; font-size: 1.125rem; }

/* ----------------------------------------------------
   Layout Utilities
---------------------------------------------------- */
.container { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 6rem 0; position: relative; }
.bg-alt { background-color: var(--bg-alt); }
.bg-dark { background-color: var(--bg-dark); color: var(--text-light); }
.bg-dark h2, .bg-dark p { color: var(--text-light); }
.text-center { text-align: center; }

/* Section Headers */
.section-header { text-align: center; max-width: 800px; margin: 0 auto 4rem; }
.section-header h2 { margin-bottom: 1rem; }
.section-header .subtitle {
  display: inline-block;
  color: var(--primary-light);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

/* ----------------------------------------------------
   Premium Buttons
---------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: none;
  transition: var(--transition-fast);
  gap: 0.5rem;
  font-size: 1rem;
}
.w-100 { width: 100%; }

.btn-primary {
  background-color: var(--primary-light);
  color: var(--text-light);
  box-shadow: 0 4px 15px rgba(0, 86, 179, 0.3);
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 86, 179, 0.3);
}

.btn-outline {
  background-color: transparent;
  border: 2px solid var(--primary-light);
  color: var(--primary-light);
}

.btn-outline:hover {
  background-color: var(--primary-light);
  color: var(--text-light);
}

.btn-white {
  border-color: var(--text-light);
  color: var(--text-light);
}
.btn-white:hover {
  background-color: var(--text-light);
  color: var(--primary-dark);
}

/* ----------------------------------------------------
   Navigation (Glassmorphism)
---------------------------------------------------- */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 1.5rem 0;
  background: rgba(255, 255, 255, 0.0);
  transform: translateY(0);
  opacity: 1;
  transition: background var(--transition-fast), padding var(--transition-fast), opacity 0.4s var(--ease-premium), transform 0.4s var(--ease-premium);
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  padding: 1rem 0;
  box-shadow: var(--shadow-sm);
}

.navbar.hidden-by-footer {
  opacity: 0;
  transform: translateY(-100%);
  pointer-events: none;
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
}
.logo img {
  height: 80px;
  object-fit: contain;
  object-position: left center;
  transition: var(--transition-fast);
}
.navbar.scrolled .logo img {
  height: 65px;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
}

.nav-links a {
  font-weight: 600;
  font-size: 0.95rem;
  position: relative;
  color: var(--text-main);
}
.navbar:not(.scrolled) .nav-links a {
  color: var(--text-light);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 2px;
  background: var(--primary-light);
  transition: var(--transition-fast);
}

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

.mobile-toggle {
  display: none;
  font-size: 1.5rem;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-main);
}
.navbar:not(.scrolled) .mobile-toggle {
  color: var(--text-light);
}

/* ----------------------------------------------------
   Hero Slider
---------------------------------------------------- */
.hero-section {
  position: relative;
  height: 100vh;
  min-height: 600px;
}

.hero-swiper {
  width: 100%;
  height: 100%;
}

.hero-slide {
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
  transform: scale(1);
  will-change: transform;
}

.swiper-slide-active .hero-bg {
  animation: kenBurns 10s var(--ease-premium) forwards;
}

@keyframes kenBurns {
  0% { transform: scale(1); }
  100% { transform: scale(1.05); }
}

/* Staggered Reveal Logic for Active Slide Only */
.hero-slide .reveal { opacity: 0; transform: translateY(40px); transition: none !important; }
.hero-slide.swiper-slide-active .reveal { 
  opacity: 1; 
  transform: translateY(0); 
  transition: opacity 0.8s var(--ease-premium), transform 0.8s var(--ease-premium) !important; 
}
.hero-slide.swiper-slide-active .d-100 { transition-delay: 0.2s !important; }
.hero-slide.swiper-slide-active .d-200 { transition-delay: 0.4s !important; }
.hero-slide.swiper-slide-active .d-300 { transition-delay: 0.6s !important; }

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 43, 94, 0.9) 0%, rgba(0, 43, 94, 0.4) 100%);
}

.hero-content {
  position: relative;
  z-index: 10;
  color: var(--text-light);
  max-width: 800px;
}

.hero-content h1 { color: var(--text-light); }
.hero-content p { color: rgba(255,255,255,0.9); font-size: 1.25rem; }
.hero-content .slide-subtitle {
  display: inline-block;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}
.hero-actions {
  display: flex;
  gap: 1rem;
  margin-top: 2.5rem;
}

.swiper-button-next, .swiper-button-prev { color: var(--text-light) !important; }
.swiper-pagination-bullet { background: var(--text-light) !important; }
.swiper-pagination-bullet-active { background: var(--primary-light) !important; }

/* ----------------------------------------------------
   About & Stats
---------------------------------------------------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  margin-bottom: 4rem;
}

.features-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 2rem;
}

.feature-item {
  display: flex;
  gap: 1.5rem;
}

.icon-box {
  width: 60px; height: 60px;
  background: var(--bg-alt);
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; color: var(--primary-light);
  flex-shrink: 0;
}

.about-image-wrapper { position: relative; }
.about-main-img { 
  border-radius: var(--radius-lg); 
  box-shadow: var(--shadow-lg); 
  transition: transform 0.4s var(--ease-premium), box-shadow 0.4s var(--ease-premium);
  will-change: transform, box-shadow;
}
.about-main-img:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: var(--shadow-float);
}
.experience-badge {
  position: absolute;
  bottom: -30px; right: -30px;
  background: var(--primary-light);
  color: var(--text-light);
  padding: 2rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-float);
  text-align: center;
}
.experience-badge .counter { font-size: 3rem; font-weight: 800; line-height: 1; }
.experience-badge .label { display: block; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 1px; }

.stats-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  background: var(--bg-alt);
  padding: 3rem;
  border-radius: var(--radius-lg);
}
.stat-box { text-align: center; border-right: 1px solid rgba(0,0,0,0.05); }
.stat-box:last-child { border: none; }
.stat-number { font-size: 2.5rem; font-weight: 800; color: var(--primary-light); margin-bottom: 0.5rem; }
.stat-label { font-weight: 600; color: var(--text-muted); }

/* ----------------------------------------------------
   Services Swiper
---------------------------------------------------- */
.services-swiper { padding: 2rem 0 4rem; }
.service-card {
  background: var(--bg-main);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-fast);
  height: auto;
  will-change: transform, box-shadow;
}
.service-card:hover { transform: translateY(-6px); box-shadow: 0 15px 30px -5px rgba(0,0,0,0.1); }
.service-img { height: 220px; overflow: hidden; }
.service-img img { width: 100%; height: 100%; object-fit: cover; transition: var(--transition-slow); }
.service-card:hover .service-img img { transform: scale(1.05); }
.service-body { padding: 2rem; position: relative; }
.service-icon {
  position: absolute;
  top: -30px; right: 2rem;
  width: 60px; height: 60px;
  background: var(--primary-light);
  color: var(--text-light);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  box-shadow: var(--shadow-md);
}

.services-pagination .swiper-pagination-bullet {
  background: #ffffff;
  border: 2px solid var(--primary-light);
  opacity: 1;
  width: 14px;
  height: 14px;
  transition: var(--transition-fast);
  box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}
.services-pagination .swiper-pagination-bullet-active {
  background: var(--primary-light);
  border-color: var(--primary-light);
  width: 30px;
  border-radius: 7px;
}

/* ----------------------------------------------------
   Projects Masonry Grid
---------------------------------------------------- */
.gallery-masonry {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  grid-auto-rows: 250px;
  gap: 1.5rem;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  display: block;
}

.gallery-item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.4s var(--ease-premium);
  will-change: transform;
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 43, 94, 0.8);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: white;
  opacity: 0;
  transition: var(--transition-fast);
}

.gallery-overlay i { font-size: 2rem; margin-bottom: 1rem; transform: translateY(20px); transition: var(--transition-fast); color: #ffffff; }
.gallery-overlay h4 { transform: translateY(20px); transition: var(--transition-fast); color: #ffffff; text-shadow: 0 2px 4px rgba(0,0,0,0.5); }

.gallery-item:hover img { transform: scale(1.08); }
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-item:hover .gallery-overlay i, .gallery-item:hover .gallery-overlay h4 { transform: translateY(0); }

/* ----------------------------------------------------
   Contact Section
---------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.contact-methods { margin-top: 2.5rem; display: flex; flex-direction: column; gap: 1.5rem; }
.contact-method-card {
  display: flex; align-items: center; gap: 1.5rem;
  padding: 1.5rem;
  background: var(--bg-main);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-fast);
}
.contact-method-card:hover { transform: translateX(10px); box-shadow: var(--shadow-md); }
.contact-method-card .icon {
  width: 50px; height: 50px;
  background: var(--bg-alt);
  color: var(--primary-light);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-size: 1.2rem;
}

.contact-form-panel {
  background: var(--bg-main);
  padding: 3rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.premium-form .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-bottom: 1.5rem; }
.premium-form .form-input {
  width: 100%;
  padding: 1rem 1.25rem;
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: var(--radius-sm);
  background: var(--bg-alt);
  font-family: inherit; font-size: 1rem;
  transition: var(--transition-fast);
  margin-bottom: 1.5rem;
}
.premium-form .form-row .form-input { margin-bottom: 0; }
.premium-form .form-input:focus { outline: none; border-color: var(--primary-light); background: var(--bg-main); box-shadow: 0 0 0 4px rgba(0,86,179,0.1); }

.map-embed { margin-top: 4rem; height: 400px; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); }
.map-embed iframe { width: 100%; height: 100%; border: none; }

/* ----------------------------------------------------
   Footer
---------------------------------------------------- */
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 4rem; margin-bottom: 3rem; }
.footer h4 { color: #ffffff; margin-bottom: 1.5rem; font-size: 1.25rem; }
.footer-logo { 
  height: 90px; 
  margin-bottom: 1.5rem; 
  display: block;
  object-fit: contain;
  object-position: left center;
}
.footer-links a { display: block; margin-bottom: 0.75rem; color: #ffffff; font-weight: 500; transition: var(--transition-fast); }
.footer-links a:hover { color: var(--primary-light); padding-left: 5px; }
.footer-contact p { color: #D1D5DB; margin-bottom: 0.75rem; font-weight: 500; }
.footer-contact i { margin-right: 0.5rem; color: var(--primary-light); }
.footer-bottom { text-align: center; padding-top: 2rem; border-top: 1px solid rgba(255,255,255,0.1); color: #D1D5DB; font-size: 0.875rem; }

/* ----------------------------------------------------
   FAB & Lightbox
---------------------------------------------------- */
.fab-whatsapp {
  position: fixed; bottom: 30px; right: 30px;
  width: 60px; height: 60px;
  background: #25D366; color: white;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 35px; box-shadow: var(--shadow-lg); z-index: 999;
  transition: var(--transition-fast);
  animation: pulse 2.5s infinite var(--ease-premium);
  will-change: transform, box-shadow;
}
.fab-whatsapp:hover { transform: scale(1.1); background: #1ebe57; animation-play-state: paused; }

@keyframes pulse {
  0% { transform: scale(1); box-shadow: 0 10px 20px rgba(37, 211, 102, 0.4); }
  50% { transform: scale(1.05); box-shadow: 0 15px 30px rgba(37, 211, 102, 0.6); }
  100% { transform: scale(1); box-shadow: 0 10px 20px rgba(37, 211, 102, 0.4); }
}

.lightbox {
  display: none; position: fixed; inset: 0; z-index: 2000;
  background: rgba(0,0,0,0.9); align-items: center; justify-content: center;
}
.lightbox-content { max-width: 90%; max-height: 90vh; border-radius: var(--radius-md); }
.lightbox-close {
  position: absolute; top: 30px; right: 40px; color: white;
  font-size: 3rem; cursor: pointer; transition: var(--transition-fast);
}
.lightbox-close:hover { color: var(--primary-light); }

/* ----------------------------------------------------
   Intersection Observer Animations (Reveal Classes)
---------------------------------------------------- */
.reveal, .reveal-left, .reveal-right { 
  opacity: 0; 
  transition: opacity 0.8s var(--ease-premium), transform 0.8s var(--ease-premium); 
  will-change: opacity, transform;
}
.reveal { transform: translateY(40px); }
.reveal-left { transform: translateX(-40px); }
.reveal-right { transform: translateX(40px); }

.reveal.active, .reveal-left.active, .reveal-right.active { 
  opacity: 1; 
  transform: translate(0, 0); 
}
.active.d-100 { transition-delay: 100ms; }
.active.d-200 { transition-delay: 200ms; }
.active.d-300 { transition-delay: 300ms; }
.active.d-400 { transition-delay: 400ms; }

/* ----------------------------------------------------
   Mobile Resets
---------------------------------------------------- */
@media (max-width: 992px) {
  .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .experience-badge { bottom: 10px; right: 10px; padding: 1.5rem; }
  .stats-container { grid-template-columns: 1fr 1fr; gap: 1.5rem; padding: 1.5rem; }
  .stat-box { border-right: none; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .hero-content h1 { font-size: 2.5rem; }
  .premium-form .form-row { grid-template-columns: 1fr; }
}
