/* GLOBAL VARIABLES */
:root {
  --deep-black: #020617;
  --ice-dark: #0f172a;
  --glass-bg: rgba(255, 255, 255, 0.05);
  --glass-bg-hover: rgba(255, 255, 255, 0.08);
  --glass-border: rgba(255, 255, 255, 0.1);
  --ice-blue: #38bdf8;
  --snow-white: #f8fafc;
  --soft-gray: #94a3b8;
  --frost-glow: linear-gradient(135deg, #38bdf8, #0f172a);
  --font-main: 'Inter', 'Helvetica Neue', sans-serif;
  --transition-fast: all 0.3s ease;
  --transition-slow: all 0.5s ease;
}

/* RESET & BASE */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  background-color: var(--deep-black);
  color: var(--snow-white);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

/* BACKGROUND EFFECTS */
body::before {
  content: '';
  position: fixed;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at center, rgba(56, 189, 248, 0.05) 0%, transparent 50%);
  z-index: -1;
  pointer-events: none;
}

a {
  text-decoration: none;
  color: var(--snow-white);
  transition: var(--transition-fast);
}

a:hover {
  color: var(--ice-blue);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

/* UTILITIES */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

.glass-panel {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

.btn-primary {
  display: inline-block;
  background: var(--frost-glow);
  color: var(--snow-white);
  padding: 14px 28px;
  border-radius: 8px;
  border: 1px solid rgba(56, 189, 248, 0.3);
  font-weight: 600;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: var(--transition-fast);
  text-transform: uppercase;
  font-size: 0.9rem;
  box-shadow: 0 4px 15px rgba(56, 189, 248, 0.2);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(56, 189, 248, 0.4);
  color: var(--snow-white);
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
  font-weight: 300;
  letter-spacing: 2px;
}

.section-title span {
  color: var(--ice-blue);
  font-weight: 600;
}

/* HEADER / NAV */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1.5rem 0;
  z-index: 1000;
  transition: var(--transition-fast);
  background: rgba(2, 6, 23, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--glass-border);
}

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

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--snow-white);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

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

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

.nav-links li a {
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  padding: 0.5rem 0;
  position: relative;
}

.nav-links li a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--ice-blue);
  transition: var(--transition-fast);
}

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

.nav-cta {
  display: none;
}

.menu-toggle {
  display: none;
  font-size: 1.5rem;
  background: none;
  border: none;
  color: var(--snow-white);
  cursor: pointer;
}

@media (min-width: 992px) {
  .nav-cta {
    display: block;
    padding: 10px 20px;
    font-size: 0.85rem;
  }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 70px;
    right: -100%;
    width: 250px;
    height: calc(100vh - 70px);
    flex-direction: column;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-left: 1px solid var(--glass-border);
    padding: 2rem;
    transition: var(--transition-fast);
  }
  .nav-links.active {
    right: 0;
  }
  .menu-toggle {
    display: block;
  }
}

/* HERO SECTION */
.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('images/photo-1520256862855-398228c41684.png') center/cover no-repeat;
  z-index: -2;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, rgba(2, 6, 23, 0.9) 0%, rgba(2, 6, 23, 0.4) 100%);
  z-index: -1;
}

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

.hero-content h1 {
  font-size: 4rem;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  font-weight: 700;
  text-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

.hero-content p {
  font-size: 1.2rem;
  color: var(--soft-gray);
  margin-bottom: 2.5rem;
  font-weight: 300;
}

@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 2.5rem;
  }
  .hero-content p {
    font-size: 1rem;
  }
}

/* PRODUCT GRID */
.products-section {
  padding: 6rem 0;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2.5rem;
}

.product-card {
  padding: 1.5rem;
  transition: var(--transition-fast);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.product-card:hover {
  transform: translateY(-10px);
  background: var(--glass-bg-hover);
  border-color: rgba(56, 189, 248, 0.3);
}

.product-image {
  width: 100%;
  height: 350px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 1.5rem;
  filter: brightness(0.9);
  transition: var(--transition-fast);
}

.product-card:hover .product-image {
  filter: brightness(1);
}

.product-info {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.product-name {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.product-desc {
  color: var(--soft-gray);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.product-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
}

.product-price {
  font-size: 1.2rem;
  color: var(--ice-blue);
  font-weight: 700;
}

/* ADD TO CART BUTTON */
.add-to-cart-btn {
  background: rgba(255,255,255,0.1);
  color: var(--snow-white);
  border: 1px solid var(--glass-border);
  padding: 10px 16px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 500;
  transition: var(--transition-fast);
}

.add-to-cart-btn:hover {
  background: var(--ice-blue);
  color: var(--deep-black);
  border-color: var(--ice-blue);
}

/* COLLECTIONS PAGE SPECIFIC */
.collection-row {
  display: flex;
  align-items: center;
  gap: 4rem;
  margin-bottom: 6rem;
}

.collection-row:nth-child(even) {
  flex-direction: row-reverse;
}

.collection-image {
  flex: 1;
  border-radius: 16px;
  overflow: hidden;
}

.collection-image img {
  width: 100%;
  height: 500px;
  object-fit: cover;
}

.collection-text {
  flex: 1;
}

.collection-text h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--ice-blue);
}

.collection-text p {
  color: var(--soft-gray);
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

@media (max-width: 992px) {
  .collection-row, .collection-row:nth-child(even) {
    flex-direction: column;
    gap: 2rem;
  }
  .collection-image img {
    height: 300px;
  }
}

/* INTERNAL PAGES HERO */
.internal-hero {
  padding-top: 150px;
  padding-bottom: 50px;
  text-align: center;
  background: linear-gradient(to bottom, rgba(15, 23, 42, 0.8), var(--deep-black));
  border-bottom: 1px solid var(--glass-border);
}

.internal-hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.internal-hero p {
  color: var(--soft-gray);
  max-width: 600px;
  margin: 0 auto;
}

/* CONTACT FORM & CART DISPLAY */
.contact-wrapper {
  display: flex;
  gap: 4rem;
  padding: 4rem 0;
}

.contact-info, .contact-form-container {
  flex: 1;
}

.cart-display {
  padding: 2rem;
  margin-bottom: 2rem;
  border-left: 4px solid var(--ice-blue);
}

.cart-display h3 {
  margin-bottom: 0.5rem;
  color: var(--soft-gray);
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.cart-display #selected-product-display {
  font-size: 1.5rem;
  color: var(--snow-white);
  font-weight: 600;
}

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

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--soft-gray);
  font-size: 0.9rem;
}

.form-control {
  width: 100%;
  padding: 14px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  color: var(--snow-white);
  font-family: var(--font-main);
  transition: var(--transition-fast);
}

.form-control:focus {
  outline: none;
  border-color: var(--ice-blue);
  background: rgba(255,255,255,0.06);
}

textarea.form-control {
  resize: vertical;
  height: 120px;
}

@media (max-width: 768px) {
  .contact-wrapper {
    flex-direction: column;
  }
}

/* ABOUT PAGE */
.about-content {
  padding: 4rem 0;
  max-width: 800px;
  margin: 0 auto;
}

.about-content p {
  margin-bottom: 1.5rem;
  color: var(--soft-gray);
  font-size: 1.1rem;
  line-height: 1.8;
}

.about-content h2 {
  font-size: 2rem;
  margin: 3rem 0 1rem;
  color: var(--ice-blue);
}

/* TEXT PAGES (TERMS/PRIVACY) */
.text-page-content {
  padding: 4rem 0;
  max-width: 800px;
  margin: 0 auto;
}

.text-page-content h2 {
  margin-top: 2rem;
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.text-page-content p {
  color: var(--soft-gray);
  margin-bottom: 1rem;
}

/* FOOTER */
footer {
  background: var(--ice-dark);
  border-top: 1px solid var(--glass-border);
  padding: 4rem 0 2rem;
  margin-top: 4rem;
}

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

.footer-col h4 {
  color: var(--snow-white);
  margin-bottom: 1.5rem;
  font-size: 1.2rem;
}

.footer-col p {
  color: var(--soft-gray);
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.footer-links li {
  margin-bottom: 0.8rem;
}

.footer-links a {
  color: var(--soft-gray);
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: var(--ice-blue);
  padding-left: 5px;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid var(--glass-border);
  color: var(--soft-gray);
  font-size: 0.85rem;
}

/* ANIMATIONS */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-fade {
  animation: fadeIn 0.8s ease-out forwards;
}