/* 
   Chicken Road Game Website - Stylesheet
   Version 1.0 
   A retro-inspired design system with dynamic color transitions
   and tetradic color scheme
*/

/* ======= CSS Variables ======= */
:root {
  /* Primary Colors - Tetrad scheme */
  --primary-color-1: #FF5733;
  --primary-color-2: #C70039;
  --primary-color-3: #900C3F;
  --primary-color-4: #581845;
  
  /* Accent colors */
  --accent-color-1: #FFC300;
  --accent-color-2: #33FF57;
  --accent-color-3: #3933FF;
  --accent-color-4: #FF33E9;
  
  /* Neutral colors */
  --dark: #222222;
  --dark-medium: #333333;
  --medium: #666666;
  --light-medium: #999999;
  --light: #F5F5F5;
  --white: #FFFFFF;
  
  /* Gradients */
  --gradient-primary: linear-gradient(45deg, var(--primary-color-1), var(--primary-color-2), var(--primary-color-3), var(--primary-color-4));
  --gradient-secondary: linear-gradient(135deg, var(--primary-color-4), var(--primary-color-3), var(--primary-color-2), var(--primary-color-1));
  --gradient-accent: linear-gradient(90deg, var(--accent-color-1), var(--accent-color-3));
  --gradient-dark-overlay: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.3));
  
  /* Typography */
  --heading-font: 'Montserrat', sans-serif;
  --body-font: 'Merriweather', serif;
  
  /* Spacing */
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;
  --spacing-xxl: 5rem;
  
  /* Borders & Shadows */
  --border-radius-sm: 8px;
  --border-radius-md: 12px;
  --border-radius-lg: 20px;
  --border-radius-xl: 30px;
  --border-radius-pill: 50rem;
  
  --box-shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.1);
  --box-shadow-md: 0 10px 15px rgba(0, 0, 0, 0.1);
  --box-shadow-lg: 0 15px 25px rgba(0, 0, 0, 0.1);
  --box-shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.15);
  
  /* Animation timings */
  --transition-fast: 0.2s;
  --transition-medium: 0.3s;
  --transition-slow: 0.5s;
}

/* ======= Base Styles ======= */
html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--body-font);
  color: var(--dark-medium);
  line-height: 1.6;
  overflow-x: hidden;
  background-color: var(--white);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--heading-font);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--spacing-md);
  color: var(--dark);
}

p {
  margin-bottom: var(--spacing-md);
}

a {
  color: var(--primary-color-2);
  text-decoration: none;
  transition: all var(--transition-fast) ease;
}

a:hover {
  color: var(--primary-color-3);
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
}

.gradient-text {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ======= Typography Enhancements ======= */
.display-1, .display-2, .display-3, .display-4, .display-5, .display-6 {
  font-weight: 800;
  letter-spacing: -0.02em;
}

.lead {
  font-size: 1.2rem;
  font-weight: 300;
  line-height: 1.5;
}

.text-gradient {
  background-image: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ======= Layout Utilities ======= */
.divider {
  height: 4px;
  width: 70px;
  margin: 0 auto;
  border-radius: 2px;
}

.section-padding {
  padding: var(--spacing-xxl) 0;
}

/* ======= Buttons ======= */
.btn {
  font-family: var(--heading-font);
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  transition: all var(--transition-medium) ease;
  position: relative;
  overflow: hidden;
  box-shadow: var(--box-shadow-sm);
  border: none;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.2);
  transition: all var(--transition-fast) ease;
  z-index: 1;
}

.btn:hover::before {
  left: 100%;
}

.btn-lg {
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
}

.btn-warning {
  background-color: var(--accent-color-1);
  color: var(--dark);
}

.btn-warning:hover {
  background-color: var(--primary-color-1);
  color: var(--white);
  transform: translateY(-3px);
  box-shadow: var(--box-shadow-md);
}

.btn-outline-light {
  border: 2px solid var(--white);
  color: var(--white);
}

.btn-outline-light:hover {
  background-color: var(--white);
  color: var(--primary-color-2);
  transform: translateY(-3px);
  box-shadow: var(--box-shadow-md);
}

.btn-primary {
  background-image: var(--gradient-primary);
  color: var(--white);
}

.btn-primary:hover {
  background-image: var(--gradient-secondary);
  color: var(--white);
  transform: translateY(-3px);
  box-shadow: var(--box-shadow-md);
}

/* ======= Navbar ======= */
.navbar {
  transition: all var(--transition-medium) ease;
}

.navbar-brand {
  font-family: var(--heading-font);
  font-weight: 700;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
}

.navbar-brand img {
  transition: transform var(--transition-medium) ease;
}

.navbar-brand:hover img {
  transform: scale(1.1) rotate(5deg);
}

.navbar-nav .nav-link {
  font-family: var(--heading-font);
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 0 0.5rem;
  position: relative;
}

.navbar-nav .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--white);
  transition: width var(--transition-medium) ease;
}

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

.navbar-toggler {
  border: none;
  padding: 0.25rem;
}

.navbar-toggler:focus {
  box-shadow: none;
}

/* ======= Hero Section ======= */
#hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

#hero h1 {
  font-weight: 800;
  margin-bottom: var(--spacing-lg);
  position: relative;
  z-index: 1;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

#hero p {
  font-size: 1.2rem;
  margin-bottom: var(--spacing-xl);
  position: relative;
  z-index: 1;
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.3);
}

.hero-decoration {
  transform-origin: bottom;
  animation: wave 8s infinite ease-in-out;
}

@keyframes wave {
  0%, 100% {
    transform: scaleY(1);
  }
  50% {
    transform: scaleY(1.2);
  }
}

/* ======= About Section ======= */
#about .image-container {
  overflow: hidden;
  box-shadow: var(--box-shadow-lg);
  transform: perspective(1000px) rotateY(5deg);
  transition: all var(--transition-medium) ease;
}

#about .image-container:hover {
  transform: perspective(1000px) rotateY(0deg);
}

#about .image-container img {
  transition: all var(--transition-slow) ease;
}

#about .image-container:hover img {
  transform: scale(1.05);
}

/* ======= Features Section ======= */
#features {
  position: relative;
  overflow: hidden;
}

.feature-card {
  transition: all var(--transition-medium) ease;
  transform: translateY(0);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--box-shadow-xl);
}

.card-image {
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.card-image img {
  transition: all var(--transition-medium) ease;
  margin: 0 auto;
}

.feature-card:hover .card-image img {
  transform: scale(1.05);
}

.card-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* ======= Statistics Section ======= */
#statistics .card {
  transition: all var(--transition-medium) ease;
  overflow: hidden;
  position: relative;
  z-index: 1;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

#statistics .card::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(from 0deg at 50% 50%, transparent 0%, transparent 50%, rgba(255, 255, 255, 0.1) 50%, rgba(255, 255, 255, 0.1) 100%);
  z-index: -1;
  transform: rotate(0deg);
  animation: rotateConic 10s linear infinite;
}

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

#statistics .card:hover {
  transform: translateY(-5px);
  box-shadow: var(--box-shadow-lg);
}

#statistics .display-3 {
  font-size: 3rem;
  margin-bottom: 0.5rem;
}

/* ======= Timeline Section ======= */
#timeline {
  position: relative;
}

.timeline::before {
  content: '';
  position: absolute;
  height: 100%;
  width: 4px;
  background: var(--white);
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  border-radius: 2px;
  opacity: 0.3;
}

.timeline-item {
  position: relative;
  transition: all var(--transition-medium) ease;
  transform: perspective(1000px) rotateY(0deg);
  z-index: 1;
}

.timeline-item::before {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  background: var(--white);
  border-radius: 50%;
  top: 20px;
}

.timeline .row:nth-child(odd) .timeline-item::before {
  right: -30px;
}

.timeline .row:nth-child(even) .timeline-item::before {
  left: -30px;
}

.timeline-item:hover {
  transform: perspective(1000px) rotateY(2deg) translateY(-5px);
  box-shadow: var(--box-shadow-xl);
}

/* ======= Testimonials Section ======= */
#testimonials .card {
  transition: all var(--transition-medium) ease;
  position: relative;
  overflow: hidden;
  border-radius: var(--border-radius-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

#testimonials .card::before {
  content: '"';
  position: absolute;
  top: 10px;
  right: 15px;
  font-family: Georgia, serif;
  font-size: 100px;
  line-height: 1;
  color: rgba(0, 0, 0, 0.05);
  z-index: 0;
}

#testimonials .card:hover {
  transform: translateY(-10px);
  box-shadow: var(--box-shadow-xl);
}

#testimonials .card-image {
  padding: 20px;
  position: relative;
  z-index: 2;
  transition: all var(--transition-medium) ease;
}

#testimonials .card:hover .card-image {
  transform: scale(1.05);
}

#testimonials .card-image img {
  border: 5px solid var(--white);
  box-shadow: var(--box-shadow-sm);
  transition: all var(--transition-medium) ease;
}

#testimonials .card:hover .card-image img {
  box-shadow: var(--box-shadow-md);
}

/* ======= Team Section ======= */
#team .card {
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  transition: all var(--transition-medium) ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

#team .card-image {
  overflow: hidden;
  width: 100%;
}

#team .card-image img {
  transition: all var(--transition-medium) ease;
  width: 100%;
  height: auto;
  object-fit: cover;
}

#team .card:hover {
  transform: translateY(-10px);
  box-shadow: var(--box-shadow-xl);
}

#team .card:hover .card-image img {
  transform: scale(1.05);
}

#team .card-content {
  padding: 20px;
  text-align: center;
}

/* ======= Resources Section ======= */
#resources .card {
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  transition: all var(--transition-medium) ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

#resources .card-image {
  overflow: hidden;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

#resources .card-image img {
  transition: all var(--transition-medium) ease;
  width: 100%;
  height: 200px;
  object-fit: cover;
}

#resources .card:hover {
  transform: translateY(-10px);
  box-shadow: var(--box-shadow-xl);
}

#resources .card:hover .card-image img {
  transform: scale(1.05);
}

#resources .card-content {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
}

/* ======= Press Section ======= */
#press .card {
  transition: all var(--transition-medium) ease;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  height: 100%;
}

#press .card:hover {
  transform: translateY(-5px);
  box-shadow: var(--box-shadow-lg);
}

#press .card img {
  transition: all var(--transition-medium) ease;
  max-height: 60px;
  filter: grayscale(100%);
}

#press .card:hover img {
  filter: grayscale(0%);
  transform: scale(1.1);
}

/* ======= FAQ Section ======= */
#faq .accordion-item {
  margin-bottom: 15px;
  overflow: hidden;
}

#faq .accordion-button {
  font-family: var(--heading-font);
  font-weight: 600;
  box-shadow: none;
  border: none;
}

#faq .accordion-button:not(.collapsed) {
  background-color: var(--white);
  color: var(--primary-color-2);
}

#faq .accordion-button:focus {
  border-color: transparent;
  box-shadow: none;
  outline: none;
}

#faq .accordion-button::after {
  transition: all var(--transition-medium) ease;
}

#faq .accordion-button:not(.collapsed)::after {
  transform: rotate(180deg);
}

#faq .accordion-body {
  padding: 20px;
}

/* ======= Contact Section ======= */
#contact {
  position: relative;
  overflow: hidden;
}

#contact .form-control,
#contact .form-select {
  border: none;
  padding: 12px 20px;
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: var(--box-shadow-sm);
  transition: all var(--transition-medium) ease;
}

#contact .form-control:focus,
#contact .form-select:focus {
  box-shadow: var(--box-shadow-md);
  transform: translateY(-2px);
}

#contact textarea.form-control {
  min-height: 120px;
}

#contact .icon-box {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--box-shadow-sm);
  border-radius: 50%;
  transition: all var(--transition-medium) ease;
}

#contact .icon-box:hover {
  transform: translateY(-5px);
  box-shadow: var(--box-shadow-md);
}

/* ======= Footer ======= */
footer {
  position: relative;
  overflow: hidden;
  background-color: var(--dark);
}

footer h3, footer h4 {
  color: var(--white);
  margin-bottom: 20px;
}

footer p, footer ul {
  color: rgba(255, 255, 255, 0.7);
}

footer .social-links a {
  display: inline-block;
  margin-right: 15px;
  transition: all var(--transition-medium) ease;
  position: relative;
  padding-bottom: 2px;
  color: var(--white) !important;
  text-decoration: none;
}

footer .social-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--white);
  transition: width var(--transition-medium) ease;
}

footer .social-links a:hover {
  transform: translateY(-3px);
}

footer .social-links a:hover::after {
  width: 100%;
}

footer ul li a {
  color: rgba(255, 255, 255, 0.7);
  transition: all var(--transition-medium) ease;
  position: relative;
  display: inline-block;
  padding-left: 15px;
}

footer ul li a::before {
  content: '→';
  position: absolute;
  left: 0;
  opacity: 0;
  transition: all var(--transition-medium) ease;
}

footer ul li a:hover {
  color: var(--white);
  padding-left: 20px;
  text-decoration: none;
}

footer ul li a:hover::before {
  opacity: 1;
}

/* ======= Privacy & Terms Pages ======= */
.privacy-content, .terms-content {
  padding-top: 100px;
}

/* ======= Success Page ======= */
.success-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--gradient-primary);
  color: var(--white);
}

/* ======= Media Queries ======= */
@media (max-width: 991.98px) {
  .timeline::before {
    left: 15px;
  }
  
  .timeline-item::before {
    left: -30px !important;
    right: auto !important;
  }
  
  .timeline .row:nth-child(even) .timeline-item {
    margin-left: 40px;
  }
  
  .timeline .row:nth-child(odd) .timeline-item {
    margin-left: 40px;
  }
  
  #hero h1 {
    font-size: 2.5rem;
  }
  
  #hero p {
    font-size: 1rem;
  }
}

@media (max-width: 767.98px) {
  .display-3 {
    font-size: 2.5rem;
  }
  
  .display-4 {
    font-size: 2rem;
  }
}

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

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

.slide-right {
  animation: slideRight 0.8s ease-in-out;
}

.scale-in {
  animation: scaleIn 0.8s ease-in-out;
}

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

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

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

@keyframes scaleIn {
  from {
    transform: scale(0.8);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* ======= Additional Utilities ======= */
.shadow-hover {
  transition: box-shadow var(--transition-medium) ease, transform var(--transition-medium) ease;
}

.shadow-hover:hover {
  box-shadow: var(--box-shadow-lg);
  transform: translateY(-5px);
}

.rounded-custom {
  border-radius: var(--border-radius-lg);
}

/* ======= Read more link styles ======= */
.read-more {
  font-family: var(--heading-font);
  font-weight: 600;
  display: inline-block;
  position: relative;
  padding-right: 25px;
  color: var(--primary-color-2);
  transition: all var(--transition-medium) ease;
}

.read-more::after {
  content: '→';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  transition: all var(--transition-medium) ease;
}

.read-more:hover {
  color: var(--primary-color-3);
  text-decoration: none;
  padding-right: 30px;
}

.read-more:hover::after {
  right: -5px;
}