/* ============================================
   KLUXE PRODUCTIONS - MASTER OF OPTICS
   Global Stylesheet - Obsidian & Alabaster
   ============================================ */

/* ========== ROOT VARIABLES ========== */
:root {
  /* Obsidian Mode (Dark) - Default */
  --bg-primary: #0a0a0a;
  --bg-secondary: #1a1a1a;
  --bg-tertiary: #2a2a2a;
  --bg-overlay: rgba(10, 10, 10, 0.95);
  
  --text-primary: #f5f5f5;
  --text-secondary: #b8b8b8;
  --text-muted: #6a6a6a;
  
  --kluxe-green: #00ff88;
  --kluxe-green-glow: rgba(0, 255, 136, 0.3);
  --kluxe-green-dim: rgba(0, 255, 136, 0.1);
  
  /* Memory Shard Colors */
  --gold-wedding: #ffd700;
  --gold-wedding-glow: rgba(255, 215, 0, 0.3);
  --blue-corporate: #00d4ff;
  --blue-corporate-glow: rgba(0, 212, 255, 0.3);
  --pink-festival: #ff0080;
  --pink-festival-glow: rgba(255, 0, 128, 0.3);
  
  /* Spacing & Sizing */
  --nav-height: 80px;
  --section-padding: 120px;
  --container-max: 1400px;
  --border-radius: 12px;
  
  /* Transitions */
  --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: all 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  
  /* Effects */
  --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.3);
  --shadow-hard: 0 8px 40px rgba(0, 0, 0, 0.5);
  --shadow-green: 0 0 30px var(--kluxe-green-glow);
}

/* Alabaster Mode (Light) */
[data-theme="light"] {
  --bg-primary: #ffffff;
  --bg-secondary: #f8f8f8;
  --bg-tertiary: #eeeeee;
  --bg-overlay: rgba(255, 255, 255, 0.95);
  
  --text-primary: #0a0a0a;
  --text-secondary: #4a4a4a;
  --text-muted: #8a8a8a;
  
  --kluxe-green: #00cc6a;
  --kluxe-green-glow: rgba(0, 204, 106, 0.2);
  --kluxe-green-dim: rgba(0, 204, 106, 0.05);
  
  --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.08);
  --shadow-hard: 0 8px 40px rgba(0, 0, 0, 0.12);
  --shadow-green: 0 0 30px var(--kluxe-green-glow);
}

/* ========== BASE RESET ========== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  transition: var(--transition-smooth);
  overflow-x: hidden;
}

/* ========== TYPOGRAPHY ========== */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h1 {
  font-family: 'Caveat', cursive;
  font-size: clamp(2.8rem, 8vw, 5.5rem);
  font-weight: 700;
  letter-spacing: 0.5px;
  background: linear-gradient(135deg, var(--text-primary) 0%, var(--kluxe-green) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

h2 {
  font-family: 'Caveat', cursive;
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 700;
  letter-spacing: 0.5px;
}

h3 {
  font-family: 'Caveat', cursive;
  font-size: clamp(1.6rem, 3vw, 2.8rem);
  font-weight: 700;
  letter-spacing: 0.3px;
}

p {
  font-size: 1.125rem;
  color: var(--text-secondary);
  line-height: 1.8;
}

/* Accent paragraphs with handwritten touch */
p.accent,
p.hero-text,
.hero-subtitle,
.section-subtitle,
.lead,
.tagline {
  font-family: 'Caveat', cursive;
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
  font-weight: 500;
  letter-spacing: 0.3px;
  color: var(--text-primary);
}

/* Feature callouts with handwritten styling */
p.feature-text,
.feature-description {
  font-family: 'Caveat', cursive;
  font-size: clamp(1.15rem, 2vw, 1.6rem);
  font-weight: 500;
  color: var(--text-primary);
  letter-spacing: 0.2px;
}

/* Philosophy card descriptions */
.philosophy-card p,
.service-item p {
  font-family: 'Caveat', cursive;
  font-size: clamp(1.1rem, 1.8vw, 1.45rem);
  font-weight: 400;
  letter-spacing: 0.15px;
  color: var(--text-primary);
  line-height: 1.7;
}

/* Mode card descriptions */
.mode-card p {
  font-family: 'Caveat', cursive;
  font-size: clamp(1.05rem, 1.7vw, 1.35rem);
  font-weight: 400;
  letter-spacing: 0.1px;
  color: var(--text-secondary);
}

/* Tagline styling */
.identity-tagline {
  font-family: 'Caveat', cursive;
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  font-weight: 500;
  letter-spacing: 0.2px;
  color: var(--text-primary);
  margin-top: 2rem;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-smooth);
}

/* ========== NAVIGATION ========== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background: var(--bg-overlay);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  z-index: 1000;
  transition: var(--transition-smooth);
}

/* Hide navbar when file viewer modal is open */
body.viewer-open .navbar {
  opacity: 0;
  pointer-events: none;
  z-index: 1;
}

.navbar.scrolled {
  box-shadow: var(--shadow-soft);
}

.nav-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 2rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo::before {
  content: none;
}

.logo img {
  height: 36px;
  width: auto;
  display: block;
}

.logo-text {
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: linear-gradient(120deg, var(--kluxe-green), var(--text-primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  text-shadow: 0 0 10px var(--kluxe-green-glow);
  animation: shimmer 4s ease-in-out infinite;
}

@keyframes shimmer {
  0% { filter: brightness(1); }
  50% { filter: brightness(1.35); }
  100% { filter: brightness(1); }
}

[data-theme="light"] .logo-text {
  background: linear-gradient(120deg, var(--text-primary), var(--kluxe-green));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  text-shadow: 0 0 8px rgba(0, 0, 0, 0.12), 0 0 14px var(--kluxe-green-glow);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 3rem;
  align-items: center;
}

.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  position: relative;
  padding: 0.5rem 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--kluxe-green);
  transition: var(--transition-smooth);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

/* Theme Toggle */
.theme-toggle {
  background: var(--bg-tertiary);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50px;
  padding: 0.5rem 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition-smooth);
}

.theme-toggle:hover {
  background: var(--kluxe-green);
  color: var(--bg-primary);
  transform: scale(1.05);
}

/* Mobile Menu */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 10px;
}

.mobile-menu-btn span {
  width: 25px;
  height: 2px;
  background: var(--text-primary);
  transition: var(--transition-smooth);
}

/* ========== BUTTONS ========== */
.btn {
  display: inline-block;
  padding: 1rem 2.5rem;
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border: none;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
  font-family: 'Caveat', cursive;
  font-size: clamp(1.15rem, 1.8vw, 1.5rem);
  font-weight: 700;
  letter-spacing: 0.3px;
  text-transform: none;
}

.btn-primary {
  background: var(--kluxe-green);
  color: var(--bg-primary);
}

.btn-primary:hover {
  box-shadow: var(--shadow-green);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--kluxe-green);
  color: var(--kluxe-green);
}

.btn-outline:hover {
  background: var(--kluxe-green);
  color: var(--bg-primary);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--kluxe-green);
}

/* ========== CONTAINERS ========== */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 2rem;
}

.section {
  padding: var(--section-padding) 0;
  position: relative;
}

.section-title {
  text-align: center;
  margin-bottom: 4rem;
}

.section-title h2 {
  margin-bottom: 1rem;
  font-family: 'Caveat', cursive;
}

.section-title p {
  max-width: 600px;
  margin: 0 auto;
  font-family: 'Caveat', cursive;
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  font-weight: 500;
}

/* ========== CARDS ========== */
.card {
  background: var(--bg-secondary);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--border-radius);
  padding: 2rem;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--kluxe-green), var(--blue-corporate), var(--pink-festival));
  transform: scaleX(0);
  transform-origin: left;
  transition: var(--transition-smooth);
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hard);
  border-color: var(--kluxe-green);
}

.card:hover::before {
  transform: scaleX(1);
}

/* ========== GRID SYSTEMS ========== */
.grid {
  display: grid;
  gap: 2rem;
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

/* ========== ANIMATIONS ========== */
@keyframes pulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.7;
    transform: scale(1.2);
  }
}

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-20px);
  }
}

@keyframes glow {
  0%, 100% {
    box-shadow: 0 0 20px var(--kluxe-green-glow);
  }
  50% {
    box-shadow: 0 0 40px var(--kluxe-green-glow);
  }
}

@keyframes shimmer {
  0% {
    background-position: -1000px 0;
  }
  100% {
    background-position: 1000px 0;
  }
}

.animate-float {
  animation: float 6s ease-in-out infinite;
}

.animate-glow {
  animation: glow 3s ease-in-out infinite;
}

/* ========== LOADING STATES ========== */
.loading {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: var(--kluxe-green);
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ========== UTILITY CLASSES ========== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: 1rem; }
.gap-2 { gap: 2rem; }

.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }

.fade-in {
  animation: fadeIn 0.8s ease-in;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ========== RESPONSIVE ========== */
@media (max-width: 968px) {
  :root {
    --section-padding: 80px;
  }
  
  .nav-links {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: var(--bg-overlay);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 2rem;
    transform: translateX(-100%);
    transition: var(--transition-smooth);
  }
  
  .nav-links.active {
    transform: translateX(0);
  }
  
  .mobile-menu-btn {
    display: flex;
  }
  
  .grid-2, .grid-3, .grid-4 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  :root {
    --section-padding: 60px;
  }
  
  .container {
    padding: 0 1rem;
  }
  
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.75rem;
  }
}

/* ========== SCROLLBAR ========== */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
  background: var(--kluxe-green);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--kluxe-green);
  box-shadow: var(--shadow-green);
}

/* ========== SELECTION ========== */
::selection {
  background: var(--kluxe-green);
  color: var(--bg-primary);
}

/* ========== FOOTER ========== */
.footer {
  background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
  padding: 6rem 0 0;
  margin-top: 6rem;
  border-top: 1px solid rgba(0, 255, 136, 0.2);
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--kluxe-green), transparent);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4rem;
  padding: 4rem 0;
  margin-bottom: 3rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

@media (max-width: 968px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
  }
}

@media (max-width: 640px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

.footer-col {
  position: relative;
}

.footer-col .logo {
  display: block;
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
}

.footer-col > p {
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 2rem;
  color: var(--text-secondary);
  font-family: 'Caveat', cursive;
  font-size: clamp(1.05rem, 1.7vw, 1.35rem);
  font-weight: 400;
  letter-spacing: 0.1px;
}

.footer-col h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  position: relative;
  padding-bottom: 0.75rem;
  font-family: 'Caveat', cursive;
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  text-transform: none;
  letter-spacing: 0.3px;
  font-weight: 700;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background: var(--kluxe-green);
  border-radius: 1px;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 0.75rem;
}

.footer-col ul li a {
  color: var(--text-secondary);
  font-size: 0.95rem;
  transition: var(--transition-smooth);
  position: relative;
  padding-left: 0;
  font-family: 'Caveat', cursive;
  font-size: clamp(1.05rem, 1.7vw, 1.35rem);
  font-weight: 400;
  letter-spacing: 0.1px;
}

.footer-col ul li a::before {
  content: '▸';
  position: absolute;
  left: -15px;
  color: var(--kluxe-green);
  opacity: 0;
  transition: var(--transition-smooth);
}

.footer-col ul li a:hover {
  color: var(--kluxe-green);
  padding-left: 15px;
}

.footer-col ul li a:hover::before {
  opacity: 1;
}

.footer-col ul li {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
  font-family: 'Caveat', cursive;
  font-size: clamp(1.05rem, 1.7vw, 1.35rem);
  font-weight: 400;
  letter-spacing: 0.1px;
}

.social-links {
  display: flex;
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.social-links a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  background: rgba(0, 255, 136, 0.1);
  border: 1px solid rgba(0, 255, 136, 0.3);
  border-radius: 8px;
  transition: var(--transition-smooth);
}

.social-links a:hover {
  background: var(--kluxe-green);
  border-color: var(--kluxe-green);
  transform: translateY(-4px) scale(1.1);
  box-shadow: 0 8px 20px var(--kluxe-green-glow);
}

.footer-bottom {
  text-align: center;
  padding: 2.5rem;
  background: rgba(0, 0, 0, 0.3);
}

.footer-bottom p {
  margin: 0.5rem 0;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
  font-family: 'Caveat', cursive;
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  font-weight: 400;
  letter-spacing: 0.1px;
}

.footer-bottom p:first-child {
  color: var(--text-secondary);
  font-weight: 500;
}

.footer-bottom p:last-child {
  color: var(--kluxe-green);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ========== FOOTER RESPONSIVE ========== */
@media (max-width: 968px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
    padding: 3rem 0;
  }
}

@media (max-width: 640px) {
  .footer {
    padding: 4rem 0 0;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 2rem 0;
  }
  
  .footer-bottom {
    padding: 2rem 1rem;
  }
}
