@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

:root {
  /* Default Theme: Neon Moon Night */
  --bg-primary: #0f172a;
  --bg-secondary: #1e1b4b;
  --bg-gradient: linear-gradient(180deg, #0f172a 0%, #17153b 100%);

  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;

  --accent-primary: #818cf8;
  /* Soft Indigo */
  --accent-secondary: #38bdf8;
  /* Sky Blue */
  --accent-glow: rgba(129, 140, 248, 0.5);

  --glass-bg: rgba(30, 41, 59, 0.4);
  --glass-border: rgba(148, 163, 184, 0.1);
  --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);

  --card-radius: 24px;
  --btn-radius: 50px;
}

[data-theme="sunset"] {
  --bg-primary: #2e1065;
  --bg-secondary: #4c0519;
  --bg-gradient: linear-gradient(180deg, #2e1065 0%, #881337 100%);
  --text-primary: #fff1f2;
  --text-secondary: #fbcfe8;
  --accent-primary: #f472b6;
  --accent-secondary: #fb923c;
  --accent-glow: rgba(244, 114, 182, 0.5);
  --glass-bg: rgba(80, 7, 36, 0.3);
  --glass-border: rgba(255, 200, 220, 0.15);
}

[data-theme="cyber"] {
  --bg-primary: #050505;
  --bg-secondary: #0a0a0a;
  --bg-gradient: linear-gradient(180deg, #050505 0%, #0a0a0a 100%);
  --text-primary: #e0e0e0;
  --text-secondary: #9ca3af;
  --accent-primary: #00f3ff;
  --accent-secondary: #bd00ff;
  --accent-glow: rgba(0, 243, 255, 0.4);
  --glass-bg: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(255, 255, 255, 0.1);
}

[data-theme="minimal"] {
  --bg-primary: #ffffff;
  --bg-secondary: #f8fafc;
  --bg-gradient: linear-gradient(180deg, #ffffff 0%, #f1f5f9 100%);
  --text-primary: #020617;
  /* Very Dark Slate - High Contrast */
  --text-secondary: #475569;
  /* Dark Gray - Readable */
  --accent-primary: #2563eb;
  --accent-secondary: #0ea5e9;
  --accent-glow: rgba(37, 99, 235, 0.2);
  --glass-bg: rgba(255, 255, 255, 0.85);
  --glass-border: rgba(0, 0, 0, 0.1);
  --glass-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

[data-theme="forest"] {
  --bg-primary: #052e16;
  --bg-secondary: #14532d;
  --bg-gradient: linear-gradient(180deg, #022c22 0%, #14532d 100%);
  --text-primary: #ecfdf5;
  --text-secondary: #a7f3d0;
  --accent-primary: #4ade80;
  /* Bright Green */
  --accent-secondary: #22c55e;
  --accent-glow: rgba(74, 222, 128, 0.4);
  --glass-bg: rgba(20, 83, 45, 0.4);
  --glass-border: rgba(74, 222, 128, 0.15);
}

[data-theme="ocean"] {
  --bg-primary: #0c4a6e;
  --bg-secondary: #075985;
  --bg-gradient: linear-gradient(180deg, #082f49 0%, #0369a1 100%);
  --text-primary: #f0f9ff;
  --text-secondary: #bae6fd;
  --accent-primary: #38bdf8;
  /* Light Blue */
  --accent-secondary: #0ea5e9;
  --accent-glow: rgba(56, 189, 248, 0.4);
  --glass-bg: rgba(12, 74, 110, 0.4);
  --glass-border: rgba(56, 189, 248, 0.15);
}

[data-theme="luxury"] {
  --bg-primary: #000000;
  --bg-secondary: #1c1917;
  --bg-gradient: linear-gradient(180deg, #000000 0%, #1c1917 100%);
  --text-primary: #fef3c7;
  --text-secondary: #d6d3d1;
  --accent-primary: #fbbf24;
  /* Gold */
  --accent-secondary: #d97706;
  /* Amber */
  --accent-glow: rgba(251, 191, 36, 0.3);
  --glass-bg: rgba(28, 25, 23, 0.6);
  --glass-border: rgba(251, 191, 36, 0.2);
}

[data-theme="coffee"] {
  --bg-primary: #3f2e27;
  /* Dark Coffee */
  --bg-secondary: #2e221f;
  --bg-gradient: linear-gradient(180deg, #271c19 0%, #4a3732 100%);
  --text-primary: #fff8f0;
  /* Cream */
  --text-secondary: #dlscc8;
  --accent-primary: #d4a373;
  /* Latte */
  --accent-secondary: #b08968;
  --accent-glow: rgba(212, 163, 115, 0.3);
  --glass-bg: rgba(63, 46, 39, 0.5);
  --glass-border: rgba(212, 163, 115, 0.15);
}

/* ... existing body styles ... */

/* Specific theme preview colors */
.theme-cyber {
  background: linear-gradient(135deg, #000, #00f3ff);
}

.theme-moon {
  background: linear-gradient(135deg, #0f172a, #818cf8);
}

.theme-sunset {
  background: linear-gradient(135deg, #4c0519, #fb923c);
}

.theme-minimal {
  background: linear-gradient(135deg, #fff, #2563eb);
}

.theme-forest {
  background: linear-gradient(135deg, #052e16, #4ade80);
}

.theme-ocean {
  background: linear-gradient(135deg, #0c4a6e, #38bdf8);
}

.theme-luxury {
  background: linear-gradient(135deg, #000, #fbbf24);
}

.theme-coffee {
  background: linear-gradient(135deg, #3f2e27, #d4a373);
}

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background: var(--bg-primary);
  /* Fallback */
  background-image: var(--bg-gradient);
  background-attachment: fixed;
  color: var(--text-primary);
  overflow-x: hidden;
  transition: background 0.5s ease, color 0.5s ease;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Outfit', sans-serif;
}

/* Reusable Glass Class */
.glass {
  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: var(--card-radius);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass:hover {
  transform: translateY(-5px);
  border-color: var(--accent-primary);
  box-shadow: 0 15px 40px var(--accent-glow);
}

/* Nav Glass */
.glass-nav {
  background: rgba(var(--bg-primary), 0.8);
  /* Adjusted dynamically in usage if possible, else fixed */
  background: var(--glass-bg);
  /* Use variable */
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
}

/* Gradient Text */
.text-gradient {
  background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  background-size: 200% 200%;
  animation: bg-shift 5s ease infinite;
}

@keyframes bg-shift {
  0% {
    background-position: 0% 50%
  }

  50% {
    background-position: 100% 50%
  }

  100% {
    background-position: 0% 50%
  }
}

/* Buttons */
.btn-primary {
  background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
  color: white;
  padding: 12px 32px;
  border-radius: var(--btn-radius);
  font-weight: 600;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, var(--accent-secondary), var(--accent-primary));
  opacity: 0;
  z-index: -1;
  transition: opacity 0.3s ease;
}

.btn-primary:hover::before {
  opacity: 1;
}

.btn-primary:hover {
  box-shadow: 0 0 20px var(--accent-glow);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--accent-primary);
  padding: 12px 32px;
  border-radius: var(--btn-radius);
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-outline:hover {
  background: var(--accent-glow);
  border-color: var(--accent-secondary);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
  background: var(--accent-secondary);
  border-radius: 5px;
  border: 2px solid var(--bg-secondary);
}

/* Animations */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 1s cubic-bezier(0.5, 0, 0, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

@keyframes float-soft {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-15px);
  }
}

.animate-float {
  animation: float-soft 8s ease-in-out infinite;
}

/* Section Dividers / Soft Glows */
.ambient-glow {
  position: absolute;
  width: 500px;
  height: 500px;
  background: var(--accent-primary);
  filter: blur(150px);
  opacity: 0.2;
  border-radius: 50%;
  z-index: -1;
  pointer-events: none;
}

/* Special Text Classes */
.electric-text {
  font-weight: 700;
  position: relative;
  display: inline-block;
}

.neon-pink {
  color: #fff !important;
  text-shadow: 0 0 15px rgba(255, 100, 255, 0.6);
  -webkit-text-stroke: 1px #ff69b4;
  animation: neon-breathe 4s ease-in-out infinite;
}

@keyframes neon-breathe {

  0%,
  100% {
    text-shadow: 0 0 10px rgba(255, 100, 255, 0.5);
  }

  50% {
    text-shadow: 0 0 25px rgba(255, 100, 255, 0.9);
  }
}

/* Theme Toggle UI */
.theme-toggle-container {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 9999;
}

.theme-btn-main {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  position: relative;
  z-index: 10;
}

.theme-btn-main:hover {
  background: var(--accent-primary);
  color: white;
  transform: rotate(45deg);
}

.theme-options {
  position: absolute;
  bottom: 70px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  padding: 10px;
  border-radius: 20px;
  border: 1px solid var(--glass-border);
  display: none;
  /* Changed from flex to none */
  flex-direction: column;
  gap: 8px;
  /* Removed opacity/visibility transition for immediate fix */
}

.theme-options.active {
  display: flex !important;
  /* Force display */
  animation: fade-in 0.2s ease-out;
}

@keyframes fade-in {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

.theme-option {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.2s;
}

.theme-option:hover {
  transform: scale(1.1);
  border-color: var(--text-primary);
}

/* Specific theme preview colors */
.theme-cyber {
  background: linear-gradient(135deg, #000, #00f3ff);
}



.theme-moon {
  background: linear-gradient(135deg, #0f172a, #818cf8);
}

.theme-sunset {
  background: linear-gradient(135deg, #4c0519, #fb923c);
}

.theme-minimal {
  background: linear-gradient(135deg, #fff, #2563eb);
}