/* ==========================================================================
   MAIN CSS - DESIGN TOKENS, TYPOGRAPHY & CORE LAYOUT
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
  --bg-primary: #151515;
  --bg-secondary: #0b0b0b;
  --bg-surface: rgba(24, 24, 24, 0.85);
  --bg-card: #181818;
  
  --accent-cyan: #36F2FF;
  --accent-violet: #7928CA;
  --accent-pink: #FF007F;
  --accent-mint: #36FF9F;

  --gradient-neon: linear-gradient(135deg, #36FF9F 0%, #36F2FF 100%);
  --gradient-cyan: linear-gradient(135deg, #36F2FF 0%, #36FF9F 100%);
  --gradient-glass: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.02) 100%);

  --text-primary: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.72);
  --text-muted: rgba(255, 255, 255, 0.45);
  --border-glow: rgba(54, 255, 159, 0.35);
  --border-light: rgba(255, 255, 255, 0.09);

  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;

  --shadow-neon: 0 0 25px rgba(54, 255, 159, 0.3);
  --shadow-glass: 0 20px 40px rgba(0, 0, 0, 0.6);

  --transition-smooth: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-bounce: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Light Theme Variables */
body.light-theme {
  --bg-primary: #f1f5f9;
  --bg-secondary: #ffffff;
  --bg-surface: rgba(255, 255, 255, 0.75);
  --bg-card: rgba(255, 255, 255, 0.6);

  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --border-glow: rgba(121, 40, 202, 0.3);
  --border-light: rgba(15, 23, 42, 0.1);

  --shadow-glass: 0 15px 35px rgba(0, 0, 0, 0.08);
}

/* Base Styles */
html {
  scroll-behavior: smooth;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Allow text selection in interactive elements */
input, textarea, .cli-output, .code-card-body, .form-input {
  user-select: text;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  overflow-x: hidden;
  line-height: 1.6;
  position: relative;
  transition: background-color 0.5s ease, color 0.5s ease;
}

body.loading-active {
  overflow: auto;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: -0.02em;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-smooth);
}

/* Glow Text Utilities */
.glow-text {
  background: var(--gradient-neon);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

/* Canvas Background */
#particle-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1;
  pointer-events: none;
  transform: translateZ(0);
  will-change: transform;
}

/* Custom Pointer Cursor */
#cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  width: 8px;
  height: 8px;
  background-color: var(--accent-cyan);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  box-shadow: 0 0 12px var(--accent-cyan);
  opacity: 0;
  transition: opacity 0.3s ease;
}

#cursor-outline {
  position: fixed;
  top: 0;
  left: 0;
  width: 36px;
  height: 36px;
  border: 2px solid var(--accent-cyan);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  opacity: 0;
  transition: opacity 0.3s ease, width 0.3s ease, height 0.3s ease, border-color 0.3s ease;
}

body.cursor-active #cursor-dot,
body.cursor-active #cursor-outline {
  opacity: 1;
}

body.cursor-hover #cursor-outline {
  width: 54px;
  height: 54px;
  border-color: var(--accent-pink);
  background: rgba(255, 0, 128, 0.1);
}

/* ==========================================================================
   PRELOADER / LOADING SCREEN STYLING
   ========================================================================== */

#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #080b13;
  z-index: 99999;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  transition: opacity 0.6s ease, transform 0.6s ease;
}

#preloader.preloader-fade-out {
  opacity: 0;
  transform: scale(1.05);
  pointer-events: none;
}

.loader-container {
  text-align: center;
  width: 90%;
  max-width: 450px;
}

.loader-logo {
  font-size: 2.8rem;
  font-weight: 800;
  font-family: var(--font-heading);
  margin-bottom: 2rem;
  animation: pulseGlow 2s infinite alternate;
}

.loader-counter {
  font-size: 3.5rem;
  font-weight: 800;
  font-family: var(--font-heading);
  color: var(--accent-cyan);
  margin-bottom: 1rem;
}

.loader-bar-bg {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 1.2rem;
  box-shadow: inset 0 0 5px rgba(0,0,0,0.5);
}

.loader-bar-fill {
  height: 100%;
  width: 0%;
  background: var(--gradient-neon);
  border-radius: 10px;
  transition: width 0.1s linear;
  box-shadow: 0 0 15px var(--accent-cyan);
}

.loader-status {
  font-size: 0.95rem;
  color: var(--text-secondary);
  letter-spacing: 0.05em;
}

/* KEYFRAME ANIMATIONS */
@keyframes pulseGlow {
  0% { transform: scale(1); filter: drop-shadow(0 0 5px var(--accent-cyan)); }
  100% { transform: scale(1.04); filter: drop-shadow(0 0 20px var(--accent-violet)); }
}

@keyframes floatSlow {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-12px); }
}

.float-animation {
  animation: floatSlow 5s ease-in-out infinite;
}

/* MAIN CONTENT WRAPPER */
#main-content {
  position: relative;
  z-index: 2;
}

/* SECTION CONTAINERS */
.section-padding {
  padding: 100px 0;
}

.container {
  width: 90%;
  max-width: 1240px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-tag {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(0, 242, 254, 0.1);
  border: 1px solid var(--border-glow);
  border-radius: 20px;
  color: var(--accent-cyan);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.section-title {
  font-size: 2.8rem;
  margin-bottom: 15px;
}

#admin-trigger-btn, #admin-trigger-btn2, .fa-user-shield, button[title*="Admin"], button[title*="admin"], .nav-actions > button:nth-child(7) {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  width: 0 !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
}

.section-subtitle {
  color: var(--text-secondary);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}
