/* ===== RESET & BASE ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'Helvetica Neue', Arial, sans-serif; color: #1a2a3a; background: #f0f4f8; overflow-x: hidden; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { display: block; width: 100%; height: 100%; object-fit: cover; }
.flag { display: inline; width: 20px; height: 15px; vertical-align: middle; margin-left: 4px; }

/* ===== NAVBAR ===== */
.navbar {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 48px; height: 70px;
  background: transparent; transition: background 0.4s, box-shadow 0.4s;
  color: #fff;
}
.navbar.scrolled { background: rgba(255,255,255,0.95); box-shadow: 0 2px 20px rgba(0,0,0,0.08); color: #1a2a3a; }
.navbar.scrolled .logo { color: #1a2a3a; }
.navbar.scrolled .nav-links a { color: #1a2a3a; }
.navbar.scrolled .menu-toggle { color: #1a2a3a; }
.logo { font-family: 'Playfair Display', Georgia, serif; font-size: 1.4rem; font-weight: 900; letter-spacing: 3px; color: #fff; font-style: italic; }
.nav-links { display: flex; gap: 32px; align-items: center; }
.nav-links a { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 2px; opacity: 0.7; transition: opacity 0.2s; color: #fff; }
.nav-links a:hover { opacity: 1; }
.dropdown { position: relative; }
.dropdown-menu {
  position: absolute; top: calc(100% + 8px); left: -12px;
  background: rgba(255,255,255,0.96); border: 1px solid rgba(0,0,0,0.08);
  padding: 8px 0; min-width: 160px; display: none; border-radius: 4px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}
.dropdown:hover .dropdown-menu { display: block; }
.dropdown-menu li a { display: block; padding: 10px 20px; font-size: 0.75rem; color: #1a2a3a; }
.menu-toggle { display: none; background: none; border: none; color: #fff; font-size: 1.4rem; cursor: pointer; }

/* ===== HERO ===== */
.hero { position: relative; height: 100vh; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.hero-bg {
  position: absolute; inset: 0; background-size: cover; background-position: center top;
  transform: scale(1.05); animation: heroZoom 20s ease-in-out infinite alternate;
}
@keyframes heroZoom { from { transform: scale(1.05); } to { transform: scale(1.12); } }
.hero-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(to bottom, rgba(0,20,50,0.55) 0%, rgba(0,20,50,0.35) 40%, rgba(0,20,50,0.5) 75%, rgba(240,244,248,1) 100%);
}
.hero-content { position: relative; z-index: 1; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 28px; color: #fff; }
.hero-title {
  font-family: 'Playfair Display', Georgia, serif; font-size: 5.5rem; font-weight: 900;
  line-height: 0.95; letter-spacing: 4px; font-style: italic;
  text-shadow: 0 4px 30px rgba(0,0,0,0.5), 0 1px 3px rgba(0,0,0,0.4);
}
.hero-subtitle { font-size: 1rem; letter-spacing: 6px; text-transform: uppercase; opacity: 0.85; font-weight: 300; text-shadow: 0 2px 10px rgba(0,0,0,0.4); }
.hero-stats { display: flex; gap: 50px; }
.stat { display: flex; flex-direction: column; align-items: center; }
.stat-number { font-size: 3.5rem; font-weight: 900; line-height: 1; text-shadow: 0 2px 10px rgba(0,0,0,0.4); }
.stat-label { font-size: 0.65rem; letter-spacing: 4px; text-transform: uppercase; margin-top: 4px; opacity: 0.7; text-shadow: 0 1px 6px rgba(0,0,0,0.3); }
.social-links { display: flex; gap: 18px; }
.social-links a {
  width: 40px; height: 40px; border: 1.5px solid rgba(255,255,255,0.5); border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-size: 0.95rem;
  transition: all 0.3s; color: #fff;
}
.social-links a:hover { border-color: #fff; background: rgba(255,255,255,0.1); transform: scale(1.1); }
.scroll-indicator {
  position: absolute; bottom: 40px; left: 50%; transform: translateX(-50%);
  font-size: 1.2rem; opacity: 0.4; animation: bounce 2s ease-in-out infinite;
}
@keyframes bounce { 0%,100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(10px); } }

/* ===== ATHLETE SECTIONS ===== */
.athlete-section { padding: 80px 48px; background: #fff; }
.athlete-section.alt { background: #e8eef4; }
.athlete-hero { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; max-width: 1200px; margin: 0 auto; align-items: center; }
.athlete-hero.reverse { direction: rtl; }
.athlete-hero.reverse > * { direction: ltr; }
.athlete-img { border-radius: 8px; overflow: hidden; aspect-ratio: 3/4; max-height: 600px; }
.athlete-tag { font-size: 0.7rem; letter-spacing: 3px; text-transform: uppercase; opacity: 0.4; }
.athlete-info h2 { font-family: 'Playfair Display', Georgia, serif; font-size: 2.4rem; font-weight: 900; margin: 8px 0 12px; letter-spacing: 1px; font-style: italic; }
.athlete-meta { font-size: 0.9rem; opacity: 0.6; margin-bottom: 20px; }
.athlete-bio { font-size: 0.92rem; line-height: 1.7; opacity: 0.7; margin-bottom: 28px; }
.athlete-stats { display: flex; gap: 30px; margin-bottom: 28px; }
.mini-stat { display: flex; flex-direction: column; align-items: center; background: rgba(26,100,170,0.07); padding: 16px 24px; border-radius: 8px; }
.mini-stat span { font-size: 1.6rem; font-weight: 800; }
.mini-stat small { font-size: 0.65rem; text-transform: uppercase; letter-spacing: 2px; opacity: 0.5; margin-top: 4px; }
.athlete-info h4 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 2px; opacity: 0.5; margin-bottom: 14px; }
.results-list { margin-bottom: 24px; }
.results-list li {
  display: flex; align-items: center; gap: 12px; padding: 8px 12px;
  font-size: 0.85rem; border-left: 3px solid rgba(0,0,0,0.1); margin-bottom: 4px; opacity: 0.75;
}
.results-list li.gold { border-left-color: #ffd700; }
.results-list li.silver { border-left-color: #c0c0c0; }
.results-list li.bronze { border-left-color: #cd7f32; }
.results-list .pos { font-weight: 800; min-width: 28px; }
.results-list time { margin-left: auto; font-size: 0.72rem; opacity: 0.4; }
.athlete-badges { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 24px; }
.badge { font-size: 0.75rem; padding: 6px 14px; background: rgba(26,100,170,0.08); border-radius: 20px; border: 1px solid rgba(26,100,170,0.15); }
.btn-fis {
  display: inline-flex; align-items: center; gap: 8px; padding: 12px 28px;
  border: 1.5px solid #1a64aa; border-radius: 4px; color: #1a64aa;
  font-size: 0.8rem; text-transform: uppercase; letter-spacing: 2px; transition: all 0.3s;
}
.btn-fis:hover { background: #1a64aa; color: #fff; }

/* ===== SECTIONS ===== */
.section { padding: 100px 48px; max-width: 1200px; margin: 0 auto; }
.section-full { padding: 100px 0; background: #fff; }
.section-full .section-title { padding: 0 48px; }
.section-title { font-size: 1.6rem; text-transform: uppercase; letter-spacing: 6px; margin-bottom: 50px; text-align: center; font-weight: 300; color: #1a2a3a; }

/* ===== NEWS ===== */
.news-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.news-card { background: #fff; border-radius: 6px; overflow: hidden; transition: transform 0.4s, box-shadow 0.4s; box-shadow: 0 2px 12px rgba(0,0,0,0.06); }
.news-card:hover { transform: translateY(-6px); box-shadow: 0 20px 60px rgba(0,0,0,0.12); }
.news-card.featured { grid-column: span 2; display: grid; grid-template-columns: 1.2fr 1fr; }
.news-card.featured .news-img { height: 100%; min-height: 320px; }
.news-card .news-img { height: 220px; overflow: hidden; }
.news-card .news-img img { transition: transform 0.6s; }
.news-card:hover .news-img img { transform: scale(1.06); }
.news-body { padding: 28px; display: flex; flex-direction: column; justify-content: center; }
.news-tag { font-size: 0.65rem; text-transform: uppercase; letter-spacing: 2px; color: #1a64aa; margin-bottom: 10px; }
.news-body h3 { font-size: 1.1rem; margin-bottom: 14px; line-height: 1.5; font-weight: 600; color: #1a2a3a; }
.news-body h3 a { transition: color 0.2s; color: #1a2a3a; }
.news-body h3 a:hover { color: #1a64aa; }
.news-body p { font-size: 0.88rem; opacity: 0.6; line-height: 1.7; margin-bottom: 20px; color: #2a3a4a; }
.news-meta { display: flex; justify-content: space-between; align-items: center; }
.read-more { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 1.5px; color: #1a64aa; display: flex; align-items: center; gap: 6px; transition: gap 0.2s; }
.read-more:hover { gap: 12px; }
.news-meta time { font-size: 0.72rem; opacity: 0.35; color: #1a2a3a; }

/* ===== PHOTOS ===== */
.photo-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.photo-item { overflow: hidden; cursor: pointer; position: relative; aspect-ratio: 4/3; }
.photo-item.photo-wide { grid-column: span 2; }
.photo-item img { transition: transform 0.5s; }
.photo-item::after { content: ''; position: absolute; inset: 0; background: rgba(0,0,0,0); transition: background 0.3s; }
.photo-item:hover img { transform: scale(1.08); }
.photo-item:hover::after { background: rgba(0,0,0,0.15); }

/* ===== LIGHTBOX ===== */
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(240,244,248,0.97); display: none; align-items: center; justify-content: center; }
.lightbox.active { display: flex; }
.lightbox-img { max-width: 90vw; max-height: 90vh; object-fit: contain; border-radius: 4px; box-shadow: 0 10px 40px rgba(0,0,0,0.2); }
.lightbox-close, .lightbox-prev, .lightbox-next {
  position: absolute; background: none; border: none; color: #1a2a3a;
  font-size: 2rem; cursor: pointer; opacity: 0.5; transition: opacity 0.2s; padding: 16px;
}
.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover { opacity: 1; }
.lightbox-close { top: 20px; right: 30px; font-size: 2.5rem; }
.lightbox-prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 20px; top: 50%; transform: translateY(-50%); }

/* ===== FOOTER ===== */
.footer { background: #1a2a3a; padding: 60px 48px 40px; text-align: center; color: #fff; }
.footer-brand { font-size: 1.1rem; font-weight: 800; letter-spacing: 4px; margin-bottom: 8px; }
.footer-tagline { font-size: 0.75rem; letter-spacing: 3px; opacity: 0.4; text-transform: uppercase; margin-bottom: 24px; }
.footer-social { display: flex; justify-content: center; gap: 16px; margin-bottom: 24px; }
.footer-social a {
  width: 36px; height: 36px; border: 1px solid rgba(255,255,255,0.25); border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-size: 0.85rem; transition: border-color 0.2s; color: #fff;
}
.footer-social a:hover { border-color: #fff; }
.footer-links { display: flex; justify-content: center; gap: 28px; margin-bottom: 20px; }
.footer-links a { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 1.5px; opacity: 0.5; transition: opacity 0.2s; color: #fff; }
.footer-links a:hover { opacity: 1; }
.footer-copy { font-size: 0.68rem; opacity: 0.25; }

/* ===== FADE-IN ===== */
.fade-in { opacity: 0; transform: translateY(30px); transition: opacity 0.8s ease, transform 0.8s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .navbar { padding: 0 24px; }
  .menu-toggle { display: block; }
  .nav-links {
    display: none; flex-direction: column; position: absolute;
    top: 70px; left: 0; width: 100%; background: rgba(255,255,255,0.97); padding: 24px; gap: 20px;
  }
  .nav-links.open { display: flex; }
  .nav-links.open a { color: #1a2a3a; }
  .hero-title { font-size: 3.2rem; letter-spacing: 2px; }
  .hero-subtitle { font-size: 0.8rem; letter-spacing: 4px; }
  .hero-stats { gap: 30px; }
  .stat-number { font-size: 2.5rem; }
  .athlete-section { padding: 60px 24px; }
  .athlete-hero, .athlete-hero.reverse { grid-template-columns: 1fr; direction: ltr; }
  .athlete-img { max-height: 400px; aspect-ratio: 4/3; }
  .section { padding: 70px 24px; }
  .section-full .section-title { padding: 0 24px; }
  .news-grid { grid-template-columns: 1fr; }
  .news-card.featured { grid-column: span 1; grid-template-columns: 1fr; }
  .news-card.featured .news-img { min-height: 220px; }
  .photo-grid { grid-template-columns: repeat(2, 1fr); }
  .footer { padding: 40px 24px 30px; }
}
@media (max-width: 480px) {
  .hero-title { font-size: 2.4rem; }
  .athlete-stats { flex-wrap: wrap; }
  .photo-item.photo-wide { grid-column: span 1; }
}
