/* ==========================================================================
   DESIGN SYSTEM & VARIABLES
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Montserrat:wght@400;500;600;700&family=Space+Grotesk:wght@500;600;700&display=swap');

:root {
  --bg-primary: #0a0b0e;
  --bg-secondary: #12141c;
  --bg-card: rgba(22, 25, 35, 0.7);
  --bg-card-hover: rgba(30, 34, 48, 0.85);
  
  --border-color: rgba(255, 255, 255, 0.07);
  --border-color-hover: rgba(59, 130, 246, 0.3);
  
  --text-main: #f3f4f6;
  --text-muted: #9ca3af;
  --text-highlight: #ffffff;
  
  /* Primary tech colors (Cloud / AWS blue) */
  --tech-blue: #2563eb;
  --tech-cyan: #06b6d4;
  --tech-gradient: linear-gradient(135deg, #3b82f6 0%, #06b6d4 100%);
  
  /* Secondary motorsport accent (Sober red - used sparingly) */
  --race-red: #e11d48;
  --race-red-hover: #be123c;
  --race-gradient: linear-gradient(135deg, #e11d48 0%, #f43f5e 100%);
  
  --font-title: 'Montserrat', sans-serif;
  --font-tech: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-premium: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
  --shadow-neon: 0 0 20px rgba(37, 99, 235, 0.15);
}

body.light-theme {
  --bg-primary: #f8fafc;
  --bg-secondary: #f1f5f9;
  --bg-card: rgba(255, 255, 255, 0.8);
  --bg-card-hover: rgba(255, 255, 255, 0.95);
  
  --border-color: rgba(0, 0, 0, 0.08);
  --border-color-hover: rgba(37, 99, 235, 0.4);
  
  --text-main: #334155;
  --text-muted: #64748b;
  --text-highlight: #0f172a;
  
  --shadow-premium: 0 10px 30px -10px rgba(0, 0, 0, 0.08);
  --shadow-neon: 0 0 20px rgba(37, 99, 235, 0.06);
}

/* ==========================================================================
   RESET & BASE STYLES
   ========================================================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

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

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

ul {
  list-style: none;
}

/* Scrollbar customization */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: #1f2937;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #374151;
}

/* ==========================================================================
   UTILITY CLASSES & REUSABLE LAYOUTS
   ========================================================================== */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section {
  padding: 8rem 0;
  position: relative;
}

.section-title {
  font-family: var(--font-tech);
  font-size: 2.25rem;
  font-weight: 700;
  margin-bottom: 3.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.section-title::after {
  content: '';
  flex-grow: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--border-color) 0%, rgba(255, 255, 255, 0) 100%);
}

.title-accent {
  color: var(--tech-cyan);
  font-family: var(--font-title);
  font-weight: 400;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  display: block;
  margin-bottom: 0.5rem;
}

/* Glassmorphic Cards */
.card-premium {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 2.5rem;
  box-shadow: var(--shadow-premium);
  transition: var(--transition-smooth);
}

.card-premium:hover {
  border-color: var(--border-color-hover);
  background: var(--bg-card-hover);
  box-shadow: var(--shadow-neon), var(--shadow-premium);
}

/* Premium Buttons */
.btn-premium {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  font-family: var(--font-tech);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.8rem 1.8rem;
  border-radius: 8px;
  cursor: pointer;
  transition: var(--transition-smooth);
  border: none;
}

.btn-primary {
  background: var(--tech-gradient);
  color: #fff;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  color: var(--text-main);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.btn-race {
  background: var(--race-gradient);
  color: #fff;
}

.btn-race:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(225, 29, 72, 0.4);
}

/* ==========================================================================
   HEADER & NAVIGATION
   ========================================================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(10, 11, 14, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition-smooth);
}

.header-scrolled {
  padding: 0.75rem 0;
  background: rgba(10, 11, 14, 0.9);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 4.5rem;
}

.logo {
  font-family: var(--font-tech);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-highlight);
}

.logo span {
  background: var(--tech-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-menu {
  display: flex;
  gap: 2.25rem;
  align-items: center;
}

.nav-link {
  font-family: var(--font-tech);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
}

.nav-link:hover, .nav-link.active {
  color: var(--text-highlight);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Language switch styling */
.lang-switch {
  display: flex;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.05);
  padding: 0.3rem;
  border-radius: 6px;
  border: 1px solid var(--border-color);
}

.lang-btn {
  font-family: var(--font-tech);
  font-size: 0.8rem;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.lang-btn.active {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-highlight);
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 6rem;
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at 70% 30%, rgba(37, 99, 235, 0.08) 0%, rgba(0, 0, 0, 0) 60%),
              radial-gradient(circle at 20% 80%, rgba(6, 182, 212, 0.05) 0%, rgba(0, 0, 0, 0) 50%);
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: linear-gradient(var(--border-color) 1px, transparent 1px),
                    linear-gradient(90deg, var(--border-color) 1px, transparent 1px);
  background-size: 80px 80px;
  opacity: 0.15;
  mask-image: radial-gradient(ellipse at 50% 50%, black, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 50%, black, transparent 75%);
  z-index: -1;
}

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

.hero-tagline {
  font-family: var(--font-tech);
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--tech-cyan);
  margin-bottom: 1.5rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.hero-tagline::after {
  content: '';
  width: 50px;
  height: 2px;
  background: var(--tech-cyan);
}

.hero-title {
  font-family: var(--font-title);
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

.hero-title span {
  display: block;
  font-weight: 400;
  font-size: 2rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
}

.hero-desc {
  font-size: 1.125rem;
  color: var(--text-muted);
  margin-bottom: 3rem;
  line-height: 1.7;
}

.hero-buttons {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
}

/* ==========================================================================
   ABOUT & TELEMETRY SECTION
   ========================================================================== */
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 4rem;
  align-items: center;
}

.about-info h3 {
  font-family: var(--font-title);
  font-size: 1.75rem;
  margin-bottom: 1.5rem;
}

.about-info p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  font-size: 1.05rem;
}

.about-photo-wrapper {
  position: relative;
  justify-self: center;
}

.about-photo-frame {
  width: 320px;
  height: 320px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  position: relative;
  background: var(--bg-secondary);
}

.about-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
  filter: grayscale(20%);
}

.about-photo-frame:hover .about-photo {
  transform: scale(1.05);
  filter: grayscale(0%);
}

.about-photo-glow {
  position: absolute;
  top: -15px;
  left: -15px;
  width: 350px;
  height: 350px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.25) 0%, rgba(6, 182, 212, 0.1) 100%);
  z-index: -1;
  filter: blur(20px);
}

/* Telemetry Dashboard Stats */
.telemetry-board {
  grid-column: span 2;
  margin-top: 4rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.stat-item {
  text-align: center;
  border-left: 3px solid var(--tech-blue);
  padding: 1rem 1.5rem;
  background: rgba(255, 255, 255, 0.015);
  border-radius: 0 8px 8px 0;
}

.stat-item:nth-child(even) {
  border-left-color: var(--tech-cyan);
}

.stat-num {
  font-family: var(--font-tech);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-highlight);
  line-height: 1.2;
}

.stat-label {
  font-family: var(--font-tech);
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  margin-top: 0.5rem;
}

/* ==========================================================================
   EXPERIENCE SECTION (INTERACTIVE TIMELINE)
   ========================================================================== */
.experience-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 3.5rem;
}

.timeline-menu {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  position: sticky;
  top: 7rem;
  align-self: flex-start;
}

.timeline-tab {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.25rem 1.5rem;
  border-radius: 8px;
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-muted);
  cursor: pointer;
  text-align: left;
  transition: var(--transition-smooth);
}

.timeline-tab:hover {
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-main);
  border-color: var(--border-color);
}

.timeline-tab.active {
  background: var(--bg-card);
  color: var(--text-highlight);
  border-color: var(--border-color);
  border-left: 3px solid var(--tech-blue);
  box-shadow: var(--shadow-premium);
}

.timeline-tab-logo {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  object-fit: contain;
  background: #fff;
  padding: 2px;
}

.timeline-tab-info h4 {
  font-family: var(--font-tech);
  font-size: 1rem;
  font-weight: 600;
}

.timeline-tab-info p {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
}

.timeline-content-panel {
  min-height: 450px;
}

.job-details {
  display: none;
}

.job-details.active {
  display: block;
  animation: fadeIn 0.4s ease-out forwards;
}

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

.job-header {
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 1.5rem;
  margin-bottom: 2rem;
}

.job-title-group {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 1rem;
}

.job-title {
  font-family: var(--font-title);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-highlight);
}

.job-company {
  font-size: 1.1rem;
  color: var(--tech-cyan);
  margin-top: 0.25rem;
  font-weight: 500;
}

.job-period {
  font-family: var(--font-tech);
  font-size: 0.9rem;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.05);
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
}

.job-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.job-desc ul {
  margin: 1.5rem 0 2rem 0;
}

.job-desc li {
  position: relative;
  padding-left: 1.75rem;
  margin-bottom: 0.85rem;
}

.job-desc li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--tech-blue);
  font-weight: bold;
}

.job-achievements-title {
  font-family: var(--font-tech);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text-highlight);
  border-left: 2px solid var(--race-red);
  padding-left: 0.75rem;
}

.achievement-list li::before {
  content: '✓';
  color: var(--race-red);
}

/* ==========================================================================
   SKILLS SECTION
   ========================================================================== */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.skills-category h3 {
  font-family: var(--font-tech);
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1.75rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-highlight);
}

.skills-category h3 i {
  color: var(--tech-cyan);
}

.skills-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.skill-tag-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1rem;
}

.skill-tag {
  font-family: var(--font-tech);
  font-size: 0.8rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  padding: 0.35rem 0.75rem;
  border-radius: 6px;
  color: var(--text-muted);
  transition: var(--transition-smooth);
}

.skill-tag:hover {
  background: rgba(37, 99, 235, 0.08);
  border-color: rgba(37, 99, 235, 0.3);
  color: var(--text-highlight);
}

.skill-bar-item {
  margin-bottom: 0.5rem;
}

.skill-info {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.skill-name {
  font-weight: 500;
}

.skill-val {
  color: var(--text-muted);
  font-family: var(--font-tech);
}

.skill-bar-bg {
  height: 6px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 3px;
  overflow: hidden;
}

.skill-bar-fill {
  height: 100%;
  background: var(--tech-gradient);
  border-radius: 3px;
  width: 0; /* Animated via JS */
  transition: width 1.5s cubic-bezier(0.1, 0.8, 0.2, 1);
}

/* ==========================================================================
   PERSONAL / MOTORSPORT & EDUCATION
   ========================================================================== */
.personal-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3rem;
}

.hobby-card {
  position: relative;
  overflow: hidden;
}

.hobby-card-bg {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(to bottom, rgba(10, 11, 14, 0.85), rgba(10, 11, 14, 0.95)), url('../images/autodromo-nazionale-de-monza.webp');
  background-size: cover;
  background-position: center;
  opacity: 0.15;
  transition: var(--transition-smooth);
  z-index: 0;
}

.hobby-card:hover .hobby-card-bg {
  transform: scale(1.03);
  opacity: 0.22;
}

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

.hobby-tag {
  display: inline-block;
  font-family: var(--font-tech);
  font-size: 0.75rem;
  color: var(--race-red);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
  margin-bottom: 1rem;
}

.hobby-title {
  font-family: var(--font-title);
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.hobby-desc {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.6;
}

.education-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.edu-item {
  display: flex;
  gap: 1.25rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-color);
}

.edu-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.edu-logo {
  width: 44px;
  height: 44px;
  object-fit: cover;
  border-radius: 8px;
  background: #fff;
  padding: 3px;
  flex-shrink: 0;
}

.edu-info h4 {
  font-family: var(--font-title);
  font-size: 1rem;
  font-weight: 600;
}

.edu-institution {
  font-size: 0.85rem;
  color: var(--tech-cyan);
  margin-top: 0.15rem;
}

.edu-meta {
  display: flex;
  gap: 1rem;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.35rem;
}

/* ==========================================================================
   CONTACT SECTION
   ========================================================================== */
.contact-section {
  background: radial-gradient(circle at 50% 100%, rgba(37, 99, 235, 0.05) 0%, rgba(10, 11, 14, 0) 50%);
  text-align: center;
}

.contact-box {
  max-width: 650px;
  margin: 0 auto;
}

.contact-subtitle {
  color: var(--text-muted);
  font-size: 1.1rem;
  margin-bottom: 3rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
  margin-bottom: 3.5rem;
}

.contact-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 1.5rem 1rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  transition: var(--transition-smooth);
}

.contact-btn i {
  font-size: 1.5rem;
  color: var(--text-muted);
  transition: var(--transition-smooth);
}

.contact-btn span {
  font-family: var(--font-tech);
  font-size: 0.8rem;
  font-weight: 500;
}

.contact-btn:hover {
  background: var(--bg-card-hover);
  border-color: var(--tech-blue);
  transform: translateY(-4px);
  box-shadow: var(--shadow-neon);
}

.contact-btn:hover i {
  color: var(--tech-cyan);
}

/* Specific styling for WhatsApp to have an alternative hover brand color */
.contact-btn.whatsapp-btn:hover {
  border-color: #25d366;
  box-shadow: 0 0 20px rgba(37, 211, 102, 0.15);
}
.contact-btn.whatsapp-btn:hover i {
  color: #25d366;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
  padding: 3rem 0;
  border-top: 1px solid var(--border-color);
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
}

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

.footer-link:hover {
  color: var(--text-highlight);
}

/* ==========================================================================
   RESPONSIVE DESIGN (MEDIA QUERIES)
   ========================================================================== */
@media (max-width: 1024px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .about-photo-wrapper {
    order: -1;
  }
  
  .telemetry-board {
    grid-column: span 1;
    grid-template-columns: repeat(2, 1fr);
  }
  
  .experience-layout {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  
  .timeline-menu {
    flex-direction: row;
    overflow-x: auto;
    padding-bottom: 1rem;
    position: static;
    width: 100%;
  }
  
  .timeline-tab {
    flex-shrink: 0;
    padding: 0.75rem 1.25rem;
  }
  
  .skills-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  
  .personal-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  
  .contact-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .section {
    padding: 5rem 0;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-title span {
    font-size: 1.5rem;
  }
  
  .contact-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 1.25rem;
  }
  
  .hero-buttons {
    flex-direction: column;
  }
  
  .btn-premium {
    width: 100%;
  }
  
  .telemetry-board {
    grid-template-columns: 1fr;
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   SCROLL INDICATOR BOUNCE ANIMATION
   ========================================================================== */
@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-8px);
  }
  60% {
    transform: translateY(-4px);
  }
}

/* ==========================================================================
   EVENT GRID & BOX COMPONENT (VOLUNTEERING LOG)
   ========================================================================== */
.event-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
  margin-top: 2rem;
}

.event-box {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 1.25rem;
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.5rem;
}

.event-box:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-color-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.event-date {
  font-family: var(--font-tech);
  font-size: 0.75rem;
  color: var(--tech-cyan);
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.event-name {
  font-family: var(--font-title);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-highlight);
  line-height: 1.3;
}

.event-role {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 0.5rem;
  margin-top: 0.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.event-role i {
  color: var(--race-red);
  font-size: 0.8rem;
}

/* Custom Education Grid */
.education-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

/* Custom Form Row Grid */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

/* Mobile Nav Toggle */
.mobile-nav-toggle {
  display: none;
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 1.25rem;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
  padding: 0.25rem;
}

.mobile-nav-toggle:hover {
  color: var(--text-highlight);
}

@media (max-width: 768px) {
  .education-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .mobile-nav-toggle {
    display: flex;
  }
  
  .nav-menu {
    position: absolute;
    top: 4.5rem;
    left: 0;
    width: 100%;
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    flex-direction: column;
    gap: 1.25rem;
    padding: 1.5rem 2rem;
    align-items: stretch;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-20px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 998;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  }
  
  .nav-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
  
  .nav-menu .nav-link {
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    display: block;
    width: 100%;
  }
  
  .nav-menu .nav-link:last-of-type {
    border-bottom: none;
  }
}

@media (max-width: 576px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .hero-header {
    flex-direction: column;
    text-align: center;
  }
}

/* Motorsport Filter Pills */
.motorsport-filters {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 2.25rem;
  justify-content: center;
  overflow-x: auto;
  padding-bottom: 0.75rem;
  scrollbar-width: none; /* Hide scrollbar for Firefox */
  width: 100%;
}
.motorsport-filters::-webkit-scrollbar {
  display: none; /* Hide scrollbar for Chrome/Safari */
}

.motorsport-filter-btn {
  font-family: var(--font-tech);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.5rem 1.25rem;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition-smooth);
  white-space: nowrap;
  flex-shrink: 0;
  user-select: none;
}

.motorsport-filter-btn:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-highlight);
  border-color: var(--text-muted);
}

.motorsport-filter-btn.active {
  background: var(--tech-cyan);
  color: #0b0c10; /* Dark contrast text */
  border-color: var(--tech-cyan);
  box-shadow: 0 0 15px rgba(102, 252, 241, 0.3);
}

@media (max-width: 768px) {
  .motorsport-filters {
    justify-content: flex-start; /* Enable clean touch swipe scroll on mobile */
    padding-left: 0.25rem;
    padding-right: 0.25rem;
  }
}

/* Custom Geometric Fox Text Icon */
.logo-fox {
  font-family: var(--font-tech);
  font-weight: 700;
  font-size: 1.15rem;
  background: linear-gradient(135deg, #ff7a00 0%, #ff3d00 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-right: 0.45rem;
  letter-spacing: -0.05em;
  display: inline-block;
  vertical-align: middle;
  transform: translateY(-1px);
  user-select: none;
}
