/* ═══════════════════════════════════════════════════
   DROPBOX MIDDLE EAST — Global Energy Platform
   Custom Styles (Dark Navy + Gold Theme)
   ═══════════════════════════════════════════════════ */

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

:root {
  --navy-900: #0a0f1e;
  --navy-800: #0d1530;
  --navy-700: #111d3c;
  --navy-600: #162248;
  --navy-500: #1e2f5e;
  --gold-400: #f0b429;
  --gold-300: #f5c842;
  --gold-500: #d4941a;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background-color: var(--navy-900);
  color: #fff;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ── SCROLLBAR ───────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--navy-900); }
::-webkit-scrollbar-thumb { background: var(--gold-500); border-radius: 3px; }

/* ── NAVIGATION ──────────────────────────────────── */
#navbar {
  background: transparent;
  transition: background 0.4s ease, box-shadow 0.4s ease, padding 0.3s ease;
}

#navbar.scrolled {
  background: rgba(10, 15, 30, 0.97) !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 2px 30px rgba(0, 0, 0, 0.5);
  border-bottom: 1px solid rgba(240, 180, 41, 0.15);
}

/* ── HERO SECTION ────────────────────────────────── */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

/* ── KEN BURNS ZOOM ANIMATION ────────────────────── */
@keyframes kenBurns {
  0%   { transform: scale(1.0)  translate(0%, 0%); }
  25%  { transform: scale(1.08) translate(-1%, -1%); }
  50%  { transform: scale(1.12) translate(1%, -0.5%); }
  75%  { transform: scale(1.06) translate(-0.5%, 1%); }
  100% { transform: scale(1.0)  translate(0%, 0%); }
}

.hero-img-kenburns {
  animation: kenBurns 18s ease-in-out infinite;
  will-change: transform;
  transform-origin: center center;
}

/* ── HERO MOBILE FIXES ───────────────────────────── */
@media (max-width: 640px) {
  .hero-mobile-height {
    min-height: 100svh;         /* safe viewport height on iOS */
    min-height: -webkit-fill-available;
  }
  .hero-img-kenburns {
    object-position: 65% center; /* keep solar+ship in frame on mobile */
    animation-duration: 14s;     /* slightly faster on small screen */
  }
  .hero-text-mobile h1 {
    font-size: 2.4rem !important;
    line-height: 1.15 !important;
  }
  .hero-text-mobile p {
    font-size: 1rem !important;
  }
  .hero-text-mobile .hero-badge {
    font-size: 0.7rem !important;
    padding: 6px 12px !important;
  }
}

/* ── GOLD GRADIENT TEXT ──────────────────────────── */
.gold-text-gradient {
  background: linear-gradient(135deg, #f0b429, #fde68a, #d4941a);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── CINEMATIC SECTION OVERLAY ───────────────────── */
.cinematic-overlay::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(10, 15, 30, 0.95) 0%,
    rgba(13, 21, 48, 0.75) 50%,
    rgba(10, 15, 30, 0.6) 100%
  );
  z-index: 1;
}

/* ── CARD HOVER EFFECTS ──────────────────────────── */
.card-hover {
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.card-hover:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(240, 180, 41, 0.1);
}

/* ── GOLD BUTTON ─────────────────────────────────── */
.btn-gold {
  background: var(--gold-400);
  color: var(--navy-900);
  font-weight: 700;
  padding: 14px 32px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
  text-decoration: none;
  font-size: 1rem;
}

.btn-gold:hover {
  background: var(--gold-300);
  transform: translateY(-1px);
  box-shadow: 0 8px 25px rgba(240, 180, 41, 0.3);
}

.btn-outline {
  border: 2px solid rgba(255,255,255,0.3);
  color: white;
  font-weight: 600;
  padding: 12px 28px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
  text-decoration: none;
}

.btn-outline:hover {
  border-color: var(--gold-400);
  color: var(--gold-400);
}

/* ── SECTION LABELS ──────────────────────────────── */
.section-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-400);
}

/* ── GRID PATTERN BACKGROUND ─────────────────────── */
.bg-grid {
  background-image:
    linear-gradient(rgba(240, 180, 41, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(240, 180, 41, 0.05) 1px, transparent 1px);
  background-size: 50px 50px;
}

/* ── ANIMATED PULSE RING ─────────────────────────── */
@keyframes pulse-ring {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(240, 180, 41, 0.4); }
  70% { transform: scale(1); box-shadow: 0 0 0 15px rgba(240, 180, 41, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(240, 180, 41, 0); }
}

.pulse-gold {
  animation: pulse-ring 2s infinite;
}

/* ── FLOATING ANIMATION ──────────────────────────── */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

.float-anim {
  animation: float 4s ease-in-out infinite;
}

/* ── COUNTER ANIMATION ───────────────────────────── */
@keyframes countUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.counter-anim {
  animation: countUp 0.8s ease-out forwards;
}

/* ── LINE CLAMP ──────────────────────────────────── */
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ── GOLD UNDERLINE ──────────────────────────────── */
.gold-underline {
  position: relative;
  display: inline-block;
}

.gold-underline::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 60px;
  height: 3px;
  background: var(--gold-400);
  border-radius: 2px;
}

/* ── SECTION SEPARATOR ───────────────────────────── */
.separator-gold {
  width: 60px;
  height: 3px;
  background: linear-gradient(to right, var(--gold-400), transparent);
  border-radius: 2px;
  margin: 16px 0;
}

.separator-gold.center {
  margin: 16px auto;
}

/* ── BACKDROP BLUR CARD ──────────────────────────── */
.glass-card {
  background: rgba(13, 21, 48, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(240, 180, 41, 0.15);
  border-radius: 16px;
}

/* ── FORM STYLES ─────────────────────────────────── */
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: rgba(240, 180, 41, 0.6) !important;
  box-shadow: 0 0 0 3px rgba(240, 180, 41, 0.1);
}

select option {
  background: var(--navy-800);
  color: white;
}

/* ── HERO GRADIENT OVERLAY ───────────────────────── */
.hero-gradient {
  background: linear-gradient(
    to bottom,
    rgba(10, 15, 30, 1) 0%,
    rgba(10, 15, 30, 0.4) 40%,
    rgba(10, 15, 30, 0.6) 70%,
    rgba(10, 15, 30, 0.95) 100%
  );
}

/* ── RESPONSIVE ──────────────────────────────────── */
@media (max-width: 768px) {
  h2 { font-size: 2rem !important; }
}

/* ── PAGE TRANSITION ─────────────────────────────── */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.6s ease-out forwards;
}

/* ── LOADING STATE ───────────────────────────────── */
.img-loading {
  background: linear-gradient(135deg, var(--navy-800), var(--navy-700));
}

/* ── SCROLLING MARQUEE ───────────────────────────── */
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.marquee-track {
  display: flex;
  animation: marquee 20s linear infinite;
}

/* ── TECH BADGE ──────────────────────────────────── */
.tech-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  background: rgba(240, 180, 41, 0.1);
  border: 1px solid rgba(240, 180, 41, 0.25);
  border-radius: 20px;
  color: var(--gold-400);
  font-size: 0.75rem;
  font-weight: 500;
}
