/* Global Variables */
:root {
  --color-primary: #a32a82;
  --color-primary-light: #c2409f;
  --color-primary-dark: #7e1e64;
  --color-secondary: #00b4d8;
  --color-secondary-light: #90e0ef;
  --color-bg-light: #faf9fd;
  --color-bg-water: #e0f7fa;
  --color-bg-white: #ffffff;
  --color-bg-dark: #12091c;
  --color-text-main: #1f122b;
  --color-text-muted: #625073;
  --font-sans: 'Plus Jakarta Sans', system-ui, sans-serif;
  --transition-smooth: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html.lenis {
  height: auto;
}

.lenis-smooth {
  scroll-behavior: auto !important;
}

.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}

body {
  font-family: var(--font-sans);
  background-color: var(--color-bg-light);
  color: var(--color-text-main);
  overflow-x: hidden;
  line-height: 1.6;
  transition: background-color 0.8s ease; /* Smooth background transitions */
}

/* Header/Nav */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  transition: var(--transition-smooth);
}

header.scrolled {
  background: rgba(250, 249, 253, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(163, 42, 130, 0.08);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 90px;
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 40px;
}

header.scrolled .nav-container {
  height: 75px;
}

.logo {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--color-primary);
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-links {
  display: flex;
  gap: 40px;
  list-style: none;
}

.nav-links a {
  font-weight: 600;
  font-size: 15px;
  color: var(--color-text-muted);
  transition: var(--transition-smooth);
}

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

/* 3D Floating Object Canvas Container */
.fixed-object-viewport {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 5;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.interactive-object-container {
  position: relative;
  width: 400px;
  height: 400px;
  pointer-events: auto;
}

/* Shield Effect */
.shield-glow {
  position: absolute;
  top: 5%;
  left: 5%;
  width: 90%;
  height: 90%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 180, 216, 0.15) 0%, rgba(163, 42, 130, 0.05) 50%, rgba(255, 255, 255, 0) 70%);
  border: 2px solid rgba(0, 180, 216, 0.3);
  box-shadow: 0 0 40px rgba(0, 180, 216, 0.2), inset 0 0 20px rgba(163, 42, 130, 0.2);
  opacity: 0;
  transform: scale(0.8);
  transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.shield-glow.active {
  opacity: 1;
  transform: scale(1);
  animation: pulseShield 3s infinite ease-in-out;
}

@keyframes pulseShield {
  0%, 100% {
    box-shadow: 0 0 40px rgba(0, 180, 216, 0.2), inset 0 0 20px rgba(163, 42, 130, 0.2);
  }
  50% {
    box-shadow: 0 0 60px rgba(0, 180, 216, 0.4), inset 0 0 35px rgba(163, 42, 130, 0.4);
  }
}

.object-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  transform-style: preserve-3d;
  filter: drop-shadow(0 20px 50px rgba(163, 42, 130, 0.15));
}

.object-layer.active {
  opacity: 1;
}

#splash-canvas {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 650px;
  height: 650px;
  pointer-events: none;
  z-index: 9;
}

/* Background grid overlay */
.bg-grid-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(rgba(163, 42, 130, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(163, 42, 130, 0.02) 1px, transparent 1px);
  background-size: 80px 80px;
  background-position: center;
  z-index: 1;
  pointer-events: none;
}

/* Sections and Grid Layouts */
.scroller-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  z-index: 6;
  padding: 100px 0;
}

.section-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
  align-items: center;
  position: relative;
}

.section-content {
  max-width: 540px;
}

.section-content.right-align {
  grid-column: 2;
}

.section-content h2 {
  font-size: 52px;
  font-weight: 800;
  letter-spacing: -1.5px;
  line-height: 1.1;
  margin-bottom: 24px;
}

.text-gradient {
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-content p {
  font-size: 18px;
  color: var(--color-text-muted);
  margin-bottom: 36px;
  line-height: 1.6;
}

/* Hero Section Custom */
.hero-content h1 {
  font-size: 64px;
  font-weight: 800;
  letter-spacing: -2px;
  line-height: 1.05;
  margin-bottom: 24px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 18px 36px;
  font-size: 16px;
  font-weight: 700;
  border-radius: 50px;
  cursor: pointer;
  transition: var(--transition-smooth);
  border: none;
}

.btn-primary {
  background: var(--color-primary);
  color: white;
  box-shadow: 0 10px 30px rgba(163, 42, 130, 0.2);
}

.btn-primary:hover {
  background: var(--color-primary-light);
  transform: translateY(-3px);
  box-shadow: 0 15px 35px rgba(163, 42, 130, 0.3);
}

/* Process Section bubbles styles */
.soap-bubble-element {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.8) 0%, rgba(163,42,130,0.1) 60%, rgba(0,180,216,0.3) 80%);
  border: 1px solid rgba(255,255,255,0.4);
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  pointer-events: none;
  opacity: 0;
  transform: scale(0.5);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.soap-bubble-element.active {
  opacity: 1;
  transform: scale(1);
}

/* Service Info Panel (Vertical lists) */
.services-panel {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.service-card-link {
  padding: 24px 32px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.service-card-link:hover, .service-card-link.active {
  background: white;
  border-color: var(--color-primary);
  box-shadow: 0 15px 40px rgba(163, 42, 130, 0.08);
}

.service-card-link h3 {
  font-size: 20px;
  margin-bottom: 8px;
}

.service-card-link p {
  font-size: 14px;
  margin-bottom: 0;
}

/* Pricing Calc Widget */
.calc-widget {
  padding: 40px;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 20px 50px rgba(163, 42, 130, 0.05);
}

.calc-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 24px;
}

.calc-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.calc-group label {
  font-weight: 700;
  font-size: 13px;
  color: var(--color-text-muted);
}

.calc-group select, .calc-group input {
  padding: 14px 20px;
  border-radius: 12px;
  border: 1px solid rgba(163, 42, 130, 0.12);
  background: white;
  font-family: var(--font-sans);
  font-size: 16px;
  color: var(--color-text-main);
  outline: none;
  transition: var(--transition-smooth);
}

.calc-total-box {
  text-align: center;
  padding-top: 24px;
  border-top: 1px dashed rgba(163, 42, 130, 0.15);
}

.calc-price {
  font-size: 38px;
  font-weight: 800;
  color: var(--color-primary);
}

.calc-time {
  font-size: 14px;
  color: var(--color-text-muted);
}

/* Blog & Promo section style */
.articles-flex {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.article-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 24px;
  padding: 24px;
  background: rgba(255,255,255,0.4);
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.5);
  transition: var(--transition-smooth);
}

.article-row:hover {
  background: white;
  transform: translateX(10px);
  border-color: var(--color-primary-light);
}

.article-date {
  font-weight: 800;
  font-size: 14px;
  color: var(--color-primary);
  text-transform: uppercase;
}

/* Footer & CTA */
footer {
  background: var(--color-bg-dark);
  color: #ffffff;
  padding: 100px 0 40px 0;
  z-index: 10;
  position: relative;
}

footer h3, footer h4, footer strong {
  color: #ffffff !important;
}

footer p, footer li, footer a, footer span {
  color: rgba(255, 255, 255, 0.7) !important;
}

#bubble-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

.footer-layout {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.5fr;
  gap: 60px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

.footer-col h3 {
  font-size: 26px;
  margin-bottom: 24px;
}

.footer-col h4 {
  font-size: 18px;
  margin-bottom: 24px;
  border-left: 3px solid var(--color-primary-light);
  padding-left: 12px;
}

.footer-col p {
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 20px;
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 12px;
  color: rgba(255, 255, 255, 0.6);
  display: flex;
  gap: 12px;
}

.footer-col i {
  color: var(--color-secondary-light);
  margin-top: 4px;
}

.footer-col a {
  color: rgba(255, 255, 255, 0.6);
  transition: var(--transition-smooth);
}

.footer-col a:hover {
  color: white;
  padding-left: 6px;
}

.footer-copyright {
  text-align: center;
  padding-top: 40px;
  margin-top: 60px;
  border-top: 1px solid rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.4);
  font-size: 14px;
}

/* Responsive Styles */
@media (max-width: 992px) {
  .nav-container {
    padding: 0 20px;
  }
  .nav-links {
    display: none; /* Hide nav links on tablet/mobile for simplification */
  }
  .fixed-object-viewport {
    position: absolute;
    height: 100vw;
    top: 400px;
    z-index: 4;
  }
  .interactive-object-container {
    width: 280px;
    height: 280px;
  }
  .scroller-section {
    padding: 60px 0;
    min-height: auto;
  }
  .section-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 0 20px;
  }
  .section-content.right-align {
    grid-column: 1;
  }
  .section-content h2 {
    font-size: 36px;
  }
  .footer-layout {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 0 20px;
  }
}
