﻿/* 
 * Circuit Core - Premium Stylesheet
 * Theme: Cyber-Organic (Deep Teal + Mango)
 * Support: Dark/Light Mode, Motion, Glassmorphism
 */

:root {
  /* Core Colors */
  --primary-color: #006D6D; /* Deep Teal */
  --accent-color: #FF7A00;  /* Mango Orange */
  
  /* Light Mode Defaults */
  --bg-color: 210 20% 98%;
  --surface-color: 0 0% 100%;
  --text-main: 200 50% 10%;
  --text-muted: 200 20% 40%;
  --border-color: 200 20% 90%;
  
  --primary: 180 100% 21%;
  --accent: 29 100% 50%;
  
  --shadow-strength: 0.1;
  --glass-opacity: 0.7;
  --blur-strength: 12px;

  /* Fonts */
  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  
  /* Fluid Typography */
  --text-base: clamp(1rem, 1.2vw, 1.25rem);
}

[data-theme="dark"] {
  /* Dark Mode Overrides */
  --bg-color: 213 29% 6%;       /* #0B0F14 */
  --surface-color: 210 25% 10%; 
  --text-main: 200 26% 93%;     /* #E6EEF2 */
  --text-muted: 200 20% 60%;
  --border-color: 200 30% 20%;
  
  --primary: 180 100% 21%;
  --accent: 29 100% 50%;
  
  --shadow-strength: 0.5;
  --glass-opacity: 0.6;
}

/* Global Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: hsl(var(--bg-color));
  color: hsl(var(--text-main));
  font-family: var(--font-body);
  font-size: var(--text-base);
  transition: background-color 0.4s ease, color 0.4s ease;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

/* Page Transition */
.page {
  /* animation: fadeSlide 0.4s ease; Disabled for debugging */
  opacity: 1;
}

@keyframes fadeSlide {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: hsl(var(--bg-color));
}
::-webkit-scrollbar-thumb {
  background: hsla(var(--text-main)/0.2);
  border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
  background: hsla(var(--primary)/0.6);
}

/* Scroll Behavior */
html {
  scroll-behavior: smooth;
}

/* Stagger Animation Base */
@keyframes slideUpFade {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.product-grid-premium > * {
  animation: slideUpFade 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) backwards;
}

/* Generate staggered delay for first 10 items */
.product-grid-premium > *:nth-child(1) { animation-delay: 0.1s; }
.product-grid-premium > *:nth-child(2) { animation-delay: 0.2s; }
.product-grid-premium > *:nth-child(3) { animation-delay: 0.3s; }
.product-grid-premium > *:nth-child(4) { animation-delay: 0.4s; }
.product-grid-premium > *:nth-child(5) { animation-delay: 0.5s; }
.product-grid-premium > *:nth-child(6) { animation-delay: 0.6s; }
.product-grid-premium > *:nth-child(7) { animation-delay: 0.7s; }
.product-grid-premium > *:nth-child(8) { animation-delay: 0.8s; }
.product-grid-premium > *:nth-child(9) { animation-delay: 0.9s; }
.product-grid-premium > *:nth-child(10) { animation-delay: 1.0s; }

/* Typography with Gradient Accents */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.title-huge {
  font-size: clamp(3rem, 8vw, 6rem);
  background: linear-gradient(135deg, hsl(var(--text-main)), hsl(var(--primary)));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding-bottom: 0.2em; /* prevent overlapping cut */
}

/* Glassmorphism Utilities */
.glass {
  background: hsla(var(--surface-color) / var(--glass-opacity));
  backdrop-filter: blur(var(--blur-strength));
  -webkit-backdrop-filter: blur(var(--blur-strength));
  border: 1px solid hsla(var(--text-main) / 0.08);
}

.glass-panel {
  background: linear-gradient(
    145deg, 
    hsla(var(--surface-color) / 0.6), 
    hsla(var(--surface-color) / 0.3)
  );
  backdrop-filter: blur(10px);
  border: 1px solid hsla(var(--text-main) / 0.1);
  box-shadow: 0 8px 32px hsla(0 0% 0% / var(--shadow-strength));
  border-radius: 24px;
}


/* Container */
.container {
  width: 90%;
  max-width: 1400px;
  margin: 0 auto;
}

/* Bento Grid */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

@media (max-width: 600px) {
    .bento-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* Header - Floating Pill Style */
/* Header & Nav */
header {
  position: fixed;
  top: 20px;
  left: 0;
  width: 100%;
  z-index: 1000;
  display: flex;
  justify-content: center;
  pointer-events: none; /* Allow clicking through waiting space */
}

.nav-pill {
  pointer-events: auto; /* Re-enable clicks on the bar */
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 2.5rem;
  border-radius: 100px;
  width: 90%;
  max-width: 1200px;
  background: hsla(var(--surface-color) / 0.7);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border: 1px solid hsla(var(--text-main) / 0.08);
  box-shadow: 0 8px 32px 0 hsla(0 0% 0% / 0.15);
  transition: all 0.3s ease;
}

.nav-pill:hover {
  background: hsla(var(--surface-color) / 0.85);
  box-shadow: 0 12px 40px 0 hsla(0 0% 0% / 0.2);
  transform: translateY(1px);
}

header.scrolled .nav-pill {
  background: hsla(var(--surface-color) / 0.95);
  box-shadow: 0 10px 40px -5px hsla(0 0% 0% / 0.2);
  transform: scale(0.98);
  backdrop-filter: blur(20px);
}

.nav-links {
  display: flex;
  gap: 3.5rem; /* Increased gap significantly */
  align-items: center;
}

.nav-links a, 
.dropdown-group > a {
  text-decoration: none;
  color: hsl(var(--text-main));
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  padding: 0.5rem 0;
}

/* Creative Hover Line */
.nav-links a::after,
.dropdown-group > a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: hsl(var(--primary));
  box-shadow: 0 0 10px hsl(var(--primary));
  transition: width 0.3s ease;
  border-radius: 2px;
}

.nav-links a:hover::after,
.dropdown-group:hover > a::after {
  width: 100%;
}

.nav-links a:hover, 
.dropdown-group:hover > a,
.nav-links a.active,
.dropdown-group > a.active {
  color: hsl(var(--primary));
  text-shadow: 0 0 15px hsla(var(--primary)/0.4);
}

.nav-links a.active::after,
.dropdown-group > a.active::after {
  width: 100%;
}

/* Remove old before styles if they exist or just override */
.nav-links a::before { display: none; }

/* Buttons with liquid hover */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2rem;
  border-radius: 99px;
  font-weight: 600;
  text-decoration: none;
  overflow: hidden;
  transition: transform 0.3s ease;
  cursor: pointer;
  border: none;
  isolation: isolate;
  font-family: var(--font-display);
}

.btn-primary {
  background: hsl(var(--primary));
  color: white;
  box-shadow: 0 10px 20px hsla(var(--hue-primary) 100% 50% / 0.3);
}

.btn-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, transparent, rgba(255,255,255,0.2), transparent);
  transform: translateX(-100%) skewX(-15deg);
  transition: 0.5s;
  z-index: -1;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 20px hsla(var(--hue-primary) 100% 50% / 0.6), 0 0 40px hsla(var(--hue-primary) 100% 50% / 0.3);
  border-color: transparent;
}

.btn-primary:active {
  transform: scale(0.98);
  box-shadow: 0 0 10px hsla(var(--hue-primary) 100% 50% / 0.4);
}

/* Gallery Button */
.btn-gallery {
  background: hsla(var(--surface-color)/0.5);
  border: 1px solid hsla(var(--text-main)/0.1);
  color: hsl(var(--text-main));
  transition: all 0.3s ease;
}

.btn-gallery:hover {
  background: hsl(var(--text-main));
  color: hsl(var(--bg-color));
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: 0 10px 20px -5px hsla(var(--text-main)/0.3);
}

.btn-primary::after {
  transform: translateX(100%) skewX(-15deg);
}

/* Buy Now Button - Product Page */
.btn-buy-now {
  flex: 1;
  padding: 1rem;
  font-size: 1.1rem;
  background: transparent;
  border: 2px solid hsl(var(--primary));
  color: hsl(var(--text-main));
  transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
  box-shadow: 0 5px 15px -5px hsla(var(--hue-primary) 100% 50% / 0.1);
}

.btn-buy-now:hover {
  background: hsl(var(--primary));
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 0 20px hsla(var(--hue-primary) 100% 50% / 0.4), 
              0 0 40px hsla(var(--hue-primary) 100% 50% / 0.2);
  letter-spacing: 0.5px;
}

/* Theme Toggle */
.theme-toggle {
  background: none;
  border: 1px solid hsla(var(--text-main) / 0.2);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: hsl(var(--text-main));
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.3s;
}
.theme-toggle:hover {
  background: hsla(var(--text-main) / 0.1);
}

/* Animations & Micro-interactions */
[data-reveal] {
  opacity: 0;
  transform: translateY(30px);
  transition: 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}
[data-reveal].active {
  opacity: 1;
  transform: translateY(0);
}

/* Hero Section */
.hero-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
  padding-top: 120px;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero-bg-glow {
  position: absolute;
  width: 50vw;
  height: 50vw;
  background: radial-gradient(circle, hsla(var(--hue-primary) 100% 50% / 0.15) 0%, transparent 70%);
  border-radius: 50%;
  filter: blur(60px);
  z-index: -1;
  animation: pulseGlow 8s infinite alternate;
}

@keyframes pulseGlow {
  0% { transform: scale(1) translate(-20%, -20%); opacity: 0.5; }
  100% { transform: scale(1.2) translate(0%, 0%); opacity: 0.8; }
}

/* 3D Card Effect */
.tilt-card {
  transform-style: preserve-3d;
  transform: perspective(1000px);
}
.tilt-card img {
  transform: translateZ(20px);
  filter: drop-shadow(0 20px 40px rgba(0,0,0,0.3));
}

@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-15px); }
  100% { transform: translateY(0px); }
}

.animate-float {
  animation: float 6s ease-in-out infinite;
}

/* Dropdown Menu */
.dropdown-group {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: hsla(var(--surface-color) / 0.95);
  backdrop-filter: blur(12px);
  padding: 1rem;
  border-radius: 12px;
  border: 1px solid hsla(var(--text-main) / 0.1);
  box-shadow: 0 10px 40px -10px hsla(0 0% 0% / 0.2);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  min-width: 200px;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.dropdown-group:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(15px);
}

.dropdown-item {
  color: hsl(var(--text-main));
  text-decoration: none;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  transition: 0.2s;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.dropdown-item:hover {
  background: hsla(var(--primary) / 0.1);
  color: hsl(var(--primary));
}

/* Mega Footer */
.mega-footer {
  background: hsla(var(--surface-color) / 0.3);
  border-top: 1px solid hsla(var(--text-main) / 0.05);
  padding: 5rem 0 2rem;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 4rem;
  margin-bottom: 4rem;
}

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}
@media (max-width: 600px) {
  .footer-grid { 
      grid-template-columns: 1fr; 
      text-align: center;
      gap: 3rem;
  }
  
  .footer-grid > div {
      display: flex;
      flex-direction: column;
      align-items: center;
  }

  /* Center the social icons */
  .footer-grid > div > div {
      justify-content: center; 
  }
  
  .footer-link:hover {
      transform: translateX(0) scale(1.05); /* Change hover effect on mobile */
  }
}

.footer-heading {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  color: hsl(var(--text-main));
}

.footer-link {
  display: block;
  color: hsl(var(--text-muted));
  text-decoration: none;
  margin-bottom: 0.8rem;
  transition: 0.2s;
}

.footer-link:hover {
  color: hsl(var(--primary));
  transform: translateX(5px);
}

.newsletter-box {
  background: hsla(var(--bg-color) / 0.5);
  border: 1px solid hsla(var(--text-main) / 0.1);
  border-radius: 8px;
  padding: 0.5rem;
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
}

.newsletter-input {
  background: transparent;
  border: none;
  color: hsl(var(--text-main));
  width: 100%;
  outline: none;
  padding: 0 0.5rem;
}

/* Footer Credit */
.footer-credit {
  font-size: 0.9rem;
  color: hsl(var(--text-muted));
}

.footer-credit a {
  color: hsl(var(--text-main));
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.footer-credit a:hover {
  color: hsl(var(--primary));
}

/* Product Grid Premium */
.product-grid-premium {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    justify-content: center;
}

.product-card-premium {
  background: hsla(var(--surface-color) / 0.5);
  border-radius: 20px;
  padding: 1.5rem;
  position: relative;
  border: 1px solid hsla(var(--text-main) / 0.05);
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  height: 100%;
  max-width: 380px;
  width: 100%;
  margin: 0 auto;
}

/* Ensure the image container doesn't shrink */
.product-card-premium .img-holder {
  flex-shrink: 0;
}

/* Force the middle content (Title/Desc) to grow and push the footer down */
.product-card-premium > *:nth-child(2) {
  flex-grow: 1;
}

.product-card-premium:hover {
  background: hsla(var(--surface-color) / 1);
  transform: translateY(-10px) scale(1.02);
  border-color: hsl(var(--primary));
  box-shadow: 0 20px 40px -10px hsla(0 0% 0% / var(--shadow-strength));
}

.product-card-premium .img-holder {
  height: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  overflow: hidden;
  border-radius: 12px;
  background: hsla(var(--surface-color)/0.5);
}

.product-card-premium img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.product-card-premium:hover img {
  transform: scale(1.1);
}

/* Mobile Navigation Overlay */
.mobile-menu-overlay {
  position: fixed;
  inset: 0;
  background: hsla(var(--bg-color) / 0.98);
  backdrop-filter: blur(20px);
  z-index: 99;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.mobile-menu-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.mobile-nav-link {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  color: hsl(var(--text-main));
  text-decoration: none;
  transform: translateY(20px);
  transition: 0.4s;
  opacity: 0;
}

.mobile-menu-overlay.active .mobile-nav-link {
  transform: translateY(0);
  opacity: 1;
}

/* Mobile Dropdown */
.mobile-dropdown-btn {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  padding-left: 1.5rem;
  width: 100%;
  background: none;
  border: none;
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  color: hsl(var(--text-main));
  cursor: pointer;
  padding: 0;
}

.mobile-dropdown-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  width: 100%;
}

.mobile-dropdown-content.open {
  max-height: 500px; /* Rough estimate, high enough to fit */
  margin-top: 1rem;
}

.mobile-dropdown-content a {
  font-size: 1.5rem;
  color: hsl(var(--text-muted));
  text-decoration: none;
  transition: 0.3s;
}

.mobile-dropdown-content a:hover {
  color: hsl(var(--primary));
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: hsl(var(--text-main));
  cursor: pointer;
  z-index: 101;
}

/* Responsive Overrides */
@media (max-width: 900px) {
  .hero-section {
    grid-template-columns: 1fr;
    text-align: center;
    padding-top: 140px;
  }
  .title-huge { 
    font-size: 3rem; 
    line-height: 1.1;
  }
  header .nav-pill { 
    width: 95%; 
    padding: 0.75rem 1.25rem; 
    gap: 1rem; 
  }
  .hide-mobile { display: none; }
  .mobile-menu-btn { display: block; }
  
  .glass-panel { padding: 1.5rem; }
  .product-grid-premium { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
  
  /* Mobile Sidebar Drawer */
  .layout-grid { grid-template-columns: 1fr; }
  
  .sidebar { 
    display: block; 
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: hsl(var(--bg-color));
    padding: 0;
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    border-radius: 0;
    border: none;
    height: 100vh;
  }
  
  .sidebar.active {
    transform: translateX(0);
  }

  .sidebar-header {
    display: flex !important;
    padding: 1.5rem;
    border-bottom: 1px solid hsla(var(--text-main)/0.1);
  }

  .mobile-filter-btn {
    display: flex !important;
  }
}

@media (max-width: 600px) {
  .product-grid-premium { grid-template-columns: 1fr; }
  .title-huge { font-size: 2.5rem; }
  
  .newsletter-box { flex-direction: column; }
  .newsletter-box button { width: 100%; margin-top: 0.5rem; }

  /* View All Button Responsive */
  .view-all-btn {
    padding: 0.5rem 1rem;
    background: hsla(var(--primary)/0.1);
    border-radius: 8px;
    font-size: 0.9rem;
  }
}

/* Collection Card Hover Effects */
.collection-card {
  padding: 2rem;
  text-decoration: none;
  color: inherit;
  height: 300px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  transition: all 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.collection-card img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
  z-index: 0;
}

.collection-card .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, hsla(0,0%,0%,0.95) 0%, hsla(0,0%,0%,0.6) 50%, hsla(0,0%,0%,0.3) 100%);
  z-index: 1;
  opacity: 0.9;
  transition: opacity 0.5s ease, background 0.5s ease;
}

.collection-card .content {
  position: relative;
  z-index: 2;
  transform: translateY(0);
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
  text-shadow: 0 2px 10px rgba(0,0,0,0.8);
}

.collection-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 25px 50px -12px hsla(var(--hue-primary) 100% 50% / 0.25);
  border-color: hsl(var(--primary));
}

.collection-card:hover img {
  transform: scale(1.08);
}

.collection-card:hover .overlay {
  opacity: 0.6;
}





.collection-card:hover .content {
  transform: translateY(-4px);
}

/* New Intro Animation */
/* Clean Intro Animation */
.intro-overlay {
    position: fixed;
    inset: 0;
    background: #0B0F14;
    z-index: 9999;
    display: flex;
    flex-direction: column; /* Stack Logo and Text */
    align-items: center;
    justify-content: center;
    gap: 2rem; /* Space between ring and text */
    pointer-events: auto;
}

.intro-title {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 800;
    color: white;
    letter-spacing: 0.5rem;
    opacity: 0;
    transform: translateY(20px);
    text-shadow: 0 0 20px rgba(0, 109, 109, 0.5);
    animation: titleReveal 1s cubic-bezier(0.2, 0.8, 0.2, 1) forwards 0.5s; /* Delay start */
}

@keyframes titleReveal {
    to {
        opacity: 1;
        transform: translateY(0);
        letter-spacing: 0.8rem; /* Expand slighty */
        text-shadow: 0 0 30px var(--primary-color), 0 0 60px var(--primary-color);
    }
}

.intro-logo-container {
    position: relative;
    width: 140px;
    height: 140px;
    /* Use Flexbox to force Image Center */
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 1000px;
}

.intro-logo {
    /* Image stays static in center of flex container */
    width: 80px;
    height: auto;
    opacity: 0;
    z-index: 2;
    filter: drop-shadow(0 0 0px var(--primary-color));
    animation: logoEntrance 1.6s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.intro-circuit-ring {
    /* Ring sits absolutely on top of the flex container */
    position: absolute;
    inset: -20px; /* 140px + 40px = 180px total */
    width: calc(100% + 40px);
    height: calc(100% + 40px);
    border: 3px solid transparent;
    border-top-color: #006D6D;
    border-bottom-color: #FF7A00;
    border-radius: 50%;
    animation: spinRing 2.5s linear infinite;
    pointer-events: none;
    box-shadow: 0 0 30px rgba(0, 109, 109, 0.3);
    /* Remove transform translate, rely on inset centering */
}

@keyframes logoEntrance {
    0% { opacity: 0; transform: scale(0.5) translateZ(-50px); filter: drop-shadow(0 0 0px var(--primary-color)); }
    50% { opacity: 1; transform: scale(1.1) translateZ(0); filter: drop-shadow(0 0 20px var(--primary-color)); }
    100% { opacity: 1; transform: scale(1) translateZ(0); filter: drop-shadow(0 0 10px var(--primary-color)); }
}

@keyframes spinRing {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes fadeOutOverlay {
    to { opacity: 0; visibility: hidden; }
}

/* Premium Gallery */
.masonry-grid {
    column-count: 3;
    column-gap: 2rem;
}
@media (max-width: 900px) { .masonry-grid { column-count: 2; } }
@media (max-width: 600px) { .masonry-grid { column-count: 1; } }

.gallery-card {
    break-inside: avoid;
    margin-bottom: 2rem;
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    cursor: zoom-in;
    transform-style: preserve-3d;
    transform: perspective(1000px);
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.gallery-card img {
    width: 100%;
    display: block;
    border-radius: 20px;
    transition: transform 0.5s ease;
}

.gallery-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 20px;
    box-shadow: inset 0 0 20px hsla(var(--hue-primary) 100% 50% / 0.0);
    transition: box-shadow 0.5s ease;
    pointer-events: none;
}

.gallery-card:hover {
    transform: translateY(-10px) rotateX(2deg);
    z-index: 2;
}

.gallery-card:hover img {
    transform: scale(1.05);
}

.gallery-card:hover::after {
    box-shadow: inset 0 0 40px hsla(var(--hue-primary) 100% 50% / 0.3);
    border: 1px solid hsla(var(--primary)/0.5);
}

/* Holographic Lightbox */
.lightbox-premium {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: hsla(0, 0%, 5%, 0.8);
    backdrop-filter: blur(20px);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.lightbox-premium.active {
    opacity: 1;
    pointer-events: auto;
}

.lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 85vh;
    border-radius: 12px;
    padding: 10px;
    background: hsla(var(--surface-color)/0.5);
    border: 1px solid hsla(var(--primary)/0.3);
    box-shadow: 0 0 100px hsla(var(--hue-primary) 100% 50% / 0.2);
    transform: scale(0.9);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.lightbox-premium.active .lightbox-content {
    transform: scale(1);
}

.lightbox-img {
    max-width: 100%;
    max-height: 80vh;
    border-radius: 8px;
    display: block;
}

.lightbox-close {
    position: absolute;
    top: -50px;
    right: 0;
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    transition: transform 0.3s;
}
.lightbox-close:hover { transform: rotate(90deg) scale(1.1); color: hsl(var(--primary)); }

.hover-scale-img {
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    cursor: pointer;
    overflow: hidden; /* Ensure image stays inside border radius */
}

.hover-scale-img:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 20px 40px -10px hsla(var(--hue-primary)/0.3);
    border-color: hsl(var(--primary));
}

.hover-scale-img img {
    transition: transform 0.6s ease;
}

.hover-scale-img:hover img {
    transform: scale(1.05);
}

/* Micro-interactions */
.btn-confetti:active {
  animation: confettiPop 0.6s ease forwards;
}

@keyframes confettiPop {
  0% { transform: scale(0.95); }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

/* Simple Price pulsing glow on hover */
.price-tag {
  transition: text-shadow 0.3s ease;
  font-family: var(--font-mono);
}
.price-tag:hover {
  text-shadow: 0 0 8px hsl(var(--primary));
  animation: pulseGlowText 1.5s infinite alternate;
}

@keyframes pulseGlowText {
  from { text-shadow: 0 0 5px hsl(var(--primary)); }
  to { text-shadow: 0 0 15px hsl(var(--primary)), 0 0 30px hsl(var(--primary)); }
}

/* Gemini Chatbot Fixed Styles (Brute Force) */
:root {
    --chat-primary: #008080; 
    --chat-accent: #ff7a00;
}

/* Widget Container */
/* Widget Container - Ensure proper closing of previous blocks if any */
.gemini-widget {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}


/* Toggle Button */
.gemini-toggle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--chat-primary);
    color: white;
    border: none;
    box-shadow: 0 4px 20px rgba(0, 128, 128, 0.4);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s;
}
.gemini-toggle:hover { transform: scale(1.1); }
.gemini-toggle svg { width: 28px; height: 28px; }

/* Chat Window - STRICT HIDING */
.gemini-window {
    width: 350px;
    height: 500px;
    background: rgba(20, 20, 20, 0.95);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    margin-bottom: 20px;
    
    /* CRITICAL: Force Hidden by default */
    display: none !important; 
    
    flex-direction: column;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    overflow: hidden;
}

/* Chat Window - STRICT SHOWING */
.gemini-window.active {
    /* CRITICAL: Force Flex when active */
    display: flex !important;
}

/* Inner Styles */
.gemini-header {
    padding: 15px 20px;
    background: linear-gradient(135deg, var(--chat-primary), #006666);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.gemini-title { color: white; font-weight: 600; display: flex; gap: 8px; align-items: center; }
.status-dot { width: 8px; height: 8px; background: #00ff88; border-radius: 50%; }
.gemini-close { background: none; border: none; color: white; font-size: 20px; cursor: pointer; }

.gemini-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.msg { padding: 10px 15px; border-radius: 15px; font-size: 0.9rem; line-height: 1.5; max-width: 80%; }
.msg-bot { background: rgba(255,255,255,0.1); color: white; align-self: flex-start; }
.msg-user { background: var(--chat-primary); color: white; align-self: flex-end; }

.gemini-footer {
    padding: 15px;
    background: rgba(0,0,0,0.2);
    display: flex;
    gap: 10px;
}
.gemini-input {
    flex: 1;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    color: white;
    padding: 10px;
    border-radius: 25px;
    outline: none;
}
.gemini-send {
    width: 40px; height: 40px;
    background: var(--chat-primary);
    border: none; border-radius: 50%;
    color: white;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
}

.suggestions { padding: 10px 15px; display: flex; gap: 8px; overflow-x: auto; }
.suggestion-chip {
    background: rgba(0, 128, 128, 0.15);
    border: 1px solid rgba(0, 128, 128, 0.3);
    color: #4db8b8;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    white-space: nowrap;
    cursor: pointer;
}
.typing { display: flex; gap: 4px; padding: 10px; }
.typing span { width: 5px; height: 5px; background: white; border-radius: 50%; animation: blink 1s infinite; }
@keyframes blink { 50% { opacity: 0.5; } }

@media (max-width: 600px) {
    .gemini-window { width: calc(100vw - 40px); height: 60vh; bottom: 80px; right: 0; }
}

/* Custom Cursor */
/* Custom Cursor - Dual Layer */
.cursor-dot,
.cursor-outline {
  position: fixed;
  top: 0;
  left: 0;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 20000;
}

.cursor-dot {
  width: 8px;
  height: 8px;
  background-color: hsl(var(--text-main)); /* Solid dot */
  box-shadow: 0 0 10px hsla(var(--primary)/0.5);
  transition: width 0.2s, height 0.2s;
  mix-blend-mode: exclusion; /* Cool contrast effect */
}

.cursor-outline {
  width: 40px;
  height: 40px;
  border: 1px solid hsla(var(--primary)/0.5); /* Subtle ring */
  transition: all 0.15s ease-out; /* Smooth follow delay handled in JS, size in CSS */
  background: transparent;
}

/* Hover State */
body.hovering .cursor-dot {
  width: 12px;
  height: 12px;
  background-color: hsl(var(--accent));
  box-shadow: 0 0 20px hsla(var(--accent)/0.6);
}

body.hovering .cursor-outline {
  width: 60px;
  height: 60px;
  border-color: transparent;
  background-color: hsla(var(--primary)/0.1);
  backdrop-filter: blur(2px);
}

/* Hide default cursor on non-touch devices */
@media (any-hover: hover) {
  body {
    cursor: none;
  }
  a, button, input, textarea {
    cursor: none;
  }
}

