@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;800&display=swap');

:root {
  --primary: #121212;
  --accent: #dca376;
  --logo-bg: #cbb191;
  --text: #121212;
  --bg: #ffffff;
  --gray: #f2f2f2;
  --white: #ffffff;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* --- GLOBAL OVERFLOW KILLER --- */
html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  position: relative;
}

body {
  font-family: 'Outfit', sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
}

/* --- CONTAINER (Fluid) --- */
.container {
  width: 90%;
  max-width: 1400px;
  margin: 0 auto;
}

/* --- OPTIMIZED CURSOR --- */
body {
  cursor: none;
}

@media (hover: none) and (pointer: coarse) {
  body {
    cursor: auto !important;
  }

  .cursor,
  .cursor-follower {
    display: none !important;
  }
}

.cursor {
  width: 8px;
  height: 8px;
  background: #000;
  border-radius: 50%;
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 10000;
}

.cursor-follower {
  width: 35px;
  height: 35px;
  border: 2px solid #000;
  border-radius: 50%;
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9999;
}

/* --- HEADER --- */
.header {
  width: 100%;
  padding: 10px 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: fixed;
  top: 0;
  z-index: 1000;
  background: var(--logo-bg);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  animation: slideDown 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  min-height: 70px;
}

@keyframes slideDown {
  from {
    transform: translateY(-100%);
  }

  to {
    transform: translateY(0);
  }
}

.main-logo {
  height: clamp(35px, 5vw, 55px);
  max-width: 160px;
  width: auto;
  object-fit: contain;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 2rem;
  align-items: center;
  justify-content: center;
}

.nav-left,
.nav-right {
  display: flex;
  align-items: center;
}

.nav-left a,
.nav-right a {
  font-size: 0.8rem;
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: 2px;
  margin-right: 30px;
  color: white;
  transition: 0.3s;
}

.nav-left a:hover {
  opacity: 0.6;
}

.mobile-only {
  display: none;
}

/* --- HERO --- */
.hero {
  height: 100vh;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  width: 100%;
}

@media (max-width: 768px) {
  .hero {
    background-attachment: scroll;
  }
}

.hero-content {
  text-align: center;
  color: white;
  z-index: 2;
  width: 100%;
  padding: 0 20px;
}

.hero h1 {
  font-size: clamp(2.2rem, 10vw, 7rem);
  font-weight: 950;
  letter-spacing: -3px;
  margin-bottom: 20px;
  line-height: 1.1;
}

.hero p {
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  max-width: 700px;
  margin: 0 auto 50px;
  opacity: 0.9;
  font-weight: 300;
}

.hero-btns {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

/* --- BUTTONS --- */
.btn {
  padding: 18px 40px;
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2px;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-block;
  border-radius: 4px;
  text-align: center;
}

.btn-primary {
  background: white;
  color: black;
  border: none;
}

.btn-glass {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: white;
}

/* --- MARQUEE --- */
.marquee-wrapper {
  position: relative;
  overflow: visible;
  width: 100%;
  padding: 100px 0;
}

.floating-text {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  text-align: center;
  transform: translateY(-50%);
  font-size: clamp(6rem, 20vw, 18rem);
  font-weight: 950;
  color: rgba(0, 0, 0, 0.04);
  pointer-events: none;
  z-index: 1;
  letter-spacing: -0.5rem;
  white-space: nowrap;
}

/* --- PRODUCT GRID --- */
.section-padding {
  padding: clamp(80px, 15vw, 140px) 0;
  overflow: hidden;
}

.section-title {
  font-size: clamp(2.2rem, 6vw, 3.5rem);
  text-align: center;
  margin-bottom: clamp(50px, 10vw, 100px);
  font-weight: 900;
  position: relative;
  z-index: 2;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  position: relative;
  z-index: 2;
}

.product-card {
  background: var(--gray);
  padding: 15px;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.product-card img {
  width: 100%;
  height: auto;
  display: block;
  filter: grayscale(50%);
  transition: 0.8s;
}

.product-card:hover img {
  filter: grayscale(0);
}

/* --- NEWSLETTER --- */
.success-box {
  display: none;
  /* SHOWN VIA JS */
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-top: 20px;
}

.loader-ring {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(255, 255, 255, 0.1);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 1s infinite linear;
  margin: 20px auto;
  /* Centered */
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.success-text {
  font-weight: 800;
  color: var(--accent);
  font-size: 1.2rem;
}

/* --- FOOTER --- */
.footer {
  background: #000;
  color: white;
  padding: 120px 0 60px;
  overflow: hidden;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 80px;
  width: 90%;
  margin: 0 auto;
}

/* --- ABOUT PANEL (Accessibility Fix) --- */
.about-panel {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: #f8f8f8;
  /* Lighter BG */
  z-index: 2000;
  transform: translateY(100%);
  visibility: hidden;
  transition: transform 0.8s cubic-bezier(0.86, 0, 0.07, 1);
  overflow-y: auto;
  color: var(--primary);
  /* DARK TEXT */
  padding: 80px 5% 40px;
  /* Safe padding for close button and bottom */
}

.about-panel.active {
  transform: translateY(0);
  visibility: visible;
}

.about-text h2 {
  color: var(--primary);
  /* Dark for contrast */
  margin: 30px 0 20px;
}

.close-about {
  color: var(--primary) !important;
  font-size: 2.5rem;
  /* Standard readable size */
  top: 15px;
  right: 20px;
  font-weight: 300;
  position: absolute;
  z-index: 2005;
  cursor: pointer;
  background: none;
  border: none;
}

/* --- MEDIA QUERIES --- */
@media (max-width: 1100px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .header {
    height: 70px;
    padding: 0 20px;
    display: flex;
    justify-content: center;
    /* Center everything */
    position: fixed;
  }

  .mobile-menu-btn {
    display: flex;
    position: absolute;
    left: 20px;
    z-index: 1005;
    /* Above nav if overlapped */
    padding: 10px;
    cursor: pointer;
  }

  .logo {
    display: flex;
    justify-content: center;
  }

  .nav-right {
    display: none;
  }

  .nav-left {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--logo-bg);
    flex-direction: column;
    justify-content: center;
    transform: translateY(-100%);
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 999;
  }

  .nav-left.mobile-active {
    transform: translateY(0);
  }

  .mobile-only {
    display: block;
    font-size: 2rem !important;
    margin: 15px 0;
    text-align: center;
  }

  .nav-left a {
    font-size: 2rem;
    margin: 15px 0;
    margin-right: 0;
  }

  .hero-btns {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
    max-width: 300px;
  }

  /* Newsletter Stack Fix */
  .input-group {
    flex-direction: column;
    gap: 10px;
    background: none;
    border: none;
    padding: 0;
  }

  .input-group input {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 16px;
    width: 100%;
  }

  .input-group button {
    width: 100%;
    border-radius: 8px;
    padding: 16px;
  }
}

@media (max-width: 480px) {
  .product-grid {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    font-size: 2.5rem;
    letter-spacing: -1px;
  }

  .container {
    width: 92%;
  }

  .section-padding {
    padding: 60px 0;
  }
}