/** @format */

:root {
  --f1-red: #e10600;
  --f1-red-hover: #cc1818;
  --f1-black: #15151e;
  --f1-dark-gray: #1f1f27;
  --f1-light-gray: #38383f;
  --f1-white: #ffffff;
  --f1-text-gray: #8a8a8d;
  --header-height: clamp(60px, 10vw, 80px);
  --container-padding: clamp(1rem, 5vw, 2rem);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
*::-webkit-scrollbar {
  width: 4px;
}

*::-webkit-scrollbar-track {
  background: inherit;
}

*::-webkit-scrollbar-thumb {
  background-color: var(--f1-red);
  border-radius: 3px;
}

*::-webkit-scrollbar-thumb:hover {
  background-color: var(--f1-red-hover);
}

body {
  font-family: "Titillium Web", sans-serif;
  background-color: var(--f1-black);
  color: var(--f1-white);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Global link styles */
a {
  color: var(--f1-white);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--f1-red);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--container-padding);
  width: 100%;
}

/* Header styles */
header {
  background-color: var(--f1-dark-gray);
  height: var(--header-height);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.header-content {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(1rem, 3vw, 2rem);
}

.logo-container {
  display: flex;
  align-items: center;
  gap: clamp(0.5rem, 2vw, 1rem);
}

.logo-box {
  width: clamp(32px, 8vw, 40px);
  height: clamp(32px, 8vw, 40px);
  background: var(--f1-red);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transform: skew(-10deg);
}

.logo-box span {
  color: var(--f1-white);
  font-weight: 700;
  font-size: clamp(0.9rem, 2.5vw, 1.1rem);
  transform: skew(10deg);
}

.logo-container h1 {
  font-size: clamp(1.1rem, 3vw, 1.4rem);
  font-weight: 700;
  color: var(--f1-white);
  white-space: nowrap;
}

/* Navigation */
nav ul {
  list-style: none;
  display: flex;
  gap: clamp(1rem, 3vw, 2rem);
}

nav a {
  color: var(--f1-text-gray);
  text-decoration: none;
  font-size: clamp(0.9rem, 2.5vw, 1rem);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: color 0.2s ease;
  position: relative;
  padding: 0.5rem 0;
}

nav a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--f1-red);
  transform: scaleX(0);
  transition: transform 0.2s ease;
  transform-origin: right;
}

nav a:hover {
  color: var(--f1-white);
}

nav a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

nav a.active {
  color: var(--f1-white);
}

nav a.active::after {
  transform: scaleX(1);
}

/* Main content */
main {
  flex: 1;
  padding: clamp(2rem, 5vw, 3rem) 0;
}

/* Footer */
footer {
  background-color: var(--f1-dark-gray);
  padding: clamp(1.5rem, 4vw, 2rem) 0;
  margin-top: auto;
}

footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
}

.social-links {
  display: flex;
  gap: clamp(1rem, 3vw, 2rem);
  flex-wrap: wrap;
  justify-content: center;
}

.social-links a {
  color: var(--f1-text-gray);
  text-decoration: none;
  font-size: clamp(0.85rem, 2vw, 0.95rem);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: color 0.2s ease;
  position: relative;
}

.social-links a::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--f1-red);
  transform: scaleX(0);
  transition: transform 0.2s ease;
  transform-origin: right;
}

.social-links a:hover {
  color: var(--f1-white);
}

.social-links a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

footer p {
  color: var(--f1-text-gray);
  font-size: clamp(0.8rem, 2vw, 0.9rem);
}

/* Mobile navigation */
@media (max-width: 768px) {
  .header-content {
    position: relative;
  }

  nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    background: var(--f1-dark-gray);
    padding: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
  }

  nav.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  nav ul {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }

  nav a {
    display: block;
    padding: 0.75rem;
    width: 100%;
    text-align: center;
  }

  .mobile-menu-btn {
    display: block;
    background: none;
    border: none;
    color: var(--f1-white);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    margin-left: auto;
  }

  .mobile-menu-btn:focus {
    outline: none;
  }
}

/* Prevent layout shift on larger screens */
/* @media (min-width: 641px) {
  .mobile-menu-btn {
    display: none;
  }

  nav {
    transform: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    position: static !important;
    padding: 0 !important;
    box-shadow: none !important;
  }
} */

/* Ensure proper spacing on very small screens */
/* @media (max-width: 360px) {
  .logo-container h1 {
    font-size: 1rem;
  }

  .logo-box {
    width: 28px;
    height: 28px;
  }

  .logo-box span {
    font-size: 0.8rem;
  }

  nav a {
    font-size: 0.85rem;
  }
} */
