/* --- Design Tokens & Variables --- */
:root {
  /* Colors */
  --bg-dark: #050505;
  --text-primary: #ffffff;
  --text-secondary: #a0a0a0;

  /* Purples & Blues from logo */
  --purple-vibrant: #CC30DE;
  --blue-vibrant: #3463CE;
  --purple-glow: #aa4aff;
  --purple-dark: #4b0082;

  /* Fonts */
  --font-heading: 'Syne', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;

  /* Spacing */
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 4rem;
  --spacing-xl: 8rem;
}

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

html {
  scroll-behavior: smooth;
}

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

/* --- Typography --- */
h1,
h2,
h3,
h4 {
  font-family: var(--font-heading);
  font-weight: 800;
  line-height: 1.2;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

/* --- Layout --- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

/* --- Components --- */
.btn {
  display: inline-block;
  padding: 0.8rem 2rem;
  border-radius: 4px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  font-family: var(--font-heading);
  transition: all 0.3s ease;
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
}

.btn-primary {
  background: linear-gradient(90deg, var(--blue-vibrant) 0%, var(--purple-vibrant) 100%);
  color: white;
  border: none;
  border-radius: 16px 0 0 0;
  box-shadow: 0 4px 15px rgba(138, 43, 226, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(138, 43, 226, 0.5);
  filter: brightness(1.2);
}

.btn-outline {
  background: transparent;
  color: white;
  border: 2px solid var(--purple-vibrant);
  border-radius: 0 16px 0 0;
}

.btn-outline:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(138, 43, 226, 0.5);
  filter: brightness(1.2);
}

/* --- Navbar --- */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1rem 0;
  z-index: 1000;
  transition: background-color 0.3s ease;
  /* subtle glassmorphism on scroll can go here */
}

#navbar.scrolled {
  background: rgba(5, 5, 5, 0.9);
  backdrop-filter: blur(5px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

#navbar .btn-primary {
  background: linear-gradient(to right, var(--blue-vibrant) 0%, var(--purple-vibrant) 100%);
  border-radius: 24px 0 0 0;
  text-transform: none;
  font-weight: 500;
  padding: 0.6rem 1.5rem;
  box-shadow: 0 4px 15px rgba(139, 92, 246, 0.4);
}

#navbar .btn-primary:hover {
  filter: brightness(1.2);
}

.header-logo {
  height: 60px;
  width: auto;
  object-fit: contain;
  transition: transform 0.3s;
}

.header-logo:hover {
  transform: scale(1.05);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  font-size: 0.9rem;
}

.nav-links a {
  opacity: 0.8;
}

.nav-links a:hover {
  opacity: 1;
  color: var(--purple-glow);
}

.nav-links a.buy-now:hover {
  opacity: 1;
  color: var(--white);
}

.lang-toggle {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  margin-left: 1rem;
  font-weight: 600;
  font-size: 0.85rem;
}

.lang-toggle span {
  cursor: pointer;
  opacity: 0.5;
  transition: opacity 0.3s;
}

.lang-toggle span.active {
  opacity: 1;
  color: var(--purple-glow);
}

.lang-toggle span:hover {
  opacity: 1;
}

/* --- Social Sidebar --- */
.social-sidebar {
  position: fixed;
  bottom: 2rem;
  left: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  z-index: 100;
}

.social-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--purple-vibrant);
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  font-size: 1.2rem;
  box-shadow: 0 0 15px rgba(138, 43, 226, 0.3);
}

.social-icon:hover {
  transform: scale(1.1);
  box-shadow: 0 0 20px rgba(138, 43, 226, 0.6);
}

/* --- Hero Section --- */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding: 8rem 4rem 4rem 8rem;
  /* Offset for left alignment */
}

.bg-glow {
  position: absolute;
  top: -10%;
  right: -10%;
  width: 80vw;
  height: 100vh;
  background: radial-gradient(circle, rgba(138, 43, 226, 0.15) 0%, rgba(5, 5, 5, 0) 70%);
  transform: rotate(25deg);
  z-index: -1;
  pointer-events: none;
}

/* Slanted vibrant stripe */
.hero-section::after {
  content: '';
  position: absolute;
  top: 0;
  right: 10%;
  width: 250px;
  height: 150vh;
  background: linear-gradient(160deg, #d81b60 0%, var(--purple-vibrant) 50%, var(--blue-vibrant) 100%);
  transform: rotate(30deg);
  opacity: 0.8;
  z-index: -2;
  filter: blur(5px);
}

.hero-content {
  flex: 1;
  max-width: 600px;
  animation: slideUp 1s ease-out;
}

.hero-title {
  font-size: 4rem;
  /* Apply the gradient */
  background: linear-gradient(to bottom, var(--purple-vibrant) 0%, var(--blue-vibrant) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
  /* Fallback */
  margin: 0;
  padding-right: 0.1em;
  /* Prevent clipping at the right (like italicized letters) */
  display: inline-block;
  font-weight: 800;
  letter-spacing: -2px;
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 3rem;
  color: white;
  margin-top: 0.5rem;
  margin-bottom: 4rem;
  /* Increased from 2rem to 4rem */
  letter-spacing: 2px;
}

.hero-actions {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 4rem;
}

.badges {
  display: flex;
  gap: 1rem;
}

.badge-img {
  width: 60px;
  height: 60px;
  object-fit: contain;
}

.hero-image-wrapper {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 10;
  animation: fadeIn 1.5s ease-out;
}

.bottle-mock {
  width: 300px;
  height: 500px;
  background: linear-gradient(145deg, #111, #000);
  border-radius: 40px;
  box-shadow: inset 10px 0 30px rgba(255, 255, 255, 0.05),
    -20px 0 50px rgba(0, 0, 0, 0.8),
    10px 0 20px rgba(138, 43, 226, 0.2);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.bottle-mock::before {
  content: '';
  position: absolute;
  top: 10%;
  left: 5%;
  width: 20px;
  height: 80%;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.1), transparent);
  border-radius: 10px;
}

/* Ribbed bottle cap simulation */
.bottle-mock::after {
  content: '';
  position: absolute;
  top: -20px;
  left: 20%;
  width: 60%;
  height: 60px;
  background: repeating-linear-gradient(90deg,
      #111,
      #111 2px,
      #222 2px,
      #222 4px);
  border-radius: 5px 5px 0 0;
}

.mock-logo {
  margin-top: 60px;
  margin-bottom: 30px;
  color: #ccc;
  font-family: var(--font-heading);
}

.mock-product h3 {
  font-size: 2.5rem;
  letter-spacing: 2px;
  margin-bottom: 0.5rem;
}

.mock-product p {
  color: var(--text-secondary);
  font-size: 0.8rem;
  letter-spacing: 1px;
}

/* --- Features Section --- */
.features-section {
  padding: var(--spacing-xl) 0;
  position: relative;
}

.carousel-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}

.carousel-btn {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 20;
}

.carousel-btn:hover {
  background: var(--purple-vibrant);
  border-color: var(--purple-vibrant);
  transform: scale(1.1);
}

.cards-grid {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: 1200px;
  position: relative;
  height: 650px;
  /* Increased Fixed height */
  perspective: 1200px;
  /* Add perspective for 3D effect */
}

.feature-card {
  border-radius: 20px;
  overflow: hidden;
  background: #111;
  position: absolute;
  /* Changed to absolute for stacking */
  transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
  /* Smooth transition */
  width: 450px;
  /* Increased from 350px */
  height: 580px;
  /* Increased from 480px */
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.9) 100%),
    url('https://images.unsplash.com/photo-1581009146145-b5ef050c2e1e?ixlib=rb-4.0.3&auto=format&fit=crop&w=800&q=80') center/cover;
}

#card-2 {
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.9) 100%),
    url('https://images.unsplash.com/photo-1541534741688-6078c6bfb5c5?ixlib=rb-4.0.3&auto=format&fit=crop&w=800&q=80') center/cover;
}

#card-3 {
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.9) 100%),
    url('https://images.unsplash.com/photo-1517836357463-d25dfeac3438?ixlib=rb-4.0.3&auto=format&fit=crop&w=800&q=80') center/cover;
}

.card-inner {
  padding: 2.5rem;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(10px);
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  border-top: 2px solid var(--purple-vibrant);
  border-left: 2px solid var(--purple-vibrant);
  border-right: 2px solid var(--purple-vibrant);
  border-radius: 20px 20px 0 0;
  margin-top: 20%;
}

.center-card {
  z-index: 10;
  transform: translateX(0) scale(1.1);
  /* Center and scaled MORE up */
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
  opacity: 1;
}

.side-card-left {
  z-index: 5;
  transform: translateX(-50%) scale(0.85) rotateY(15deg);
  /* Shifted left, scaled down, rotated */
  opacity: 0.6;
  filter: grayscale(80%);
  cursor: pointer;
}

.side-card-right {
  z-index: 5;
  transform: translateX(50%) scale(0.85) rotateY(-15deg);
  /* Shifted right, scaled down, rotated */
  opacity: 0.6;
  filter: grayscale(80%);
  cursor: pointer;
}

.side-card-left:hover,
.side-card-right:hover {
  opacity: 0.8;
  filter: grayscale(40%);
}

.center-card h3 {
  font-size: 1.5rem;
  letter-spacing: 2px;
  border-bottom: 2px solid rgba(255, 255, 255, 0.2);
  padding-bottom: 10px;
  margin-bottom: 20px;
}

.center-card p.highlight {
  font-size: 1.1rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
}

.center-card p:not(.highlight) {
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.slider-dots {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 3rem;
}

.dot {
  width: 30px;
  height: 4px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 2px;
  cursor: pointer;
  transition: all 0.3s;
}

.dot.active {
  background: var(--purple-vibrant);
  width: 40px;
}

/* --- Generic Sections --- */
.generic-section {
  padding: var(--spacing-xl) var(--spacing-lg);
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.generic-section h2 {
  font-size: 2.5rem;
  color: var(--purple-glow);
  margin-bottom: 2rem;
}

.generic-section p {
  font-size: 1.2rem;
  color: var(--text-secondary);
}

footer {
  text-align: center;
  padding: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  margin-top: 4rem;
  color: var(--text-secondary);
}

/* --- Animations --- */
@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

/* --- Responsive --- */
@media (max-width: 900px) {
  .hero-section {
    flex-direction: column;
    padding: 6rem 2rem 2rem;
    text-align: center;
  }

  .hero-actions {
    justify-content: center;
  }

  .badges {
    justify-content: center;
    margin-bottom: 2rem;
  }

  .cards-grid {
    flex-direction: column;
  }

  .side-card {
    display: none;
    /* Hide side cards on mobile for simpler view */
  }

  .center-card {
    transform: none;
    min-height: auto;
  }

  .nav-links a:not(.btn) {
    display: none;
    /* Hide standard links on mobile, keep button & lang */
  }

  .hero-title {
    font-size: 3.5rem;
    letter-spacing: -1px;
  }
}