/* ============================================
   DIVE IN HURGHADA — SHARED STYLES
   main.css — Used by ALL pages
   ============================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --deep: #020c18;
  --abyss: #030e1f;
  --ocean: #041628;
  --mid: #062040;
  --surface: #0a3060;
  --glow: #00c8ff;
  --glow2: #00ffe0;
  --gold: #f0a500;
  --white: #f0f8ff;
  --muted: rgba(200,230,255,0.55);
  --font-display: 'Playfair Display', serif;
  --font-body: 'Space Grotesk', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  background: var(--deep);
  color: var(--white);
  font-family: var(--font-body);
  overflow-x: hidden;
  line-height: 1.6;
}

/* ── SKIP LINK ── */
.skip-link {
  position: absolute;
  top: -40px; left: 0;
  background: var(--glow);
  color: var(--deep);
  padding: 8px 16px;
  z-index: 1000;
  font-weight: 600;
  text-decoration: none;
  border-radius: 0 0 8px 0;
  transition: top 0.3s;
}
.skip-link:focus { top: 0; }

/* ── CANVAS ── */
#ocean-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* ── NAV ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1.2rem 4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.4s, backdrop-filter 0.4s;
}
nav.scrolled {
  background: rgba(2,12,24,0.9);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0,200,255,0.12);
}
.nav-logo {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--white);
  text-decoration: none;
  letter-spacing: 0.02em;
}
.nav-logo span { color: var(--glow); }
.nav-links { display: flex; gap: 2.2rem; list-style: none; }
.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: color 0.2s;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 1.5px;
  background: var(--glow);
  transition: width 0.3s;
}
.nav-links a:hover, .nav-links a.active { color: var(--glow); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-cta {
  background: transparent;
  border: 1.5px solid var(--glow);
  color: var(--glow);
  padding: 0.6rem 1.5rem;
  border-radius: 100px;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.25s, color 0.25s, box-shadow 0.25s;
}
.nav-cta:hover {
  background: var(--glow);
  color: var(--deep);
  box-shadow: 0 0 28px rgba(0,200,255,0.4);
}

/* ── MOBILE MENU ── */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
  z-index: 101;
}
.mobile-menu-btn span {
  display: block;
  width: 24px; height: 2px;
  background: var(--white);
  transition: all 0.3s;
  border-radius: 2px;
}
.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); }
.mobile-nav {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(2,12,24,0.98);
  backdrop-filter: blur(30px);
  z-index: 99;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  padding: 2rem;
}
.mobile-nav.active { display: flex; }
.mobile-nav a {
  color: var(--white);
  text-decoration: none;
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: color 0.2s;
}
.mobile-nav a:hover { color: var(--glow); }
.mobile-nav .nav-cta { font-size: 1.1rem; padding: 1rem 2.5rem; }

/* ── BUTTONS ── */
.btn-primary {
  background: linear-gradient(135deg, var(--glow), var(--glow2));
  color: var(--deep);
  padding: 0.9rem 2.4rem;
  border-radius: 100px;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 8px 32px rgba(0,200,255,0.35);
  display: inline-block;
  border: none;
  cursor: pointer;
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 16px 48px rgba(0,200,255,0.5); }
.btn-ghost {
  background: transparent;
  border: 1.5px solid rgba(255,255,255,0.25);
  color: var(--white);
  padding: 0.9rem 2.4rem;
  border-radius: 100px;
  font-weight: 500;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s;
  display: inline-block;
}
.btn-ghost:hover { border-color: var(--glow); color: var(--glow); }

/* ── SECTION BASE ── */
section { position: relative; z-index: 1; }
.section-wrap { max-width: 1200px; margin: 0 auto; padding: 7rem 4rem; }
.section-tag {
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--glow);
  margin-bottom: 1rem;
  display: block;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  font-weight: 700;
  line-height: 1.15;
}
.section-title em { font-style: italic; color: var(--glow); }
.section-desc {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 600px;
  margin-top: 1rem;
  line-height: 1.7;
}

/* ── FOOTER ── */
footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid rgba(0,200,255,0.1);
  background: var(--abyss);
  padding: 4rem 4rem 2rem;
}
.footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.footer-brand p { font-size: 0.88rem; color: var(--muted); line-height: 1.7; margin-top: 1rem; max-width: 280px; }
footer h4 { font-size: 0.75rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--glow); margin-bottom: 1.2rem; }
footer ul { list-style: none; display: flex; flex-direction: column; gap: 0.7rem; }
footer ul a { color: var(--muted); text-decoration: none; font-size: 0.88rem; transition: color 0.2s; }
footer ul a:hover { color: var(--white); }
.footer-contact p { font-size: 0.88rem; color: var(--muted); line-height: 1.8; }
.footer-contact a { color: var(--glow); text-decoration: none; }
.footer-bottom {
  max-width: 1200px;
  margin: 2rem auto 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: rgba(200,230,255,0.3);
}
.social-links { display: flex; gap: 1rem; }
.social-links a {
  width: 36px; height: 36px;
  border: 1px solid rgba(0,200,255,0.2);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.social-links a:hover { border-color: var(--glow); color: var(--glow); background: rgba(0,200,255,0.08); }

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ── REDUCED MOTION ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  #ocean-canvas { display: none; }
  .reveal { opacity: 1; transform: none; }
}

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .nav-links { display: none; }
  .mobile-menu-btn { display: flex; }
}
@media (max-width: 900px) {
  nav { padding: 1rem 1.5rem; }
  .section-wrap { padding: 5rem 1.5rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }
}
@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; }
  .btn-primary, .btn-ghost { width: 100%; max-width: 280px; text-align: center; }
}
