/* Base Styles */
:root {
  --primary: #ff4d4d;    /* Energetic red */
  --secondary: #1e88e5;  /* Sports blue */
  --accent: #ffc107;     /* Victory gold */
  --success: #4caf50;    /* Field green */
  --warning: #ff9800;    /* Alert orange */
  --error: #f44336;      /* Error red */
  --dark: #1a237e;       /* Deep blue */
  --light: #f8f9fa;
  --text-dark: #2b2d42;
  --text-light: #f8f9fa;
}

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

h1, h2, h3, h4, h5, h6 {
  font-weight: 800;
  letter-spacing: -0.5px;
}

a {
  text-decoration: none;
  transition: all 0.3s ease;
}

/* Navbar */
.navbar {
  padding: 16px 0;
  transition: all 0.3s ease;
  background-color: rgba(26, 35, 126, 0.95);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
  font-weight: 800;
  font-size: 1.75rem;
  letter-spacing: -1px;
}

.navbar .nav-link {
  font-weight: 600;
  padding: 8px 16px !important;
  color: var(--text-light);
  position: relative;
}

.navbar .nav-link:hover {
  color: var(--accent);
}

.navbar .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background-color: var(--accent);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.navbar .nav-link:hover::after {
  width: 80%;
}

.download-btn {
  background-color: var(--primary);
  color: white !important;
  border-radius: 24px;
  padding: 12px 24px !important;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.download-btn:hover {
  background-color: var(--secondary);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Hero Section */
#hero {
  background: linear-gradient(rgba(26, 35, 126, 0.8), rgba(26, 35, 126, 0.9)), url('https://images.pexels.com/photos/46798/the-ball-stadion-football-the-pitch-46798.jpeg');
  background-size: cover;
  background-position: center;
  height: 100vh;
  color: var(--text-light);
  position: relative;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(255, 77, 77, 0.3), rgba(30, 136, 229, 0.3));
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-title {
  font-size: 4.5rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  line-height: 1.1;
  background: linear-gradient(120deg, var(--accent), var(--primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.5rem;
  margin-bottom: 2.5rem;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
  opacity: 0.9;
}

/* Live Matches Section */
.live-matches {
  background: var(--light);
  padding: 80px 0;
}

.match-card {
  background: white;
  border-radius: 15px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.match-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.match-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.match-time {
  font-size: 0.9rem;
  color: var(--text-dark);
  opacity: 0.8;
}

.live-indicator {
  background: var(--primary);
  color: white;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0% { opacity: 1; }
  50% { opacity: 0.5; }
  100% { opacity: 1; }
}

.match-teams {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 20px 0;
}

.team {
  text-align: center;
  flex: 1;
}

.team-logo {
  width: 60px;
  height: 60px;
  margin-bottom: 10px;
}

.team-name {
  font-weight: 600;
  margin: 0;
}

.match-score {
  font-size: 2rem;
  font-weight: 800;
  margin: 0 20px;
  color: var(--primary);
}

.match-info {
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-dark);
  opacity: 0.8;
}

/* Match Videos Section */
.match-videos {
  background: var(--dark);
  padding: 80px 0;
  color: white;
}

.video-card {
  position: relative;
  border-radius: 15px;
  overflow: hidden;
  margin-bottom: 30px;
  cursor: pointer;
}

.video-thumbnail {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: all 0.3s ease;
}

.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all 0.3s ease;
}

.video-card:hover .video-overlay {
  opacity: 1;
}

.video-card:hover .video-thumbnail {
  transform: scale(1.1);
}

.play-button {
  width: 60px;
  height: 60px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.play-button i {
  color: white;
  font-size: 24px;
  margin-left: 4px;
}

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

.video-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 5px;
}

.video-meta {
  font-size: 0.9rem;
  opacity: 0.8;
}

/* Features Section */
.feature-card {
  background: white;
  border-radius: 20px;
  padding: 40px 30px;
  height: 100%;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  transition: all 0.4s ease;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.feature-card:hover {
  transform: translateY(-12px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
  border-color: var(--primary);
}

.feature-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 30px;
  transition: all 0.4s ease;
}

.feature-icon i {
  font-size: 32px;
  color: white;
}

.feature-card:hover .feature-icon {
  transform: scale(1.1) rotate(5deg);
}

.feature-card h3 {
  font-size: 22px;
  margin-bottom: 20px;
  color: var(--dark);
}

/* Fanbook Section */
.fanbook-showcase img {
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  transition: all 0.5s ease;
}

.fanbook-showcase img:hover {
  transform: translateY(-12px) scale(1.02);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.2);
}

.fanbook-features h4 {
  font-size: 20px;
  margin-bottom: 12px;
  color: var(--dark);
}

/* Download Section */
.qr-code-container {
  background: white;
  padding: 40px;
  border-radius: 30px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  transition: all 0.4s ease;
}

.qr-code-container:hover {
  transform: translateY(-8px);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
}

.qr-code {
  max-width: 260px;
  border-radius: 15px;
}

/* Footer */
footer {
  background-color: var(--dark);
  padding: 80px 0 30px;
}

footer h5 {
  color: white;
  margin-bottom: 25px;
  font-weight: 700;
  font-size: 1.25rem;
}

footer a {
  color: rgba(255, 255, 255, 0.8);
  display: block;
  padding: 8px 0;
  font-weight: 500;
}

footer a:hover {
  color: var(--accent);
  transform: translateX(5px);
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  margin-right: 12px;
  color: white;
  font-size: 18px;
  transition: all 0.4s ease;
}

.social-links a:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-5px);
}

/* Responsive Adjustments */
@media (max-width: 991.98px) {
  #hero {
    height: auto;
    padding: 140px 0 100px;
  }
  
  .navbar {
    background-color: var(--dark);
  }
  
  .hero-title {
    font-size: 3.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.25rem;
  }
  
  .match-teams {
    flex-direction: column;
  }
  
  .match-score {
    margin: 20px 0;
  }
  
  .team {
    margin: 10px 0;
  }
  
  .video-card {
    margin-bottom: 20px;
  }
}

@media (max-width: 767.98px) {
  section {
    padding: 80px 0;
  }
  
  .section-header {
    margin-bottom: 40px;
  }
  
  .section-header h2 {
    font-size: 2rem;
  }
  
  .feature-card, 
  .competition-card {
    padding: 30px 20px;
  }
  
  .hero-title {
    font-size: 2.75rem;
  }
  
  .match-card {
    padding: 15px;
  }
  
  .team-logo {
    width: 40px;
    height: 40px;
  }
  
  .match-score {
    font-size: 1.5rem;
  }
  
  .video-thumbnail {
    height: 150px;
  }
}

@media (max-width: 575.98px) {
  .hero-title {
    font-size: 2.25rem;
  }
  
  .hero-subtitle {
    font-size: 1.1rem;
  }
  
  .btn-lg {
    padding: 10px 20px;
    font-size: 1rem;
  }
}