/* =====================================================
   RESET
===================================================== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

/* =====================================================
   THEME VARIABLES
===================================================== */
:root {
  --bg-main: #000;
  --bg-secondary: #111;
  --bg-card: #1c1c1c;
  --text-main: #ffffff;
  --text-muted: #cccccc;
  --border-color: #2a2a2a;
  --accent: #e50914;
}

body.light {
  --bg-main: #ffffff;
  --bg-secondary: #f4f6f8;
  --bg-card: #ffffff;
  --text-main: #111111;
  --text-muted: #555555;
  --border-color: #e5e5e5;
  --accent: #d90429;
}

/* =====================================================
   BODY
===================================================== */
body {
  font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg-main);
  color: var(--text-main);
  transition: background 0.3s ease, color 0.3s ease;
}

/* =====================================================
   NETFLIX STYLE HEADER
===================================================== */
.ms-header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  background: linear-gradient(to bottom, rgba(0,0,0,.9), rgba(0,0,0,0));
  transition: background 0.3s ease;
}

body.light .ms-header {
  background: #fff;
  border-bottom: 1px solid var(--border-color);
}

.ms-container {
  max-width: 1400px;
  margin: auto;
  padding: 0.8rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* =====================================================
   LOGO
===================================================== */
.ms-logo img {
  height: 42px;
}

/* =====================================================
   MENU TOGGLE (MOBILE)
===================================================== */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-main);
  font-size: 1.6rem;
  cursor: pointer;
}

/* =====================================================
   MAIN NAV MENU
===================================================== */
.main-menu ul {
  list-style: none;
  display: flex;
  gap: 1.4rem;
}

.main-menu a {
  text-decoration: none;
  font-size: 0.95rem;
  color: var(--text-muted);
  padding: 0.3rem 0;
  position: relative;
  transition: color 0.2s ease;
}

.main-menu a:hover,
.main-menu a.active {
  color: var(--text-main);
}

.main-menu a.active::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 2px;
  background: var(--accent);
}

/* =====================================================
   RIGHT SIDE (LOGIN / USER / THEME)
===================================================== */
.ms-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.sign-in {
  background: var(--accent);
  color: #fff;
  padding: 0.4rem 1rem;
  border-radius: 4px;
  text-decoration: none;
  font-size: 0.85rem;
}

.sign-in:hover {
  filter: brightness(0.9);
}

/* =====================================================
   USER DROPDOWN
===================================================== */
.user-dropdown {
  position: relative;
  cursor: pointer;
  font-size: 0.9rem;
}

.user-name {
  color: var(--text-main);
}

.dropdown-menu {
  display: none;
  position: absolute;
  right: 0;
  top: 140%;
  background: var(--bg-card);
  min-width: 160px;
  border-radius: 6px;
  border: 1px solid var(--border-color);
  box-shadow: 0 12px 30px rgba(0,0,0,.5);
  overflow: hidden;
}

.dropdown-menu a {
  display: block;
  padding: 10px 15px;
  color: var(--text-main);
  text-decoration: none;
  font-size: 0.85rem;
}

.dropdown-menu a:hover {
  background: var(--bg-secondary);
}

.user-dropdown:hover .dropdown-menu {
  display: block;
}

/* =====================================================
   THEME TOGGLE
===================================================== */
.theme-toggle {
  background: none;
  border: none;
  font-size: 1.2rem;
  color: var(--text-main);
  cursor: pointer;
}

/* =====================================================
   HERO SECTION
===================================================== */
.hero {
  position: relative;
  height: 100vh;
  background: url('/assets/images/hero-taekwondo.jpg') center / cover no-repeat;
  display: flex;
  align-items: center;
  padding-top: 80px;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(0,0,0,0.9),
    rgba(0,0,0,0.35)
  );
}

.hero-content {
  position: relative;
  max-width: 720px;
  padding: 0 4rem;
}

.hero h1 {
  font-size: 3.4rem;
  font-weight: 800;
}

.hero p {
  margin: 1rem 0 2rem;
  font-size: 1.2rem;
  color: var(--text-muted);
}

/* =====================================================
   BUTTONS
===================================================== */
.btn {
  display: inline-block;
  padding: 0.75rem 1.8rem;
  border-radius: 4px;
  font-weight: 600;
  text-decoration: none;
}

.btn.primary {
  background: var(--accent);
  color: #fff;
}

.btn.outline {
  border: 2px solid #fff;
  color: #fff;
}

/* =====================================================
   SECTIONS
===================================================== */
.container {
  max-width: 1300px;
  margin: auto;
}

.features,
.programs {
  background: var(--bg-secondary);
  padding: 4rem 2rem;
}

.features .container,
.program-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 2rem;
}

.feature,
.program-card {
  background: var(--bg-card);
  padding: 2rem;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  transition: transform 0.3s ease;
}

.feature:hover,
.program-card:hover {
  transform: translateY(-8px);
}

.feature i {
  font-size: 2.4rem;
  color: var(--accent);
  margin-bottom: 1rem;
}

/* =====================================================
   ABOUT
===================================================== */
.about {
  background: var(--bg-main);
  padding: 5rem 2rem;
}

.about .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.about h2 {
  font-size: 2.4rem;
  margin-bottom: 1rem;
}

.about p,
.about li {
  color: var(--text-muted);
}

.about ul {
  list-style: none;
  margin-top: 1rem;
}

.about-image img {
  width: 100%;
  border-radius: 14px;
}

/* =====================================================
   CTA
===================================================== */
.cta {
  background: linear-gradient(135deg, var(--accent), #7a0005);
  padding: 4rem 2rem;
  text-align: center;
}

.cta h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.cta p {
  margin-bottom: 1.5rem;
}

/* =====================================================
   FOOTER
===================================================== */
.modern-footer {
  background: var(--bg-main);
  border-top: 1px solid var(--border-color);
  padding: 3rem 2rem;
}

.footer-container {
  max-width: 1300px;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
}

.footer-logo {
  height: 45px;
  margin-bottom: 1rem;
}

.footer-links ul {
  list-style: none;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: var(--text-main);
}

.social-icons a {
  margin-right: 0.8rem;
  color: var(--text-main);
  font-size: 1.1rem;
}

/* =====================================================
   MOBILE
===================================================== */
@media (max-width: 900px) {
  .menu-toggle {
    display: block;
  }

  .main-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--bg-main);
    display: none;
  }

  .main-menu.open {
    display: block;
  }

  .main-menu ul {
    flex-direction: column;
    padding: 1rem;
  }

  .about .container {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    font-size: 2.4rem;
  }
}
