/* =========================================================
   Kamalnath PORTFOLIO
   THEME SYSTEM
   Dark + Light
========================================================= */
/* =========================================================
   01. DARK THEME — DEFAULT
========================================================= */
:root {
  /* ---------- Main Colors ---------- */
  --theme-bg: #030712;
  --theme-bg-secondary: #071326;
  --theme-surface: #081426;
  --theme-surface-2: #0d1b31;
  /* ---------- Text ---------- */
  --theme-text: #f8fafc;
  --theme-text-secondary: #cbd5e1;
  --theme-text-muted: #94a3b8;
  --theme-text-soft: #64748b;
  /* ---------- Accent ---------- */
  --theme-primary: #00eaff;
  --theme-primary-soft: #38d9ff;
  --theme-secondary: #8b5cf6;
  --theme-blue: #2563eb;
  /* ---------- Glass ---------- */
  --theme-glass: rgba(7, 19, 38, 0.72);
  --theme-glass-soft: rgba(255, 255, 255, 0.035);
  /* ---------- Borders ---------- */
  --theme-border: rgba(0, 234, 255, 0.22);
  --theme-border-soft: rgba(255, 255, 255, 0.08);
  /* ---------- Header ---------- */
  --theme-header: rgba(4, 13, 29, 0.78);
  /* ---------- Cards ---------- */
  --theme-card: rgba(255, 255, 255, 0.025);
  /* ---------- Shadows ---------- */
  --theme-shadow: rgba(0, 0, 0, 0.4);
  /* ---------- Buttons ---------- */
  --theme-button-text: #001018;
  /* ---------- Background ---------- */
  --theme-background-main:
    radial-gradient(
      circle at 15% 20%,
      rgba(0, 234, 255, 0.12),
      transparent 30%
    ),
    radial-gradient(
      circle at 80% 30%,
      rgba(139, 92, 246, 0.13),
      transparent 32%
    ),
    radial-gradient(circle at 50% 90%, rgba(37, 99, 235, 0.1), transparent 32%),
    #030712;
}
/* =========================================================
   02. LIGHT THEME
========================================================= */
body[data-theme="light"] {
  /* ---------- Main Colors ---------- */
  --theme-bg: #f4f8fc;
  --theme-bg-secondary: #e8f1f8;
  --theme-surface: #ffffff;
  --theme-surface-2: #eef5fb;
  /* ---------- Text ---------- */
  --theme-text: #0f172a;
  --theme-text-secondary: #1e293b;
  --theme-text-muted: #475569;
  --theme-text-soft: #64748b;
  /* ---------- Accent ---------- */
  --theme-primary: #009fc4;
  --theme-primary-soft: #00b8df;
  --theme-secondary: #6842d9;
  --theme-blue: #2563eb;
  /* ---------- Glass ---------- */
  --theme-glass: rgba(255, 255, 255, 0.78);
  --theme-glass-soft: rgba(15, 23, 42, 0.035);
  /* ---------- Borders ---------- */
  --theme-border: rgba(0, 159, 196, 0.25);
  --theme-border-soft: rgba(15, 23, 42, 0.09);
  /* ---------- Header ---------- */
  --theme-header: rgba(255, 255, 255, 0.82);
  /* ---------- Cards ---------- */
  --theme-card: rgba(255, 255, 255, 0.76);
  /* ---------- Shadows ---------- */
  --theme-shadow: rgba(15, 23, 42, 0.12);
  /* ---------- Buttons ---------- */
  --theme-button-text: #ffffff;
  /* ---------- Background ---------- */
  --theme-background-main:
    radial-gradient(
      circle at 15% 20%,
      rgba(0, 184, 223, 0.12),
      transparent 30%
    ),
    radial-gradient(
      circle at 80% 30%,
      rgba(104, 66, 217, 0.1),
      transparent 32%
    ),
    radial-gradient(
      circle at 50% 90%,
      rgba(37, 99, 235, 0.08),
      transparent 32%
    ),
    #f4f8fc;
}
/* =========================================================
   03. GLOBAL THEME TRANSITION
========================================================= */
html,
body,
.site-header,
.main-nav,
.nav-link,
.header-talk,
.technology-card,
.journey-card,
.about-main-card,
.small-project,
.featured-project,
.lab-network,
.contact-card-main,
.floating-window,
.theme-toggle {
  transition:
    background-color 0.35s ease,
    background 0.35s ease,
    color 0.35s ease,
    border-color 0.35s ease,
    box-shadow 0.35s ease;
}
/* =========================================================
   04. BODY
========================================================= */
body {
  background: var(--theme-bg);
  color: var(--theme-text);
}
/* =========================================================
   05. MAIN SPACE BACKGROUND
========================================================= */
.space-background {
  background: var(--theme-background-main);
  transition: background 0.5s ease;
}
/* =========================================================
   06. HEADER
========================================================= */
.site-header {
  background: var(--theme-header);
  border-color: var(--theme-border);
  box-shadow: 0 15px 50px var(--theme-shadow);
}
/* =========================================================
   07. BRAND
========================================================= */
.brand {
  color: var(--theme-text);
}
.brand-symbol {
  color: var(--theme-primary);
  border-color: var(--theme-border);
  background: var(--theme-glass-soft);
}
/* =========================================================
   08. CENTER NAVIGATION
========================================================= */
.main-nav {
  background: var(--theme-glass);
  border-color: var(--theme-border);
}
.nav-link {
  color: var(--theme-text-muted);
}
.nav-link:hover {
  color: var(--theme-text);
}
.nav-link.active {
  color: var(--theme-text);
  background: var(--theme-glass-soft);
  box-shadow: 0 0 18px rgba(0, 234, 255, 0.08);
}
/* =========================================================
   09. LET'S TALK BUTTON
========================================================= */
.header-talk {
  color: var(--theme-text);
  border-color: var(--theme-border);
  background: var(--theme-glass-soft);
}
.header-talk:hover {
  color: var(--theme-button-text);
  background: var(--theme-primary);
  border-color: var(--theme-primary);
}
/* =========================================================
   10. HERO TEXT
========================================================= */
.hero-content h1 {
  color: var(--theme-text);
}
.hero-content h2 {
  color: var(--theme-text-secondary);
}
.hero-description {
  color: var(--theme-text-muted);
}
.hero-small-title {
  color: var(--theme-primary);
}
.hero-name-accent {
  color: var(--theme-primary);
}
.hero-line {
  color: var(--theme-text-soft);
}
.hero-line span {
  background: var(--theme-primary);
}
/* =========================================================
   11. HERO BUTTONS
========================================================= */
.primary-button {
  background: var(--theme-primary);
  color: var(--theme-button-text);
  border-color: var(--theme-primary);
}
.primary-button:hover {
  box-shadow: 0 0 30px rgba(0, 234, 255, 0.25);
}
.secondary-button {
  color: var(--theme-text);
  background: var(--theme-glass-soft);
  border-color: var(--theme-border);
}
.secondary-button:hover {
  color: var(--theme-button-text);
  background: var(--theme-primary);
  border-color: var(--theme-primary);
}
/* =========================================================
   12. HERO STATS
========================================================= */
.hero-stats {
  color: var(--theme-text);
}
.stat strong {
  color: var(--theme-text);
}
.stat span {
  color: var(--theme-text-soft);
}
/* =========================================================
   13. 3D AI CORE
========================================================= */
.tech-node {
  background: var(--theme-glass);
  border-color: var(--theme-border);
  color: var(--theme-primary);
  box-shadow: 0 10px 30px var(--theme-shadow);
}
.tech-node span {
  color: var(--theme-primary);
}
.orbit {
  border-color: rgba(0, 234, 255, 0.2);
}
.orbit-two {
  border-color: rgba(139, 92, 246, 0.2);
}
.core-base {
  border-color: rgba(0, 234, 255, 0.25);
}
/* =========================================================
   14. SECTION HEADINGS
========================================================= */
.section-heading h2 {
  color: var(--theme-text);
}
.section-heading > span {
  color: var(--theme-primary);
}
.section-label {
  color: var(--theme-primary);
}
/* =========================================================
   15. ABOUT CARDS
========================================================= */
.about-main-card,
.journey-card {
  background: var(--theme-card);
  border-color: var(--theme-border-soft);
  box-shadow: 0 20px 50px var(--theme-shadow);
}
.about-main-card h3,
.journey-card h3 {
  color: var(--theme-text);
}
.about-main-card p,
.journey-card p {
  color: var(--theme-text-muted);
}
.card-icon {
  color: var(--theme-primary);
}
/* =========================================================
   16. TECHNOLOGY CARDS
========================================================= */
.technology-card {
  background: var(--theme-card);
  border-color: var(--theme-border-soft);
  box-shadow: 0 20px 50px var(--theme-shadow);
}
.technology-card h3 {
  color: var(--theme-text);
}
.technology-card p {
  color: var(--theme-text-muted);
}
.technology-icon {
  color: var(--theme-primary);
}
/* =========================================================
   17. PROJECTS
========================================================= */
.featured-project,
.small-project {
  background: var(--theme-card);
  border-color: var(--theme-border-soft);
  box-shadow: 0 25px 60px var(--theme-shadow);
}
.project-content h3 {
  color: var(--theme-text);
}
.project-content h4 {
  color: var(--theme-text-secondary);
}
.project-content > p {
  color: var(--theme-text-muted);
}
.project-number,
.project-badge {
  color: var(--theme-primary);
}
.project-tags span {
  color: var(--theme-primary);
  background: var(--theme-glass-soft);
  border-color: var(--theme-border-soft);
}
/* =========================================================
   18. SMALL PROJECTS
========================================================= */
.small-project h3 {
  color: var(--theme-text);
}
.small-project p {
  color: var(--theme-text-muted);
}
.small-project > i {
  color: var(--theme-primary);
}
.small-project a {
  color: var(--theme-primary);
}
/* =========================================================
   19. TAMILAI WINDOW
========================================================= */
.floating-window {
  background: var(--theme-glass);
  border-color: var(--theme-border);
  box-shadow: 0 30px 70px var(--theme-shadow);
}
.fake-title {
  color: var(--theme-text);
}
.fake-message {
  color: var(--theme-text-secondary);
}
.fake-input {
  color: var(--theme-text-muted);
  border-color: var(--theme-border-soft);
}
/* =========================================================
   20. LAB NETWORK
========================================================= */
.lab-network {
  background: var(--theme-card);
  border-color: var(--theme-border-soft);
}
.network-node {
  background: var(--theme-glass);
  border-color: var(--theme-border);
  color: var(--theme-text);
}
.network-node i {
  color: var(--theme-primary);
}
.lab-core {
  background: var(--theme-glass);
  border-color: var(--theme-border);
  color: var(--theme-text);
}
.lab-core i {
  color: var(--theme-primary);
}
/* =========================================================
   21. CONTACT
========================================================= */
.contact-card-main {
  background: var(--theme-card);
  border-color: var(--theme-border-soft);
  box-shadow: 0 25px 60px var(--theme-shadow);
}
.contact-card-main h2 {
  color: var(--theme-text);
}
.contact-card-main p {
  color: var(--theme-text-muted);
}
/* =========================================================
   22. FOOTER
========================================================= */
footer {
  color: var(--theme-text-muted);
}
.footer-main h3 {
  color: var(--theme-text);
}
.footer-bottom {
  border-color: var(--theme-border-soft);
}
/* =========================================================
   23. THEME TOGGLE BUTTON
========================================================= */
.theme-toggle {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  border-radius: 50%;
  cursor: pointer;
  color: var(--theme-primary);
  background: var(--theme-glass-soft);
  border: 1px solid var(--theme-border);
  font-size: 15px;
  transition:
    transform 0.3s ease,
    background 0.3s ease,
    color 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease;
}
.theme-toggle:hover {
  transform: rotate(20deg) scale(1.08);
  background: rgba(0, 234, 255, 0.1);
  box-shadow: 0 0 25px rgba(0, 234, 255, 0.2);
}
/* =========================================================
   24. LIGHT MODE — EXTRA POLISH
========================================================= */
body[data-theme="light"] {
  color: var(--theme-text);
}
body[data-theme="light"] .theme-toggle {
  color: #f59e0b;
  border-color: rgba(245, 158, 11, 0.3);
  background: rgba(245, 158, 11, 0.08);
}
body[data-theme="light"] .theme-toggle:hover {
  background: rgba(245, 158, 11, 0.14);
  box-shadow: 0 0 25px rgba(245, 158, 11, 0.18);
}
body[data-theme="light"] .tech-node {
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 12px 35px rgba(15, 23, 42, 0.1);
}
body[data-theme="light"] .profile-ring {
  box-shadow:
    0 10px 35px rgba(0, 159, 196, 0.18),
    0 0 70px rgba(104, 66, 217, 0.08);
}
body[data-theme="light"] .orbit {
  border-color: rgba(0, 159, 196, 0.18);
}
body[data-theme="light"] .orbit-two {
  border-color: rgba(104, 66, 217, 0.16);
}
body[data-theme="light"] .core-base {
  border-color: rgba(0, 159, 196, 0.22);
}
/* =========================================================
   25. HEADER + THEME BUTTON — FINAL CLEAN VERSION
========================================================= */
/* ---------------------------------------------------------
   DESKTOP HEADER
--------------------------------------------------------- */
@media (min-width: 801px) {
  .site-header {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  .site-header .main-nav {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    z-index: 5;
  }
  .site-header .theme-toggle {
    position: absolute;
    right: 145px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 20;
  }
  .site-header .theme-toggle:hover {
    transform: translateY(-50%) rotate(20deg) scale(1.08);
  }
}
/* ---------------------------------------------------------
   THEME BUTTON
--------------------------------------------------------- */
.theme-toggle {
  width: 42px;
  height: 42px;
  min-width: 42px;
  min-height: 42px;
  display: grid !important;
  place-items: center;
  padding: 0;
  margin: 0;
  border-radius: 50%;
  border: 1px solid var(--theme-border);
  background: var(--theme-glass-soft);
  color: var(--theme-primary);
  cursor: pointer;
  visibility: visible !important;
  opacity: 1 !important;
  z-index: 20;
  font-size: 15px;
  font-weight: 700;
  transition:
    transform 0.3s ease,
    background 0.3s ease,
    color 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease;
}
.theme-toggle i {
  font-size: 15px;
  line-height: 1;
  pointer-events: none;
}
.theme-toggle:hover {
  background: rgba(0, 234, 255, 0.1);
  border-color: var(--theme-primary);
  box-shadow: 0 0 25px rgba(0, 234, 255, 0.2);
}
/* ---------------------------------------------------------
   HEADER TEXT
--------------------------------------------------------- */
.site-header .brand {
  font-weight: 800;
  letter-spacing: 2px;
}
.site-header .nav-link {
  font-weight: 700;
}
.site-header .header-talk {
  font-weight: 700;
}
/* ---------------------------------------------------------
   HERO NAME
--------------------------------------------------------- */
.hero-content h1,
.hero-name,
.hero-name-accent {
  font-weight: 800;
}
/* ---------------------------------------------------------
   LIGHT MODE — HERO NAME
--------------------------------------------------------- */
body[data-theme="light"] .hero-name {
  color: #0f172a;
  font-weight: 800;
}
body[data-theme="light"] .hero-name-accent {
  color: #009fc4;
  font-weight: 800;
}
/* ---------------------------------------------------------
   LIGHT MODE — THEME BUTTON
--------------------------------------------------------- */
body[data-theme="light"] .theme-toggle {
  color: #f59e0b;
  border-color: rgba(245, 158, 11, 0.35);
  background: rgba(245, 158, 11, 0.08);
}
body[data-theme="light"] .theme-toggle:hover {
  background: rgba(245, 158, 11, 0.14);
  border-color: #f59e0b;
  box-shadow: 0 0 25px rgba(245, 158, 11, 0.2);
}
/* ---------------------------------------------------------
   MOBILE HEADER
--------------------------------------------------------- */
@media (max-width: 800px) {
  .site-header {
    position: fixed;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 24px);
    max-width: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    box-sizing: border-box;
    gap: 8px;
  }
  .site-header .main-nav,
  .site-header .header-talk {
    display: none;
  }
  /* Brand */
  .site-header .brand {
    flex: 1;
    min-width: 0;
    margin-right: 0;
  }
  /* Theme button */
  .site-header .theme-toggle {
    position: static;
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    min-width: 38px;
    min-height: 38px;
    margin: 0;
    transform: none;
  }
  .site-header .theme-toggle:hover {
    transform: rotate(20deg) scale(1.08);
  }
  /* Hamburger */
  .site-header .mobile-menu-button {
    display: grid;
    place-items: center;
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    min-width: 38px;
    min-height: 38px;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    border-radius: 50%;
    border: 1px solid var(--theme-border);
    background: var(--theme-glass-soft);
    color: var(--theme-text);
    font-size: 16px;
    z-index: 30;
  }
  .site-header .mobile-menu-button i {
    color: var(--theme-text);
    line-height: 1;
    pointer-events: none;
  }
  /* Mobile menu — light mode */
  body[data-theme="light"] .mobile-menu {
    background: var(--theme-glass);
    border-color: var(--theme-border);
    box-shadow: 0 20px 45px var(--theme-shadow);
  }
  body[data-theme="light"] .mobile-menu a {
    color: var(--theme-text);
  }
  body[data-theme="light"] .mobile-menu a:hover {
    background: rgba(0, 159, 196, 0.08);
    color: var(--theme-primary);
  }
}
