:root {
  /* Colors */
  --primary: #CC0000;
  --accent: #FF1A1A;
  --dark-base: #0A0A0A;
  --surface: #111111;
  --surface-muted: #1A1A1A;
  --text-primary: #FFFFFF;
  --text-secondary: #999999;
  --border: #2A2A2A;
  --red-glow: rgba(204, 0, 0, 0.35);

  /* Typography */
  --font-display: 'Bebas Neue', sans-serif;
  --font-body: 'DM Sans', sans-serif;

  /* Layout */
  --container-width: 1280px;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 4rem;
  --spacing-xl: 8rem;
  --border-radius: 4px;
}

/* ==========================================================================
   Reset & Base
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-body);
  background-color: var(--dark-base);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  cursor: none; /* For custom cursor */
}

a {
  text-decoration: none;
  color: inherit;
  cursor: none;
}

button {
  cursor: none;
  font-family: inherit;
}

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

.text-red {
  color: var(--primary);
}

.text-center {
  text-align: center;
}

.mb-loose {
  margin-bottom: var(--spacing-lg);
}

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

/* ==========================================================================
   Custom Cursor
   ========================================================================== */
.cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  width: 8px;
  height: 8px;
  background-color: var(--primary);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: transform 0.1s ease;
}

.cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  width: 32px;
  height: 32px;
  border: 1px solid var(--primary);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: transform 0.2s ease, width 0.2s ease, height 0.2s ease;
}

/* Hover state for cursor */
.cursor-hover .cursor-dot {
  transform: translate(-50%, -50%) scale(1.5);
}
.cursor-hover .cursor-ring {
  width: 48px;
  height: 48px;
  border-color: rgba(204, 0, 0, 0.5);
}

/* Hide custom cursor on mobile */
@media (hover: none) and (pointer: coarse) {
  body, a, button { cursor: auto; }
  .cursor-dot, .cursor-ring { display: none; }
}

/* ==========================================================================
   Curtain Reveal
   ========================================================================== */
.curtain-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  z-index: 9000;
  display: flex;
  pointer-events: none;
}

.curtain-left, .curtain-right {
  width: 50%;
  height: 100%;
  background-color: var(--surface);
  transition: transform 1.2s cubic-bezier(0.76, 0, 0.24, 1);
}

.curtain-logo {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-display);
  font-size: 4rem;
  letter-spacing: 4px;
  color: var(--primary);
  opacity: 1;
  transition: opacity 0.5s ease;
}

.page-loaded .curtain-left {
  transform: translateX(-100%);
}
.page-loaded .curtain-right {
  transform: translateX(100%);
}
.page-loaded .curtain-logo {
  opacity: 0;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2rem;
  font-family: var(--font-display);
  font-size: 1.2rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  position: relative;
  overflow: hidden;
  border: none;
  transition: all 0.3s ease;
  z-index: 1;
}

.btn-red {
  background-color: var(--primary);
  color: var(--text-primary);
}

.btn-white {
  background-color: var(--text-primary);
  color: var(--primary);
}

.btn-outline {
  background-color: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border);
}

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.btn-sweep {
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background-color: var(--accent);
  z-index: -1;
  transition: width 0.3s ease;
}

.btn-red:hover .btn-sweep {
  width: 100%;
}

.btn-text {
  position: relative;
  z-index: 2;
}

/* ==========================================================================
   Typography & Accents
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.1;
  margin-bottom: 1rem;
}

.red-slash {
  display: inline-block;
  width: 20px;
  height: 40px;
  background-color: var(--primary);
  transform: skew(-15deg);
  margin-right: 15px;
  vertical-align: middle;
}

.section-title {
  font-size: 3.5rem;
  letter-spacing: 2px;
}

.section-subtitle {
  color: var(--text-secondary);
  font-size: 1.2rem;
  margin-bottom: var(--spacing-lg);
  max-width: 600px;
}

/* ==========================================================================
   Navbar
   ========================================================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1.5rem 0;
  z-index: 1000;
  transition: background-color 0.4s ease, padding 0.4s ease;
}

.navbar.scrolled {
  background-color: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(10px);
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
}

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

.nav-logo {
  font-family: var(--font-display);
  font-size: 2rem;
  letter-spacing: 2px;
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary);
  transition: width 0.3s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.5rem;
}

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: rgba(204, 0, 0, 0.98);
  z-index: 2000;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transform: translateY(-100%);
  transition: transform 0.5s cubic-bezier(0.76, 0, 0.24, 1);
}

.mobile-menu.active {
  transform: translateY(0);
}

.mobile-menu-close {
  position: absolute;
  top: 2rem;
  right: 2rem;
  font-size: 2rem;
  color: white;
}

.mobile-links {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  text-align: center;
}

.mobile-links a {
  font-family: var(--font-display);
  font-size: 3rem;
  letter-spacing: 2px;
}

.mobile-links .mobile-cta {
  font-family: var(--font-body);
  font-size: 1.2rem;
  background: white;
  color: var(--primary);
  padding: 1rem 2rem;
  border-radius: var(--border-radius);
  margin-top: 1rem;
}

@media (max-width: 992px) {
  .nav-links, .nav-cta {
    display: none;
  }
  .mobile-menu-btn {
    display: block;
  }
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 120%; /* for parallax */
  z-index: -1;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  will-change: transform;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, rgba(10,10,10,0.95) 0%, rgba(10,10,10,0.7) 50%, rgba(10,10,10,0.3) 100%);
  z-index: 1;
}

.hero-container {
  position: relative;
  z-index: 2;
  padding-top: 100px;
}

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

.eyebrow {
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 3px;
  font-weight: 700;
  margin-bottom: 1rem;
}

.hero .headline {
  font-size: 5rem;
  margin-bottom: 1.5rem;
}

.hero .subheadline {
  color: var(--text-secondary);
  font-size: 1.1rem;
  margin-bottom: 2.5rem;
}

.hero-ctas {
  display: flex;
  gap: 1rem;
}

@media (max-width: 768px) {
  .hero .headline {
    font-size: 3.5rem;
  }
  .hero-overlay {
    background: linear-gradient(0deg, rgba(10,10,10,0.95) 0%, rgba(10,10,10,0.8) 100%);
  }
  .hero-ctas {
    flex-direction: column;
  }
}

/* ==========================================================================
   Stats Band
   ========================================================================== */
.stats-band {
  background-color: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 4rem 0;
}

.stats-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}

.stat-number {
  font-family: var(--font-display);
  font-size: 4.5rem;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-label {
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.9rem;
  font-weight: 500;
}

@media (max-width: 992px) {
  .stats-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ==========================================================================
   Services
   ========================================================================== */
.services {
  padding: var(--spacing-xl) 0;
  background-color: var(--dark-base);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.service-card {
  background-color: var(--surface);
  border: 1px solid var(--border);
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.service-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary);
}

.card-accent {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background-color: var(--primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.service-card:hover .card-accent {
  transform: scaleX(1);
}

.service-icon {
  color: var(--primary);
  margin-bottom: 1.5rem;
}

.service-icon svg {
  width: 40px;
  height: 40px;
}

.service-card h3 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.service-card p {
  color: var(--text-secondary);
}

@media (max-width: 992px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 768px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Brands Ticker
   ========================================================================== */
.brands {
  padding: var(--spacing-lg) 0;
  background-color: var(--surface-muted);
  overflow: hidden;
}

.ticker-title {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 3rem;
  color: var(--text-secondary);
}

.ticker-wrap {
  width: 100%;
  display: flex;
}

.ticker-content {
  display: flex;
  gap: 4rem;
  animation: ticker 30s linear infinite;
  padding-left: 4rem; /* Match gap */
}

.ticker-content:hover {
  animation-play-state: paused;
}

.brand-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: max-content;
  opacity: 0.6;
  transition: opacity 0.3s ease;
}

.brand-item:hover {
  opacity: 1;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 3rem;
  color: var(--text-primary);
}

.brand-desc {
  font-size: 0.8rem;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 1px;
}

@keyframes ticker {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); } /* Animates exactly half of the duplicated content */
}

/* ==========================================================================
   Why Us
   ========================================================================== */
.why-us {
  padding: var(--spacing-xl) 0;
}

.why-us-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.image-wrapper {
  position: relative;
  border-radius: var(--border-radius);
  overflow: hidden;
  height: 600px;
}

.image-wrapper img {
  width: 100%;
  height: 120%;
  object-fit: cover;
}

.image-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 50%;
  background: linear-gradient(to top, rgba(10,10,10,1), transparent);
}

.icon-list {
  list-style: none;
}

.icon-list li {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.list-icon {
  color: var(--primary);
  flex-shrink: 0;
}

.list-icon svg {
  width: 24px;
  height: 24px;
}

.list-content h4 {
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.list-content p {
  color: var(--text-secondary);
}

@media (max-width: 992px) {
  .why-us-container {
    grid-template-columns: 1fr;
  }
  .image-wrapper {
    height: 400px;
  }
}

/* ==========================================================================
   Projects
   ========================================================================== */
.projects {
  padding: var(--spacing-xl) 0;
  background-color: var(--surface-muted);
}

.masonry-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.masonry-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--border-radius);
  aspect-ratio: 4/3;
}

/* Make some items larger for masonry feel */
.masonry-item:nth-child(1) { grid-column: span 2; grid-row: span 2; aspect-ratio: 16/9; }
.masonry-item:nth-child(6) { grid-column: span 2; aspect-ratio: 21/9; }

.masonry-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.project-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 2rem;
  background: linear-gradient(to top, rgba(204,0,0,0.9), transparent);
  transform: translateY(100%);
  transition: transform 0.4s ease;
}

.masonry-item:hover img {
  transform: scale(1.05);
}

.masonry-item:hover .project-overlay {
  transform: translateY(0);
}

.project-tag {
  display: inline-block;
  background-color: var(--dark-base);
  color: var(--text-primary);
  padding: 0.25rem 0.75rem;
  font-size: 0.8rem;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.project-title {
  font-family: var(--font-body);
  font-size: 1.2rem;
  margin: 0;
}

@media (max-width: 992px) {
  .masonry-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .masonry-item:nth-child(1), .masonry-item:nth-child(6) {
    grid-column: span 1;
    grid-row: span 1;
    aspect-ratio: 4/3;
  }
}
@media (max-width: 768px) {
  .masonry-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Testimonials
   ========================================================================== */
.testimonials {
  padding: var(--spacing-xl) 0;
}

.testimonials-scroll {
  display: flex;
  gap: 2rem;
  overflow-x: auto;
  padding-bottom: 2rem;
  scrollbar-width: none; /* Firefox */
}
.testimonials-scroll::-webkit-scrollbar {
  display: none; /* Chrome */
}

.testimonial-card {
  min-width: 400px;
  background-color: var(--surface);
  padding: 3rem;
  border: 1px solid var(--border);
  border-radius: var(--border-radius);
}

.stars {
  color: var(--primary);
  margin-bottom: 1.5rem;
  display: flex;
  gap: 0.25rem;
}

.stars svg {
  fill: var(--primary);
  width: 20px;
  height: 20px;
}

.quote {
  font-size: 1.1rem;
  font-style: italic;
  margin-bottom: 2rem;
}

.author {
  color: var(--primary);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

@media (max-width: 768px) {
  .testimonial-card {
    min-width: 300px;
    padding: 2rem;
  }
}

/* ==========================================================================
   CTA Band
   ========================================================================== */
.cta-band {
  background-color: var(--primary);
  padding: 6rem 0;
  color: white;
}

.cta-headline {
  font-size: 4rem;
}

.cta-subheadline {
  font-size: 1.2rem;
  margin-bottom: 2.5rem;
  opacity: 0.9;
}

/* ==========================================================================
   Contact Section
   ========================================================================== */
.contact {
  padding: var(--spacing-xl) 0;
  background-color: var(--dark-base);
}

.contact-container {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 4rem;
}

.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.form-group.full-width {
  grid-column: span 2;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 1rem;
  background-color: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-primary);
  font-family: inherit;
  outline: none;
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--primary);
}

.select-wrapper {
  position: relative;
}

.select-wrapper::after {
  content: '▼';
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-secondary);
  pointer-events: none;
  font-size: 0.8rem;
}

.form-submit {
  grid-column: span 2;
  justify-self: start;
}

.form-status {
  grid-column: span 2;
  padding: 1rem;
  background-color: rgba(204,0,0,0.1);
  border-left: 4px solid var(--primary);
  margin-top: 1rem;
}

.contact-info-block {
  background-color: var(--surface);
  padding: 3rem;
  border: 1px solid var(--border);
  border-top: 4px solid var(--primary);
}

.info-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
}

.info-item:last-child {
  margin-bottom: 0;
}

.info-icon {
  color: var(--primary);
}

.info-text strong {
  display: block;
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}

.info-text span {
  color: var(--text-secondary);
}

@media (max-width: 992px) {
  .contact-container {
    grid-template-columns: 1fr;
  }
  .contact-form {
    grid-template-columns: 1fr;
  }
  .form-group.full-width, .form-submit, .form-status {
    grid-column: span 1;
  }
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  background-color: #050505;
  border-top: 1px solid var(--primary);
  padding-top: 5rem;
}

.footer-top {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 4rem;
  margin-bottom: 4rem;
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 2.5rem;
  letter-spacing: 2px;
  display: inline-block;
  margin-bottom: 1rem;
}

.footer-brand p {
  color: var(--text-secondary);
}

.footer-links-group {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.footer-col h4 {
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 0.75rem;
}

.footer-col a {
  color: var(--text-secondary);
  transition: color 0.3s ease;
}

.footer-col a:hover {
  color: var(--primary);
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 2rem 0;
  display: flex;
  justify-content: space-between;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.footer-legal {
  display: flex;
  gap: 1.5rem;
}

.footer-legal a:hover {
  color: var(--text-primary);
}

@media (max-width: 992px) {
  .footer-top {
    grid-template-columns: 1fr;
  }
  .footer-links-group {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 768px) {
  .footer-links-group {
    grid-template-columns: 1fr;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
  .footer-legal {
    justify-content: center;
  }
}

/* ==========================================================================
   Animations & Utilities
   ========================================================================== */
.fade-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, opacity;
}

.scale-in {
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, opacity;
}

.is-visible {
  opacity: 1;
  transform: translate(0) scale(1);
}

.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }
.stagger-4 { transition-delay: 0.4s; }
.stagger-5 { transition-delay: 0.5s; }

/* Disable animations for prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .fade-up, .scale-in {
    opacity: 1;
    transform: none;
  }
  .ticker-content {
    animation: none;
    flex-wrap: wrap;
    justify-content: center;
  }
}
