/* css/styles.css - W3BN Navy & Gold — CRISP & READABLE */
:root {
  --navy: #001F3F;
  --navy-dark: #0a1420;
  --gold: #FFD700;
  --gold-soft: #f9c400;
  --text: #f3f4f6;
  --text-muted: #9ca3af;
  --card-bg: rgba(30, 58, 95, 0.25);
  --border-gold: rgba(255, 215, 0, 0.4);
}

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

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--navy-dark);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.orbitron { 
  font-family: 'Orbitron', monospace; 
  font-weight: 700;
  letter-spacing: 0.5px;
}

/* --- MODIFICATION: Replaced glow with crisp text --- */
.glow,
.glow-sm,
.text-gold {
  color: var(--gold);
  text-shadow: none;
  filter: none;
}

/* Hero Title — Big & Bold */
.hero h1 {
  font-size: 3.5rem;
  line-height: 1.1;
}
@media (min-width: 768px) {
  .hero h1 { font-size: 5rem; }
}

/* Navbar */
nav {
  background-color: rgba(0, 31, 63, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-gold);
}

/* --- MODIFICATION: Changed nav link color to match theme --- */
nav a {
  color: var(--text-muted); /* Was #93c5fd */
  transition: color 0.3s ease;
}
nav a:hover, nav a.text-gold {
  color: var(--gold) !important;
}

/* Cards */
.bg-navy-card {
  background-color: var(--card-bg);
  border: 1px solid var(--border-gold);
  border-radius: 1rem;
  padding: 1.5rem;
}

/* Buttons */
.btn-gold {
  background-color: var(--gold);
  color: var(--navy);
  font-weight: 600;
  padding: 0.75rem 2rem;
  border-radius: 0.5rem;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}
.btn-gold:hover {
  background-color: #e6c200;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

.btn-outline-gold {
  border: 2px solid var(--gold);
  color: var(--gold);
  font-weight: 600;
  padding: 0.75rem 2rem;
  border-radius: 0.5rem;
  transition: all 0.3s ease;
}
.btn-outline-gold:hover {
  background-color: rgba(255, 215, 0, 0.15);
  color: var(--gold);
}

/* Hero Background */
.hero {
  background: linear-gradient(rgba(0, 31, 63, 0.75), rgba(10, 20, 32, 0.9)), 
              url('../assets/hero-bg.jpg') center/cover no-repeat;
  text-align: center;
  padding: 2rem 1rem;
}

/* Timeline */
.timeline::before {
  background: linear-gradient(transparent, var(--gold), transparent);
}
.timeline-item::before {
  background: var(--gold);
  border: 3px solid var(--navy);
}

/* Mobile Menu */
#mobile-menu {
  background-color: rgba(0, 31, 63, 0.97);
  border-top: 1px solid var(--border-gold);
}

/* === 3D FLIP CARDS — FIXED & MATCHED === */
.flip-card {
  perspective: 1000px;
  height: 240px;
  cursor: pointer;
}

.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
  transform-style: preserve-3d;
}

.flip-card:hover .flip-card-inner,
.flip-card:focus-within .flip-card-inner {
  transform: rotateY(180deg);
}

/* FRONT & BACK — Solid, No Bleed */
.flip-card-front,
.flip-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 1rem;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-gold);
}

/* FRONT — Clean Navy Slate */
.flip-card-front {
  background-color: var(--card-bg);
  color: var(--white);
}

/* BACK — Darker Slate, No Transparency */
.flip-card-back {
  background-color: #152238; /* Darker than front */
  color: var(--light);
  transform: rotateY(180deg);
}

/* Icons */
.flip-card-front i {
  color: var(--gold);
  font-size: 3rem;
  margin-bottom: 1rem;
}

/* Text */
.flip-card-front h3 {
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.flip-card-front p {
  font-size: 0.875rem;
  color: var(--light);
}

/* Back Text */
.flip-card-back h4 {
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 0.75rem;
  font-size: 1.1rem;
}
.flip-card-back p {
  font-size: 0.875rem;
  line-height: 1.5;
}
.flip-card-back a {
  color: var(--gold-accent);
  text-decoration: underline;
}
.flip-card-back a:hover {
  color: var(--gold);
}

/* Mobile: No Flip, Show Back */
@media (max-width: 768px) {
  .flip-card {
    height: auto;
    min-height: 200px;
  }
  .flip-card-inner {
    transform: none !important;
  }
  .flip-card-front {
    display: none;
  }
  .flip-card-back {
    position: relative;
    transform: none !important;
    height: auto;
    text-align: left;
    align-items: flex-start;
  }
}
