/**
 * Rafale Racing Website Styles
 * Author: Aadhav Kandasamy Suresh (aadhav@sirromey.dev)
 * Created: January 2025
 * Description: Main stylesheet for Rafale Racing website
 */

:root {
  --primary-color: #1e1e1e;
  --secondary-color: #ff0000;
  --background: #121212;
  --text-color: #e0e0e0;
  --accent-color: #c0c0c0;
  --transition: all 0.3s ease;
  --shadow: 0 5px 15px rgba(0,0,0,0.3);
  --border-radius: 15px;
}

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

html,
body {
  height: 100%;
  margin: 0;
  overflow-x: hidden;
}

body {
  font-family: "Arial", sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--background);
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
}

main {
  flex: 1 0 auto;
  margin-top: 64px; /* navbar height */
}

.home main {
  margin-top: 64px; /* navbar height */
  min-height: calc(100dvh - 64px - 56px); /* viewport height - navbar height - footer height */
  display: flex;
  align-items: center;
  justify-content: center;
}

.home .hero {
  width: 100%;
  min-height: calc(100dvh - 64px - 56px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem;
}

.hero-description {
  font-size: 1.4rem;
  color: var(--accent-color);
  line-height: 1.6;
  max-width: 600px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Navigation */
.navbar {
  background: var(--primary-color);
  padding: 0.5rem 2rem;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid var(--accent-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 2rem;
  height: 100%;
}

.nav-left a {
  display: flex;
  align-items: center;
  height: 100%;
}

.navbar .logo {
  max-height: 60px;
  width: auto;
  padding: 2px 0;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
  margin: 0;
  padding: 0;
  height: 100%;
  align-items: center;
}

.nav-links a {
  color: var(--text-color);
  text-decoration: none;
  font-weight: 500;
  font-size: 1.1rem;
  transition: color 0.3s ease, opacity 0.3s ease;
  display: inline-block;
  opacity: 0.8;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--secondary-color);
  opacity: 1;
}

.nav-social {
  display: flex;
  gap: 1.5rem;
}

.nav-social a {
  color: var(--text-color);
  font-size: 1.2rem;
  text-decoration: none;
  transition: var(--transition);
}

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

.nav-social-mobile {
  display: none;
}

.nav-social-desktop {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  height: 100%;
}

.nav-social-desktop a {
  font-size: 2.1rem;
  display: flex;
  align-items: center;
  height: 100%;
  transition: var(--transition);
  opacity: 0.8;
}

.nav-social-desktop a:hover {
  color: var(--secondary-color);
  opacity: 1;
}

.hamburger {
  display: none;
  cursor: pointer;
  background: none;
  border: none;
  padding: 10px;
  z-index: 1001;
}

.hamburger span {
  display: block;
  width: 25px;
  height: 3px;
  background: var(--text-color);
  margin: 5px 0;
  transition: var(--transition);
  transform-origin: center;
}

.hamburger.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Hero Section */
.hero {
  background: var(--background);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  padding: 0 1rem;
}

.hero-subtitle {
  font-size: 3.5rem;
  color: var(--accent-color);
  letter-spacing: 6px;
  font-weight: bold;
  text-transform: uppercase;
  margin-bottom: -0.5rem;
}

.logo-container {
  max-width: 400px;
  width: 100%;
}

.hero-logo {
  width: 100%;
  height: auto;
}

.hero-tagline {
  font-size: 1.2rem;
  color: var(--text-color);
  letter-spacing: 2px;
}

/* Footer */
footer {
  background: var(--primary-color);
  color: var(--text-color);
  padding: 1rem 2rem;
  border-top: 1px solid var(--accent-color);
  flex-shrink: 0;
}

.footer-content {
  text-align: center;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-text {
  font-size: 0.9rem;
  margin: 0;
}

/* About Page */
.about-section {
  padding: 4rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-content h1 {
  color: var(--text-color);
  margin-bottom: 2rem;
  font-size: 2.5rem;
}

.about-content p {
  margin-bottom: 1.5rem;
  color: var(--accent-color);
  line-height: 1.8;
}

.about-image {
  position: relative;
  overflow: hidden;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
}

.about-image img {
  width: 100%;
  height: auto;
  display: block;
}

.achievements {
  text-align: center;
  margin-top: 4rem;
  padding: 4rem 2rem;
  background: var(--primary-color);
  border-radius: var(--border-radius);
}

.achievements h2 {
  color: var(--text-color);
  margin-bottom: 3rem;
}

.achievement-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.achievement-card {
  background: var(--background);
  padding: 2rem;
  border-radius: var(--border-radius);
  text-align: center;
  box-shadow: var(--shadow);
}

.achievement-card i {
  color: var(--secondary-color);
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.achievement-card h3 {
  color: var(--text-color);
  margin-bottom: 1rem;
}

.achievement-card p {
  color: var(--accent-color);
}

/* Team Page */
.team-section {
  padding: 4rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.team-header {
  text-align: center;
  margin-bottom: 4rem;
}

.team-header h1 {
  color: var(--text-color);
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.team-header p {
  color: var(--accent-color);
  max-width: 600px;
  margin: 0 auto;
}

.team-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
}

.driver-card {
  width: calc(33.333% - 1.34rem);
  min-width: 300px;
}

@media (max-width: 768px) {
  .driver-card {
    width: 100%;
  }
}

.driver-card {
  background: var(--primary-color);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.driver-card:hover {
  transform: translateY(-10px);
}

.driver-image {
  position: relative;
  height: 300px;
  overflow: hidden;
}

.driver-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.driver-info {
  padding: 2rem;
}

.driver-info h2 {
  color: var(--text-color);
  margin-bottom: 0.5rem;
  font-size: 1.5rem;
}

.driver-position {
  color: var(--secondary-color);
  font-weight: 500;
  margin-bottom: 1rem;
  display: block;
}

.driver-social {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--accent-color);
  justify-content: center;
}

.driver-social a {
  color: var(--text-color);
  font-size: 1.2rem;
  transition: var(--transition);
}

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

/* Archive Page */
.archive-section {
  padding: 4rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.archive-header {
  text-align: center;
  margin-bottom: 4rem;
}

.archive-header h1 {
  color: var(--text-color);
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.archive-header p {
  color: var(--accent-color);
  max-width: 600px;
  margin: 0 auto;
}

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

.race-card {
  background: var(--primary-color);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

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

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

.race-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.race-info {
  padding: 1.5rem;
}

.race-date {
  color: var(--secondary-color);
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.race-title {
  color: var(--text-color);
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.race-info p {
  color: var(--accent-color);
}

.race-results {
  background: var(--background);
  padding: 1rem;
  border-radius: 10px;
  margin-top: 1rem;
}

.result-item {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
  color: var(--text-color);
}

.result-item:last-child {
  margin-bottom: 0;
}

.result-position {
  color: var(--secondary-color);
  font-weight: bold;
}

/* Gallery Page */
.gallery-section {
  padding: 4rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.gallery-header {
  text-align: center;
  margin-bottom: 4rem;
}

.gallery-header h1 {
  color: var(--text-color);
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.gallery-header p {
  color: var(--accent-color);
  max-width: 600px;
  margin: 0 auto;
}

.gallery-grid {
  margin: 0 auto;
}

.gallery-item {
  width: calc(25% - 1.125rem);
  margin-bottom: 1.5rem;
  background: var(--primary-color);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  position: relative;
  transition: var(--transition);
}

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

.gallery-item img {
  width: 100%;
  height: auto;
  display: block;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-item img.is-loaded {
  opacity: 1;
}

.gallery-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.8);
  padding: 1.2rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s;
}

.gallery-overlay h3 {
  font-size: 1.1rem;
  margin-bottom: 0.3rem;
}

.gallery-overlay p {
  font-size: 0.9rem;
  line-height: 1.4;
  margin: 0;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
  visibility: visible;
}

.gallery-sizer {
  width: calc(25% - 1.125rem);
}

.gallery-gutter {
  width: 1.5rem;
}

/* Sponsors Page */
.sponsors-section {
  padding: 4rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.sponsors-header {
  text-align: center;
  margin-bottom: 4rem;
}

.sponsors-header h1 {
  color: var(--text-color);
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.sponsors-header p {
  color: var(--accent-color);
  max-width: 600px;
  margin: 0 auto;
}

.current-sponsors {
  background: var(--primary-color);
  padding: 4rem 2rem;
  border-radius: var(--border-radius);
  margin-bottom: 4rem;
  text-align: center;
}

.sponsors-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-top: 2rem;
}

.sponsor-placeholder {
  background: var(--background);
  padding: 2rem;
  border-radius: var(--border-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 150px;
  color: var(--accent-color);
  font-style: italic;
}

.benefits-section {
  margin-top: 4rem;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 2rem;
}

.benefit-card {
  background: var(--primary-color);
  padding: 2rem;
  border-radius: var(--border-radius);
  text-align: center;
}

.benefit-card i {
  color: var(--secondary-color);
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.benefit-card h3 {
  color: var(--text-color);
  margin-bottom: 1rem;
}

.benefit-card p {
  color: var(--accent-color);
}

.cta-section {
  text-align: center;
  margin-top: 4rem;
  padding: 4rem 2rem;
  background: var(--primary-color);
  border-radius: var(--border-radius);
}

.cta-section h2 {
  color: var(--text-color);
  margin-bottom: 1.5rem;
}

.cta-section p {
  color: var(--accent-color);
  max-width: 600px;
  margin: 0 auto 2rem;
}

.cta-button {
  display: inline-block;
  padding: 1rem 2rem;
  background: var(--secondary-color);
  color: var(--text-color);
  text-decoration: none;
  border-radius: 5px;
  transition: var(--transition);
}

.cta-button:hover {
  background: #ff1a1a;
  transform: translateY(-2px);
}

/* Contact Page */
.contact-section {
  padding: 4rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.contact-header {
  text-align: center;
  margin-bottom: 3rem;
}

.contact-header h1 {
  color: var(--text-color);
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.contact-header p {
  color: var(--accent-color);
  max-width: 600px;
  margin: 0 auto;
}

.contact-form {
  max-width: 800px;
  margin: 0 auto;
  background: var(--primary-color);
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  color: var(--text-color);
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid var(--accent-color);
  border-radius: 5px;
  font-size: 1rem;
  background: var(--background);
  color: var(--text-color);
  transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--secondary-color);
  box-shadow: 0 0 0 2px rgba(255, 0, 0, 0.1);
}

.form-group textarea {
  height: 150px;
  resize: vertical;
}

.submit-btn {
  background: var(--secondary-color);
  color: var(--text-color);
  padding: 1rem 2rem;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 500;
  transition: var(--transition);
  width: 100%;
  position: relative;
}

.submit-btn .btn-text {
  display: inline-block;
  transition: opacity 0.3s ease;
}

.submit-btn:hover {
  background: #ff1a1a;
}

.submit-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.submit-btn .spinner {
  display: none;
  width: 20px;
  height: 20px;
  border: 2px solid var(--text-color);
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  margin: auto;
}

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

.form-message {
  margin-top: 1rem;
  padding: 1rem;
  border-radius: 5px;
  text-align: center;
  display: none;
}

.form-message.success {
  background: rgba(0, 255, 0, 0.1);
  color: #00ff00;
  border: 1px solid #00ff00;
}

.form-message.error {
  background: rgba(255, 0, 0, 0.1);
  color: #ff0000;
  border: 1px solid #ff0000;
}

.contact-info {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.contact-form {
  margin-top: 2rem;
}

.info-card {
  background: var(--primary-color);
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
}

.info-card h3 {
  color: var(--text-color);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.info-card i {
  color: var(--secondary-color);
}

.info-card p,
.info-card a {
  color: var(--accent-color);
  margin-bottom: 0.5rem;
  text-decoration: none;
  transition: var(--transition);
}

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

.social-links-contact {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
  justify-content: center;
}

.social-links-contact a {
  color: var(--text-color);
  font-size: 1.5rem;
  transition: var(--transition);
}

.social-links-contact a:hover {
  color: var(--secondary-color);
}

/* Lightbox */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  z-index: 2000;
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s;
}

.lightbox.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  color: var(--text-color);
  font-size: 24px;
  cursor: pointer;
  z-index: 2001;
  padding: 10px;
  transition: var(--transition);
}

.lightbox-close:hover {
  color: var(--secondary-color);
}

/* Swiper customization */
.swiper {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: calc(100dvh - 300px);
  margin: 0;
  padding: 0;
}

.swiper-slide {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}

.swiper-slide-container {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.image-perimeter {
  width: calc(min(1400px, 95vw) + 100px);
  height: calc(min(700px, calc(100dvh - 500px)) + 100px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.swiper-slide-container img {
  height: min(700px, calc(100dvh - 500px));
  width: auto;
  max-width: min(1400px, 95vw);
  object-fit: contain;
  display: block;
}

/* For landscape images that would be too wide */
.swiper-slide-container img.landscape {
  height: auto;
  max-height: min(700px, calc(100dvh - 500px));
  width: min(1400px, 95vw);
}

/* Adjust perimeter for landscape images */
.image-perimeter:has(img.landscape) {
  width: calc(min(1400px, 95vw) + 100px);
  height: calc(min(700px, calc(100dvh - 500px)) + 100px);
}

.swiper-button-next::after,
.swiper-button-prev::after {
  color: var(--text-color);
  font-size: 24px;
  transition: var(--transition);
}

.swiper-button-next:hover::after,
.swiper-button-prev:hover::after {
  color: var(--secondary-color);
}

/* Caption */
.lightbox-caption {
  position: absolute;
  bottom: 100px;
  left: 0;
  right: 0;
  text-align: center;
  padding: 20px;
  color: var(--text-color);
  z-index: 2001;
}

/* Lightbox bottom section */
.lightbox-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0 20px 20px;
  z-index: 2001;
}

.lightbox-caption h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.lightbox-caption p {
  color: var(--accent-color);
}

/* Thumbnail grid */
.thumbnail-container {
  overflow: hidden;
}

.thumbnail-grid {
  display: flex;
  gap: 2px;
  justify-content: center;
  flex-wrap: nowrap;
  max-height: 60px;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 0 20px;
}

.thumbnail-grid::-webkit-scrollbar {
  display: none;
}

.thumbnail-item {
  height: 60px;
  cursor: pointer;
  overflow: hidden;
  transition: var(--transition);
  flex-shrink: 0;
}

.thumbnail-item img {
  height: 100%;
  width: auto;
  object-fit: cover;
  opacity: 0.6;
  transition: var(--transition);
}

.thumbnail-item.active img {
  opacity: 1;
}

.thumbnail-item:hover {
  transform: translateY(-2px);
}

.thumbnail-item:hover img {
  opacity: 0.8;
}

.thumbnail-item.active:hover img {
  opacity: 1;
}

/* Media Queries */
/* Responsive breakpoints */
@media screen {
  /* Large screens */
  @media (max-width: 1200px) {
    .gallery-item,
    .gallery-sizer {
      width: calc(33.333% - 1rem);
    }
  }

  /* Medium screens */
  @media (max-width: 992px) {
    .sponsors-grid {
      grid-template-columns: repeat(3, 1fr);
    }
  }

  /* Tablet and mobile */
  @media (max-width: 768px) {
    /* Navigation */
    .navbar {
      padding: 1rem;
    }

    .nav-left {
      flex: 1;
    }

    .hamburger {
      display: block;
      margin-left: auto;
      margin-right: 1rem;
    }

    .nav-links {
      position: fixed;
      inset: 0 -100% 0 auto;
      width: 100%;
      height: 100dvh;
      background: var(--primary-color);
      flex-direction: column;
      padding: 4rem 2rem;
      text-align: center;
      transition: right 0.3s ease-in-out;
      z-index: 999;
      display: flex;
      justify-content: flex-start;
      overflow-y: auto; /* Enable vertical scrolling when content exceeds viewport */
    }

    .nav-links.active {
      right: 0;
    }

    .nav-links li {
      margin: 0.75rem 0;
      opacity: 0;
      transform: translateX(20px);
      transition: all 0.3s ease-in-out;
    }

    .nav-links.active li {
      opacity: 1;
      transform: translateX(0);
      transition-delay: 0.2s;
    }

    /* Social links */
    .nav-social-desktop {
      display: none;
    }

    .nav-social-mobile {
      display: block;
      margin-top: auto !important;
      padding-top: 2rem;
      border-top: 1px solid var(--accent-color);
    }

    .nav-social-mobile .nav-social {
      display: flex;
      justify-content: center;
      gap: 2rem;
    }

    .nav-social-mobile .nav-social a {
      font-size: 1.5rem;
      opacity: 0.8;
      transition: var(--transition);
    }

    .nav-social-mobile .nav-social a:hover {
      opacity: 1;
      color: var(--secondary-color);
    }

    /* Hero section */
    .home .hero {
      padding: 2rem;
      min-height: auto;
    }

    .hero-content {
      padding: 2rem 0;
      gap: 2rem;
    }

    .hero-subtitle {
      font-size: 2.5rem;
      letter-spacing: 4px;
    }

    .hero-description {
      font-size: 1.2rem;
      padding: 0 1rem;
    }

    /* Grids */
    .team-grid,
    .about-grid,
    .achievement-grid,
    .benefits-grid {
      grid-template-columns: 1fr;
    }

    .sponsors-grid {
      grid-template-columns: repeat(2, 1fr);
    }

    .driver-image {
      height: 250px;
    }

    .about-image {
      order: -1;
    }
  }

  /* Small screens */
  @media (max-width: 900px) {
    .gallery-item,
    .gallery-sizer {
      width: calc(50% - 0.75rem);
    }
  }

  /* Extra small screens */
  @media (max-width: 600px) {
    .gallery-item,
    .gallery-sizer {
      width: 100%;
    }
  }

  @media (max-width: 480px) {
    .sponsors-grid {
      grid-template-columns: 1fr;
    }
  }
}

@media screen and (orientation: landscape) and (max-height: 600px) {
  .home .hero {
    padding: 2rem;
    min-height: auto;
  }

  .hero-content {
    padding: 1rem 0;
    gap: 1.5rem;
  }

  .hero-subtitle {
    font-size: 2rem;
    margin-bottom: 0;
  }

  .logo-container {
    max-width: 300px;
  }

  .hero-description {
    font-size: 1.1rem;
  }

  /* Content pages */
  .about-section,
  .team-section,
  .archive-section,
  .gallery-section,
  .sponsors-section,
  .contact-section {
    padding: 2rem;
  }

  .team-header,
  .archive-header,
  .gallery-header,
  .sponsors-header,
  .contact-header {
    margin-bottom: 2rem;
  }

  .contact-form,
  .info-card {
    padding: 1.5rem;
  }

  .form-group {
    margin-bottom: 1rem;
  }

  .contact-info {
    margin-top: 2rem;
  }

  .about-grid,
  .team-grid,
  .race-grid,
  .gallery-grid,
  .sponsors-grid,
  .benefits-grid {
    gap: 1.5rem;
  }

  .achievement-grid {
    gap: 1.5rem;
  }

  .achievements {
    padding: 2rem;
    margin-top: 2rem;
  }

  .achievements h2 {
    margin-bottom: 1.5rem;
  }

  .current-sponsors {
    padding: 2rem;
    margin-bottom: 2rem;
  }

  .cta-section {
    padding: 2rem;
    margin-top: 2rem;
  }
}
