@import url("https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;700&display=swap");

:root {
  --bg-gradient: linear-gradient(135deg, #0f0c29, #302b63, #24243e);
  --glass-bg: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(255, 255, 255, 0.1);
  --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  --text-primary: #ffffff;
  --text-secondary: #e0e0e0;
  --accent-color: #00d2ff;
  --accent-hover: #3a7bd5;
}

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

body {
  font-family: "Outfit", sans-serif;
  background: var(--bg-gradient);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.6;
}

/* Background Animation */
body::before {
  content: "";
  position: fixed;
  top: -50%;
  left: -50%;
  right: -50%;
  bottom: -50%;
  width: 200%;
  height: 200%;
  background: transparent url("http://assets.iceable.com/img/noise-transparent.png") repeat 0 0;
  background-repeat: repeat;
  animation: bg-animation 0.2s infinite;
  opacity: 0.3;
  visibility: visible;
  pointer-events: none;
  z-index: -1;
}

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

ul {
  list-style: none;
}

/* Utilities */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section-padding {
  padding: 6rem 0;
}

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

.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  border-radius: 16px;
  padding: 2rem;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.glass-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 40px 0 rgba(0, 0, 0, 0.45);
  border-color: rgba(255, 255, 255, 0.2);
}

@keyframes pulse-glow {
  0% {
    box-shadow: 0 0 0 0 rgba(0, 210, 255, 0.4);
  }

  70% {
    box-shadow: 0 0 0 15px rgba(0, 210, 255, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(0, 210, 255, 0);
  }
}

.btn {
  display: inline-block;
  padding: 14px 36px;
  border-radius: 50px;
  background: linear-gradient(45deg, var(--accent-color), #3a7bd5, var(--accent-color));
  background-size: 200% auto;
  color: #fff;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 210, 255, 0.4);
  position: relative;
  overflow: hidden;
  z-index: 1;
  transition: all 0.4s ease;
  animation: pulse-glow 2s infinite;
}

.btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transition: 0.5s;
  z-index: -1;
}

.btn:hover {
  background-position: right center;
  box-shadow: 0 0 25px rgba(0, 210, 255, 0.7), 0 0 50px rgba(0, 210, 255, 0.4);
  transform: translateY(-3px) scale(1.02);
  color: #fff;
}

.btn:hover::before {
  left: 100%;
}

.btn:active {
  transform: translateY(1px) scale(0.98);
  box-shadow: 0 2px 10px rgba(0, 210, 255, 0.3);
}

/* Header */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1.5rem 0;
  transition: 0.3s;
}

header.scrolled {
  background: rgba(15, 12, 41, 0.8);
  backdrop-filter: blur(20px);
  padding: 1rem 0;
  border-bottom: 1px solid var(--glass-border);
}

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

.menu-toggle {
  display: none;
  cursor: pointer;
}

.bar {
  display: block;
  width: 25px;
  height: 3px;
  margin: 5px auto;
  transition: all 0.3s ease-in-out;
  background-color: var(--text-primary);
}

.logo {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -1px;
}

.logo span {
  color: var(--accent-color);
}

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

.nav-links a {
  font-weight: 500;
  color: var(--text-secondary);
  position: relative;
}

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

.nav-links a:hover {
  color: var(--text-primary);
}

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

/* Text Colors */
.text-secondary {
  color: var(--text-secondary);
}

.mb-1 {
  margin-bottom: 1rem;
}

.mb-2 {
  margin-bottom: 2rem;
}

.mt-3 {
  margin-top: 3rem;
}

/* Hero */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 120px 0 60px;
}

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

.hero-content {
  z-index: 2;
  text-align: left;
}

.hero h1 {
  font-size: 4rem;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  background: linear-gradient(to right, #fff, #b2fefa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

.hero-image-wrapper {
  position: relative;
  z-index: 2;
}

.hero-image-container {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0;
}

.hero-image-container img {
  width: 100%;
  height: auto;
  display: block;
  transform: scale(1.05);
  transition: transform 0.5s ease;
  border-radius: 16px;
}

.hero-image-container:hover img {
  transform: scale(1);
}

/* Responsive Hero */
@media (max-width: 992px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-content {
    text-align: center;
    margin-bottom: 3rem;
  }
}

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.features-grid .glass-card {
  text-align: center;
}

.features-grid h3 {
  margin-bottom: 1rem;
  color: var(--accent-color);
}

/* Content Sections */
.split-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.section-subtitle {
  color: var(--text-secondary);
  font-size: 1.1rem;
  margin-bottom: 3rem;
}

.list-check {
  margin-top: 1.5rem;
}

.list-check li {
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  color: var(--text-secondary);
}

.list-check li::before {
  content: "✓";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background: rgba(0, 210, 255, 0.2);
  color: var(--accent-color);
  border-radius: 50%;
  margin-right: 1rem;
  font-size: 0.8rem;
  font-weight: bold;
}

/* Footer */
footer {
  background: rgba(0, 0, 0, 0.2);
  padding: 4rem 0 2rem;
  margin-top: 4rem;
  border-top: 1px solid var(--glass-border);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-logo {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  display: block;
}

.footer-text {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid var(--glass-border);
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.9rem;
}

/* Step Icons */
.step-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--accent-color), #3a7bd5);
  color: white;
  font-size: 1.5rem;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  box-shadow: 0 0 20px rgba(0, 210, 255, 0.4);
  position: relative;
  z-index: 1;
}

.step-icon::after {
  content: '';
  position: absolute;
  top: -5px;
  left: -5px;
  right: -5px;
  bottom: -5px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  z-index: -1;
}

/* Design Lab */
.controls-panel {
  background: rgba(255, 255, 255, 0.02);
  padding: 2rem;
  border-radius: 16px;
  border: 1px solid var(--glass-border);
}

.control-group {
  margin-bottom: 1.5rem;
}

.control-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--accent-color);
}

.glass-input {
  width: 100%;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  color: white;
  font-family: inherit;
  font-size: 1rem;
  outline: none;
  transition: 0.3s;
}

.glass-input:focus {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--accent-color);
}

.file-upload-wrapper {
  display: flex;
  align-items: center;
}

.glass-btn-upload {
  display: inline-block;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: 0.3s;
  color: white;
}

.glass-btn-upload:hover {
  background: var(--accent-color);
  border-color: var(--accent-color);
}

.color-options {
  display: flex;
  gap: 10px;
}

.color-opt {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid transparent;
  transition: 0.3s;
}

.color-opt.active,
.color-opt:hover {
  transform: scale(1.2);
  border-color: white;
}

/* Bottle Preview */
.preview-panel {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 400px;
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.05) 0%, transparent 70%);
}

.bottle-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  filter: drop-shadow(0 0 20px rgba(0, 0, 0, 0.5));
}

.bottle-cap {
  width: 40px;
  height: 20px;
  background: #ecf0f1;
  border-radius: 4px;
  margin-bottom: 2px;
}

.bottle-neck {
  width: 30px;
  height: 40px;
  background: rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-bottom: none;
  z-index: 2;
}

.bottle-body {
  width: 100px;
  height: 280px;
  background: rgba(255, 255, 255, 0.1);
  /* Default tint */
  border-radius: 20px 20px 10px 10px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  position: relative;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  overflow: hidden;
  transition: background 0.3s ease;
}

.bottle-reflection {
  position: absolute;
  top: 10px;
  left: 10px;
  width: 15px;
  height: 200px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.4), transparent);
  border-radius: 10px;
}

.bottle-label {
  position: absolute;
  top: 80px;
  left: 0;
  width: 100%;
  height: 80px;
  background: rgba(255, 222, 222, 0);
  /* Transparent label bg for now or custom */
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

#previewText {
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
  /* Default text color */
  text-transform: uppercase;
  letter-spacing: 1px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  transition: color 0.3s;
}

/* Responsive */
/* Responsive */
@media (max-width: 992px) {
  .container {
    padding: 0 1.5rem;
  }

  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
  }

  .hero-content {
    text-align: center;
    margin-bottom: 2rem;
    order: 1;
    /* Move text below image if desired, or keep as is. Default is 0. Let's keep text on top for now */
  }

  .hero h1 {
    font-size: 3rem;
  }

  .nav-links {
    gap: 1.5rem;
  }
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
    z-index: 1001;
    /* Above mobile menu */
  }

  .menu-toggle.active .bar:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .menu-toggle.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  .nav-menu {
    position: fixed;
    left: -100%;
    top: 0;
    gap: 0;
    flex-direction: column;
    background: rgba(15, 12, 41, 0.98);
    /* Solid dark background */
    backdrop-filter: blur(20px);
    width: 100%;
    height: 100vh;
    /* Full viewport height */
    text-align: center;
    transition: 0.3s;
    z-index: 1000;
    /* Behind menu toggle */
    padding-top: 5rem;
  }

  .nav-menu.active {
    left: 0;
  }

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

  .nav-links a {
    font-size: 1.5rem;
  }

  .hero h1 {
    font-size: 2.2rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .split-section {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  /* Reverse order for split sections if needed usually text first then image */
  /* Check specific sections if they need reordering used flex direction column-reverse if needed */

  .section-padding {
    padding: 4rem 0;
  }

  .section-title {
    font-size: 2rem;
  }

  .logo {
    font-size: 1.5rem;
  }

  /* Design Lab Mobile adjustments */
  .controls-panel {
    padding: 1.5rem;
  }

  .preview-panel {
    min-height: 300px;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.8rem;
  }

  .btn {
    padding: 12px 24px;
    font-size: 0.9rem;
  }
}