/* ==========================================================================
   KWOTAi V2.0 - Deep Tech Enterprise Theme
   Sharp, Vibrant, and Eye-Catching
   ========================================================================== */

/* Core Design Architecture (Shared Colors) */
:root {
  --text-main: #F1F5F9;
  --text-muted: #94A3B8;
  --text-dark: #FFFFFF;
  --max-width: 1200px;
}

/* Base Theme 0: Cyber Cyan (Default) - Bold Slate */
:root, .theme-cyber-cyan {
  --bg-dark: #0A1128;
  --bg-darker: #020617;
  --bg-panel: rgba(10, 17, 40, 0.65);
  --global-radius: 16px;
  --bg-card: rgba(15, 23, 42, 0.7);
  --accent-cyan: #00F0FF;
  --accent-azure: #0088FF;
  --accent-glow: rgba(0, 229, 255, 0.5);
  --hero-glow: rgba(0, 229, 255, 0.15);
  --border-subtle: rgba(255,255,255,0.06);
  --border-cyan: rgba(0, 229, 255, 0.3);
  --shadow-neon: 0 0 20px rgba(0, 229, 255, 0.15);
  --logo-filter: hue-rotate(0deg);
}

/* Theme 1: Neon Purple - Bold Amethyst */
.theme-neon-purple {
  --bg-dark: #4C1D95;
  --bg-darker: #2E1065;
  --bg-panel: rgba(76, 29, 149, 0.7);
  --bg-card: rgba(46, 16, 101, 0.7);
  --accent-cyan: #B018DB;
  --accent-azure: #9333EA;
  --accent-glow: rgba(217, 70, 239, 0.5);
  --hero-glow: rgba(217, 70, 239, 0.15);
  --border-subtle: rgba(217, 70, 239, 0.08);
  --border-cyan: rgba(217, 70, 239, 0.3);
  --shadow-neon: 0 0 20px rgba(217, 70, 239, 0.15);
  --logo-filter: hue-rotate(104deg);
}

/* Theme 2: Matrix Green - Bold Emerald */
.theme-matrix-green {
  --bg-dark: #065F46;
  --bg-darker: #022C22;
  --bg-panel: rgba(6, 95, 70, 0.7);
  --bg-card: rgba(2, 44, 34, 0.7);
  --accent-cyan: #10B981;
  --accent-azure: #047857;
  --accent-glow: rgba(16, 185, 129, 0.5);
  --hero-glow: rgba(16, 185, 129, 0.15);
  --border-subtle: rgba(16, 185, 129, 0.08);
  --border-cyan: rgba(16, 185, 129, 0.3);
  --shadow-neon: 0 0 20px rgba(16, 185, 129, 0.15);
  --logo-filter: hue-rotate(-26deg);
}

/* Theme 3: Sunset Orange - Bold Mocha */
.theme-sunset-orange {
  --bg-dark: #7C2D12;
  --bg-darker: #431407;
  --bg-panel: rgba(124, 45, 18, 0.7);
  --bg-card: rgba(67, 20, 7, 0.7);
  --accent-cyan: #F97316;
  --accent-azure: #EA580C;
  --accent-glow: rgba(249, 115, 22, 0.5);
  --hero-glow: rgba(249, 115, 22, 0.15);
  --border-subtle: rgba(249, 115, 22, 0.08);
  --border-cyan: rgba(249, 115, 22, 0.3);
  --shadow-neon: 0 0 20px rgba(249, 115, 22, 0.15);
  --logo-filter: hue-rotate(-156deg);
}

/* Theme 4: Quantum Gold - Bold Amber */
.theme-quantum-gold {
  --bg-dark: #713F12;
  --bg-darker: #451A03;
  --bg-panel: rgba(113, 63, 18, 0.7);
  --bg-card: rgba(69, 26, 3, 0.7);
  --accent-cyan: #FBBF24;
  --accent-azure: #D97706;
  --accent-glow: rgba(251, 191, 36, 0.5);
  --hero-glow: rgba(251, 191, 36, 0.15);
  --border-subtle: rgba(251, 191, 36, 0.08);
  --border-cyan: rgba(251, 191, 36, 0.3);
  --shadow-neon: 0 0 20px rgba(251, 191, 36, 0.15);
  --logo-filter: hue-rotate(-135deg);
}

/* Global Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 100%;
  scroll-behavior: smooth;
  background-color: var(--bg-darker);
  color: var(--text-main);
  font-family: 'Space Grotesk', sans-serif;
  overflow-x: hidden;
}

body {
  background: radial-gradient(circle at 50% 0%, var(--bg-dark) 0%, var(--bg-darker) 100%);
  min-height: 100vh;
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: url('images/logo5_white_bg.jpg') center/cover no-repeat;
  opacity: 0.02;
  mix-blend-mode: screen;
  z-index: -1;
  pointer-events: none;
}

/* ==========================================================================
   Typography Rules
   ========================================================================== */
h1, h2, h3, h4 {
  color: var(--text-main);
  font-weight: 800;
  letter-spacing: -0.5px;
}

.text-cyan { color: var(--accent-cyan); }
.text-azure { color: var(--accent-azure); }

p {
  line-height: 1.6;
  color: var(--text-muted);
}

/* ==========================================================================
   Uniform Navbar
   ========================================================================== */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 5%;
  height: 160px;
  background: var(--bg-panel);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid var(--border-subtle);
  border-radius: var(--global-radius);
}

/* Hamburger Icon */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: 1001;
}
.hamburger span {
  width: 25px;
  height: 3px;
  background-color: var(--accent-cyan);
  border-radius: 3px;
  transition: all 0.3s ease;
}
.hamburger.toggle span:nth-child(1) { transform: rotate(45deg) translate(5px, 6px); }
.hamburger.toggle span:nth-child(2) { opacity: 0; }
.hamburger.toggle span:nth-child(3) { transform: rotate(-45deg) translate(5px, -6px); }

.logo {
  position: relative;
  width: 140px;
  height: 100%;
}

.logo img {
  position: absolute;
  top: 8px;
  left: 0;
  height: 140px;
  width: auto;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  filter: var(--logo-filter) drop-shadow(0 10px 15px rgba(0,0,0,0.5));
  z-index: 1005;
}

.logo:hover img {
  transform: scale(1.05) rotate(2deg);
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  align-items: center;
}

.nav-links a {
  color: var(--text-main);
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
  transition: color 0.3s ease;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-cyan);
  transition: width 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--accent-cyan);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

\.nav-links \.btn-neon {
  background: transparent;
  color: var(--accent-cyan);
  border: 1px solid var(--accent-cyan);
  padding: 0.6rem 1.5rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-neon);
  border-radius: 8px;
}

.nav-links .btn-neon:hover {
  background: var(--accent-cyan);
  color: var(--bg-darker);
  box-shadow: 0 0 30px var(--accent-cyan);
  transform: translateY(-2px);
}
.nav-links .btn-neon::after { display: none; }

/* ==========================================================================
   Uniform Hero Section
   ========================================================================== */
.hero {
  padding: 12rem 5% 3rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: '';
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, var(--hero-glow) 0%, transparent 70%);
  z-index: -1;
  pointer-events: none;
}

.hero h1 {
  font-size: 3.5rem;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  text-shadow: 0 4px 20px rgba(0,0,0,0.5);
  animation: fadeUp 0.8s ease forwards;
}

.hero .subtitle {
  font-size: 1.25rem;
  max-width: 900px;
  margin: 0 auto 3rem;
  color: var(--text-muted);
  animation: fadeUp 1s ease forwards;
  opacity: 0;
}

/* ==========================================================================
   Acronym Neon Grid
   ========================================================================== */
.hero-acronym-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(145px, 1fr));
  gap: 1.5rem;
  max-width: 1100px;
  margin: 0 auto 4rem;
  animation: fadeUp 1.2s ease forwards;
  opacity: 0;
}

\.acronym-item {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  padding: 1.2rem 1rem;
  text-align: center;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
  border-radius: var(--global-radius);
}

.acronym-item::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-cyan), transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.acronym-item:hover {
  border-color: var(--border-cyan);
  box-shadow: var(--shadow-neon);
  transform: translateY(-5px);
  background: var(--hero-glow);
}

.acronym-item:hover::before {
  opacity: 1;
}

.acronym-item .letter {
  display: block;
  font-size: 4rem;
  font-weight: 800;
  color: var(--text-main);
  text-shadow: 0 0 20px rgba(0,229,255,0.4);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.acronym-item .word {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent-cyan);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* Mobile & Tablet Breakpoints */
@media (max-width: 900px) {
  .hamburger { display: flex; }
  .navbar { flex-direction: row; justify-content: space-between; padding: 0 5%; height: 110px; }
  .logo { width: 90px; }
  .logo img { height: 95px; top: 5px; }
  
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--bg-panel);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: right 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border-left: 1px solid var(--border-cyan);
    box-shadow: -10px 0 30px rgba(0,0,0,0.8);
    z-index: 1000;
  }
  .nav-links.nav-active { right: 0; }
  .nav-links a { font-size: 1.2rem; white-space: nowrap; }
}

@media (max-width: 600px) {
  .hero h1 { font-size: 2.2rem; }
  .hero .subtitle { font-size: 1rem; }
  .hero-acronym-container { gap: 0.5rem; grid-template-columns: repeat(2, 1fr); }
  \.acronym-item { padding: 1.5rem 0.5rem;   border-radius: var(--global-radius);
}
  .acronym-item .letter { font-size: 2.5rem; font-weight: 800;}
  .acronym-item .word { font-size: 0.65rem; letter-spacing: 0px; word-break: normal; }
  .theme-circle { width: 14px; height: 14px; border-width: 1px; }
  .theme-picker-widget { padding: 10px 8px; gap: 8px; right: 10px; }
}

/* Animations */
@keyframes fadeUp {
  0% { opacity: 0; transform: translateY(20px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  background: var(--bg-darker);
  border-top: 1px solid var(--border-subtle);
  padding: 3rem 5%;
  text-align: center;
  margin-top: 5rem;
}

.footer p {
  max-width: 800px;
  margin: 0 auto;
  font-size: 0.95rem;
}

/* ==========================================================================
   Theme Picker Widget
   ========================================================================== */
.theme-picker-widget {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  right: 20px;
  bottom: auto;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border-cyan);
  padding: 15px 10px;
  border-radius: 30px;
  display: flex;
  gap: 12px;
  align-items: center;
  box-shadow: var(--shadow-neon), 0 10px 30px rgba(0,0,0,0.5);
  z-index: 9999;
  backdrop-filter: blur(10px);
}

.theme-circle {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: 2px solid transparent;
}

.theme-circle:hover {
  transform: scale(1.2);
}

.theme-circle.active {
  transform: scale(1.2);
  border-color: #FFFFFF;
  box-shadow: 0 0 15px currentColor;
}

.tc-cyan { background: #00E5FF; color: #00E5FF; }
.tc-purple { background: #D946EF; color: #D946EF; }
.tc-green { background: #10B981; color: #10B981; }
.tc-orange { background: #F97316; color: #F97316; }
.tc-gold { background: #FBBF24; color: #FBBF24; }
