/* KetLab World Cup 2026 - Custom Styles */

:root {
  --primary-green: #00563B;
  --secondary-green: #024930;
  --light-green: #066241;
  --accent-green: #06643f;
  --dark-green: #003D2B;
  --gold: #fff200;
  --white: #FFFFFF;
  --light-gray: #F8F9FA;
  --dark-gray: #343A40;
}

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

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: var(--dark-gray);
  overflow-x: hidden;
}

/* Smooth Scrolling */
html {
  scroll-behavior: smooth;
}

/* Navigation */
.navbar {
  background: linear-gradient(135deg, var(--primary-green) 0%, var(--secondary-green) 100%);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  padding: 1rem 0;
  transition: all 0.3s ease;
}

.navbar-brand {
  font-size: 1.8rem;
  font-weight: bold;
  color: var(--gold) !important;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
}

.navbar-brand:hover {
  transform: scale(1.05);
}

.navbar-brand .trophy-icon {
  color: var(--gold);
  margin-right: 10px;
  animation: rotate 3s linear infinite;
}

@keyframes rotate {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.nav-link {
  color: var(--white) !important;
  font-weight: 500;
  margin: 0 10px;
  position: relative;
  transition: all 0.3s ease;
}

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

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

.nav-link:hover {
  color: var(--gold) !important;
  transform: translateY(-2px);
}

.btn-login, .btn-signup {
  border-radius: 25px;
  padding: 8px 25px;
  font-weight: 600;
  transition: all 0.3s ease;
  margin-left: 10px;
}

.btn-login {
  background: transparent;
  border: 2px solid var(--white);
  color: var(--white);
}

.btn-login:hover {
  background: var(--white);
  color: var(--primary-green);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 255, 255, 0.3);
}

.btn-signup {
  background: var(--gold);
  border: 2px solid var(--gold);
  color: var(--dark-green);
}

.btn-signup:hover {
  background: transparent;
  color: var(--gold);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 215, 0, 0.3);
}

/* Hero Section */
.hero-section {
  position: relative;
  min-height: 100vh;
  background: linear-gradient(135deg, var(--primary-green) 0%, var(--secondary-green) 50%, var(--light-green) 100%);
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23ffffff" fill-opacity="0.05" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,138.7C960,139,1056,117,1152,101.3C1248,85,1344,75,1392,69.3L1440,64L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom;
  background-size: cover;
  animation: wave 15s ease-in-out infinite;
}

@keyframes wave {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-20px); }
}

.hero-content {
  position: relative;
  z-index: 2;
  animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-title {
  font-size: 4rem;
  font-weight: bold;
  color: var(--white);
  text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.3);
  margin-bottom: 1.5rem;
  animation: slideInLeft 1s ease-out;
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-100px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.hero-subtitle {
  font-size: 1.5rem;
  color: var(--light-gray);
  margin-bottom: 2rem;
  animation: slideInRight 1s ease-out;
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(100px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.hero-buttons .btn {
  margin: 10px;
  padding: 15px 40px;
  font-size: 1.1rem;
  border-radius: 30px;
  font-weight: 600;
  transition: all 0.3s ease;
  animation: bounceIn 1.5s ease-out;
}

@keyframes bounceIn {
  0% {
    opacity: 0;
    transform: scale(0.3);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.btn-primary-custom {
  background: var(--gold);
  border: 3px solid var(--gold);
  color: var(--dark-green);
}

.btn-primary-custom:hover {
  background: transparent;
  color: var(--gold);
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(255, 215, 0, 0.4);
}

.btn-outline-custom {
  background: transparent;
  border: 3px solid var(--white);
  color: var(--white);
}

.btn-outline-custom:hover {
  background: var(--white);
  color: var(--primary-green);
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(255, 255, 255, 0.3);
}

/* Floating Animation for Hero Image */
.hero-image {
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-20px);
  }
}

/* Features Section */
.features-section {
  padding: 80px 0;
  background: var(--light-gray);
}

.section-title {
  font-size: 2.5rem;
  font-weight: bold;
  color: var(--primary-green);
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 4px;
  background: linear-gradient(90deg, var(--secondary-green), var(--gold));
  border-radius: 2px;
}

.section-subtitle {
  font-size: 1.2rem;
  color: var(--dark-gray);
  margin-bottom: 3rem;
}

.feature-card {
  background: var(--white);
  border-radius: 15px;
  padding: 30px;
  text-align: center;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  height: 100%;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.feature-card:hover {
  transform: translateY(-10px);
  border-color: var(--secondary-green);
  box-shadow: 0 15px 35px rgba(0, 140, 90, 0.2);
}

.feature-icon {
  font-size: 3.5rem;
  color: var(--secondary-green);
  margin-bottom: 1.5rem;
  transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
  transform: scale(1.2) rotate(10deg);
  color: var(--gold);
}

.feature-title {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--primary-green);
  margin-bottom: 1rem;
}

.feature-description {
  color: var(--dark-gray);
  line-height: 1.6;
}

/* Matches Section */
.matches-section {
  padding: 80px 0;
  background: linear-gradient(135deg, var(--primary-green) 0%, var(--dark-green) 100%);
  position: relative;
  overflow: hidden;
}

.matches-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 0.5;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.8;
  }
}

.match-card {
  background: var(--white);
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  margin-bottom: 30px;
}

.match-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.match-header {
  background: linear-gradient(135deg, var(--secondary-green), var(--light-green));
  padding: 20px;
  color: var(--white);
  text-align: center;
}

.match-date {
  font-size: 0.9rem;
  opacity: 0.9;
  margin-bottom: 5px;
}

.match-stadium {
  font-weight: 600;
  font-size: 1.1rem;
}

.match-body {
  padding: 30px;
}

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

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

.team-flag {
  width: 80px;
  height: 60px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}

.team-flag:hover {
  transform: scale(1.1);
}

.team-name {
  font-weight: bold;
  color: var(--primary-green);
  font-size: 1.1rem;
}

.vs-divider {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--secondary-green);
  margin: 0 20px;
}

.match-info {
  display: flex;
  justify-content: space-between;
  margin-bottom: 20px;
  padding: 15px;
  background: var(--light-gray);
  border-radius: 10px;
}

.info-item {
  text-align: center;
}

.info-label {
  font-size: 0.85rem;
  color: var(--dark-gray);
  margin-bottom: 5px;
}

.info-value {
  font-weight: bold;
  color: var(--primary-green);
  font-size: 1.1rem;
}

.btn-book-ticket {
  width: 100%;
  padding: 15px;
  background: linear-gradient(135deg, var(--secondary-green), var(--light-green));
  border: none;
  color: var(--white);
  font-weight: bold;
  font-size: 1.1rem;
  border-radius: 10px;
  transition: all 0.3s ease;
}

.btn-book-ticket:hover {
  background: linear-gradient(135deg, var(--light-green), var(--accent-green));
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0, 140, 90, 0.3);
}

/* Services Section */
.services-section {
  padding: 80px 0;
  background: var(--white);
}

.service-card {
  background: linear-gradient(135deg, var(--light-gray) 0%, var(--white) 100%);
  border-radius: 20px;
  padding: 40px;
  text-align: center;
  transition: all 0.3s ease;
  border: 3px solid transparent;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(0, 140, 90, 0.1), transparent);
  transform: rotate(45deg);
  transition: all 0.5s ease;
}

.service-card:hover::before {
  left: 100%;
}

.service-card:hover {
  border-color: var(--secondary-green);
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 140, 90, 0.2);
}

.service-icon {
  font-size: 4rem;
  color: var(--secondary-green);
  margin-bottom: 1.5rem;
  transition: all 0.3s ease;
}

.service-card:hover .service-icon {
  transform: scale(1.2);
  color: var(--gold);
}

.service-title {
  font-size: 1.8rem;
  font-weight: bold;
  color: var(--primary-green);
  margin-bottom: 1rem;
}

.service-description {
  color: var(--dark-gray);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.btn-service {
  background: var(--secondary-green);
  color: var(--white);
  padding: 12px 30px;
  border-radius: 25px;
  border: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-service:hover {
  background: var(--gold);
  color: var(--dark-green);
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(255, 215, 0, 0.3);
}

/* Stats Section */
.stats-section {
  padding: 80px 0;
  background: linear-gradient(135deg, var(--secondary-green) 0%, var(--primary-green) 100%);
  color: var(--white);
}

.stat-card {
  text-align: center;
  padding: 30px;
  transition: transform 0.3s ease;
}

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

.stat-icon {
  font-size: 3rem;
  color: var(--gold);
  margin-bottom: 1rem;
}

.stat-number {
  font-size: 3rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
  color: var(--white);
}

.stat-label {
  font-size: 1.2rem;
  opacity: 0.9;
}

/* Testimonials Section */
.testimonials-section {
  padding: 80px 0;
  background: var(--light-gray);
}

.testimonial-card {
  background: var(--white);
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  height: 100%;
}

.testimonial-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.testimonial-text {
  font-size: 1.1rem;
  font-style: italic;
  color: var(--dark-gray);
  margin-bottom: 2rem;
  line-height: 1.8;
}

.testimonial-author {
  display: flex;
  align-items: center;
}

.author-image {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  margin-right: 15px;
  border: 3px solid var(--secondary-green);
}

.author-info {
  text-align: left;
}

.author-name {
  font-weight: bold;
  color: var(--primary-green);
  margin-bottom: 5px;
}

.author-country {
  color: var(--dark-gray);
  font-size: 0.9rem;
}

.rating {
  color: var(--gold);
  font-size: 1.2rem;
  margin-top: 10px;
}

/* Footer */
.footer {
  background: linear-gradient(135deg, var(--dark-green) 0%, var(--primary-green) 100%);
  color: var(--white);
  padding: 60px 0 20px;
}

.footer-section {
  margin-bottom: 30px;
}

.footer-title {
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 1.5rem;
  color: var(--gold);
}

.footer-links {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: var(--white);
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-block;
}

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

.social-icons {
  display: flex;
  gap: 15px;
}

.social-icon {
  width: 45px;
  height: 45px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.3rem;
  transition: all 0.3s ease;
}

.social-icon:hover {
  background: var(--gold);
  color: var(--dark-green);
  transform: translateY(-5px);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 20px;
  margin-top: 40px;
  text-align: center;
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.2rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .match-teams {
    flex-direction: column;
  }
  
  .vs-divider {
    margin: 15px 0;
  }
  
  .team-flag {
    width: 60px;
    height: 45px;
  }
}

/* Loading Animation */
.loading {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: var(--white);
  animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Scroll to Top Button */
.scroll-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: var(--secondary-green);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 1000;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.scroll-top.show {
  opacity: 1;
  visibility: visible;
}

.scroll-top:hover {
  background: var(--gold);
  color: var(--dark-green);
  transform: translateY(-5px);
}