:root {
  --primary: #0a0a0a;
  --secondary: #1a1a1a;
  --accent: #b10000;
  --accent-glow: rgba(255, 107, 53, 0.3);
  --white: #ffffff;
  --gray: #666666;
  --light-gray: #999999;
  --dark: #111111;
  --gradient-main: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 50%, #2a2a2a 100%);
  --gradient-accent: linear-gradient(45deg, #ff3535, #f71e1e, #ff3535);
  --shadow-soft: 0 20px 60px rgba(0, 0, 0, 0.3);
  --shadow-hard: 0 30px 100px rgba(0, 0, 0, 0.5);
  --transition-smooth: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --transition-cinematic: all 0.6s cubic-bezier(0.19, 1, 0.22, 1);
  --font-main: 'Outfit', sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-main);
  background: #000000;
  color: var(--white);
  line-height: 1.6;
  opacity: 0;
  transition: opacity 0.6s ease;
  will-change: opacity;
}

.cinematic-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.bg-layer {
  position: absolute;
  width: 120%;
  height: 120%;
  opacity: 0.6;
  will-change: transform;
}

.layer-1 {
  background: radial-gradient(circle at 20% 80%, rgba(255, 107, 53, 0.1) 0%, transparent 50%);
  animation: float-bg 20s infinite ease-in-out;
}

.layer-2 {
  background: radial-gradient(circle at 80% 20%, rgba(247, 147, 30, 0.08) 0%, transparent 50%);
  animation: float-bg 25s infinite ease-in-out reverse;
}

.layer-3 {
  background: radial-gradient(circle at 40% 40%, rgba(255, 107, 53, 0.05) 0%, transparent 50%);
  animation: float-bg 30s infinite ease-in-out;
}

.film-grain {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.03;
  background-image: radial-gradient(circle, transparent 1px, rgba(255, 255, 255, 0.1) 1px);
  background-size: 4px 4px;
  animation: grain 0.2s infinite;
  pointer-events: none;
}


.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  text-align: center;
  padding: 0 2rem;
  will-change: opacity, transform;
}

.hero-content {
  max-width: 1200px;
  width: 100%;

}

.cinematic-title {
  margin-bottom: 3rem;
  position: relative;
  
}

.main-title {
  font-size: clamp(3rem, 8vw, 8rem);
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: -0.05em;
  text-transform: uppercase;
  margin-bottom: 2rem;
    color: white !important;
}

.title-line {
  display: block;
  transform: translateY(100px);
  opacity: 0;
  will-change: transform, opacity;
  animation: slideUpTitle 1s cubic-bezier(0.19, 1, 0.22, 1) forwards;
}

.title-line:nth-child(2) {
  animation-delay: 0.15s;
}

.title-underline {
  width: 0;
  height: 4px;
  background: var(--gradient-accent);
  margin: 0 auto;
  will-change: width;
  animation: expandLine 1s cubic-bezier(0.19, 1, 0.22, 1) 0.6s forwards;
}

.hero-subtitle {
  font-size: clamp(1.2rem, 3vw, 2rem);
  font-weight: 300;
  color: var(--light-gray);
  opacity: 0;
  transform: translateY(30px);
  will-change: opacity, transform;
  animation: fadeInUp 0.8s ease 1s forwards;
}

.scroll-indicator {
  position: absolute;
  bottom: 4rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  opacity: 0;
  cursor: pointer;
  animation: fadeIn 0.8s ease 1.5s forwards;
}

.scroll-line {
  width: 2px;
  height: 60px;
  background: linear-gradient(to bottom, transparent, var(--accent), transparent);
  position: relative;
  overflow: hidden;
}

.scroll-line::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 20px;
  background: var(--accent);
  will-change: transform;
  animation: scrollPulse 2s infinite ease-in-out;
}

.scroll-text {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: 2px;
}

.showcase {
  padding: 8rem 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

.showcase-header {
  text-align: center;
  margin-bottom: 6rem;
}

.section-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  margin-bottom: 2rem;
  opacity: 0;
  transform: translateY(50px);
  will-change: opacity, transform;
    color: white !important;
}

.section-line {
  width: 0;
  height: 2px;
  background: var(--gradient-accent);
  margin: 0 auto;
  opacity: 0;
  will-change: width, opacity;
}

.brands-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 3rem;
  perspective: 1500px;
}

.brand-card {
  position: relative;
  height: 450px;
  text-decoration: none;
  color: inherit;
  border-radius: 0;
  overflow: hidden;
  transform: translateY(100px);
  opacity: 0;
  transition: var(--transition-cinematic);
  cursor: pointer;
  will-change: transform, opacity, box-shadow;
  backface-visibility: hidden;
  transform-style: preserve-3d;
}

.card-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transition: var(--transition-smooth);
  will-change: background;
}



.card-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 3rem 2rem;
  transition: var(--transition-smooth);
}

.brand-logo {
  position: relative;
  width: 200px;
  height: 200px;
  margin-bottom: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 0;
  transition: var(--transition-smooth);
  overflow: hidden;
  will-change: transform, box-shadow;
}

.brand-logo img {
  max-width: 80%;
  max-height: 80%;
  object-fit: contain;
  transition: var(--transition-smooth);
  filter: grayscale(0.2);
  will-change: filter, transform;
}

.brand-card:hover .logo-glow {
  opacity: 1;
}
.brand-card:hover .brand-logo {
  transform: scale(1.05);
  box-shadow: var(--shadow-hard);
}
.brand-card:hover .brand-logo img {
  filter: grayscale(0);
  transform: scale(1.1);
}
.brand-info {
  text-align: center;
  width: 100%;
}
.brand-name {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: var(--transition-smooth);
  background: linear-gradient(135deg, var(--white) 0%, var(--light-gray) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  will-change: background, transform;
}
.brand-desc {
  font-size: 1rem;
  color: var(--gray);
  font-weight: 400;
  margin-bottom: 2rem;
  transition: var(--transition-smooth);
  will-change: color, transform;
}
.brand-line {
  width: 0;
  height: 2px;
  background: var(--gradient-accent);
  margin: 0 auto;
  transition: var(--transition-smooth);
  will-change: width;
}
.brand-card:hover .brand-line {
  width: 100%;
}

.brand-card:hover .brand-name {
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  transform: translateY(-5px);
}

.brand-card:hover .brand-desc {
  color: var(--white);
  transform: translateY(-5px);
}

.card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transform: translateX(-100%);
  transition: var(--transition-cinematic);
  will-change: transform;
}

.brand-card:hover .card-overlay {
  transform: translateX(100%);
}

.brand-card:hover {
  transform: translateY(-20px) rotateX(5deg);
  box-shadow: var(--shadow-hard);
}
.loading {
  opacity: 0;
  transform: translateY(50px);
}

.loaded {
  opacity: 1;
  transform: translateY(0);
  transition: var(--transition-cinematic);
}
.animate-title {
  animation: slideUpTitle 0.8s cubic-bezier(0.19, 1, 0.22, 1) forwards;
}

.animate-line {
  animation: lineExpand 0.8s cubic-bezier(0.19, 1, 0.22, 1) 0.3s forwards;
}

.animate-card {
  animation: cardReveal 0.8s cubic-bezier(0.19, 1, 0.22, 1) forwards;
}

@media (max-width: 1024px) {
  .brands-grid {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
  }
  
  .brand-card {
    height: 400px;
  }
}

@media (max-width: 768px) {
    *{
        overflow-x: hidden;
    }
  .hero {
    padding: 0 1rem;
  }
    .hero .main-title {
    font-size: 26px;
  }
  .showcase {
    padding: 6rem 1rem;
  }
  
  .brands-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    max-width: 400px;
    margin: 0 auto;
  }
  
  .brand-card {
    height: 350px;
  }
  
  .brand-logo {
    width: 140px;
    height: 140px;
  }
  
  .card-content {
    padding: 2rem 1.5rem;
  }
  
  .brand-card:hover {
    transform: translateY(-10px);
  }
  
  .brand-card:active {
    transform: scale(0.98);
  }
}

@media (max-width: 480px) {
  .brand-card {
    height: 320px;
  }
  
  .brand-logo {
    width: 120px;
    height: 120px;
  }
  
  .brand-name {
    font-size: 1.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media (prefers-contrast: high) {
  :root {
    --primary: #000000;
    --secondary: #ffffff;
    --accent: #ffff00;
  }
  
  .brand-card {
    border: 2px solid var(--white);
  }
}

@media (prefers-color-scheme: dark) {
  .film-grain {
    opacity: 0.05;
  }
  
  .brand-logo {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  }
}

/* Keyframes */
@keyframes float-bg {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(0deg); }
  25% { transform: translate3d(-20px, -20px, 0) rotate(1deg); }
  50% { transform: translate3d(20px, -10px, 0) rotate(-1deg); }
  75% { transform: translate3d(-10px, 20px, 0) rotate(0.5deg); }
}

@keyframes grain {
  0%, 100% { transform: translate3d(0, 0, 0); }
  10% { transform: translate3d(-5%, -5%, 0); }
  20% { transform: translate3d(-10%, 5%, 0); }
  30% { transform: translate3d(5%, -10%, 0); }
  40% { transform: translate3d(-5%, 15%, 0); }
  50% { transform: translate3d(-10%, 5%, 0); }
  60% { transform: translate3d(15%, 0%, 0); }
  70% { transform: translate3d(0%, 15%, 0); }
  80% { transform: translate3d(-15%, 10%, 0); }
  90% { transform: translate3d(10%, 5%, 0); }
}

@keyframes slideUpTitle {
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes expandLine {
  to {
    width: 200px;
  }
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

@keyframes scrollPulse {
  0% { transform: translateY(-20px); opacity: 0; }
  50% { opacity: 1; }
  100% { transform: translateY(60px); opacity: 0; }
}

@keyframes cardReveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes lineExpand {
  to {
    width: 100px;
  }
}

@keyframes cinematicReveal {
  to {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
  }
}