/*
 * Stylesheet for the FFTournament landing page.
 * All colours, typography and layouts have been carefully tuned for
 * readability in both desktop and mobile views. The site uses a
 * dark/light palette inspired by esports themes, with bright accent
 * colours for calls to action.
 */

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f8f9fa;
}

/* Colour variables */
:root {
  --primary: #ff5722;
  --secondary: #2196f3;
  --dark-bg: #0d253f;
  --light-bg: #ffffff;
  --text-light: #f5f5f5;
  --text-dark: #222;
  --muted: #7a7a7a;
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 60px;
  background: rgba(13, 37, 63, 0.9);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  z-index: 1000;
  backdrop-filter: blur(8px);
}

.navbar .brand {
  color: var(--text-light);
  font-size: 1.6rem;
  font-weight: 600;
}

.navbar .nav-links a {
  color: var(--text-light);
  margin-left: 25px;
  text-decoration: none;
  font-weight: 500;
  position: relative;
  transition: color 0.3s ease;
}

.navbar .nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 2px;
  background: var(--primary);
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.3s, transform 0.3s;
}

.navbar .nav-links a:hover {
  color: var(--primary);
}

.navbar .nav-links a:hover::after {
  opacity: 1;
  transform: translateY(0);
}

/* Hero Section */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100vh;
  background-image: url('images/hero-bg.png');
  background-size: cover;
  background-position: center;
  color: var(--text-light);
  text-align: center;
  overflow: hidden;
  animation: backgroundPulse 8s ease-in-out infinite;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3);
  z-index: 0;
}

.hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, rgba(255, 87, 34, 0.2) 0%, rgba(33, 150, 243, 0.2) 50%, rgba(255, 87, 34, 0.2) 100%);
  background-size: 200% 200%;
  animation: colorWave 12s ease-in-out infinite;
  z-index: 0;
}

@keyframes backgroundPulse {
  0%, 100% {
    transform: scale(1);
    filter: brightness(1) contrast(1);
  }
  50% {
    transform: scale(1.05);
    filter: brightness(1.1) contrast(1.2);
  }
}

@keyframes colorWave {
  0%, 100% {
    background-position: 0% 50%;
    opacity: 0.3;
  }
  25% {
    background-position: 100% 0%;
    opacity: 0.5;
  }
  50% {
    background-position: 100% 100%;
    opacity: 0.4;
  }
  75% {
    background-position: 0% 100%;
    opacity: 0.6;
  }
}

.hero .hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  padding: 20px;
}

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  margin-bottom: 20px;
  font-weight: 700;
  text-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
}

.hero .tagline {
  font-size: clamp(1rem, 2vw, 1.5rem);
  margin-bottom: 35px;
  color: #d5d5d5;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 30px;
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s;
}

.btn.primary-btn {
  background: var(--primary);
  color: var(--text-light);
}

.btn.primary-btn:hover {
  background: #e64a19;
  transform: translateY(-2px);
}

.scroll-indicator {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--text-light);
  font-size: 0.9rem;
  animation: bounce 2s infinite;
  z-index: 1;
}

.scroll-indicator .arrow {
  width: 2px;
  height: 20px;
  background: var(--text-light);
  margin-top: 6px;
  position: relative;
}

.scroll-indicator .arrow::before,
.scroll-indicator .arrow::after {
  content: '';
  position: absolute;
  left: -4px;
  width: 10px;
  height: 2px;
  background: var(--text-light);
}

.scroll-indicator .arrow::before {
  bottom: 0;
  transform: rotate(45deg);
}
.scroll-indicator .arrow::after {
  bottom: 0;
  transform: rotate(-45deg);
}

@keyframes bounce {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, -5px); }
}

/* Features Section */
.features {
  padding: 100px 20px 80px;
  background: var(--light-bg);
  color: var(--text-dark);
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header h2 {
  font-size: 2.4rem;
  color: var(--dark-bg);
  margin-bottom: 10px;
}

.section-header p {
  font-size: 1rem;
  color: var(--muted);
  max-width: 600px;
  margin: 0 auto;
}

.features-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
}

.feature-item {
  background: #ffffff;
  border-radius: 12px;
  padding: 30px;
  width: 250px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
}

.feature-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

.feature-item .icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 15px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  font-size: 1.8rem;
  font-weight: 700;
}

.feature-item h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
  color: var(--dark-bg);
}

.feature-item p {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.4;
}

/* Reviews Section */
.reviews {
  padding: 100px 20px 100px;
  background: var(--dark-bg);
  color: var(--text-light);
  position: relative;
  overflow: hidden;
}

.reviews .section-header h2 {
  color: var(--text-light);
}

.reviews .section-header p {
  color: #b0c4de;
}

.review-slider {
  max-width: 700px;
  margin: 0 auto;
  position: relative;
  height: 200px;
}

.review-cards {
  position: relative;
  height: 100%;
}

.review-card {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  transition: opacity 0.6s ease;
  padding: 0 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100%;
}

.review-card.active {
  opacity: 1;
}

.review-text {
  font-size: 1.1rem;
  font-weight: 400;
  line-height: 1.5;
  margin-bottom: 15px;
  max-width: 650px;
}

.reviewer {
  font-weight: 600;
  margin-bottom: 5px;
}

.rating {
  color: #ffd700;
  font-size: 1.2rem;
}

/* Download Section */
.download {
  padding: 100px 20px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: var(--text-light);
  text-align: center;
}

.download h2 {
  font-size: 2.4rem;
  margin-bottom: 15px;
}

.download p {
  font-size: 1rem;
  margin-bottom: 25px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.btn.download-btn {
  background: var(--light-bg);
  color: var(--primary);
  font-weight: 600;
}

.btn.download-btn:hover {
  background: #e5e5e5;
}

/* Footer */
.footer {
  background: #0a192f;
  color: #8da5c3;
  padding: 30px 20px;
  text-align: center;
}

.footer p {
  font-size: 0.85rem;
  margin: 5px 0;
}

/* Reveal animations */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 768px) {
  .navbar {
    padding: 0 20px;
  }
  .navbar .nav-links a {
    margin-left: 15px;
    font-size: 0.9rem;
  }
  .features-list {
    flex-direction: column;
    align-items: center;
  }
  .feature-item {
    width: 90%;
  }
  .review-slider {
    height: 260px;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 2.5rem;
  }
  .hero .tagline {
    font-size: 0.9rem;
  }
  .btn {
    font-size: 0.9rem;
    padding: 12px 28px;
  }
  .download h2 {
    font-size: 2rem;
  }
  .download p {
    font-size: 0.9rem;
  }
}