:root {
  --ferrari-red: #ff2800;
  --dark-bg: #0a0a0a;
  --dark-surface: #121212;
  --text-primary: #ffffff;
  --text-secondary: #a0a0a0;
  --font-main: 'Inter', sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

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

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 20px 50px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  transition: all 0.3s ease;
  background: transparent;
}

.navbar.scrolled {
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(10px);
  padding: 15px 50px;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: 4px;
  color: var(--text-primary);
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 30px;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: var(--ferrari-red);
}

/* Hero Section */
.hero {
  position: relative;
  height: 100vh;
  width: 100%;
  background: url('/hero.png') center center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Dark overlay for better text readability */
.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(to bottom, rgba(10,10,10,0.3) 0%, rgba(10,10,10,0.8) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
}

.hero-title {
  font-size: 6rem;
  font-weight: 800;
  letter-spacing: 8px;
  margin-bottom: 10px;
  text-shadow: 2px 2px 20px rgba(0,0,0,0.5);
  background: linear-gradient(to right, #ffffff, #dcdcdc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--text-secondary);
  margin-bottom: 40px;
  letter-spacing: 2px;
}

.btn-primary {
  display: inline-block;
  padding: 15px 40px;
  background-color: transparent;
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  border: 2px solid var(--ferrari-red);
  border-radius: 0;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.btn-primary:hover {
  background-color: var(--ferrari-red);
  box-shadow: 0 0 20px rgba(255, 40, 0, 0.4);
}

/* About Section */
.about {
  padding: 120px 20px;
  background-color: var(--dark-bg);
  min-height: 60vh;
  display: flex;
  align-items: center;
}

.about-container {
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
}

.about h2 {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 30px;
  color: var(--ferrari-red);
  letter-spacing: 2px;
  text-transform: uppercase;
}

.about p {
  font-size: 1.2rem;
  font-weight: 300;
  color: var(--text-secondary);
  max-width: 800px;
  margin: 0 auto;
}

/* Footer */
.footer {
  padding: 40px 20px;
  text-align: center;
  background-color: var(--dark-surface);
  border-top: 1px solid #222;
}

.footer p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* Animations */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
  .hero-title {
    font-size: 4rem;
  }
  .navbar {
    padding: 20px;
  }
  .nav-links {
    gap: 15px;
  }
}

/* Pages Container */
.page-container {
  padding: 120px 20px 60px;
  max-width: 1200px;
  margin: 0 auto;
  min-height: calc(100vh - 80px);
}

.page-title {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 50px;
  text-align: center;
  color: var(--ferrari-red);
  letter-spacing: 1px;
}

/* Blog Grid */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.blog-card {
  background-color: var(--dark-surface);
  padding: 30px;
  border-radius: 8px;
  border: 1px solid #222;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.blog-card:hover {
  transform: translateY(-5px);
  border-color: var(--ferrari-red);
}

.blog-card h3 {
  font-size: 1.4rem;
  margin-bottom: 10px;
}

.blog-card .date {
  color: var(--ferrari-red);
  font-size: 0.85rem;
  margin-bottom: 15px;
}

.blog-card p {
  color: var(--text-secondary);
  margin-bottom: 20px;
  font-size: 0.95rem;
}

.read-more {
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, color 0.3s ease;
}

.read-more:hover {
  color: var(--ferrari-red);
  border-bottom: 1px solid var(--ferrari-red);
}

/* Specs Grid */
.specs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.spec-card {
  background-color: var(--dark-surface);
  padding: 40px;
  border-radius: 8px;
  border-top: 3px solid var(--ferrari-red);
}

.spec-card h3 {
  font-size: 1.5rem;
  margin-bottom: 20px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.spec-card ul {
  list-style: none;
}

.spec-card ul li {
  color: var(--text-secondary);
  font-size: 1rem;
  margin-bottom: 12px;
  padding-left: 20px;
  position: relative;
}

.spec-card ul li::before {
  content: '•';
  color: var(--ferrari-red);
  position: absolute;
  left: 0;
  top: 0;
}
