/* 
* SPAT4-KAIJI.COM - Main Stylesheet
* Modern, elegant design for horse racing website
* Primary colors: Crimson red, deep black, and gold accents
*/

/* Reset and Base Styles */
:root {
  --primary-color: #8B0000;
  --secondary-color: #FF4500;
  --accent-color: #FFD700;
  --text-color: #333333;
  --light-text: #FFFFFF;
  --dark-bg: #111111;
  --light-bg: #F5F5F5;
  --gradient-primary: linear-gradient(to right, #8B0000, #FF4500);
  --font-main: 'Montserrat', sans-serif;
  --shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  --transition: all 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--light-bg);
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: var(--primary-color);
  transition: var(--transition);
}

a:hover {
  color: var(--secondary-color);
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.btn {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  border-radius: 50px;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 1px;
  transition: var(--transition);
  cursor: pointer;
  border: none;
}

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

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  color: var(--light-text);
}

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

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

/* Section Styles */
section {
  padding: 5rem 0;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title h2 {
  font-size: 2.5rem;
  color: var(--primary-color);
  position: relative;
  display: inline-block;
}

.section-title h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: var(--accent-color);
}

/* Header Styles */
.header {
  background-color: var(--dark-bg);
  color: var(--light-text);
  padding: 1rem 0;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 999;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.header.scrolled {
  padding: 0.5rem 0;
  background-color: rgba(17, 17, 17, 0.95);
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  height: 40px;
  margin-right: 10px;
}

.logo h1 {
  font-size: 1.5rem;
  margin-bottom: 0;
}

.nav-menu {
  display: flex;
}

.nav-menu li {
  list-style: none;
  margin-left: 1.5rem;
}

.nav-menu a {
  color: var(--light-text);
  font-weight: 500;
  position: relative;
}

.nav-menu a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 0;
  height: 2px;
  background-color: var(--accent-color);
  transition: var(--transition);
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
  width: 100%;
}

.menu-toggle {
  display: none;
  cursor: pointer;
  font-size: 1.5rem;
  color: var(--light-text);
}

/* Hero Section */
.hero {
  height: 100vh;
  background: var(--gradient-primary);
  position: relative;
  overflow: hidden;
  padding-top: 80px;
  display: flex;
  align-items: center;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('../images/hero-bg.svg');
  background-size: cover;
  background-position: center;
  opacity: 0.2;
  z-index: 1;
}

.hero .container {
  position: relative;
  z-index: 2;
  color: var(--light-text);
}

.hero-content {
  max-width: 600px;
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  line-height: 1.1;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.hero-cta {
  display: flex;
  gap: 1rem;
}

.hero-image {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 40%;
  z-index: 1;
  opacity: 0.8;
}

/* Features Section */
.features {
  background-color: var(--light-bg);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.feature-item {
  background-color: var(--light-text);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.feature-item:hover {
  transform: translateY(-5px);
}

.feature-icon {
  width: 100%;
  height: 120px;
  display: flex;
  justify-content: center;
  align-items: center;
  background: var(--gradient-primary);
}

.feature-icon img {
  height: 60px;
}

.feature-content {
  padding: 1.5rem;
}

.feature-content h3 {
  color: var(--primary-color);
}

/* Games Section */
.games {
  background-color: var(--dark-bg);
  color: var(--light-text);
}

.games .section-title h2 {
  color: var(--light-text);
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.game-card {
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  overflow: hidden;
  transition: var(--transition);
  box-shadow: var(--shadow);
}

.game-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.game-image {
  height: 180px;
  overflow: hidden;
}

.game-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.game-card:hover .game-image img {
  transform: scale(1.1);
}

.game-content {
  padding: 1.2rem;
}

.game-content h3 {
  margin-bottom: 0.5rem;
  color: var(--accent-color);
}

.game-content p {
  font-size: 0.9rem;
  opacity: 0.8;
  margin-bottom: 1rem;
}

.game-link {
  color: var(--accent-color);
  font-weight: 600;
  font-size: 0.9rem;
  display: inline-block;
}

.game-link:hover {
  color: var(--secondary-color);
}

/* Testimonials */
.testimonials {
  background-color: var(--light-bg);
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.testimonial-card {
  background-color: var(--light-text);
  border-radius: 10px;
  padding: 2rem;
  box-shadow: var(--shadow);
  position: relative;
}

.testimonial-card::before {
  content: '"';
  font-size: 5rem;
  position: absolute;
  top: 10px;
  left: 20px;
  color: var(--primary-color);
  opacity: 0.1;
  font-family: serif;
  line-height: 1;
}

.testimonial-content {
  position: relative;
  z-index: 1;
}

.testimonial-text {
  margin-bottom: 1.5rem;
  font-style: italic;
}

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

.testimonial-author img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  margin-right: 1rem;
}

.author-info h4 {
  margin-bottom: 0.2rem;
  color: var(--primary-color);
}

.author-info p {
  font-size: 0.8rem;
  opacity: 0.8;
}

/* News Section */
.news {
  background-color: var(--light-text);
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.news-card {
  background-color: var(--light-bg);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.news-card:hover {
  transform: translateY(-5px);
}

.news-image {
  height: 200px;
  overflow: hidden;
}

.news-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.news-card:hover .news-image img {
  transform: scale(1.1);
}

.news-content {
  padding: 1.5rem;
}

.news-date {
  font-size: 0.8rem;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.news-content h3 {
  margin-bottom: 0.8rem;
}

.news-content p {
  margin-bottom: 1rem;
  opacity: 0.8;
}

/* CTA Section */
.cta {
  background: var(--gradient-primary);
  color: var(--light-text);
  text-align: center;
  padding: 4rem 0;
}

.cta h2 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

.cta p {
  max-width: 600px;
  margin: 0 auto 2rem;
  opacity: 0.9;
}

.cta-btn {
  background-color: var(--light-text);
  color: var(--primary-color);
  padding: 1rem 2rem;
  font-size: 1.1rem;
}

.cta-btn:hover {
  background-color: var(--accent-color);
  color: var(--dark-bg);
}

/* Footer */
.footer {
  background-color: var(--dark-bg);
  color: var(--light-text);
  padding: 4rem 0 1rem;
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
}

.footer-logo img {
  height: 40px;
  margin-right: 10px;
}

.footer-about p {
  opacity: 0.7;
  margin-bottom: 1.5rem;
}

.footer-heading {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  color: var(--accent-color);
}

.footer-links li {
  list-style: none;
  margin-bottom: 0.8rem;
}

.footer-links a {
  color: var(--light-text);
  opacity: 0.7;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--accent-color);
  opacity: 1;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--light-text);
  transition: var(--transition);
}

.social-links a:hover {
  background-color: var(--accent-color);
  color: var(--dark-bg);
  transform: translateY(-3px);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
  opacity: 0.7;
  font-size: 0.9rem;
}

/* Responsive Styles */
@media (max-width: 992px) {
  .hero h1 {
    font-size: 3rem;
  }
  
  .hero-image {
    width: 50%;
    opacity: 0.6;
  }
}

@media (max-width: 768px) {
  section {
    padding: 4rem 0;
  }
  
  .nav-menu {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 80%;
    height: 100vh;
    background-color: var(--dark-bg);
    flex-direction: column;
    justify-content: flex-start;
    padding-top: 2rem;
    transition: var(--transition);
    box-shadow: var(--shadow);
  }
  
  .nav-menu.active {
    left: 0;
  }
  
  .nav-menu li {
    margin: 0;
    padding: 1rem 2rem;
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
  
  .menu-toggle {
    display: block;
  }
  
  .hero {
    height: auto;
    min-height: 100vh;
    padding-top: 100px;
    padding-bottom: 4rem;
  }
  
  .hero-content {
    text-align: center;
    margin: 0 auto;
  }
  
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .hero-cta {
    justify-content: center;
  }
  
  .hero-image {
    position: relative;
    width: 80%;
    margin: 2rem auto 0;
    opacity: 0.8;
  }
  
  .footer-container {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
}

@media (max-width: 576px) {
  .section-title h2 {
    font-size: 2rem;
  }
  
  .hero h1 {
    font-size: 2rem;
  }
  
  .hero p {
    font-size: 1rem;
  }
  
  .hero-cta {
    flex-direction: column;
  }
  
  .testimonial-grid,
  .news-grid {
    grid-template-columns: 1fr;
  }
  
  .cta h2 {
    font-size: 2rem;
  }
}

/* Animation Classes */
.fade-in {
  animation: fadeIn 1s ease-in-out;
}

.slide-up {
  animation: slideUp 0.8s ease-in-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

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