/* ===========================
 🌞 Light Mode
=========================== */
body {
  font-family: 'Poppins', sans-serif;
  background: linear-gradient(135deg, #f5f7fa, #c3cfe2);
  margin: 0;
  text-align: center;
  color: #2c3e50;
}

nav {
  background: linear-gradient(90deg, #00bfa5, #6200ea);
  padding: 15px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

nav .logo { font-weight: 800; font-size: 1.5rem; color: #fff; }

nav ul { list-style: none; display: flex; gap: 20px; margin: 0; padding: 0; }
nav ul li { display: inline; }
nav ul li a { color: #fff; text-decoration: none; font-weight: 600; transition: color 0.2s; }
nav ul li a:hover { color: #ffeb3b; }

/* Resume Section */
.resume { text-align: center; margin: 40px 0; }
.resume-btn {
  background: linear-gradient(90deg, #43cea2, #185a9d);
  color: white; border: none; padding: 12px 28px; font-size: 16px;
  border-radius: 8px; cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.3s ease;
}
.resume-btn:hover { transform: translateY(-3px); box-shadow: 0 6px 15px rgba(0,0,0,0.3); }

/* Dark Mode Toggle */
button#darkModeToggle{
  background:none; border:2px solid white; border-radius:6px; padding:6px 12px;
  color:white; cursor:pointer; font-size:1rem; transition:all .3s ease;
}
button#darkModeToggle:hover{ background:white; color:#6200ea; }

/* ===== Match Summary ===== */
.match-summary { margin: 30px auto; text-align: center; }
.match-summary h2 { margin-bottom: 15px; font-size: 1.8rem; color: inherit; }

.summary-card{
  background: rgba(255,255,255,0.95);
  border-radius: 12px;
  padding: 20px;
  max-width: 700px;
  margin: 0 auto;
  text-align: left;
  box-shadow: 0 6px 15px rgba(0,0,0,0.15);
}
.summary-item{
  display:flex; justify-content:space-between; gap:12px;
  padding:8px 0; border-bottom:1px solid rgba(0,0,0,0.06);
}
.summary-item:last-child{ border-bottom:none; }
.summary-item .label{ font-weight:600; color:#2c3e50; }

/* ===== Radiant vs Dire layout ===== */
.teams{
  display: grid;
  grid-template-columns: 1fr; /* stack by default */
  gap: 20px;
  margin: 30px auto;
  padding: 0 10px;
  max-width: 1400px;
}

@media (min-width: 1000px) {
  .teams {
    grid-template-columns: 1fr 1fr; /* side by side on large screens */
  }
}

.team{
  background: rgba(255,255,255,0.95);
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 6px 15px rgba(0,0,0,0.15);
  overflow-x: hidden;
}
.team h3{ text-align:center; margin: 10px 0; font-weight:700; }

/* ===== Table Styling ===== */
table {
  margin: 10px 0 20px;
  border-collapse: collapse;
  width: 100%;
  max-width: 100%;
  table-layout: auto; /* 🔄 allow flexible column widths */
}

table th, table td {
  padding:10px 15px; 
  text-align:center; 
  vertical-align:middle;
  overflow:hidden; 
  text-overflow:ellipsis; 
  white-space:nowrap;
}

table th { color:white; font-weight:600; }

table.radiant th{ background:#4caf50; }
table.dire    th{ background:#f44336; }

/* Hero cell: icon + name */
.hero-cell {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: flex-start;
  min-width: 180px; /* ✅ ensures enough room for names */
}

.hero-cell .hero-icon {
  width: 60px;
  height: auto;
  border-radius: 6px;
  flex-shrink: 0;
}

.hero-cell span {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: left;
}

/* Mobile: smaller tables */
@media (max-width: 768px){
  .teams { grid-template-columns: 1fr; }
  table { font-size: 0.9rem; }
  table th, table td { padding: 8px 10px; }
  .hero-cell { min-width: 140px; } /* shrink a bit on mobile */
  .hero-cell .hero-icon { width: 50px; }
}

/* ===== About page column ===== */
.about-container{
  max-width:800px; margin:0 auto; padding:20px; text-align:left;
}
body.about p{ font-size:1.1rem; line-height:1.8; margin-bottom:20px; }
.text-center{ text-align:center; }

/* ===== Size of Number Counter ===== */
.counter {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin: 40px auto;
  color: #2c3e50;
  text-align: center;
}

.counter #daysCount {
  font-size: 4rem;     /* 🔥 make it big */
  font-weight: 800;
  text-shadow: 2px 2px 6px rgba(0,0,0,0.4);
  margin: 0;
}

.counter p {
  font-size: 1.3rem;
  font-weight: 500;
  margin-top: 10px;
}

/* ===========================
 🌙 Dark Mode
=========================== */
body.dark-mode{
  background: linear-gradient(135deg, #121212, #1e1e2f);
  color:#f0f0f0;
}
body.dark-mode nav{
  background: linear-gradient(90deg, #0d7377, #323232);
  box-shadow: 0 4px 12px rgba(0,0,0,0.8);
}
body.dark-mode nav .logo{ color:#00fff5; }
body.dark-mode nav ul li a{ color:#e0e0e0; }
body.dark-mode nav ul li a:hover{ color:#00fff5; }

body.dark-mode .summary-card{
  background:#1f1f1f; color:#f0f0f0;
  box-shadow:0 6px 15px rgba(0,0,0,0.6);
}
body.dark-mode .summary-item .label{ color:#eee6e9; }

body.dark-mode table{
  background:#2a2a2a; color:#f0f0f0;
  box-shadow:0 6px 15px rgba(0,0,0,0.6);
}
body.dark-mode table th{ color:#fff; }
body.dark-mode .radiant th{ background: rgba(76,175,80,0.8); }
body.dark-mode .dire    th{ background: rgba(244,67,54,0.8); }

body.dark-mode .resume-btn{
  background: linear-gradient(90deg, #ff512f, #dd2476);
  color:#fff;
}
body.dark-mode .resume-btn:hover{ box-shadow:0 6px 20px rgba(255,105,180,0.4); }
body.dark-mode button#darkModeToggle{ border-color:#00fff5; color:#00fff5; }
body.dark-mode button#darkModeToggle:hover{ background:#00fff5; color:#121212; }

body.dark-mode .team {
  background: #1e1e2f; /* darker card background */
  box-shadow: 0 6px 15px rgba(0,0,0,0.7);
}

/* ===========================
 🎯 Highlighting
=========================== */
.highlight-target {
  background: #ffeb3b !important; /* bright yellow */
  font-weight: 700;
  color: #000;
}
.highlight-winner {
  background: rgba(9, 177, 219, 0.15) !important; /* light blue tint */
}
body.dark-mode .highlight-target {
  background: #ffd600 !important; 
  color: #121212;
}
body.dark-mode .highlight-winner {
  background: rgba(18, 116, 228, 0.3) !important;
}

  .hero {
 position: relative;
  height: 100vh;
  background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), url('hero-image.jpg');
  background-size: 100% auto; 
  background-position: center bottom; 
  background-repeat: no-repeat;
  background-attachment: fixed;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  margin-bottom: 50px;
}

    .hero * {
  background-color: transparent !important;
}

    .hero-content {
  max-width: 800px;
  padding: 0 20px;
  /* Remove any background colors or containers */
  background: none !important;
  background-color: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.7); /* Stronger shadow for better readability */
  background: none !important;
}

.hero p {
  font-size: 1.3rem;
  font-weight: 400;
  margin-bottom: 30px;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.7); /* Stronger shadow for better readability */
  background: none !important;
}

.hero-btn {
  display: inline-block;
  padding: 15px 30px;
  background: #007bff !important; /* Force the blue background back */
  color: white !important;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0,123,255,0.3) !important;
  border: none;
}

.hero-btn:hover {
  background: #0056b3 !important; /* Force the darker blue on hover */
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,123,255,0.4) !important;
  color: white !important;
}

    /* Slideshow Styles */
    .slideshow-container {
      position: relative;
      max-width: 1200px;
      margin: 50px auto;
      background: #f8f9fa;
      border-radius: 15px;
      overflow: hidden;
      box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    }

    .slideshow-header {
      text-align: center;
      padding: 30px 20px 10px;
      background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
      color: white;
    }

    .slideshow-header h2 {
      margin: 0;
      font-size: 2rem;
      font-weight: 600;
    }

    .slides {
      display: none;
      position: relative;
      height: 400px;
    }

    .slides.active {
      display: block;
    }

    .slides img {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }

    .slide-content {
      position: absolute;
      bottom: 0;
      left: 0;
      right: 0;
      background: linear-gradient(transparent, rgba(0,0,0,0.8));
      color: white;
      padding: 40px 30px 20px;
    }

    .slide-content h3 {
      margin: 0 0 10px 0;
      font-size: 1.5rem;
      font-weight: 600;
    }

    .slide-content p {
      margin: 0;
      font-size: 1rem;
      line-height: 1.5;
    }

    /* Navigation arrows */
    .prev, .next {
      cursor: pointer;
      position: absolute;
      top: 50%;
      width: auto;
      margin-top: -22px;
      padding: 16px;
      color: white;
      font-weight: bold;
      font-size: 18px;
      background: rgba(0,0,0,0.5);
      border: none;
      user-select: none;
      transition: all 0.3s ease;
    }

    .next {
      right: 0;
      border-radius: 3px 0 0 3px;
    }

    .prev {
      left: 0;
      border-radius: 0 3px 3px 0;
    }

    .prev:hover, .next:hover {
      background: rgba(0,0,0,0.8);
    }

    /* Dots indicators */
    .dots-container {
      text-align: center;
      padding: 20px;
      background: #f8f9fa;
    }

    .dot {
      cursor: pointer;
      height: 15px;
      width: 15px;
      margin: 0 5px;
      background-color: #bbb;
      border-radius: 50%;
      display: inline-block;
      transition: background-color 0.3s ease;
    }

    .dot.active, .dot:hover {
      background-color: #007bff;
    }

    /* Content Section Styling */
    .main-content {
      max-width: 1200px;
      margin: 0 auto;
      padding: 0 20px;
    }

    .content-section {
      margin-bottom: 50px;
    }

    .content-section h2 {
      color: #333;
      font-size: 2rem;
      margin-bottom: 20px;
      text-align: center;
    }

    /* Responsive Design */
    @media (max-width: 768px) {
      .hero h1 {
        font-size: 2.5rem;
      }
      
      .hero p {
        font-size: 1.1rem;
      }
      
      .slideshow-container {
        margin: 30px 10px;
      }
      
      .slides {
        height: 300px;
      }
      
      .slide-content {
        padding: 20px 15px 10px;
      }
      
      .slide-content h3 {
        font-size: 1.2rem;
      }
      
      .slide-content p {
        font-size: 0.9rem;
      }
    }

    /* ===========================
 🌙 Dark Mode - Hero & Slideshow Styles
=========================== */

/* Dark Mode Hero Section */
body.dark-mode .hero {
  background: linear-gradient(rgba(18, 18, 18, 0.6), rgba(30, 30, 47, 0.6)), url('hero-image.jpg');
  background-size: cover;
  background-position: center bottom;
  background-attachment: fixed;
}

body.dark-mode .hero-content {
  background: none !important;
  background-color: transparent !important;
}

body.dark-mode .hero h1 {
  text-shadow: 2px 2px 6px rgba(0,0,0,0.9);
  background: none !important;
}

body.dark-mode .hero p {
  text-shadow: 1px 1px 4px rgba(0,0,0,0.9);
  background: none !important;
}

body.dark-mode .hero-btn {
  background: linear-gradient(90deg, #ff512f, #dd2476) !important;
  color: #fff !important;
  box-shadow: 0 4px 15px rgba(255, 105, 180, 0.3) !important;
}

body.dark-mode .hero-btn:hover {
  background: linear-gradient(90deg, #ff6b47, #ee3587) !important;
  box-shadow: 0 6px 20px rgba(255, 105, 180, 0.5) !important;
  color: #fff !important;
}

/* Dark Mode Slideshow Container */
body.dark-mode .slideshow-container {
  background: #1e1e2f; /* matches your team cards */
  box-shadow: 0 10px 30px rgba(0,0,0,0.7);
}

body.dark-mode .slideshow-header {
  background: linear-gradient(90deg, #0d7377, #323232); /* matches your dark nav */
  color: #00fff5;
}

body.dark-mode .slideshow-header h2 {
  color: #00fff5;
}

/* Dark Mode Slides */
body.dark-mode .slide-content {
  background: linear-gradient(transparent, rgba(18, 18, 18, 0.9));
  color: #f0f0f0;
}

body.dark-mode .slide-content h3 {
  color: #00fff5; /* accent color for headings */
}

body.dark-mode .slide-content p {
  color: #e0e0e0;
}

/* Dark Mode Navigation Arrows */
body.dark-mode .prev,
body.dark-mode .next {
  background: rgba(18, 18, 18, 0.7);
  color: #f0f0f0;
}

body.dark-mode .prev:hover,
body.dark-mode .next:hover {
  background: rgba(13, 115, 119, 0.8); /* matches your nav gradient color */
  color: #00fff5;
}

/* Dark Mode Dots Container */
body.dark-mode .dots-container {
  background: #1e1e2f;
}

body.dark-mode .dot {
  background-color: #555;
}

body.dark-mode .dot.active,
body.dark-mode .dot:hover {
  background-color: #00fff5; /* matches your accent color */
}

/* Dark Mode Content Sections */
body.dark-mode .main-content {
  color: #f0f0f0;
}

body.dark-mode .content-section h2 {
  color: #00fff5; /* matches your accent color */
}

body.dark-mode .content-section p {
  color: #e0e0e0;
}

/* Dark Mode Responsive Adjustments */
@media (max-width: 768px) {
  body.dark-mode .hero h1 {
    text-shadow: 1px 1px 3px rgba(0,0,0,0.9);
  }
  
  body.dark-mode .hero p {
    text-shadow: 1px 1px 2px rgba(0,0,0,0.9);
  }
}