@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Space+Grotesk:wght@400;500;600;700&display=swap');

/* --- CUSTOM VARIABLES --- */
:root {
  --color-navy-dark: #070D1E;
  --color-navy: #0B1530;
  --color-navy-light: #12224A;
  --color-ocean: #145D7A;
  --color-ocean-light: #1C7293;
  --color-aqua: #06B6D4;
  --color-aqua-light: #38BDF8;
  --color-white: #FFFFFF;
  --color-gray-light: #F4F7F6;
  --color-gray-medium: #E2E8F0;
  --color-gray-dark: #475569;
  --color-text-main: #1E293B;
  
  --font-display: 'Space Grotesk', 'Inter', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: all 0.2s ease;
  --shadow-elegant: 0 10px 30px -10px rgba(7, 13, 30, 0.08);
  --shadow-glow: 0 0 20px rgba(6, 182, 212, 0.25);
  --border-radius: 12px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--color-white);
  color: var(--color-text-main);
  font-family: var(--font-body);
}

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

/* --- CUSTOM SCROLLBAR --- */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--color-gray-light);
}
::-webkit-scrollbar-thumb {
  background: var(--color-ocean-light);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--color-ocean);
}

/* --- SCROLL PROGRESS INDICATOR --- */
#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--color-ocean-light), var(--color-aqua));
  width: 0%;
  z-index: 1000;
  transition: width 0.1s ease-out;
}

/* --- TYPOGRAPHY --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.25;
  color: var(--color-navy);
}

p {
  color: var(--color-gray-dark);
}

/* --- REVEAL ON SCROLL ANIMATIONS --- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-left.active {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-right.active {
  opacity: 1;
  transform: translateX(0);
}

.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }
.delay-400 { transition-delay: 400ms; }

/* --- NAVIGATION GLASSMORPHISM --- */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  transition: var(--transition-smooth);
  padding: 1.5rem 0;
}

header.scrolled {
  background: rgba(11, 21, 48, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 0.8rem 0;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* Logo animation */
.logo-icon {
  transition: var(--transition-smooth);
}
header.scrolled .logo-icon {
  transform: rotate(180deg);
}

/* Navigation Links hover */
.nav-link {
  position: relative;
  transition: var(--transition-fast);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-aqua-light);
  transition: var(--transition-smooth);
}

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

/* --- HERO SECTION WAVE BACKGROUND --- */
.hero-gradient {
  background: radial-gradient(circle at 80% 20%, rgba(20, 93, 122, 0.15) 0%, rgba(7, 13, 30, 0) 60%),
              linear-gradient(180deg, var(--color-navy-dark) 0%, var(--color-navy) 100%);
}

.hero-overlay-grid {
  background-size: 40px 40px;
  background-image: linear-gradient(to right, rgba(255, 255, 255, 0.01) 1px, transparent 1px),
                    linear-gradient(to bottom, rgba(255, 255, 255, 0.01) 1px, transparent 1px);
}

/* Floating animation */
@keyframes float {
  0% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-10px) rotate(1deg); }
  100% { transform: translateY(0px) rotate(0deg); }
}

.animate-float {
  animation: float 6s ease-in-out infinite;
}

@keyframes pulse-ring {
  0% { transform: scale(0.95); opacity: 1; }
  50% { opacity: 0.5; }
  100% { transform: scale(1.3); opacity: 0; }
}

/* --- INTERACTIVE BENTO GRID FOR SERVICES --- */
.bento-card {
  position: relative;
  background: var(--color-white);
  border: 1px solid var(--color-gray-medium);
  border-radius: var(--border-radius);
  overflow: hidden;
  transition: var(--transition-smooth);
  box-shadow: var(--shadow-elegant);
}

.bento-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--color-ocean-light), var(--color-aqua));
  transform: scaleX(0);
  transform-origin: left;
  transition: var(--transition-smooth);
}

.bento-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(11, 21, 48, 0.08);
  border-color: rgba(6, 182, 212, 0.2);
}

.bento-card:hover::before {
  transform: scaleX(1);
}

.bento-card-dark {
  background: var(--color-navy-light);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.bento-card-dark p {
  color: rgba(255, 255, 255, 0.7);
}

.bento-card-dark h3 {
  color: var(--color-white);
}

.bento-card-dark:hover {
  border-color: rgba(6, 182, 212, 0.4);
  box-shadow: var(--shadow-glow);
}

/* --- REGIONAL MAP INTERACTIVE DESIGN --- */
.map-container {
  position: relative;
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
}

.map-svg {
  filter: drop-shadow(0 15px 25px rgba(0, 0, 0, 0.15));
}

.map-region-path {
  fill: #1A284E;
  stroke: #2E4176;
  stroke-width: 1.5;
  transition: var(--transition-smooth);
}

.map-region-path:hover,
.map-region-path.active {
  fill: #22376C;
  stroke: var(--color-aqua-light);
}

.map-marker {
  cursor: pointer;
}

.map-marker-ring {
  transform-origin: center;
  animation: pulse-ring 2s cubic-bezier(0.215, 0.610, 0.355, 1) infinite;
}

.map-marker-dot {
  fill: var(--color-aqua);
  stroke: var(--color-white);
  stroke-width: 1.5;
  transition: var(--transition-smooth);
}

.map-marker:hover .map-marker-dot,
.map-marker.active .map-marker-dot {
  fill: var(--color-white);
  stroke: var(--color-aqua-light);
  r: 7;
}

/* Regional operating card details */
.operation-card {
  transition: var(--transition-smooth);
  border-left: 4px solid var(--color-ocean-light);
}

.operation-card.active {
  border-left-color: var(--color-aqua);
  background: rgba(6, 182, 212, 0.03);
}

/* --- PREMIUM STATS COUNTERS --- */
.stat-box {
  border-right: 1px solid var(--color-gray-medium);
}
.stat-box:last-child {
  border-right: none;
}

@media (max-width: 768px) {
  .stat-box {
    border-right: none;
    border-bottom: 1px solid var(--color-gray-medium);
    padding-bottom: 1.5rem;
  }
  .stat-box:last-child {
    border-bottom: none;
    padding-bottom: 0;
  }
}

/* --- INTERACTIVE CONTACT FORM --- */
.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--color-gray-medium);
  border-radius: 8px;
  font-family: var(--font-body);
  transition: var(--transition-fast);
  outline: none;
}

.form-input:focus {
  border-color: var(--color-ocean-light);
  box-shadow: 0 0 0 3px rgba(28, 114, 147, 0.15);
}

/* --- MODAL DIALOG --- */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(7, 13, 30, 0.6);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition-smooth);
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  background: var(--color-white);
  padding: 2.5rem;
  border-radius: 16px;
  max-width: 480px;
  width: 90%;
  text-align: center;
  transform: scale(0.9);
  transition: var(--transition-smooth);
  box-shadow: 0 20px 50px rgba(7, 13, 30, 0.2);
}

.modal-overlay.open .modal-content {
  transform: scale(1);
}

/* --- TO TOP BUTTON --- */
#back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: linear-gradient(135deg, var(--color-ocean), var(--color-ocean-light));
  color: var(--color-white);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  z-index: 90;
  opacity: 0;
  transform: translateY(20px);
  transition: var(--transition-smooth);
  border: none;
}

#back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
}

#back-to-top:hover {
  background: linear-gradient(135deg, var(--color-aqua), var(--color-ocean));
  box-shadow: 0 15px 25px rgba(6, 182, 212, 0.3);
  transform: translateY(-3px);
}

/* --- WATER WAVE ACCENT SVG --- */
.wave-divider {
  position: relative;
  width: 100%;
  overflow: hidden;
  line-height: 0;
}

.wave-divider svg {
  position: relative;
  display: block;
  width: calc(100% + 1.3px);
  height: 60px;
}

.wave-divider .shape-fill {
  fill: var(--color-gray-light);
}

/* --- MOBILE NAVIGATION PANEL --- */
#mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  max-width: 350px;
  height: 100%;
  background: var(--color-navy);
  z-index: 99;
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  padding: 6rem 2.5rem 3rem;
  transition: var(--transition-smooth);
}

#mobile-menu.open {
  right: 0;
}

#mobile-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(7, 13, 30, 0.5);
  backdrop-filter: blur(4px);
  z-index: 98;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition-smooth);
}

#mobile-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

/* Hamburger animation */
.hamburger-line {
  transition: var(--transition-fast);
}

.menu-btn.open .line-1 {
  transform: translateY(6px) rotate(45deg);
}

.menu-btn.open .line-2 {
  opacity: 0;
}

.menu-btn.open .line-3 {
  transform: translateY(-6px) rotate(-45deg);
}

/* --- SERVICE GALLERY MODAL --- */
.gallery-modal-content {
  background: var(--color-white);
  border-radius: 20px;
  box-shadow: 0 25px 60px rgba(7, 13, 30, 0.25);
  transform: scale(0.9);
  transition: var(--transition-smooth);
}

.modal-overlay.open .gallery-modal-content {
  transform: scale(1);
}

.gallery-thumb {
  position: relative;
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition-fast);
}

.gallery-thumb.active {
  border-color: var(--color-aqua);
  transform: scale(0.95);
}

.gallery-thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(11, 21, 48, 0.15);
  transition: var(--transition-fast);
}

.gallery-thumb.active::after,
.gallery-thumb:hover::after {
  background: transparent;
}

