/* ============================================
   RADIKAL — Industrial Hazard Theme
   ============================================ */

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

:root {
  --bg: #0a0a0a;
  --bg-card: rgba(255, 220, 0, 0.04);
  --border-card: rgba(255, 220, 0, 0.15);
  --text: #ffffff;
  --text-muted: rgba(255, 255, 255, 0.5);
  --yellow: #ffdc00;
  --yellow-dark: #e6c700;
  --red: #e30613;
  --red-dark: #b8050f;
  --accent-1: #ffdc00;
  --accent-2: #e30613;
  --accent-3: #ffffff;
  --glow-1: rgba(255, 220, 0, 0.35);
  --glow-2: rgba(227, 6, 19, 0.3);
  --glow-3: rgba(255, 220, 0, 0.15);
  --font-primary: 'DM Sans', sans-serif;
  --font-display: 'Bebas Neue', sans-serif;
}

html {
  scroll-behavior: smooth;
}

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

::selection {
  background: var(--yellow);
  color: #000;
}

/* ============================================
   Noise Overlay
   ============================================ */
#noise {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.06;
}

/* ============================================
   Top Bar
   ============================================ */
.top-bar {
  background: #000;
  color: var(--yellow);
  text-align: center;
  padding: 0.5rem 1rem;
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 102;
}

/* ============================================
   Hazard Stripes (construction lines)
   ============================================ */
.hazard-stripe {
  position: fixed;
  top: 32px;
  left: 0;
  width: 100%;
  height: 30px;
  background: repeating-linear-gradient(
    -45deg,
    var(--yellow),
    var(--yellow) 15px,
    #0a0a0a 15px,
    #0a0a0a 30px
  );
  z-index: 101;
  flex-shrink: 0;
}

.hazard-stripe-red {
  width: 100%;
  height: 20px;
  background: repeating-linear-gradient(
    -45deg,
    var(--red),
    var(--red) 15px,
    #0a0a0a 15px,
    #0a0a0a 30px
  );
  flex-shrink: 0;
}

/* ============================================
   Background Gradient Orbs
   ============================================ */
.bg-orbs {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(140px);
  will-change: transform;
}

.orb-1 {
  width: 600px;
  height: 600px;
  background: var(--glow-1);
  top: -200px;
  left: -100px;
  animation: float-1 15s ease-in-out infinite;
}

.orb-2 {
  width: 500px;
  height: 500px;
  background: var(--glow-2);
  top: 40%;
  right: -150px;
  animation: float-2 20s ease-in-out infinite;
}

.orb-3 {
  width: 400px;
  height: 400px;
  background: var(--glow-3);
  bottom: -100px;
  left: 30%;
  animation: float-3 18s ease-in-out infinite;
}

@keyframes float-1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(100px, 50px) scale(1.1); }
  66% { transform: translate(-50px, 100px) scale(0.9); }
}

@keyframes float-2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(-80px, -60px) scale(1.15); }
  66% { transform: translate(60px, -30px) scale(0.95); }
}

@keyframes float-3 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(70px, -80px) scale(1.05); }
  66% { transform: translate(-100px, 40px) scale(1.1); }
}

/* ============================================
   Navigation
   ============================================ */
.nav {
  position: fixed;
  top: 62px;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1rem 3rem;
  z-index: 100;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(10, 10, 10, 0.6);
  border-bottom: 2px solid var(--yellow);
}

.nav-logo {
  text-decoration: none;
  display: flex;
  align-items: center;
}

.nav-logo-img {
  height: 36px;
  width: auto;
  filter: brightness(0) invert(1);
}

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

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: color 0.3s ease;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--yellow);
  transition: width 0.3s ease;
}

.nav-link:hover {
  color: var(--yellow);
}

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

/* ============================================
   Hero
   ============================================ */
.hero {
  position: relative;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 1;
  overflow: hidden;
}

.hero-site-name {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 3vw, 2rem);
  letter-spacing: 0.5em;
  text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: 2rem;
  opacity: 0;
  transform: translateY(30px);
}

.hero-logo {
  will-change: transform, opacity;
}

.hero-logo-img {
  width: clamp(300px, 60vw, 800px);
  height: auto;
  filter: brightness(0) invert(1) drop-shadow(0 0 60px rgba(255, 220, 0, 0.4)) drop-shadow(0 0 120px rgba(255, 220, 0, 0.15));
}

.hero-subtitle {
  font-family: var(--font-primary);
  font-size: clamp(0.9rem, 2vw, 1.2rem);
  color: var(--text-muted);
  letter-spacing: 0.5em;
  text-transform: uppercase;
  margin-top: 1.5rem;
}

.hero-subtitle .char {
  display: inline-block;
  opacity: 0;
  transform: translateY(50px);
}

.hero-scroll-hint {
  position: absolute;
  bottom: 3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-muted);
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}

.scroll-line {
  width: 2px;
  height: 60px;
  background: linear-gradient(to bottom, var(--yellow), transparent);
  animation: scroll-pulse 2s ease-in-out infinite;
}

@keyframes scroll-pulse {
  0%, 100% { opacity: 1; transform: scaleY(1); }
  50% { opacity: 0.3; transform: scaleY(0.5); }
}

/* ============================================
   Section Titles
   ============================================ */
.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 6vw, 4.5rem);
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 4rem;
  color: var(--yellow);
  text-shadow: 0 0 40px rgba(255, 220, 0, 0.2);
}

.section-title .char {
  display: inline-block;
  opacity: 0;
  transform: translateY(80px);
}

/* ============================================
   Product Grid
   ============================================ */
.collection {
  position: relative;
  z-index: 1;
  padding: 8rem 3rem;
  min-height: 100vh;
}

.collection-intro {
  max-width: 700px;
  margin: 0 auto 3rem;
  text-align: center;
  font-size: 1.15rem;
  line-height: 1.8;
  color: #fff;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

/* ============================================
   Product Card — Industrial Glass
   ============================================ */
.product-card {
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  opacity: 0;
  transform: translateY(60px);
}

.card-glow {
  position: absolute;
  inset: -2px;
  border-radius: 6px;
  background: linear-gradient(
    135deg,
    var(--yellow),
    var(--red),
    var(--yellow)
  );
  background-size: 300% 300%;
  animation: glow-rotate 4s ease-in-out infinite;
  opacity: 0;
  transition: opacity 0.5s ease;
  z-index: 0;
}

.product-card:hover .card-glow {
  opacity: 1;
}

@keyframes glow-rotate {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.card-inner {
  position: relative;
  z-index: 1;
  background: rgba(20, 20, 20, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-card);
  border-radius: 4px;
  overflow: hidden;
  transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1),
              border-color 0.5s ease;
}

.product-card:hover .card-inner {
  transform: translateY(-8px);
  border-color: var(--yellow);
}

/* Hazard stripe on top of each card */
.card-inner::before {
  content: '';
  display: block;
  height: 4px;
  background: repeating-linear-gradient(
    -45deg,
    var(--yellow),
    var(--yellow) 6px,
    var(--bg) 6px,
    var(--bg) 12px
  );
}

.card-image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/5;
}

.card-image .img-main {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.23, 1, 0.32, 1), opacity 0.5s ease;
}

.card-image .img-tray {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.product-card:hover .card-image .img-main {
  transform: scale(1.05);
}

.product-card:hover .card-image.has-tray .img-main {
  opacity: 0;
  transform: scale(1);
}

.product-card:hover .card-image.has-tray .img-tray {
  opacity: 1;
}

/* Format section title */
.format-title {
  font-family: var(--font-display);
  font-size: 2rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-align: center;
  margin: 4rem 0 2rem;
  position: relative;
}

.format-title::before,
.format-title::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 80px;
  height: 2px;
  background: repeating-linear-gradient(
    -45deg,
    var(--yellow),
    var(--yellow) 4px,
    transparent 4px,
    transparent 8px
  );
}

.format-title::before {
  right: calc(50% + 80px);
}

.format-title::after {
  left: calc(50% + 80px);
}

.card-info {
  padding: 1.5rem;
  border-top: 1px solid rgba(255, 220, 0, 0.1);
}

.card-info h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  margin-bottom: 0.3rem;
  color: var(--yellow);
}

.card-info p {
  font-size: 0.8rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

/* ============================================
   About
   ============================================ */
.about {
  position: relative;
  z-index: 1;
  padding: 6rem 3rem;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
  max-width: 1400px;
  margin: 0 auto;
}

.about-col {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 2.5rem;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.about-col-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  letter-spacing: 0.1em;
  color: var(--yellow);
  margin-bottom: 1.2rem;
}

.about-col p {
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--text-muted);
}

@media (max-width: 768px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .about {
    padding: 4rem 1.5rem;
  }
}

.about-content {
  max-width: 700px;
  text-align: center;
}

.about-text {
  font-size: 1.2rem;
  line-height: 1.8;
  color: var(--text-muted);
  opacity: 0;
  transform: translateY(40px);
}

/* ============================================
   CTA
   ============================================ */
.cta {
  position: relative;
  z-index: 1;
  padding: 8rem 3rem;
  text-align: center;
}

.cta-content {
  max-width: 600px;
  margin: 0 auto;
}

.cta-text {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 3rem;
  opacity: 0;
  transform: translateY(30px);
}

.cta-button {
  display: inline-block;
  padding: 1rem 3rem;
  border-radius: 0;
  text-decoration: none;
  color: #000;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  position: relative;
  overflow: hidden;
  background: var(--yellow);
  border: 2px solid var(--yellow);
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  opacity: 0;
  transform: translateY(30px);
}

.cta-button:hover {
  background: transparent;
  color: var(--yellow);
  box-shadow: 0 0 40px rgba(255, 220, 0, 0.3);
  transform: translateY(-3px);
}

/* ============================================
   Tray Section
   ============================================ */
.tray-section {
  position: relative;
  z-index: 1;
  padding: 6rem 3rem;
}

.tray-content {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 4rem;
}

.tray-image {
  flex: 1;
}

.tray-image img {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 20px 60px rgba(255, 220, 0, 0.15));
}

.tray-text {
  flex: 1;
}

.tray-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  letter-spacing: 0.1em;
  color: var(--yellow);
  margin-bottom: 1.5rem;
}

.tray-description {
  font-size: 1.15rem;
  line-height: 1.8;
  color: var(--text-muted);
}

@media (max-width: 768px) {
  .tray-content {
    flex-direction: column;
    gap: 2rem;
    text-align: center;
  }

  .tray-section {
    padding: 4rem 1.5rem;
  }
}

/* ============================================
   Footer
   ============================================ */
.footer {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 4rem 3rem 2rem;
  background: rgba(0, 0, 0, 0.5);
}

.footer-logo {
  display: block;
  width: 200px;
  margin: 0 auto 1rem;
  filter: brightness(0) invert(1);
}

.footer-tagline {
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 0.3em;
  color: var(--yellow);
  margin-bottom: 2rem;
}

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

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--yellow);
}

.footer-copy {
  color: rgba(255, 255, 255, 0.3);
  font-size: 0.7rem;
  letter-spacing: 0.05em;
}

.footer-copy a {
  color: rgba(255, 255, 255, 0.3);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-copy a:hover {
  color: var(--yellow);
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 1024px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

@media (max-width: 768px) {
  .nav {
    padding: 1rem 1.5rem;
  }

  .nav-links {
    gap: 1.5rem;
  }

  .nav-link {
    font-size: 0.75rem;
  }

  .collection {
    padding: 6rem 1.5rem;
  }

  .product-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    max-width: 400px;
  }

  .about, .cta {
    padding: 6rem 1.5rem;
  }

  .section-title {
    margin-bottom: 3rem;
  }

  .hazard-stripe {
    height: 20px;
  }
}

@media (max-width: 480px) {
  .hero-title {
    letter-spacing: 0.1em;
  }

  .hero-subtitle {
    letter-spacing: 0.2em;
    font-size: 0.75rem;
  }

  .nav-logo {
    font-size: 1.1rem;
    letter-spacing: 0.2em;
  }
}
