/* ==========================================
   MINAUTOR RACING TEAM - GLOBAL STYLES
   ========================================== */

/* Loading Screen */
.page-loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--color-bg);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.page-loader.hidden {
  opacity: 0;
  visibility: hidden;
}

.loader-icon {
  width: 80px;
  height: 80px;
  animation: rotate 1.5s linear infinite;
}

@keyframes rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* CSS Variables */
:root {
  --color-bg: #0B0B0B;
  --color-text: #FFFFFF;
  --color-text-muted: #B0B0B0;
  --color-accent: #7c5d31;
  --color-accent-hover: #bc9155;
  --font-display: 'Oswald', sans-serif;
  --font-body: 'Inter', sans-serif;
  --transition: all 0.3s ease;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Skip to content link for accessibility */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--color-accent);
  color: white;
  padding: 8px;
  text-decoration: none;
  z-index: 100;
}

.skip-link:focus {
  top: 0;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 2px;
}

h1 {
  font-size: clamp(2rem, 5vw, 4rem);
}

h2 {
  font-size: clamp(1.75rem, 4vw, 3rem);
}

h3 {
  font-size: clamp(1.25rem, 3vw, 2rem);
}

p {
  margin-bottom: 1rem;
}

a {
  color: var(--color-text);
  text-decoration: none;
  transition: var(--transition);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ==========================================
   HEADER & NAVIGATION
   ========================================== */

.header {
  position: sticky;
  top: 0;
  background-color: #000000;
  backdrop-filter: blur(10px);
  z-index: 1000;
  padding: 1rem 2rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

/* Prevent horizontal overflow on small devices */
html, body {
  overflow-x: hidden;
}

.header-container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  height: 50px;
}

.logo img {
  height: 100%;
  width: auto;
  object-fit: contain;
}

/* Make images responsive to avoid overflow */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Fallback text style if image doesn't load */
.logo-text {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--color-text);
}

.logo-text span {
  color: var(--color-accent);
}

/* Desktop Navigation */
.nav {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav a {
  font-weight: 500;
  position: relative;
  padding: 0.5rem 0;
  transition: var(--transition);
}

.nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-accent);
  transition: width 0.3s ease;
}

.nav a:hover::after,
.nav a.active::after {
  width: 100%;
}

.nav a:hover,
.nav a.active {
  color: rgb();
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--color-text);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 1001;
}

.menu-toggle:focus {
  outline: 2px solid var(--color-accent);
  outline-offset: 4px;
}

/* Mobile Navigation */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
    order: 2;
    margin-left: auto;
  }

  .logo {
    order: 1;
  }

  .nav {
    position: fixed;
    top: 0;
    right: 0;
    left: auto;
    height: 100vh;
    width: 70%;
    max-width: 300px;
    background-color: rgb(0, 0, 0); 
    flex-direction: column;
    padding: 5rem 2rem 2rem;
    gap: 1.5rem;
    transform: translate3d(100%, 0, 0);
    will-change: transform;
    transition: transform 0.3s ease;
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.5);
    overflow-y: auto; /* allow internal scrolling without expanding page width */
  }

  .nav.open {
    transform: translateX(0);
  }

  .nav a {
    font-size: 1.25rem;
  }
}

/* ==========================================
   BUTTONS & CTAs
   ========================================== */

.btn {
  display: inline-block;
  padding: 1rem 2.5rem;
  background-color: var(--color-accent);
  color: var(--color-text);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(124, 93, 49, 0.3);
}

.btn:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(124, 93, 49, 0.5);
  background-color: var(--color-accent-hover);
}

.btn:focus {
  outline: 2px solid var(--color-accent);
  outline-offset: 4px;
}

.btn-secondary {
  background-color: transparent;
  border: 2px solid var(--color-text);
}

.btn-secondary:hover {
  background-color: var(--color-text);
  color: var(--color-bg);
}

/* ==========================================
   HERO SECTION
   ========================================== */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url('../hero.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: brightness(0.40);
  z-index: -1;
}

.hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(124, 93, 49, 0.1), rgba(11, 11, 11, 0.3));
  z-index: -1;
}

.hero-about::before {
  background-image: url('../img/about.avif');
}

.hero-calendar::before {
  background-image: url('../img/calendar.avif');
}

.hero-subteams::before {
  background-image: url('../img/subteams.jpg');
  
}

.hero-calendar {
  min-height: 70vh;
}

.hero-content {
  max-width: 1200px;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.hero-content.in {
  opacity: 1;
  transform: translateY(0);
}

.hero-motif {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 7rem);
  font-weight: 900;
  line-height: 0.9;
  margin-bottom: 2rem;
  letter-spacing: 3px;
}

.hero-motif span {
  display: block;
  background: linear-gradient(90deg, #FFFFFF, #7c5d31);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero h1 {
  margin-bottom: 1rem;
  text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.8);
}

.hero-subline {
  font-size: clamp(1rem, 2vw, 1.5rem);
  color: var(--color-text-muted);
  margin-bottom: 2rem;
  font-weight: 300;
}

/* ==========================================
   MAIN CONTENT SECTIONS
   ========================================== */

.section {
  padding: 5rem 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 100px;
  height: 4px;
  background-color: var(--color-accent);
  margin: 1rem auto 0;
}

/* ==========================================
   ABOUT PAGE - INTRO
   ========================================== */

.about-intro {
  max-width: 800px;
  margin: 0 auto 4rem;
  text-align: center;
  font-size: 1.125rem;
  line-height: 1.8;
  color: var(--color-text-muted);
}

/* ==========================================
   ABOUT PAGE - CAROUSEL & CONTENT LAYOUT
   ========================================== */

.about-content-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  margin-bottom: 4rem;
}

.about-intro {
  text-align: left;
  font-size: 1.125rem;
  line-height: 1.8;
  color: var(--color-text-muted);
}

/* Carousel Styles */
.carousel-container {
  position: relative;
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.carousel {
  position: relative;
  width: 100%;
  aspect-ratio: 4/3;
  overflow: hidden;
}

.carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
}

.carousel-slide.active {
  opacity: 1;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Carousel Buttons */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(255, 255, 255, 0.2);
  color: white;
  border: none;
  font-size: 2rem;
  padding: 1rem;
  cursor: pointer;
  z-index: 10;
  transition: background-color 0.3s ease;
  backdrop-filter: blur(5px);
}

.carousel-btn:hover {
  background-color: rgba(124, 93, 49, 0.8);
}

.carousel-btn-prev {
  left: 10px;
}

.carousel-btn-next {
  right: 10px;
}

/* Carousel Indicators */
.carousel-indicators {
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}

.indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.5);
  border: none;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.indicator.active {
  background-color: var(--color-accent);
}

.indicator:hover {
  background-color: rgba(255, 255, 255, 0.8);
}

/* Responsive Layout */
@media (max-width: 768px) {
  .about-content-wrapper {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .carousel-container {
    max-width: 100%;
  }
  
  .about-intro {
    text-align: center;
  }
}

/* ==========================================
   TEAM GRID - FLIP CARDS
   ========================================== */

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  perspective: 1000px;
}

/* Special layout: First card full width, rest in 3 columns */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  perspective: 1000px;
}

.team-card:first-child {
  grid-column: 1 / -1;
  max-width: 350px;
  margin: 0 auto;
  width: 100%;
}

.team-card {
  position: relative;
  height: 350px;
  cursor: pointer;
  transform-style: preserve-3d;
  transition: transform 0.6s;
}

.team-card.flipped {
  transform: rotateY(180deg);
}

.card-front,
.card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.card-front {
  background-color: #1a1a1a;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.card-front img {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 1rem;
  border: 3px solid var(--color-accent);
}

.card-front h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  text-align: center;
}

.card-front p {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  text-align: center;
  margin-bottom: 1rem;
}

.card-hint {
  font-size: 0.75rem;
  color: var(--color-accent);
  font-style: italic;
}

.card-back {
  background: linear-gradient(135deg, var(--color-accent), #5a3f24);
  transform: rotateY(180deg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  text-align: center;
}

.card-back h3 {
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.card-back p {
  font-size: 1rem;
  line-height: 1.6;
}

/* ==========================================
   COUNTDOWN COMPONENT
   ========================================== */

.countdown-container {
  text-align: center;
  padding: 3rem 2rem;
}

.countdown-label {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 0.5rem;
  color: var(--color-text);
}

.countdown-event {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 2rem;
  color: var(--color-accent);
}

.countdown {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.countdown-item {
  background-color: rgba(26, 26, 26, 0.9);
  padding: 2rem;
  border-radius: 10px;
  min-width: 120px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.countdown-number {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  color: var(--color-accent);
  display: block;
}

.countdown-label-text {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-text-muted);
  margin-top: 0.5rem;
}

/* ==========================================
   GOOGLE CALENDAR SECTION
   ========================================== */

.calendar-section {
  background-color: #0a0a0a;
}

.calendar-container {
  max-width: 1200px;
  margin: 0 auto;
  background-color: #1a1a1a;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: var(--shadow);
}

.calendar-container iframe {
  border-radius: 8px;
  display: block;
  margin: 0 auto;
}

.calendar-note {
  margin-top: 1.5rem;
  padding: 1rem;
  background-color: rgba(124, 93, 49, 0.1);
  border-left: 4px solid var(--color-accent);
  border-radius: 5px;
}

.calendar-note p {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  margin: 0;
}

.calendar-note strong {
  color: var(--color-text);
}

@media (max-width: 768px) {
  .calendar-container {
    padding: 1rem;
  }
  
  .calendar-container iframe {
    height: 500px;
  }
}

/* ==========================================
   PARTNERS GRID
   ========================================== */

.partners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.partner-card {
  background-color: #1a1a1a;
  padding: 2rem;
  border-radius: 10px;
  text-align: center;
  transition: var(--transition);
  box-shadow: var(--shadow);
}

.partner-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.7);
}

.partner-card.premium {
  border: 2px solid var(--color-accent);
  background: linear-gradient(135deg, #1a1a1a, #3d2817);
}

.partner-tier {
  font-size: 0.8rem;
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 1rem;
}

.partner-logo {
  width: 150px;
  height: 150px;
  margin: 0 auto 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #fff;
  border-radius: 10px;
  padding: 1rem;
}

.partner-logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.partner-card h3 {
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.partner-card p {
  color: var(--color-text-muted);
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
}

/* ==========================================
   SUBTEAMS PAGE
   ========================================== */

.subteams-intro-section {
  padding: 4rem 2rem;
}

.subteams-intro {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.subteams-intro h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 1.5rem;
  background: linear-gradient(90deg, #FFFFFF, #7c5d31);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.subteams-intro p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--color-text-muted);
  margin-bottom: 1rem;
}

/* Subteam Sections */
.subteam-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 4rem 2rem;
  position: relative;
}

.subteam-section:nth-child(even) {
  background-color: rgba(42, 42, 42, 0.3);
}

.subteam-section:nth-child(odd) {
  background-color: rgba(20, 20, 20, 0.3);
}

.subteam-container {
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 4rem;
}

.subteam-content {
  flex: 1;
  max-width: 600px;
}

.subteam-image {
  flex: 1;
  max-width: 600px;
}

.subteam-image img {
  width: 100%;
  height: auto;
  border-radius: 15px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  transition: var(--transition);
}

.subteam-image img:hover {
  transform: scale(1.05);
  box-shadow: 0 15px 50px rgba(124, 93, 49, 0.4);
}

/* Left aligned subteams - image on right */
.subteam-left .subteam-container {
  flex-direction: row;
}

.subteam-left .subteam-content {
  order: 1;
}

.subteam-left .subteam-image {
  order: 2;
}

/* Right aligned subteams - image on left */
.subteam-right .subteam-container {
  flex-direction: row;
}

.subteam-right .subteam-image {
  order: 1;
}

.subteam-right .subteam-content {
  order: 2;
}

.subteam-icon {
  font-size: 4rem;
  margin-bottom: 1.5rem;
  display: inline-block;
}

.subteam-section h2 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  margin-bottom: 2rem;
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: 2px;
  line-height: 1.2;
}

.subteam-details {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.subteam-detail {
  border-left: 4px solid var(--color-accent);
  padding-left: 1.5rem;
  transition: var(--transition);
}

.subteam-detail:hover {
  border-color: var(--color-accent-hover);
  transform: translateX(10px);
}

.subteam-detail h4 {
  color: var(--color-accent);
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-family: var(--font-display);
}

.subteam-detail p {
  color: var(--color-text-muted);
  line-height: 1.8;
  font-size: 1rem;
}

/* Call to Action Section */
.subteams-cta-section {
  padding: 6rem 2rem;
  background: linear-gradient(135deg, rgba(20, 20, 20, 0.5), rgba(124, 93, 49, 0.1));
}

.subteams-cta {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  padding: 3rem;
  background: rgba(42, 42, 42, 0.6);
  border-radius: 15px;
  border: 2px solid var(--color-accent);
  backdrop-filter: blur(10px);
}

.subteams-cta h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 1.5rem;
  color: var(--color-accent);
}

.subteams-cta p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--color-text-muted);
  margin-bottom: 2rem;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .subteam-section {
    min-height: auto;
    padding: 3rem 1.5rem;
  }
  
  .subteam-container {
    flex-direction: column !important;
    gap: 2rem;
  }
  
  .subteam-left .subteam-content,
  .subteam-right .subteam-content,
  .subteam-left .subteam-image,
  .subteam-right .subteam-image {
    order: initial;
    margin-left: auto;
    margin-right: auto;
    max-width: 100%;
  }
  
  .subteam-section h2 {
    font-size: 2rem;
  }
  
  .subteam-icon {
    font-size: 3rem;
  }
  
  .subteams-cta {
    padding: 2rem;
  }
}

/* ==========================================
   CONTACT FORM
   ========================================== */

.contact-form {
  max-width: 600px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--color-text-muted);
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 1px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 1rem;
  background-color: #1a1a1a;
  border: 2px solid #333;
  border-radius: 5px;
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(124, 93, 49, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 150px;
}

.form-error {
  color: var(--color-accent);
  font-size: 0.85rem;
  margin-top: 0.25rem;
  display: none;
}

.form-group.error .form-error {
  display: block;
}

.form-group.error input,
.form-group.error textarea {
  border-color: var(--color-accent);
}

.form-success {
  background-color: #1a4d1a;
  color: #4ade80;
  padding: 1rem;
  border-radius: 5px;
  text-align: center;
  margin-bottom: 1.5rem;
  display: none;
}

.form-success.show {
  display: block;
}

/* ==========================================
   GOOGLE MAP SECTION
   ========================================== */

.map-section {
  margin-top: 4rem;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.map-section h3 {
  margin-bottom: 2rem;
}

.map-container-embed {
  box-shadow: var(--shadow);
  border-radius: 10px;
  overflow: hidden;
  border: 2px solid #333;
}

.map-container-embed iframe {
  display: block;
  width: 100%;
}

@media (max-width: 768px) {
  .map-container-embed iframe {
    height: 350px;
  }
}

/* ==========================================
   FOOTER
   ========================================== */

.footer {
  background-color: #000;
  padding: 3rem 2rem 2rem;
  border-top: 1px solid #333;
}

.footer-container {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h3 {
  font-size: 1rem;
  margin-bottom: 1rem;
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.footer-logo img {
  height: 60px;
  width: auto;
}

.footer-section p {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  background-color: #1a1a1a;
  border-radius: 50%;
  transition: var(--transition);
  border: 2px solid transparent;
}

.social-links a:hover {
  background-color: var(--color-accent);
  border-color: var(--color-accent);
  transform: translateY(-3px);
}

.social-links svg {
  width: 24px;
  height: 24px;
  fill: var(--color-text);
}

.location-link {
  color: var(--color-text-muted);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition);
  margin-top: 0.5rem;
}

.location-link:hover {
  color: var(--color-accent);
}

.location-link svg {
  width: 20px;
  height: 20px;
  fill: var(--color-accent);
  flex-shrink: 0;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid #222;
}

.footer-bottom p {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  margin: 0;
}

@media (max-width: 768px) {
  .footer-container {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .social-links {
    justify-content: center;
  }
  
  .location-link {
    justify-content: center;
  }
  
  .footer-logo {
    justify-content: center;
  }
}

/* ==========================================
   ANIMATIONS & UTILITIES
   ========================================== */

.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.reveal {
  opacity: 1;
  transform: translateY(0);
}

/* Focus visible styles */
:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 4px;
}

/* ==========================================
   RESPONSIVE BREAKPOINTS
   ========================================== */

@media (max-width: 480px) {
  .section {
    padding: 3rem 1rem;
  }

  .team-grid {
    grid-template-columns: 1fr;
  }
  
  .team-card:first-child {
    grid-column: 1;
  }

  .countdown {
    gap: 1rem;
  }

  .countdown-item {
    padding: 1.5rem 1rem;
    min-width: 80px;
  }

  .partners-grid {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 481px) and (max-width: 768px) {
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .team-card:first-child {
    grid-column: 1 / -1;
  }

  .partners-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .team-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .team-card:first-child {
    grid-column: 1 / -1;
  }

  .partners-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ==========================================
   PROGRESS PAGE
   ========================================== */

.hero-progress::before {
  background-image: url('../hero.webp');
  filter: brightness(0.40);
}

.hero-progress::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(124, 93, 49, 0.1), rgba(11, 11, 11, 0.3));
  z-index: -1;
}

/* Progress Hero Specific Styles */
.hero-progress .hero-icon {
  font-size: clamp(4rem, 12vw, 8rem);
  margin-bottom: 1rem;
  animation: pulse 2s ease-in-out infinite;
  filter: drop-shadow(0 0 20px rgba(124, 93, 49, 0.5));
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 0.9;
  }
  50% {
    transform: scale(1.05);
    opacity: 1;
  }
}

.hero-progress h1 {
  font-size: clamp(2.5rem, 8vw, 5rem);
  margin-bottom: 1.5rem;
  text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.8);
  letter-spacing: 3px;
}

.hero-progress .hero-subline {
  font-size: clamp(1.1rem, 3vw, 1.5rem);
  margin-bottom: 0;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-stats {
  display: block;
  margin-top: 1rem;
  font-size: clamp(0.85rem, 2.5vw, 1rem);
  color: var(--color-accent);
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-family: var(--font-display);
}

/* Progress Controls */
.progress-controls-section {
  padding: 2rem;
  background-color: rgba(255, 255, 255, 0.03);
}

.progress-controls {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  align-items: flex-end;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
  min-width: 200px;
}

.filter-group label {
  font-family: var(--font-display);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-text-muted);
}

.filter-select {
  padding: 0.75rem 1rem;
  background-color: #1a1a1a;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
}

.filter-select option {
  background-color: #1a1a1a;
  color: var(--color-text);
}

.filter-select:hover {
  background-color: #252525;
  border-color: var(--color-accent);
}

.filter-select:focus {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

/* Progress Timeline */
.progress-timeline-section {
  background-color: var(--color-bg);
}

.progress-timeline {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

/* Progress Entry Card */
.progress-entry {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 2rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.progress-entry::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, var(--color-accent), rgba(124, 93, 49, 0.3));
}

.progress-entry:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(124, 93, 49, 0.2);
  border-color: var(--color-accent);
}

/* Progress Header */
.progress-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.progress-meta {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.progress-week {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.progress-date {
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

/* Subteam Badges */
.progress-subteam {
  display: inline-block;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.chassis-badge {
  background-color: rgba(124, 93, 49, 0.2);
  color: #B18C54;
  border: 1px solid rgba(124, 93, 49, 0.4);
}

.powertrain-badge {
  background-color: rgba(255, 100, 50, 0.2);
  color: #FF9270;
  border: 1px solid rgba(255, 100, 50, 0.4);
}

.suspension-badge {
  background-color: rgba(100, 150, 255, 0.2);
  color: #8BB4FF;
  border: 1px solid rgba(100, 150, 255, 0.4);
}

.aerodynamics-badge {
  background-color: rgba(150, 100, 255, 0.2);
  color: #B88BFF;
  border: 1px solid rgba(150, 100, 255, 0.4);
}

.electronics-badge {
  background-color: rgba(100, 255, 150, 0.2);
  color: #8BFFB4;
  border: 1px solid rgba(100, 255, 150, 0.4);
}

/* Progress Content */
.progress-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.progress-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-text);
  margin: 0;
}

.progress-description {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-text-muted);
  margin: 0;
}

/* Progress Stats */
.progress-stats {
  display: flex;
  gap: 2rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  flex-wrap: wrap;
}

.stat-item {
  display: flex;
  gap: 0.5rem;
  align-items: baseline;
}

.stat-label {
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

.stat-value {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-text);
}

.status-active {
  color: var(--color-accent);
}

.status-completed {
  color: #8BFFB4;
}

.status-delayed {
  color: #FF9270;
}

/* Empty State */
.progress-empty {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--color-text-muted);
  font-size: 1.125rem;
}

/* Add Entry Notice */
.add-entry-notice {
  max-width: 1000px;
  margin: 3rem auto 0;
  padding: 1.5rem;
  background-color: rgba(124, 93, 49, 0.1);
  border: 1px solid rgba(124, 93, 49, 0.3);
  border-radius: 8px;
  text-align: center;
}

.add-entry-notice p {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 0.875rem;
}

.add-entry-notice strong {
  color: var(--color-accent);
}

/* Progress Page Responsive */
@media (max-width: 768px) {
  .progress-controls {
    flex-direction: column;
    gap: 1.5rem;
  }
  
  .filter-group {
    width: 100%;
  }
  
  .progress-entry {
    padding: 1.5rem;
  }
  
  .progress-header {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .progress-stats {
    flex-direction: column;
    gap: 0.75rem;
  }
  
  .progress-title {
    font-size: 1.25rem;
  }
}
