/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

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

body {
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
  color: #ffffff;
  background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 50%, #0a0a0a 100%);
  background-attachment: fixed;
  overflow-x: hidden;
  position: relative;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 20% 80%, rgba(99, 102, 241, 0.08) 0%, transparent 50%),
              radial-gradient(circle at 80% 20%, rgba(168, 85, 247, 0.08) 0%, transparent 50%);
  pointer-events: none;
  z-index: -1;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

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

@keyframes subtleGlow {
  0%, 100% {
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.3);
  }
  50% {
    box-shadow: 0 0 30px rgba(99, 102, 241, 0.5);
  }
}

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

/* Header */
.main-header {
  background: rgba(8, 8, 8, 0.98);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1100;
  box-shadow: 0 6px 30px rgba(0, 0, 0, 0.45);
  animation: fadeInUp 0.6s ease-out;
  height: 64px;
  display: flex;
  align-items: center;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
  gap: 2rem;
}

/* keep page content below fixed header */
main {
  padding-top: 80px;
}

/* Mobile nav toggle (hamburger) */
.nav-toggle {
  display: none;
  background: transparent;
  border: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.nav-toggle .hamburger,
.nav-toggle .hamburger::before,
.nav-toggle .hamburger::after {
  content: '';
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
}

.nav-toggle .hamburger::before {
  transform: translateY(-6px);
}

.nav-toggle .hamburger::after {
  transform: translateY(4px);
}

/* Show mobile toggle on small screens and hide full nav */
@media (max-width: 767px) {
  .nav-toggle { display: inline-flex; }
  .main-nav { display: none; }
  .main-nav.mobile-active { display: block; width: 100%; }
  main { padding-top: 72px; }
}

.logo h1 {
  color: #ffffff;
  font-family: 'Inter', sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.main-nav ul {
  display: flex;
  list-style: none;
  gap: 2.5rem;
}

.main-nav a {
  color: #ffffff;
  text-decoration: none;
  font-weight: 500;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  transition: all 0.3s ease;
  position: relative;
}

.main-nav a:hover,
.main-nav a.active {
  color: #6366f1;
}

.main-nav a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -5px;
  left: 0;
  background: linear-gradient(90deg, #6366f1, #a855f7);
  transition: width 0.3s ease;
}

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

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

.social-links img {
  width: 24px;
  height: 24px;
  transition: all 0.3s ease;
  opacity: 0.7;
}

.social-links img:hover {
  opacity: 1;
  transform: scale(1.05);
}

/* Hero Section */
.hero-section {
  padding: 0;
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-image: url('images/banner.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  width: 100%;
}

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

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.hero-content {
  text-align: center;
  animation: fadeInUp 1.5s ease-out 0.5s both;
  max-width: 800px;
  width: 100%;
  padding: 2rem;
  position: relative;
  z-index: 2;
}

.hero-title {
  font-family: 'Inter', sans-serif;
  font-size: 4rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 1rem;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.hero-subtitle {
  font-size: 1.3rem;
  color: #a1a1aa;
  margin-bottom: 2rem;
  font-weight: 400;
  line-height: 1.6;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.stat {
  text-align: center;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  backdrop-filter: blur(10px);
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: #6366f1;
  display: block;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.9rem;
  color: #a1a1aa;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 500;
}

.btn {
  display: inline-block;
  padding: 1rem 2rem;
  text-decoration: none;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  letter-spacing: -0.01em;
  border-radius: 8px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transition: left 0.5s;
}

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

.btn-primary {
  background: linear-gradient(135deg, #6366f1, #a855f7);
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(99, 102, 241, 0.4);
}

.btn-secondary {
  background: transparent;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.4);
}

/* Departments Section */
.departments-section {
  padding: 3rem 0;
  background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 100%);
  position: relative;
}

/* Socials Section */
.socials-section {
  padding: 3rem 0;
  background: #0a0a0a;
  position: relative;
}

.section-title {
  text-align: center;
  font-size: 3rem;
  font-weight: 700;
  color: #ffffff;
  font-family: 'Inter', sans-serif;
  margin-bottom: 1.5rem;
  animation: fadeInUp 1s ease-out;
  letter-spacing: -0.02em;
}

.departments-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 2rem;
  animation: fadeInUp 1s ease-out 0.2s both;
}

.department-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 2rem;
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.department-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(168, 85, 247, 0.1));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.department-card:hover::before {
  opacity: 1;
}

.department-card:hover {
  transform: translateY(-5px);
  border-color: rgba(99, 102, 241, 0.3);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.card-icon img,
.card-icon svg {
  display: block;
  margin-bottom: 1.5rem;
  transition: all 0.3s ease;
  width: 4rem;
  height: 4rem;
}

.department-card:hover .card-icon img,
.department-card:hover .card-icon svg {
  transform: scale(1.05);
}

.department-card h3 {
  font-size: 1.8rem;
  color: #ffffff;
  margin-bottom: 1rem;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
}

.department-card p {
  color: #a1a1aa;
  margin-bottom: 1.5rem;
  font-size: 1rem;
  line-height: 1.6;
}

.btn-card {
  background: transparent;
  color: #6366f1;
  border: 1px solid #6366f1;
  padding: 0.75rem 1.5rem;
  font-size: 0.9rem;
  border-radius: 8px;
}

.btn-card:hover {
  background: #6366f1;
  color: #ffffff;
}

/* Showcase Section */
.showcase-section {
  padding: 6rem 0;
  background: #0a0a0a;
}

.showcase-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  animation: fadeInUp 1s ease-out;
}

.showcase-item {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  transition: transform 0.3s ease;
}

.showcase-item:hover {
  transform: scale(1.02);
}

.showcase-item img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: filter 0.3s ease;
}

.showcase-item:hover img {
  filter: brightness(0.9);
}

.showcase-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
  padding: 2rem 1rem 1rem;
  color: #ffffff;
}

.showcase-overlay h4 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: #ffffff;
  font-weight: 600;
}

.showcase-overlay p {
  font-size: 0.9rem;
  color: #a1a1aa;
}

/* Features Section */
.features-section {
  padding: 3rem 0;
  background: linear-gradient(135deg, #1a1a2e 0%, #0a0a0a 100%);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  animation: fadeInUp 1s ease-out;
}

.feature-item {
  text-align: center;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.feature-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.05), rgba(168, 85, 247, 0.05));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.feature-item:hover::before {
  opacity: 1;
}

.feature-item:hover {
  transform: translateY(-5px);
  border-color: rgba(99, 102, 241, 0.2);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.feature-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  display: block;
}

.feature-item h4 {
  font-size: 1.5rem;
  color: #ffffff;
  margin-bottom: 1rem;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
}

.feature-item p {
  color: #a1a1aa;
  font-size: 1rem;
  line-height: 1.6;
}

/* CTA Section */
.cta-section {
  padding: 3rem 0;
  background: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
  position: relative;
  overflow: hidden;
  text-align: center;
}

.cta-content {
  text-align: center;
  position: relative;
  z-index: 2;
  animation: fadeInUp 1s ease-out;
}

.cta-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  overflow: hidden;
}

.cta-section h2 {
  font-size: 3rem;
  color: #ffffff;
  margin-bottom: 1rem;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.cta-section p {
  font-size: 1.3rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-cta-primary {
  background: #ffffff;
  color: #6366f1;
  border: none;
}

.btn-cta-primary:hover {
  background: rgba(255, 255, 255, 0.9);
}

.btn-cta-secondary {
  background: transparent;
  color: #ffffff;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-cta-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.5);
}

/* Page Hero */
.page-hero {
  padding: 6rem 0 4rem;
  background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 100%);
  text-align: center;
  animation: fadeInUp 1s ease-out;
}

.page-hero h1 {
  font-size: 4rem;
  font-weight: 800;
  color: #ffffff;
  font-family: 'Inter', sans-serif;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
}

.page-hero p {
  font-size: 1.5rem;
  color: #a1a1aa;
  font-weight: 400;
}

.content-section {
  padding: 4rem 0;
  background: #0a0a0a;
  text-align: center;
}

.content-section .lead {
  text-align: center;
  color: #a1a1aa;
  font-size: 1.1rem;
  line-height: 1.6;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 2rem;
}

.content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  animation: fadeInUp 1s ease-out;
}

.content-text h2 {
  font-size: 2.5rem;
  color: #ffffff;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

.content-text p {
  color: #a1a1aa;
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 1rem;
}

.content-image img {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Gallery Section */
.gallery-section {
  padding: 4rem 0;
  background: #1a1a2e;
}

.gallery-section h2 {
  text-align: center;
  font-size: 2.5rem;
  color: #ffffff;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  margin-bottom: 3rem;
  letter-spacing: -0.02em;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
  animation: fadeInUp 1s ease-out;
}

.gallery-grid img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  transition: transform 0.3s ease;
}

.gallery-grid img:hover {
  transform: scale(1.03);
}

/* Drivers Section */
.drivers-section {
  padding: 4rem 0;
  background: #0a0a0a;
}

.drivers-section h2 {
  text-align: center;
  font-size: 2.5rem;
  color: #ffffff;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  margin-bottom: 3rem;
  letter-spacing: -0.02em;
}

.drivers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  animation: fadeInUp 1s ease-out;
}

.driver-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
  transition: all 0.3s ease;
}

.driver-card:hover {
  transform: translateY(-5px);
  border-color: rgba(99, 102, 241, 0.3);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.driver-card img {
  width: 120px;
  height: 120px;
  border-radius: 12px;
  margin-bottom: 1rem;
  border: 2px solid rgba(99, 102, 241, 0.2);
  object-fit: cover;
  transition: all 0.3s ease;
}

.driver-card:hover img {
  border-color: #6366f1;
  transform: scale(1.05);
}

.driver-card h4 {
  color: #ffffff;
  margin-bottom: 0.5rem;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
}

.driver-card p {
  color: #a1a1aa;
  font-size: 0.9rem;
}

/* Sponsors Section */
.sponsors-section {
  padding: 4rem 0;
  background: #1a1a2e;
}

.sponsors-section h2 {
  text-align: center;
  font-size: 2.5rem;
  color: #ffffff;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  margin-bottom: 3rem;
  letter-spacing: -0.02em;
}

.sponsors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  animation: fadeInUp 1s ease-out;
}

.sponsor-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 2.5rem;
  text-align: center;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 320px;
  backdrop-filter: blur(10px);
}

.sponsor-card:hover {
  transform: translateY(-8px);
  border-color: rgba(99, 102, 241, 0.4);
  box-shadow: 0 15px 40px rgba(99, 102, 241, 0.2);
  background: rgba(255, 255, 255, 0.08);
}

.sponsor-card img {
  width: 100px;
  height: 100px;
  margin: 0 auto 1rem auto;
  object-fit: contain;
}

.sponsor-card h4 {
  color: #ffffff;
  margin-bottom: 1rem;
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: -0.01em;
}

.sponsor-card .price {
  color: #6366f1;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.sponsor-card p {
  color: #a1a1aa;
  margin-bottom: 1.5rem;
  line-height: 1.5;
  font-size: 0.95rem;
}

/* Contact Section */
.contact-section {
  padding: 4rem 0;
  background: #0a0a0a;
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  animation: fadeInUp 1s ease-out;
}

.contact-info h2 {
  font-size: 2.5rem;
  color: #ffffff;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

.contact-info p {
  color: #a1a1aa;
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 2rem;
}

.contact-details {
  display: grid;
  gap: 1.5rem;
}

.detail h4 {
  color: #6366f1;
  margin-bottom: 0.5rem;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
}

.detail p {
  color: #ffffff;
  margin-bottom: 0.5rem;
}

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

.social-links-inline img {
  width: 30px;
  height: 30px;
}

.contact-form {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 2rem;
}

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

.form-group label {
  display: block;
  color: #ffffff;
  margin-bottom: 0.5rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: #ffffff;
  font-family: 'Inter', sans-serif;
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

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

.btn-form {
  width: 100%;
  background: linear-gradient(135deg, #6366f1, #a855f7);
  color: #ffffff;
  border: none;
  padding: 1rem;
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-form:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(99, 102, 241, 0.3);
}

/* Footer */
.main-footer {
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(20px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 2rem 0;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-logo h3 {
  color: #ffffff;
  font-family: 'Inter', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
}

.footer-logo p {
  color: #6366f1;
  font-size: 0.9rem;
}

.footer-nav ul {
  display: flex;
  list-style: none;
  gap: 1.5rem;
}

.footer-nav a {
  color: #a1a1aa;
  text-decoration: none;
  transition: color 0.3s ease;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
}

.footer-nav a:hover {
  color: #6366f1;
}

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

.footer-social img {
  width: 24px;
  height: 24px;
  transition: all 0.3s ease;
  opacity: 0.7;
}

.footer-social img:hover {
  opacity: 1;
  transform: scale(1.05);
}

.footer-bottom {
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1rem;
  color: #71717a;
  font-size: 0.9rem;
}

/* Responsive Design */

/* Extra Large Tablets (1024px and above) */
@media (max-width: 1024px) {
  .container {
    max-width: 960px;
    padding: 0 15px;
  }

  .section-title {
    font-size: 2.5rem;
  }

  .hero-title {
    font-size: 3.2rem;
  }

  .departments-grid {
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  }
}

/* Tablets (768px to 1023px) */
@media (max-width: 1023px) {
  .logo h1 {
    font-size: 1.5rem;
  }

  .main-nav ul {
    gap: 1.2rem;
  }

  .main-nav a {
    font-size: 0.85rem;
  }

  .social-links {
    gap: 0.75rem;
  }

  .social-links img {
    width: 20px;
    height: 20px;
  }

  .hero-section {
    padding: 0;
    min-height: 70vh;
    background-size: cover;
    background-position: center;
  }

  .hero-title {
    font-size: 2.8rem;
    margin-bottom: 0.75rem;
  }

  .hero-subtitle {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
  }

  .hero-stats {
    gap: 1.5rem;
  }

  .stat {
    padding: 1rem;
  }

  .stat-number {
    font-size: 2rem;
  }

  .stat-label {
    font-size: 0.8rem;
  }

  .section-title {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
  }

  .departments-grid,
  .features-grid,
  .drivers-grid,
  .sponsors-grid {
    gap: 1.5rem;
  }

  .department-card {
    padding: 1.5rem;
  }

  .department-card h3 {
    font-size: 1.5rem;
  }

  .department-card p {
    font-size: 0.95rem;
  }

  .btn {
    padding: 0.85rem 1.75rem;
    font-size: 0.95rem;
  }

  .btn-card {
    padding: 0.65rem 1.25rem;
    font-size: 0.85rem;
  }

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

  .content-grid {
    gap: 1.5rem;
  }

  .footer-content {
    gap: 1.5rem;
  }
}

/* Large Mobile Devices (481px to 767px) */
@media (max-width: 767px) {
  html {
    font-size: 14px;
  }

  .container {
    padding: 0 10px;
  }

  .header-content {
    padding: 0.5rem 0;
    gap: 0.4rem;
  }

  .logo h1 {
    font-size: 1.2rem;
    flex: 1;
  }

  .main-nav {
    width: 100%;
    order: 3;
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }

  .main-nav ul {
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 0.5rem;
  }

  .main-nav a {
    font-size: 0.75rem;
    padding: 0.4rem 0.6rem;
  }

  .social-links {
    gap: 0.5rem;
    order: 2;
  }

  .social-links img {
    width: 16px;
    height: 16px;
  }

  .hero-section {
    padding: 0;
    min-height: 65vh;
    background-size: cover;
    background-position: center;
  }

  .hero-content {
    padding: 2rem 0.5rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .hero-title {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
  }

  .hero-subtitle {
    font-size: 0.85rem;
    margin-bottom: 1rem;
    display: block;
  }

  .hero-stats {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 0.5rem;
    margin-bottom: 1rem;
  }

  .stat {
    padding: 0.6rem 0.4rem;
  }

  .stat-number {
    font-size: 1.4rem;
  }

  .stat-label {
    font-size: 0.65rem;
  }

  .hero-buttons {
    flex-direction: column;
    gap: 0.6rem;
  }

  .btn {
    padding: 0.6rem 1.2rem;
    font-size: 0.8rem;
    width: 100%;
  }

  .btn-card {
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
  }

  .section-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
  }

  .departments-grid {
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }

  .department-card {
    padding: 0.9rem;
  }

  .card-icon span {
    font-size: 2.8rem !important;
  }

  .card-icon img,
  .card-icon svg {
    width: 2.8rem;
    height: 2.8rem;
  }

  .department-card h3 {
    font-size: 1.05rem;
    margin-bottom: 0.5rem;
  }

  .department-card p {
    font-size: 0.8rem;
    margin-bottom: 0.8rem;
  }

  /* Show socials on large mobile in compact form */
  .socials-section {
    display: block;
    padding: 0.6rem 0;
  }
  .socials-section .department-card {
    display: flex;
    align-items: center;
    gap: 0.8rem;
  }

  .features-grid {
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }

  .feature-item {
    padding: 0.8rem;
  }

  .feature-icon {
    font-size: 2rem;
  }

  .feature-item h4 {
    font-size: 0.95rem;
    margin-bottom: 0.3rem;
  }

  .feature-item p {
    font-size: 0.8rem;
  }

  .content-section {
    padding: 1.5rem 0;
  }

  .content-grid {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }

  .content-text h2 {
    font-size: 1.5rem;
    margin-bottom: 0.8rem;
  }

  .content-text p {
    font-size: 0.8rem;
    margin-bottom: 0.8rem;
  }

  /* Hide large images on mobile */
  .content-image {
    display: none;
  }

  .page-hero {
    padding: 1.5rem 0;
  }

  .page-hero h1 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
  }

  .page-hero p {
    font-size: 0.85rem;
  }

  .gallery-section {
    padding: 1.5rem 0;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.6rem;
  }

  .gallery-grid img {
    height: 140px;
  }

  .drivers-section {
    padding: 1.5rem 0;
  }

  .drivers-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.7rem;
  }

  .driver-card {
    padding: 0.8rem;
  }

  .driver-card img {
    height: 120px;
     margin-right: auto;
     margin-left: auto;
  }

  .driver-card h4 {
    font-size: 0.9rem;
    margin: 0.4rem 0 0.25rem;
  }

  .driver-card p {
    font-size: 0.7rem;
  }

  .showcase-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.7rem;
  }

  .showcase-item img {
    height: 140px;
  }

  .showcase-overlay {
    padding: 0.9rem 0.6rem 0.6rem;
  }

  .showcase-overlay h4 {
    font-size: 0.9rem;
    margin-bottom: 0.2rem;
  }

  .showcase-overlay p {
    font-size: 0.75rem;
  }

  .cta-section {
    padding: 1.5rem 0;
  }

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

  .cta-content p {
    font-size: 0.8rem;
    margin-bottom: 1rem;
  }

  .cta-buttons {
    flex-direction: column;
    gap: 0.7rem;
  }

  .btn-cta-primary,
  .btn-cta-secondary {
    padding: 0.6rem 1.2rem;
    font-size: 0.8rem;
  }

  .main-footer {
    padding: 1.5rem 0;
  }

  .footer-content {
    gap: 1rem;
    flex-direction: column;
  }

  .footer-logo h3 {
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
  }

  .footer-logo p {
    font-size: 0.75rem;
  }

  .footer-nav ul {
    flex-wrap: wrap;
    gap: 0.6rem;
  }

  .footer-nav a {
    font-size: 0.75rem;
  }

  .footer-social {
    justify-content: center;
    gap: 0.7rem;
  }

  .footer-social img {
    width: 18px;
    height: 18px;
  }

  .footer-bottom {
    font-size: 0.75rem;
    padding-top: 0.75rem;
  }

  .contact-content {
    gap: 1.2rem;
  }

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

  .form-group label {
    font-size: 0.8rem;
  }

  .form-group input,
  .form-group textarea {
    font-size: 0.9rem;
    padding: 0.5rem;
  }

  .sponsors-grid {
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }

  .sponsor-card {
    padding: 0.8rem;
  }

  .sponsor-card img {
    height: 100px;
  }

  .sponsor-card h3 {
    font-size: 1rem;
  }

  .sponsor-card p {
    font-size: 0.8rem;
  }
}

/* Small Mobile Devices (320px to 480px) - OPTIMIZED COMPACT LAYOUT */
@media (max-width: 480px) {
  html {
    font-size: 13px;
  }

  .container {
    padding: 0 8px;
    max-width: 100%;
    overflow-x: hidden;
  }

  body {
    font-size: 13px;
    overflow-x: hidden;
  }

  /* Global text wrapping for mobile */
  h1, h2, h3, h4, h5, h6 {
    word-break: break-word;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }

  p {
    word-break: break-word;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }

  /* ===== HEADER OPTIMIZATION ===== */
  .main-header {
    padding: 0.4rem 0;
  }

  .header-content {
    padding: 0.3rem 0;
    gap: 0.3rem;
  }

  .logo h1 {
    font-size: 0.95rem;
    margin: 0;
    white-space: nowrap;
    flex-shrink: 0;
  }

  .main-nav {
    display: none; /* Hide full nav on mobile */
    width: 100%;
    order: 3;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
  }

  .main-nav.mobile-active {
    display: block;
    width: 100%;
    background: rgba(8, 8, 8, 0.98);
    box-shadow: 0 8px 30px rgba(0,0,0,0.45);
    padding: 0.8rem 0;
    z-index: 1000;
  }

  .main-nav ul {
    flex-direction: column;
    gap: 0;
    padding: 0;
    list-style: none;
  }

  .main-nav li {
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }

  .main-nav li:last-child {
    border-bottom: none;
  }

  .main-nav a {
    display: block;
    text-align: center;
    font-size: 0.88rem;
    padding: 0.75rem 0;
    border-radius: 0;
    white-space: normal;
    word-wrap: break-word;
    color: #ffffff;
  }

  .main-nav a::after {
    display: none;
  }

  .main-nav a:hover,
  .main-nav a.active {
    background: rgba(99, 102, 241, 0.15);
    border-radius: 4px;
  }

  .social-links {
    gap: 0.5rem;
    order: 2;
    align-items: center;
  }

  .social-links img {
    width: 14px;
    height: 14px;
  }

  /* improve tappable/social label layout on very small screens */
  .social-links a {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.22rem 0.35rem;
    border-radius: 6px;
    background: rgba(255,255,255,0.02);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 0.78rem;
  }

  /* ===== HERO SECTION COMPACT ===== */
  .hero-section {
    padding: 0;
    height: 70vh;
    background-size: cover;
    background-position: center;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
  }

  .hero-section::before {
    background: rgba(0, 0, 0, 0.6);
  }

  .hero-section .container {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .hero-content {
    padding: 1.5rem;
    max-width: 100%;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
  }

  .hero-title {
    font-size: 1.35rem;
    margin-bottom: 0.5rem;
    line-height: 1.3;
    word-break: break-word;
    word-wrap: break-word;
  }

  .hero-subtitle {
    font-size: 0.75rem;
    margin-bottom: 0.75rem;
    display: block;
    line-height: 1.4;
  }

  .hero-stats {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 0.4rem;
    margin-bottom: 0.75rem;
  }

  .stat {
    padding: 0.4rem 0.3rem;
    border-radius: 5px;
  }

  .stat-number {
    font-size: 1.2rem;
    margin-bottom: 0.1rem;
  }

  .stat-label {
    font-size: 0.55rem;
    letter-spacing: 0.2px;
  }

  .hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
  }

  .btn {
    padding: 0.55rem 1rem;
    font-size: 0.75rem;
    width: 100%;
    text-align: center;
    border-radius: 6px;
  }

  .btn-primary {
    padding: 0.6rem 1rem;
  }

  .btn-card {
    padding: 0.45rem 0.9rem;
    font-size: 0.7rem;
  }

  /* ===== SECTIONS OPTIMIZATION ===== */
  .departments-section,
  .socials-section,
  .features-section,
  .cta-section {
    padding: 1rem 0;
  }

  .section-title {
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
    line-height: 1.3;
    word-break: break-word;
  }

  .departments-grid {
    grid-template-columns: 1fr;
    gap: 0.6rem;
  }

  .department-card {
    padding: 0.9rem 0.8rem;
    border-radius: 8px;
    text-align: center;
  }

  .department-card a {
    display: inline-block;
  }

  .card-icon {
    margin-bottom: 0.5rem;
  }

  .card-icon span {
    font-size: 2.5rem !important;
  }

  .card-icon img,
  .card-icon svg {
    width: 2.5rem;
    height: 2.5rem;
    margin-bottom: 0.5rem;
  }

  .department-card h3 {
    font-size: 1.05rem;
    margin-bottom: 0.4rem;
    line-height: 1.3;
    word-break: break-word;
  }

  .department-card p {
    font-size: 0.78rem;
    margin-bottom: 0.6rem;
    line-height: 1.45;
    word-break: break-word;
  }

  /* ===== SHOW SOCIALS SECTION ON MOBILE (compact) ===== */
  .socials-section {
    display: block;
    padding: 0.6rem 0;
  }
  .socials-section .department-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.8rem;
    text-align: center;
  }
  .socials-section .department-card .card-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .socials-section .department-card .card-icon img,
  .socials-section .department-card .card-icon svg {
    width: 56px !important;
    height: 56px !important;
    margin-bottom: 0 !important;
  }
  /* avoid aggressive word-breaking inside the socials listing */
  .socials-section .department-card h3,
  .socials-section .department-card p {
    word-break: normal;
    overflow-wrap: normal;
    hyphens: none;
  }

  /* ===== FEATURES GRID COMPACT ===== */
  .features-grid {
    grid-template-columns: 1fr;
    gap: 0.6rem;
  }

  .feature-item {
    padding: 0.85rem;
    text-align: center;
  }

  .feature-icon {
    font-size: 1.8rem;
    margin-bottom: 0.4rem;
  }

  .feature-item h4 {
    font-size: 0.95rem;
    margin-bottom: 0.3rem;
    line-height: 1.3;
    word-break: break-word;
  }

  .feature-item p {
    font-size: 0.78rem;
    line-height: 1.45;
    word-break: break-word;
  }

  /* ===== CONTENT PAGES OPTIMIZATION ===== */
  .content-section {
    padding: 1rem 0;
  }

  .content-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .content-text h2 {
    font-size: 1.35rem;
    margin-bottom: 0.6rem;
    line-height: 1.3;
    word-break: break-word;
    text-align: center;
  }

  .content-text p {
    font-size: 0.78rem;
    margin-bottom: 0.6rem;
    line-height: 1.45;
    word-break: break-word;
    text-align: center;
  }

  .content-image {
    display: none; /* Hide large images on mobile */
  }

  .page-hero {
    padding: 1.2rem 0.5rem;
    background: rgba(99, 102, 241, 0.05);
    text-align: center;
  }

  .page-hero h1 {
    font-size: 1.35rem;
    margin-bottom: 0.4rem;
    line-height: 1.3;
    word-break: break-word;
  }

  .page-hero p {
    font-size: 0.8rem;
    line-height: 1.4;
    word-break: break-word;
  }

  /* ===== GALLERY OPTIMIZATION ===== */
  .gallery-section {
    padding: 1rem 0;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
  }

  .gallery-grid img {
    height: 120px;
  }

  /* ===== DRIVER CARDS COMPACT ===== */
  .drivers-section {
    padding: 1rem 0;
  }

  .drivers-section h2 {
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
    line-height: 1.3;
    word-break: break-word;
  }

  .drivers-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
  }

  .driver-card {
    padding: 0.8rem;
    border-radius: 8px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .driver-card img {
    height: 100px;
    margin-bottom: 0.5rem;
     margin-right: auto;
     margin-left: auto;
  }

  .driver-card h4 {
    font-size: 0.88rem;
    margin: 0 0 0.15rem;
    line-height: 1.3;
    word-break: break-word;
  }

  .driver-card p {
    font-size: 0.68rem;
    line-height: 1.35;
    word-break: break-word;
  }

  /* ===== SHOWCASE COMPACT ===== */
  .showcase-item img {
    height: 120px;
  }

  .showcase-overlay {
    padding: 0.75rem 0.5rem 0.5rem;
  }

  .showcase-overlay h4 {
    font-size: 0.85rem;
    margin-bottom: 0.15rem;
    line-height: 1.3;
    word-break: break-word;
  }

  .showcase-overlay p {
    font-size: 0.72rem;
    line-height: 1.3;
    word-break: break-word;
  }

  /* ===== CTA SECTION ===== */
  .cta-section {
    padding: 1.2rem 0.5rem;
  }

  .cta-content h2 {
    font-size: 1.35rem;
    margin-bottom: 0.5rem;
    line-height: 1.3;
    word-break: break-word;
  }

  .cta-content p {
    font-size: 0.8rem;
    margin-bottom: 0.8rem;
    line-height: 1.4;
    word-break: break-word;
  }

  .cta-buttons {
    flex-direction: column;
    gap: 0.6rem;
  }

  .btn-cta-primary,
  .btn-cta-secondary {
    padding: 0.6rem 1rem;
    font-size: 0.75rem;
  }

  /* ===== FOOTER OPTIMIZATION ===== */
  .main-footer {
    padding: 1rem 0;
  }

  .footer-content {
    gap: 0.8rem;
    flex-direction: column;
  }

  .footer-logo h3 {
    font-size: 1.05rem;
    margin-bottom: 0.25rem;
    line-height: 1.3;
    word-break: break-word;
  }

  .footer-logo p {
    font-size: 0.75rem;
    line-height: 1.3;
  }

  .footer-nav ul {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
  }

  .footer-nav a {
    font-size: 0.72rem;
    padding: 0.25rem 0.5rem;
    line-height: 1.3;
    word-break: break-word;
  }

  .footer-social {
    justify-content: center;
    gap: 0.6rem;
  }

  .footer-social img {
    width: 16px;
    height: 16px;
  }

  .footer-bottom {
    font-size: 0.68rem;
    padding-top: 0.6rem;
    line-height: 1.35;
    word-break: break-word;
  }

  /* ===== FORMS ===== */
  .contact-content {
    gap: 1rem;
  }

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

  .form-group label {
    font-size: 0.75rem;
  }

  .form-group input,
  .form-group textarea {
    font-size: 0.85rem;
    padding: 0.4rem;
  }

  /* ===== UNIVERSAL IMAGE OPTIMIZATION ===== */
  img {
    max-width: 100%;
    height: auto;
    display: block;
  }

  /* ===== TOUCH TARGET ACCESSIBILITY ===== */
  a, button {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  /* ===== REDUCE ANIMATION ON MOBILE ===== */
  * {
    animation-duration: 0.5s !important;
    transition-duration: 0.3s !important;
  }
}