/* =====================================================
   RESET & ROOT VARIABLES (LIGHT PRO THEME)
===================================================== */
:root {
  --bg-main: #ffffff;
  --bg-soft: #f6f8fb;
  --bg-card: #ffffff;
  --primary: #0a66c2;
  --primary-dark: #084b8a;
  --accent: #ff9933;
  --text-main: #1f2933;
  --text-muted: #5f6c7b;
  --border-light: #e5e7eb;
  --shadow-soft: 0 10px 30px rgba(0,0,0,0.08);
  --radius-lg: 14px;
}

/* =====================================================
   BASE RESET
===================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
  font-family: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.6;
  background: var(--bg-main);
  color: var(--text-main);
}

/* =====================================================
   HEADER (CLEAN + PROFESSIONAL)
===================================================== */
.ms-header {
  background: #fff;
  border-bottom: 1px solid var(--border-light);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.ms-container {
  max-width: 1400px;
  margin: auto;
  padding: 0.8rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo img {
  height: 52px;
}

/* MENU */
.main-menu ul {
  list-style: none;
  display: flex;
  gap: 1.4rem;
}

.main-menu a {
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-main);
  position: relative;
}

.main-menu a::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.3s;
}

.main-menu a:hover::after {
  width: 100%;
}

/* RIGHT ACTIONS */
.ms-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.sign-in {
  background: var(--primary);
  color: #fff;
  padding: 7px 18px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  transition: 0.3s;
}

.sign-in:hover {
  background: var(--primary-dark);
}

/* MOBILE MENU */
.menu-toggle {
  display: none;
  font-size: 1.6rem;
  background: none;
  border: none;
  cursor: pointer;
}

@media (max-width: 768px) {
  .menu-toggle { display: block; }

  .main-menu {
    display: none;
    position: absolute;
    top: 70px;
    left: 20px;
    right: 20px;
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    padding: 1.2rem;
  }

  .main-menu.open { display: block; }

  .main-menu ul {
    flex-direction: column;
    gap: 1rem;
  }
}

/* =====================================================
   HERO SECTION (LIGHT + PREMIUM)
===================================================== */
.hero {
  background:
    linear-gradient(rgba(255,255,255,0.85), rgba(255,255,255,0.95)),
    url('../images/olympic-bg.jpg') center/cover no-repeat;
  padding: 5.5rem 2rem;
  text-align: center;
}

.hero h1 {
  font-size: clamp(2.6rem, 4vw, 3.8rem);
  font-weight: 800;
  margin-bottom: 1rem;
}

.hero p {
  max-width: 760px;
  margin: auto;
  font-size: 1.2rem;
  color: var(--text-muted);
}

.hero-buttons {
  margin-top: 2.5rem;
}

.hero-buttons .btn {
  display: inline-block;
  padding: 0.9rem 2.2rem;
  border-radius: 30px;
  font-weight: 700;
  text-decoration: none;
  margin: 0 0.5rem;
  background: linear-gradient(135deg, var(--primary), #1e90ff);
  color: #fff;
  transition: 0.3s;
}

.hero-buttons .btn.secondary {
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
}

.hero-buttons .btn:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(10,102,194,0.25);
}

/* =====================================================
   COMMON SECTION STYLING
===================================================== */
section {
  padding: 4.5rem 2rem;
}

section:nth-child(even) {
  background: var(--bg-soft);
}

section h2 {
  font-size: 2.2rem;
  text-align: center;
  margin-bottom: 2.5rem;
}

/* =====================================================
   FEATURES & TOURNAMENTS
===================================================== */
.features-grid,
.tournament-grid {
  max-width: 1200px;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}

.feature-card,
.tournament-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 2rem;
  border: 1px solid var(--border-light);
  transition: 0.3s;
}

.feature-card:hover,
.tournament-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-soft);
}

.feature-card h3,
.tournament-card h3 {
  color: var(--primary);
  margin-bottom: 0.6rem;
}

/* =====================================================
   STATS / ACHIEVEMENTS
===================================================== */
.stats,
.achievements {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.stat-box,
.counter-box {
  background: #fff;
  padding: 2.4rem;
  border-radius: 18px;
  min-width: 220px;
  text-align: center;
  border: 1px solid var(--border-light);
}

.stat-box h3,
.counter-box h3 {
  font-size: 3rem;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* =====================================================
   TESTIMONIALS
===================================================== */
.testimonial-wrapper {
  max-width: 1000px;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.testimonial {
  background: #fff;
  padding: 2rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  font-style: italic;
}

/* =====================================================
   GALLERY
===================================================== */
.gallery-grid {
  max-width: 1200px;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.gallery-grid img {
  width: 100%;
  border-radius: var(--radius-lg);
  transition: 0.4s;
}

.gallery-grid img:hover {
  transform: scale(1.05);
}

/* =====================================================
   SPONSORS
===================================================== */
.sponsor-logos {
  display: flex;
  justify-content: center;
  gap: 2.5rem;
  flex-wrap: wrap;
}

.sponsor-logos img {
  max-height: 70px;
  opacity: 0.85;
  transition: 0.3s;
}

.sponsor-logos img:hover {
  opacity: 1;
  transform: scale(1.1);
}

/* --- FOOTER --- */
/* --- Light Modern Footer --- */
.modern-footer {
  background: #f9f9f9; /* Light background */
  color: #333; /* Dark text */
  padding: 50px 20px;
  font-family: 'Poppins', sans-serif;
  position: relative;
  overflow: hidden;
  border-top: 1px solid #e0e0e0; /* Subtle separation */
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 30px;
}

.footer-brand, .footer-links, .footer-contact, .footer-social {
  flex: 1 1 220px;
  min-width: 220px;
}

.footer-logo {
  max-width: 160px;
  margin-bottom: 15px;
}

.footer-links ul {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: #333;
  text-decoration: none;
  transition: 0.3s;
}

.footer-links a:hover {
  color: #2196f3; /* Accent on hover */
}

.footer-contact p {
  margin: 5px 0;
  color: #555;
}

.footer-social .social-icons a {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  margin-right: 10px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, #2196f3, #00d4ff);
  transition: transform 0.3s, box-shadow 0.3s;
}

.footer-social .social-icons a:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 15px rgba(0,0,0,0.2);
}

/* --- Floating Social Media (Light Version) --- */
.floating-social-modern {
  position: fixed;
  top: 50%;
  right: 20px;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 999;
}

.floating-social-modern .social-btn {
  width: 55px;
  height: 55px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #fff;
  font-size: 20px;
  background: linear-gradient(135deg, #2196f3, #00d4ff);
  transition: all 0.3s;
}

.floating-social-modern .social-btn:hover {
  transform: rotate(360deg) scale(1.1);
  box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

/* Responsive */
@media (max-width: 768px) {
  .footer-container {
    flex-direction: column;
    text-align: center;
  }

  .floating-social-modern {
    flex-direction: row;
    bottom: 20px;
    top: auto;
    right: 50%;
    transform: translateX(50%);
  }
}

/* =====================================================
   FLOATING SOCIAL
===================================================== */
.floating-social-modern .social-btn {
  background: linear-gradient(135deg, var(--primary), #1e90ff);
}

/* =====================================================
   SECTION FADE ANIMATION
===================================================== */
section {
  animation: fadeUp 0.9s ease both;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
