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

:root {
  --dark: #0a1628;
  --navy: #0f2044;
  --blue: #1a3a6b;
  --teal: #2ab8d4;
  --teal-light: #4dd4f0;
  --gold: #c9a84c;
  --gold-light: #e8c96a;
  --white: #f0f4f8;
  --text-muted: #8ba0bb;
  --tile-bg: #0d1b38;
  --dot-color: #2ab8d4;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Raleway', sans-serif;
  background: var(--dark);
  color: var(--white);
  overflow-x: hidden;
}

/* ─── NAVBAR ─── */
nav {
  position: fixed; top: 0; width: 100%; z-index: 100;
  background: rgba(10, 22, 40, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(42, 184, 212, 0.2);
  padding: 0 2rem;
  display: flex; align-items: center; justify-content: space-between;
  height: 70px;
}
.nav-logo {
  display: flex; align-items: center; gap: 12px;
  text-decoration: none;
}
.nav-logo img { height: 44px; }
.nav-logo span {
  font-family: 'Cinzel', serif;
  font-size: 1.4rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--teal), var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: 1px;
}
.nav-links {
  display: flex; gap: 1rem; list-style: none;
}
.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: color 0.3s;
}
.nav-links a:hover { color: var(--teal); }
.nav-toggle { display: none; flex-direction: column; gap: 5px; cursor: pointer; }
.nav-toggle span { width: 24px; height: 2px; background: var(--teal); border-radius: 2px; transition: 0.3s; }

/* ─── HERO ─── */
#hero {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  padding: 80px 2rem 2rem;
}
.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 50% 40%, rgba(42,184,212,0.1) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 20% 70%, rgba(201,168,76,0.07) 0%, transparent 60%),
    linear-gradient(180deg, #0a1628 0%, #0d1b38 100%);
}
/* Floating domino tiles in background */
.hero-tiles {
  position: absolute; inset: 0; pointer-events: none;
  overflow: hidden;
}
.hero-tile {
  position: absolute;
  width: 36px; height: 60px;
  border: 1px solid rgba(42,184,212,0.12);
  border-radius: 5px;
  background: rgba(15,32,68,0.4);
  animation: floatTile linear infinite;
}
.hero-tile::after {
  content: '';
  position: absolute;
  top: 50%; left: 10%; right: 10%;
  height: 1px;
  background: rgba(42,184,212,0.2);
}
@keyframes floatTile {
  0%   { transform: translateY(110vh) rotate(0deg); opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  100% { transform: translateY(-20vh) rotate(360deg); opacity: 0; }
}

.hero-content { position: relative; z-index: 1; max-width: 750px; }
.hero-logo { width: 220px; margin: 0 auto 1.5rem; border-radius: 28px; box-shadow: 0 0 50px rgba(42,184,212,0.45), 0 0 100px rgba(42,184,212,0.2); }
.hero-title {
  font-family: 'Cinzel', serif;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 0.5rem;
  background: linear-gradient(135deg, #fff 0%, var(--teal) 50%, var(--gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-subtitle {
  font-size: 1rem;
  color: var(--teal-light);
  letter-spacing: 3px;
  text-transform: uppercase;
  font-weight: 300;
  margin-bottom: 1.5rem;
}
.hero-desc {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 2.5rem;
  max-width: 560px;
  margin-left: auto; margin-right: auto;
}
.hero-btns { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.btn-primary {
  background: linear-gradient(135deg, var(--teal), #1a8fa8);
  color: #fff;
  padding: 0.85rem 2.2rem;
  border-radius: 40px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: all 0.3s;
  box-shadow: 0 4px 20px rgba(42,184,212,0.35);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(42,184,212,0.55);
}
.btn-secondary {
  background: transparent;
  color: var(--gold);
  padding: 0.85rem 2.2rem;
  border-radius: 40px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  border: 1px solid var(--gold);
  transition: all 0.3s;
}
.btn-secondary:hover {
  background: rgba(201,168,76,0.1);
  transform: translateY(-2px);
}

/* ─── FEATURES STRIP ─── */
#features {
  padding: 5rem 2rem;
  background: var(--navy);
  border-top: 1px solid rgba(42,184,212,0.1);
  border-bottom: 1px solid rgba(42,184,212,0.1);
}
.features-grid {
  max-width: 1100px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}
.feature-card {
  background: rgba(10,22,40,0.6);
  border: 1px solid rgba(42,184,212,0.15);
  border-radius: 12px;
  padding: 2.5rem 2rem;
  text-align: center;
  transition: transform 0.3s, border-color 0.3s;
}
.feature-card:hover {
  transform: translateY(-6px);
  border-color: rgba(42,184,212,0.5);
}
.feature-icon { font-size: 2.5rem; margin-bottom: 1rem; }
.feature-card h3 {
  font-family: 'Cinzel', serif;
  font-size: 1.1rem;
  color: var(--teal);
  margin-bottom: 0.75rem;
  letter-spacing: 1px;
}
.feature-card p { color: var(--text-muted); line-height: 1.6; font-size: 0.95rem; }

/* ─── SECTION GENERIC ─── */
.section {
  padding: 6rem 2rem;
  max-width: 1100px;
  margin: 0 auto;
}
.section-label {
  font-size: 0.75rem;
  color: var(--teal);
  letter-spacing: 4px;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}
.section-title {
  font-family: 'Cinzel', serif;
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--white);
}
.section-divider {
  width: 60px; height: 2px;
  background: linear-gradient(90deg, var(--teal), var(--gold));
  margin-bottom: 2.5rem;
}

/* ─── ABOUT ─── */
#about { background: var(--dark); scroll-margin-top: 80px; }
.about-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start;
}
.about-text { display: flex; flex-direction: column; justify-content: flex-start; }
.about-text p { color: var(--text-muted); line-height: 1.8; margin-bottom: 1rem; font-size: 0.97rem; }
.about-stats {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; align-content: start; grid-auto-rows: 1fr;
}
.about-stats .stat-box { height: 100%; box-sizing: border-box; }
.stat-box {
  background: rgba(15,32,68,0.8);
  border: 1px solid rgba(42,184,212,0.2);
  border-radius: 10px;
  padding: 30px 1rem 10px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.stat-num {
  font-family: 'Cinzel', serif;
  font-size: 2rem;
  color: var(--teal);
  font-weight: 700;
}
.stat-label { font-size: 0.8rem; color: var(--text-muted); letter-spacing: 1px; }

/* ─── RULES ─── */
#rules { background: var(--navy); padding: 6rem 0; scroll-margin-top: 80px; }
#rules .section { padding-top: 0; padding-bottom: 0; }
.rules-list { counter-reset: rules; list-style: none; }
.rules-list li {
  counter-increment: rules;
  display: flex; align-items: flex-start; gap: 1rem;
  padding: 1.2rem 0;
  border-bottom: 1px solid rgba(42,184,212,0.08);
  color: var(--text-muted);
  line-height: 1.6;
}
.rules-list li::before {
  content: counter(rules);
  min-width: 32px; height: 32px;
  background: linear-gradient(135deg, var(--teal), #1a8fa8);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.8rem; font-weight: 700;
  color: #fff; flex-shrink: 0;
  margin-top: 2px;
}

/* ─── DOWNLOAD ─── */
#download { background: var(--dark); }
.download-box {
  background: linear-gradient(135deg, var(--navy), rgba(42,184,212,0.08));
  border: 1px solid rgba(42,184,212,0.25);
  border-radius: 16px;
  padding: 3rem;
  text-align: center;
}
.download-box h3 { font-family: 'Cinzel', serif; font-size: 1.5rem; margin-bottom: 1rem; }
.download-box p { color: var(--text-muted); margin-bottom: 2rem; line-height: 1.7; }
.download-note { font-size: 0.82rem; color: var(--text-muted); margin-top: 1rem; opacity: 0.7; }

/* ─── TOURNAMENTS ─── */
#tournaments { background: var(--navy); padding: 6rem 0; }
#tournaments .section { padding-top: 0; padding-bottom: 0; }
.tournament-cards {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.5rem;
}
.t-card {
  background: rgba(10,22,40,0.7);
  border: 1px solid rgba(201,168,76,0.2);
  border-radius: 12px;
  padding: 2rem 1.5rem;
  text-align: center;
  transition: border-color 0.3s;
}
.t-card:hover { border-color: var(--gold); }
.t-icon { font-size: 2rem; margin-bottom: 0.75rem; }
.t-card h4 { font-family: 'Cinzel', serif; color: var(--gold); margin-bottom: 0.5rem; font-size: 1rem; }
.t-card p { color: var(--text-muted); font-size: 0.88rem; line-height: 1.5; }

/* ─── CONTACT ─── */
#contact { background: var(--dark); }
.contact-form {
  max-width: 560px;
  display: flex; flex-direction: column; gap: 1rem; width: 100%;
}
.contact-form input,
.contact-form textarea {
  background: rgba(15,32,68,0.7);
  border: 1px solid rgba(42,184,212,0.2);
  border-radius: 8px;
  padding: 0.9rem 2rem 0.9rem 1.2rem;
  color: var(--white);
  font-family: 'Raleway', sans-serif;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.3s;
  width: 100%;
  box-sizing: border-box;
}
.contact-form input:focus,
.contact-form textarea:focus { border-color: var(--teal); }
.contact-form textarea { min-height: 130px; resize: vertical; }
.contact-form button {
  background: linear-gradient(135deg, var(--teal), #1a8fa8);
  color: #fff;
  border: none;
  padding: 0.9rem 2.5rem;
  border-radius: 40px;
  font-family: 'Raleway', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  align-self: flex-start;
  transition: all 0.3s;
}
.contact-form button:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(42,184,212,0.4); }
.contact-info { margin-top: 1.5rem; color: var(--text-muted); font-size: 0.9rem; }
.contact-info a { color: var(--teal); text-decoration: none; }

/* ─── FOOTER ─── */
footer {
  background: #060e1a;
  border-top: 1px solid rgba(42,184,212,0.1);
  padding: 3rem 2rem;
  text-align: center;
}
.footer-logo {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  margin-bottom: 1.5rem; text-decoration: none;
}
.footer-logo img { height: 36px; }
.footer-logo span {
  font-family: 'Cinzel', serif;
  font-size: 1.1rem;
  background: linear-gradient(135deg, var(--teal), var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.footer-links {
  display: flex; gap: 3.5rem; justify-content: center; flex-wrap: wrap;
  margin-bottom: 1.5rem; list-style: none;
}
.footer-links li::before { display: none; content: none; }
.footer-links li { counter-increment: none; border: none; padding: 0; }
.footer-links a { color: var(--text-muted); text-decoration: none; font-size: 0.85rem; transition: color 0.3s; }
.footer-links a:hover { color: var(--teal); }
.footer-copy { color: var(--text-muted); font-size: 0.8rem; opacity: 0.6; }

/* ─── AD SPACES ─── */
.ad-space {
  background: rgba(15,32,68,0.3);
  border: 1px dashed rgba(42,184,212,0.1);
  border-radius: 6px;
  padding: 1rem;
  text-align: center;
  color: rgba(139,160,187,0.4);
  font-size: 0.75rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  min-height: 90px;
  display: flex; align-items: center; justify-content: center;
  margin: 1.5rem 0;
}

/* ─── RESPONSIVE ─── */
@media (max-width: 768px) {
  .nav-links { display: none; flex-direction: column; position: absolute; top: 70px; left: 0; right: 0; background: var(--dark); padding: 1rem 2rem; border-bottom: 1px solid rgba(42,184,212,0.2); }
  .nav-links.open { display: flex; }
  .nav-toggle { display: flex; }
  .about-grid { grid-template-columns: 1fr; gap: 2rem; }
  .hero-btns { flex-direction: column; align-items: center; }

  /* Fix overflow/width issues on mobile */
  body { overflow-x: hidden; }
  #hero { padding: 5rem 1rem 3rem; min-height: auto; }
  .hero-content { padding: 0 0.5rem; }
  .hero-logo { width: 160px; }
  .hero-title { font-size: 2.2rem; }
  .hero-desc { font-size: 0.9rem; }
  .btn-primary { font-size: 0.85rem; padding: 0.8rem 1.2rem; width: 100%; box-sizing: border-box; text-align: center; }

  /* Features grid — single column on mobile */
  .features-grid { grid-template-columns: 1fr !important; padding: 1rem; }
  .feature-card { padding: 1.5rem 1rem; }
  .feature-card[style*="grid-column"] { grid-column: 1 !important; }

  /* Sections padding */
  section { padding-left: 1rem !important; padding-right: 1rem !important; }
  .section { padding: 0 !important; }

  /* Download box */
  .download-box { padding: 1.5rem 1rem; }

  /* Gallery */
  .gallery-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .gallery-wrap { padding: 0 1rem; }

  /* Tournament cards */
  .tournament-cards { grid-template-columns: 1fr; }

  /* Tables */
  table { font-size: 0.75rem; }
  table th, table td { padding: 0.4rem 0.5rem; }

  /* Nav mobile fixes */
  nav { padding: 0 0.8rem; }
  .nav-logo span { display: none; }
  .nav-logo img { height: 36px; }
  .lang-switcher { gap: 3px; margin-left: 0.3rem; }
  .nav-toggle { display: flex; margin-left: 0.5rem; flex-shrink: 0; }
}


