/* ── VARIABLES ─────────────────────────────────────────────── */
:root {
  --navy:       #1C2C37;
  --navy-dark:  #0d0d14;
  --footer-bg:  #0a0f14;
  --navy-mid:   #111820;
  --navy-border:#2a3d4a;
  --gray-mid:   #505B63;
  --gray-light: #918C8B;
  --accent:     #73C9F2;
  --pale:       #D4D4D6;
  --white:      #ffffff;
  --wa:         #25D366;
  --font-brand: 'Azonix', 'Orbitron', 'Segoe UI', sans-serif;
  --font-body:  system-ui, -apple-system, 'Segoe UI', sans-serif;
  --ease:       0.3s ease;
  --radius:     8px;
  --max-w:      1200px;
  --nav-h:      64px;
}

/* ── RESET ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--navy-dark);
  color: var(--pale);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

/* ── UTILITIES ──────────────────────────────────────────────── */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 20px;
}
.section { padding: 72px 0; }
.section-label {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(115,201,242,0.08);
  padding: 4px 10px;
  border-radius: 4px;
  margin-bottom: 10px;
}
.section-title {
  font-family: var(--font-brand);
  font-size: clamp(24px, 4vw, 36px);
  color: var(--white);
  letter-spacing: 1px;
  margin-bottom: 8px;
}
.section-desc {
  font-size: 16px;
  color: var(--gray-light);
  margin-bottom: 36px;
}

/* Scroll-reveal base state */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  will-change: opacity, transform;
}
.reveal.visible {
  opacity: 1;
  transform: none;
  will-change: auto;
}

/* ── NAV ────────────────────────────────────────────────────── */
#nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(28, 44, 55, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--gray-mid);
}
.nav-container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 20px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-links a {
  font-size: 14px;
  color: var(--gray-light);
  transition: color var(--ease);
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0;
  width: 0; height: 2px;
  background: var(--accent);
  transition: width var(--ease);
}
.nav-links a:hover,
.nav-links a.active { color: var(--white); }
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }
.nav-cta {
  color: var(--accent) !important;
  font-weight: 600;
}
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}
.nav-hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--pale);
  border-radius: 2px;
  transition: transform var(--ease), opacity var(--ease);
}
.nav-hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── HERO ───────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 40vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: calc(var(--nav-h) + 8px) 20px 80px;
  background-image: url('../images/hero-banner.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 15, 20, 0.72);
}
.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  width: 100%;
  max-width: var(--max-w);
}
.hero-logo-img {
  width: min(300px, 90%);
  height: auto;
  margin: 0 auto 10px;
  filter: drop-shadow(0 4px 24px rgba(0,0,0,0.5));
}
.hero-sub {
  font-size: clamp(14px, 1.8vw, 16px);
  color: var(--pale);
  line-height: 1.7;
  text-shadow: 0 1px 8px rgba(0,0,0,0.7);
}
.hero-scroll {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 11px;
  letter-spacing: 3px;
  color: rgba(115,201,242,0.5);
  animation: bounce 2s ease-in-out infinite;
  will-change: transform;
}
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(6px); }
}

/* ── GALLERY ────────────────────────────────────────────────── */
.gallery-section { background: var(--navy-dark); }
.masonry {
  columns: 2;
  gap: 12px;
}
.masonry-item {
  break-inside: avoid;
  margin-bottom: 12px;
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  border: 1px solid var(--navy-border);
}
.masonry-item img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  display: block;
  transition: transform 0.45s ease;
}
.masonry-item:hover img { transform: scale(1.07); }
.masonry-caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.75));
  color: var(--accent);
  font-size: 12px;
  padding: 24px 10px 8px;
  opacity: 0;
  transition: opacity var(--ease);
}
.masonry-item:hover .masonry-caption { opacity: 1; }
.gallery-footer {
  text-align: center;
  margin-top: 32px;
}
.btn-outline {
  display: inline-block;
  border: 1px solid var(--gray-mid);
  color: var(--accent);
  font-size: 14px;
  padding: 10px 24px;
  border-radius: var(--radius);
  transition: border-color var(--ease), background var(--ease);
}
.btn-outline:hover {
  border-color: var(--accent);
  background: rgba(115,201,242,0.08);
}

/* ── LIGHTBOX ───────────────────────────────────────────────── */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0,0,0,0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}
.lightbox-img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: var(--radius);
  box-shadow: 0 0 60px rgba(0,0,0,0.8);
}
.lightbox-close {
  position: absolute;
  top: 20px; right: 24px;
  font-size: 36px;
  color: var(--pale);
  line-height: 1;
  transition: color var(--ease);
  background: none;
  border: none;
  cursor: pointer;
}
.lightbox-close:hover { color: var(--accent); }

/* ── SERVICES ───────────────────────────────────────────────── */
.services-section { background: var(--navy-mid); }
.services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.service-card {
  background: var(--navy);
  border: 1px solid var(--navy-border);
  border-radius: var(--radius);
  padding: 28px 20px;
  text-align: center;
  transition: border-color var(--ease), transform var(--ease);
}
.service-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
}
.service-icon { font-size: 32px; display: block; margin-bottom: 12px; }
.service-card h3 {
  font-family: var(--font-brand);
  font-size: 15px;
  color: var(--white);
  margin-bottom: 6px;
  letter-spacing: 0.5px;
}
.service-card p { font-size: 15px; color: var(--gray-light); line-height: 1.6; }

/* ── ABOUT ──────────────────────────────────────────────────── */
.about-section { background: var(--navy-dark); }
.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 32px;
}
.stat-card {
  background: var(--navy);
  border-radius: var(--radius);
  border-left: 3px solid var(--accent);
  padding: 20px 16px;
  text-align: center;
}
.stat-num {
  display: block;
  font-family: var(--font-brand);
  font-size: clamp(22px, 4vw, 30px);
  color: var(--accent);
  margin-bottom: 4px;
}
.stat-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
}
.stat-icon svg { width: 44px; height: 44px; }
.flag-ar-svg { width: 54px; height: 36px; border-radius: 3px; }
.stat-label { font-size: 13px; color: var(--gray-light); }
.about-text {
  font-size: 16px;
  color: var(--gray-light);
  line-height: 1.8;
  max-width: 640px;
}

/* ── CONTACT ────────────────────────────────────────────────── */
.contact-section {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-mid) 100%);
  text-align: center;
}
.contact-sub {
  font-size: 15px;
  color: var(--gray-light);
  margin-top: 8px;
  margin-bottom: 32px;
}
.btn-wa-contact {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--wa);
  color: var(--white);
  font-size: 16px;
  font-weight: 700;
  padding: 16px 36px;
  border-radius: var(--radius);
  box-shadow: 0 4px 24px rgba(37,211,102,0.35);
  transition: transform var(--ease), box-shadow var(--ease);
}
.btn-wa-contact:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(37,211,102,0.45);
}

/* ── FOOTER ─────────────────────────────────────────────────── */
.footer {
  background: var(--footer-bg);
  border-top: 1px solid var(--navy);
  padding: 40px 20px;
  text-align: center;
}
.footer-label {
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gray-mid);
  margin-bottom: 20px;
}
.social-icons {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 24px;
}
.social-icon {
  width: 48px; height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--ease), box-shadow var(--ease);
}
.social-icon:hover { transform: translateY(-3px); }
.social-ig {
  background: linear-gradient(135deg, #833ab4 0%, #fd1d1d 50%, #fcb045 100%);
  color: var(--white);
}
.social-ig:hover { box-shadow: 0 6px 20px rgba(253,29,29,0.4); }
.social-tt {
  background: #010101;
  border: 1px solid #333;
  color: var(--white);
}
.social-tt:hover { box-shadow: 0 6px 20px rgba(255,255,255,0.15); }
.social-fb {
  background: #1877F2;
  color: var(--white);
}
.social-fb:hover { box-shadow: 0 6px 20px rgba(24,119,242,0.4); }
.footer-copy { font-size: 12px; color: var(--gray-mid); }

/* ── FAB WhatsApp ────────────────────────────────────────────── */
.fab-wa {
  position: fixed;
  bottom: 24px; right: 24px;
  z-index: 150;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--wa);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 24px rgba(37,211,102,0.5);
  transition: transform var(--ease), box-shadow var(--ease);
}
.fab-wa:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 32px rgba(37,211,102,0.6);
}
.fab-tooltip {
  position: absolute;
  right: calc(100% + 10px);
  top: 50%;
  transform: translateY(-50%);
  background: var(--navy);
  color: var(--white);
  font-size: 12px;
  white-space: nowrap;
  padding: 6px 12px;
  border-radius: 6px;
  border: 1px solid var(--accent);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--ease);
}
.fab-wa:hover .fab-tooltip { opacity: 1; }

/* ── RESPONSIVE ─────────────────────────────────────────────── */
@media (min-width: 768px) {
  .masonry { columns: 3; }
  .services-grid { grid-template-columns: repeat(4, 1fr); }
  .stats-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 1200px) {
  .masonry { columns: 4; }

}

/* ── MOBILE (<768px) ─────────────────────────────────────────── */
@media (max-width: 767px) {
  .section { padding: 52px 0; }

  .nav-hamburger { display: flex; }
  .nav-links {
    position: fixed;
    top: var(--nav-h); left: 0; right: 0;
    background: var(--navy);
    border-bottom: 1px solid var(--navy-border);
    flex-direction: column;
    align-items: center;
    gap: 0;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.35s ease;
  }
  .nav-links.open {
    max-height: 300px;
    padding: 16px 0;
  }
  .nav-links li { width: 100%; text-align: center; }
  .nav-links a {
    display: block;
    padding: 12px 20px;
    font-size: 16px;
  }
  .nav-links a::after { display: none; }

  .hero {
    min-height: 30vh;
    padding: calc(var(--nav-h) + 24px) 20px 44px;
  }
  .hero-logo-img { width: min(180px, 70vw); }

  .masonry { columns: 2; }
  .services-grid { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .fab-wa { bottom: 16px; right: 16px; width: 50px; height: 50px; }
  .fab-tooltip { display: none; }
}

@media (max-width: 380px) {
  .services-grid { grid-template-columns: 1fr; }
  .masonry { columns: 1; }
}
