/* ===== THEME VARIABLES ===== */
[data-theme="dark"] {
  --bg: #03080f;
  --bg2: #060d18;
  --bg3: #0a1525;
  --panel: rgba(0,245,255,0.04);
  --panel2: rgba(0,245,255,0.09);
  --border: rgba(0,245,255,0.14);
  --border2: rgba(0,245,255,0.28);
  --c: #00f5ff;
  --g: #39ff14;
  --o: #ff6b35;
  --text: #b8d8e8;
  --text2: #7aaabb;
  --dim: #3a6a7a;
  --white: #e8f4f8;
  --nav-bg: rgba(3,8,15,0.94);
  --shadow: rgba(0,245,255,0.14);
  --grid-color: rgba(0,245,255,0.025);
  --card-bg: rgba(6,13,24,0.85);
  --overlay: rgba(3,8,15,0.92);
}
[data-theme="light"] {
  --bg: #f0f7ff;
  --bg2: #e3f0fb;
  --bg3: #d2e8f8;
  --panel: rgba(0,100,180,0.05);
  --panel2: rgba(0,100,180,0.12);
  --border: rgba(0,100,180,0.18);
  --border2: rgba(0,100,180,0.4);
  --c: #0077cc;
  --g: #1a9e00;
  --o: #d45500;
  --text: #2a4a6a;
  --text2: #4a7a9a;
  --dim: #8ab0cc;
  --white: #0d2a4a;
  --nav-bg: rgba(240,247,255,0.96);
  --shadow: rgba(0,100,180,0.18);
  --grid-color: rgba(0,100,180,0.05);
  --card-bg: rgba(255,255,255,0.75);
  --overlay: rgba(240,247,255,0.95);
}

/* ===== RESET & BASE ===== */
*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior:smooth; font-size:16px; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Rajdhani', sans-serif;
  overflow-x: hidden;
  cursor: none;
  min-height: 100vh;
  transition: background 0.45s, color 0.45s;
}
a { text-decoration: none; color: inherit; }
button { font-family: inherit; }
img { max-width: 100%; display: block; }

/* ===== CUSTOM CURSOR ===== */
#cur {
  position: fixed; width: 10px; height: 10px;
  background: var(--c); border-radius: 50%;
  pointer-events: none; z-index: 9999;
  transform: translate(-50%, -50%);
  transition: transform 0.1s, background 0.2s;
  /* hidden until first mouse move */
  opacity: 0;
}
#cur-ring {
  position: fixed; width: 34px; height: 34px;
  border: 1.5px solid var(--c); border-radius: 50%;
  pointer-events: none; z-index: 9998;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: width 0.2s, height 0.2s, opacity 0.2s, border-color 0.2s;
}
#cur.visible   { opacity: 1; }
#cur-ring.visible { opacity: 0.55; }
#cur-ring.hovered { width: 50px !important; height: 50px !important; opacity: 0.9 !important; }
[data-theme="dark"]  #cur { mix-blend-mode: screen; }
[data-theme="light"] #cur { mix-blend-mode: multiply; }
/* Hide custom cursor on touch devices */
@media (pointer: coarse) {
  #cur, #cur-ring { display: none !important; }
  body { cursor: auto !important; }
  a, button, [onclick] { cursor: pointer !important; }
}

/* ===== BACKGROUND GRID ===== */
.grid-bg {
  position: fixed; inset: 0;
  background-image:
    linear-gradient(var(--grid-color) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-color) 1px, transparent 1px);
  background-size: 54px 54px;
  z-index: 0; pointer-events: none;
}
.vignette {
  position: fixed; inset: 0;
  background: radial-gradient(ellipse at 50% 50%, transparent 35%, var(--bg) 88%);
  z-index: 0; pointer-events: none;
}

/* ===== NAVBAR ===== */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 500;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 0 48px; height: 62px;
  background: var(--nav-bg);
  backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border);
  transition: background 0.4s, border-color 0.4s;
}
.nav-logo {
  font-family: 'Orbitron', monospace; font-size: 1rem; font-weight: 900;
  color: var(--c); letter-spacing: 4px;
  display: flex; align-items: center; gap: 10px; white-space: nowrap;
  text-decoration: none;
}
.nav-dot { width: 8px; height: 8px; background: var(--g); border-radius: 50%; animation: blink 1.5s infinite; flex-shrink:0; }
.nav-links { display: flex; gap: 2px; list-style: none; }
.nav-links a {
  font-family: 'Share Tech Mono', monospace; font-size: 0.67rem;
  letter-spacing: 2px; text-transform: uppercase; color: var(--dim);
  padding: 8px 12px; border-bottom: 2px solid transparent;
  transition: color 0.3s, border-color 0.3s; white-space: nowrap; display:block;
}
.nav-links a:hover, .nav-links a.active { color: var(--c); border-bottom-color: var(--c); }
.nav-right { display: flex; align-items: center; gap: 12px; }

/* HAMBURGER */
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: none; padding: 6px; background: transparent; border: none; }
.hamburger span { width: 22px; height: 2px; background: var(--c); border-radius: 2px; transition: all 0.3s; display: block; }
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

/* MOBILE MENU */
.mobile-menu {
  display: none; position: fixed; top: 62px; left: 0; right: 0;
  background: var(--nav-bg); backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border); z-index: 499;
  flex-direction: column; padding: 12px 0;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-family: 'Share Tech Mono', monospace; font-size: 0.75rem; letter-spacing: 3px;
  text-transform: uppercase; color: var(--dim); padding: 14px 32px;
  border-left: 2px solid transparent; transition: all 0.3s; text-decoration: none; display:block;
}
.mobile-menu a:hover, .mobile-menu a.active { color: var(--c); border-left-color: var(--c); background: var(--panel); }

/* THEME TOGGLE */
.theme-toggle {
  display: flex; align-items: center; gap: 7px;
  background: var(--panel2); border: 1px solid var(--border);
  border-radius: 24px; padding: 5px 10px; cursor: none;
  transition: all 0.3s; flex-shrink: 0;
}
.theme-toggle:hover { border-color: var(--c); box-shadow: 0 0 12px var(--shadow); }
.toggle-track {
  width: 34px; height: 18px; background: var(--bg3);
  border-radius: 9px; position: relative; cursor: none;
  border: 1px solid var(--border); transition: background 0.3s;
}
.toggle-thumb {
  position: absolute; top: 2px; left: 2px;
  width: 12px; height: 12px; background: var(--c);
  border-radius: 50%; transition: transform 0.3s;
}
[data-theme="light"] .toggle-thumb { transform: translateX(16px); }
.toggle-lbl { font-family: 'Share Tech Mono', monospace; font-size: 0.6rem; color: var(--text2); letter-spacing: 2px; }

/* ===== PAGE WRAPPER ===== */
.page {
  position: relative; z-index: 2;
  min-height: 100vh; padding: 80px 56px 60px;
  max-width: 1280px; margin: 0 auto;
  animation: fadeUp 0.55s cubic-bezier(0.19,1,0.22,1);
}
@keyframes fadeUp { from{opacity:0;transform:translateY(20px)} to{opacity:1;transform:translateY(0)} }
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0.2} }

/* ===== SECTION HEADER ===== */
.sec-head { display: flex; align-items: center; gap: 16px; margin-bottom: 48px; }
.sec-num { font-family: 'Share Tech Mono', monospace; font-size: 0.68rem; color: var(--c); letter-spacing: 3px; }
.sec-title {
  font-family: 'Orbitron', monospace;
  font-size: clamp(1.3rem, 2.5vw, 2rem);
  font-weight: 700; color: var(--white); letter-spacing: 3px; text-transform: uppercase;
}
.sec-line { flex: 1; height: 1px; background: linear-gradient(to right, var(--border2), transparent); }

/* ===== CARDS ===== */
.card {
  background: var(--card-bg); border: 1px solid var(--border);
  backdrop-filter: blur(10px); transition: all 0.3s;
}
.card:hover { border-color: var(--c); box-shadow: 0 8px 32px var(--shadow); }
.clip { clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 14px 100%, 0 calc(100% - 14px)); }

/* ===== BUTTONS ===== */
.btn-primary {
  font-family: 'Orbitron', monospace; font-size: 0.7rem; letter-spacing: 3px;
  text-transform: uppercase; color: var(--bg); background: var(--c);
  border: none; padding: 13px 28px; cursor: none;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
  transition: all 0.3s; display: inline-block; text-decoration: none;
}
.btn-primary:hover { background: var(--white); box-shadow: 0 0 24px var(--c); }
.btn-outline {
  font-family: 'Orbitron', monospace; font-size: 0.7rem; letter-spacing: 3px;
  text-transform: uppercase; color: var(--c); background: transparent;
  border: 1px solid var(--border); padding: 13px 28px; cursor: none;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
  transition: all 0.3s; display: inline-block; text-decoration: none;
}
.btn-outline:hover { border-color: var(--c); background: var(--panel2); }
.btn-sm {
  font-family: 'Share Tech Mono', monospace; font-size: 0.65rem; letter-spacing: 2px;
  text-transform: uppercase; color: var(--c); background: transparent;
  border: 1px solid var(--border); padding: 8px 18px; cursor: none; transition: all 0.3s;
}
.btn-sm:hover { border-color: var(--c); background: var(--panel2); }

/* ===== TOOL TAGS ===== */
.tool-tag {
  font-family: 'Share Tech Mono', monospace; font-size: 0.7rem; letter-spacing: 2px;
  padding: 8px 16px; border: 1px solid var(--border); color: var(--text);
  background: var(--panel); transition: all 0.3s; cursor: default; display: inline-block;
}
.tool-tag:hover { border-color: var(--c); color: var(--c); background: var(--panel2); }

/* ===== CHIPS ===== */
.chip {
  font-family: 'Share Tech Mono', monospace; font-size: 0.66rem; letter-spacing: 2px;
  padding: 5px 14px; border: 1px solid var(--border); color: var(--text);
  background: var(--panel); transition: all 0.25s; display: inline-block;
}
.chip:hover { border-color: var(--c); color: var(--c); background: var(--panel2); }

/* ===== STATUS BADGE ===== */
.badge-live {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: 'Share Tech Mono', monospace; font-size: 0.68rem; color: var(--g);
  letter-spacing: 3px; padding: 7px 16px; margin-bottom: 24px;
  border: 1px solid rgba(57,255,20,0.32); background: rgba(57,255,20,0.06);
}
.dot-g { width: 7px; height: 7px; border-radius: 50%; background: var(--g); animation: blink 1.2s infinite; flex-shrink: 0; }

/* ===== FOOTER ===== */
footer {
  position: relative; z-index: 2; text-align: center;
  padding: 24px 48px; border-top: 1px solid var(--border);
  font-family: 'Share Tech Mono', monospace; font-size: 0.62rem; color: var(--dim);
  letter-spacing: 3px; transition: border-color 0.4s;
}
footer span { color: var(--c); }

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--c); border-radius: 2px; }

/* ===== PARTICLES ===== */
.particle {
  position: fixed; width: 2px; height: 2px;
  background: var(--c); border-radius: 50%;
  pointer-events: none; z-index: 1; opacity: 0;
  animation: pfloat linear infinite;
}
@keyframes pfloat {
  0% { transform: translateY(100vh); opacity: 0; }
  8% { opacity: 0.45; }
  92% { opacity: 0.45; }
  100% { transform: translateY(-60px); opacity: 0; }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  nav { padding: 0 24px; }
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .page { padding: 78px 24px 48px; }
}
@media (max-width: 600px) {
  .page { padding: 74px 16px 40px; }
  footer { padding: 20px 16px; font-size: 0.56rem; }
}
