/* 
  Aurora Glass Aesthetic - Portfolio Styles
  Main Theme: Midnight Space with Blurred Vibrant Orbs
*/

:root {
  /* Core Colors (Apple Dark Mode) */
  --bg-dark: #000000;
  --bg-panel: rgba(255, 255, 255, 0.04);
  --border-light: rgba(255, 255, 255, 0.1);
  --border-hover: rgba(255, 255, 255, 0.2);
  --text-main: #f5f5f7;
  --text-muted: #86868b;
  
  /* Glass Variables */
  --border-glass: rgba(255, 255, 255, 0.1);
  --shadow-glass: 0 8px 32px 0 rgba(0, 0, 0, 0.4), inset 0 1px 0 0 rgba(255,255,255,0.2), inset 0 0 0 1px rgba(255,255,255,0.05);
  --shadow-glass-hover: 0 12px 40px 0 rgba(0, 0, 0, 0.5), inset 0 1px 0 0 rgba(255,255,255,0.3), inset 0 0 0 1px rgba(255,255,255,0.1);
  
  /* Aurora Colors (Apple iOS Dark Accents) */
  --aurora-cyan: #5ac8fa;
  --aurora-cyan-dark: #0a84ff;
  
  --aurora-magenta: #ff375f;
  --aurora-magenta-dark: #ff2d55;
  
  --aurora-violet: #5e5ce6;
  --aurora-violet-dark: #5856d6;
  
  /* PCB Colors - subtle */
  --pcb-trace: rgba(255, 255, 255, 0.05);
  --pcb-pad: rgba(255, 255, 255, 0.1);

  /* Fluid Spacing */
  --pad-sec: clamp(80px, 12vw, 160px) 24px;
}

body.light-theme {
  /* Core Colors (Apple Light Mode) */
  --bg-dark: #f5f5f7;
  --bg-panel: rgba(255, 255, 255, 0.7);
  --border-light: rgba(0, 0, 0, 0.08);
  --border-hover: rgba(0, 0, 0, 0.15);
  --text-main: #1d1d1f;
  --text-muted: #6e6e73;
  
  /* Glass Variables Override */
  --border-glass: rgba(255, 255, 255, 0.6);
  --shadow-glass: 0 8px 32px 0 rgba(31, 38, 135, 0.05), inset 0 1px 0 0 rgba(255, 255, 255, 0.9), inset 0 0 0 1px rgba(255, 255, 255, 0.7);
  --shadow-glass-hover: 0 12px 40px 0 rgba(31, 38, 135, 0.1), inset 0 1px 0 0 #fff;

  --aurora-cyan: #147ce5;
  --aurora-cyan-dark: #0056b3;
  --aurora-magenta: #e83a30;
  --aurora-magenta-dark: #c93429;
  --aurora-violet: #5856d6;
  --aurora-violet-dark: #403eb8;
  
  --pcb-trace: rgba(0, 0, 0, 0.03);
  --pcb-pad: rgba(0, 0, 0, 0.05);
}

/* Light Theme Component Overrides */
body.light-theme .glass-nav.scrolled { 
  background: rgba(255, 255, 255, 0.85); 
  box-shadow: 0 10px 40px rgba(0,0,0,0.06); 
  border-color: rgba(255, 255, 255, 0.8);
}

body.light-theme .aurora-orb {
  opacity: 0.35;
  mix-blend-mode: multiply;
}

body.light-theme .aurora-mesh {
  opacity: 0.8;
}

body.light-theme .nav-link:hover, body.light-theme .nav-link.active { color: var(--aurora-cyan); }
body.light-theme .btn-primary { background: #111; color: #fff; box-shadow: 0 4px 15px rgba(0,0,0,0.15); }
body.light-theme .btn-primary:hover { box-shadow: 0 8px 25px rgba(0,0,0,0.25); transform: scale(1.05); }
body.light-theme .btn-secondary { color: #111; border-color: rgba(0,0,0,0.2); }
body.light-theme .btn-secondary:hover { background: rgba(0,0,0,0.05); border-color: rgba(0,0,0,0.4); transform: scale(1.05); }
body.light-theme .btn-glass { color: #000; border-color: rgba(0,0,0,0.2); }
body.light-theme .btn-glass:hover { background: rgba(0,0,0,0.05); }

body.light-theme .glass-card::before { background: radial-gradient(800px circle at var(--mouse-x) var(--mouse-y), rgba(0, 0, 0, 0.03), transparent 40%); }
body.light-theme .glass-nav .line { background: #000; }
body.light-theme .cursor-dot { background-color: #111; }
body.light-theme .cursor-ring { border-color: rgba(0, 0, 0, 0.3); }

body.light-theme .loader-percentage,
body.light-theme .loader-brand { color: #111; }

body.light-theme .lead, 
body.light-theme .c-text strong, 
body.light-theme .hero-desc,
body.light-theme .floating-badge,
body.light-theme .marquee-content { color: var(--text-main); }

body.light-theme .text-gradient {
  background: linear-gradient(to right, #111 20%, rgba(17,17,17,0.4) 50%, #111 80%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

body.light-theme .logo-mark {
  background: linear-gradient(135deg, var(--aurora-cyan), #111);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Elements that need specific contrast */
body.light-theme .tech-pill {
  border-color: rgba(0,0,0,0.1);
  background: rgba(0,0,0,0.02);
  color: var(--text-main);
  box-shadow: 0 4px 10px rgba(0,0,0,0.02);
}
body.light-theme .floating-badge {
  box-shadow: 0 15px 35px rgba(0,0,0,0.08);
  background: rgba(255,255,255,0.9);
  border-color: rgba(255, 255, 255, 1);
}
body.light-theme .img-overlay {
  background: transparent;
}
body.light-theme .profile-img {
  filter: none;
}
body.light-theme .mouse-shape { border-color: var(--text-main); }
body.light-theme .wheel-shape { background: var(--text-main); }

/* Icons & Colors */
body.light-theme .s-card i, body.light-theme .s-card svg {
  filter: drop-shadow(0 4px 6px rgba(0,0,0,0.1));
}
body.light-theme .proj-num { color: rgba(0,0,0,0.06); }
body.light-theme .pt {
  background: rgba(0,0,0,0.04);
  border-color: rgba(0,0,0,0.08);
  color: var(--text-muted);
}
body.light-theme .filter-btn {
  background: rgba(0,0,0,0.03);
  border-color: rgba(0,0,0,0.08);
  color: var(--text-muted);
}
body.light-theme .filter-btn:hover,
body.light-theme .filter-btn.active {
  background: #fff;
  border-color: var(--aurora-cyan);
  color: var(--text-main);
  box-shadow: 0 4px 15px rgba(0, 122, 255, 0.15);
}

body.light-theme .theme-toggle {
  background: rgba(0,0,0,0.04);
  border-color: rgba(0,0,0,0.1);
  color: #111;
}
body.light-theme .theme-toggle:hover {
  background: rgba(0,0,0,0.08);
}

/* Contact Overrides */
body.light-theme .c-method {
  background: rgba(255,255,255,0.7);
  border-color: rgba(0,0,0,0.08);
}
body.light-theme .c-method:hover {
  background: rgba(255,255,255,1);
  border-color: rgba(0,0,0,0.15);
  box-shadow: 0 4px 20px rgba(0,0,0,0.04);
}
body.light-theme .c-icon, body.light-theme .s-icon {
  background: rgba(0,0,0,0.03);
  border-color: rgba(0,0,0,0.06);
  color: var(--text-main);
}
body.light-theme .s-icon:hover {
  background: #fff;
  border-color: var(--aurora-cyan);
  color: var(--aurora-cyan);
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}
body.light-theme .form-input {
  background: rgba(255,255,255,0.6);
  border-color: rgba(0,0,0,0.1);
  color: var(--text-main);
}
body.light-theme .form-input:focus {
  background: #fff;
  border-color: var(--aurora-magenta);
  box-shadow: 0 4px 15px rgba(232, 58, 48, 0.1);
}
body.light-theme .circuit-pattern {
  background-image: radial-gradient(rgba(0,0,0,0.15) 1px, transparent 1px);
}
body.light-theme .about-img {
  opacity: 1;
  mix-blend-mode: normal;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  overflow-x: hidden;
  position: relative;
  cursor: none; /* For custom mouse */
}

/* Typography */
.font-space {
  font-family: 'Space Grotesk', sans-serif;
  letter-spacing: -0.04em;
}
.font-jakarta {
  font-family: 'Plus Jakarta Sans', sans-serif;
  letter-spacing: -0.01em;
}

/* Layout Utilities */
.section-container {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}
.section-pad {
  padding: var(--pad-sec);
}
.text-center { text-align: center; }

h1, h2, h3, h4 { color: var(--text-main); line-height: 1.1; }
p { line-height: 1.6; color: var(--text-muted); }

/* --- AURORA BACKGROUND --- */
.aurora-container {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
  background-color: var(--bg-dark);
}

.aurora-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.6;
  animation: orbFloat 25s infinite alternate ease-in-out;
  transform: translateZ(0);
}

.orb-1 {
  width: 60vw;
  height: 60vh;
  background: radial-gradient(circle, var(--aurora-cyan), var(--aurora-cyan-dark));
  top: -10%;
  left: -10%;
  animation-duration: 22s;
}

.orb-2 {
  width: 50vw;
  height: 50vh;
  background: radial-gradient(circle, var(--aurora-magenta), var(--aurora-magenta-dark));
  bottom: -20%;
  right: -10%;
  animation-duration: 30s;
  animation-delay: -5s;
}

.orb-3 {
  width: 45vw;
  height: 45vh;
  background: radial-gradient(circle, var(--aurora-violet), var(--aurora-violet-dark));
  top: 40%;
  left: 20%;
  animation-duration: 28s;
  animation-delay: -10s;
}

.pcb-pattern {
  position: absolute;
  inset: -50%;
  width: 200%;
  height: 200%;
  background-image: 
    linear-gradient(var(--pcb-trace) 2px, transparent 2px),
    linear-gradient(90deg, var(--pcb-trace) 2px, transparent 2px),
    linear-gradient(var(--pcb-trace) 1px, transparent 1px),
    linear-gradient(90deg, var(--pcb-trace) 1px, transparent 1px),
    radial-gradient(circle at 10px 10px, var(--pcb-pad) 3px, transparent 3px),
    radial-gradient(circle at 50px 50px, var(--pcb-pad) 4px, transparent 4px),
    radial-gradient(circle at 90px 30px, var(--pcb-pad) 2px, transparent 2px);
  background-size: 100px 100px, 100px 100px, 20px 20px, 20px 20px, 100px 100px, 100px 100px, 100px 100px;
  background-position: -2px -2px, -2px -2px, -1px -1px, -1px -1px, 0 0, 0 0, 0 0;
  transform: perspective(800px) rotateX(60deg) translateY(-100px) translateZ(-200px);
  z-index: 0;
  animation: pcbScroll 20s linear infinite;
  mask-image: linear-gradient(to bottom, transparent 0%, black 40%, black 60%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 40%, black 60%, transparent 100%);
  transform-origin: center;
}
@keyframes pcbScroll {
  0% { transform: perspective(800px) rotateX(60deg) translateY(0) translateZ(-200px); }
  100% { transform: perspective(800px) rotateX(60deg) translateY(100px) translateZ(-200px); }
}

.aurora-mesh {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.04'/%3E%3C/svg%3E");
  z-index: 1;
}

/* Background Marquee */
.bg-marquee {
  position: absolute;
  top: 15vh;
  left: 0;
  width: 100vw;
  overflow: hidden;
  white-space: nowrap;
  transform: rotate(-4deg) scale(1.2);
  z-index: 0;
  pointer-events: none;
  user-select: none;
  opacity: 0.06;
}
.marquee-content {
  display: inline-block;
  font-size: clamp(8rem, 15vw, 16rem);
  font-weight: 800;
  color: #fff;
  animation: scrollMarquee 120s linear infinite;
}
.marquee-content span {
  display: inline-block;
  padding-right: 20px;
}

@keyframes scrollMarquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@keyframes orbFloat {
  0% { transform: translate(0, 0) scale(1) rotate(0deg); }
  33% { transform: translate(15vw, -10vh) scale(1.1) rotate(10deg); }
  66% { transform: translate(-10vw, 15vh) scale(0.9) rotate(-5deg); }
  100% { transform: translate(5vw, 5vh) scale(1.05) rotate(5deg); }
}

/* --- PREMIUM PRELOADER --- */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
}
.preloader.hidden {
  pointer-events: none;
}
.preloader-panel {
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: var(--bg-dark);
  transition: transform 1.2s cubic-bezier(0.77, 0, 0.175, 1);
  z-index: 1;
}
.panel-full { transform: translateY(0); }
.preloader.hidden .panel-full { transform: translateY(-100%); }

.loader-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: opacity 0.5s ease;
}
.preloader.hidden .loader-content {
  opacity: 0;
}
.loader-brand {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.4em;
  margin-bottom: 20px;
  color: var(--text-muted);
  text-transform: uppercase;
  animation: pulse 2s infinite ease-in-out;
}
.oscilloscope-wrap {
  position: relative;
  width: 300px;
  height: 100px;
}
.loader-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.loader-percentage {
  font-size: 2rem;
  font-weight: 300;
  color: var(--text-main);
  text-align: center;
  font-variant-numeric: tabular-nums;
  animation: scalePulse 1.5s infinite alternate ease-in-out;
}
@keyframes pulse {
  0% { opacity: 0.6; }
  50% { opacity: 1; }
  100% { opacity: 0.6; }
}
@keyframes scalePulse {
  0% { transform: scale(1); opacity: 0.9; }
  100% { transform: scale(1.05); opacity: 1; text-shadow: 0 0 15px rgba(255,255,255,0.2); }
}

/* --- CUSTOM CURSOR --- */
.cursor-dot, .cursor-ring {
  position: fixed;
  top: 0; left: 0;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 10000;
}
.cursor-dot {
  width: 8px;
  height: 8px;
  background-color: #fff;
  transition: width 0.2s, height 0.2s, background-color 0.2s;
}
.cursor-ring {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  transition: width 0.3s, height 0.3s, border-color 0.3s, transform 0.1s linear;
}
.cursor-ring.active {
  width: 60px;
  height: 60px;
  border-color: var(--aurora-cyan);
  background: rgba(0, 242, 254, 0.05);
}

/* --- GLASSMORPHISM UTILS --- */
.glass-panel, .glass-card, .glass-nav {
  background: var(--bg-panel);
  backdrop-filter: blur(32px);
  -webkit-backdrop-filter: blur(32px);
  border: 1px solid var(--border-glass);
  box-shadow: var(--shadow-glass);
}
.glass-nav {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 48px);
  max-width: 1200px;
  height: 64px;
  border-radius: 100px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  z-index: 1000;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.glass-nav.scrolled {
  background: rgba(7, 9, 19, 0.7);
  box-shadow: 0 10px 40px rgba(0,0,0,0.5);
  border-color: rgba(255,255,255,0.08);
}
.glass-card {
  border-radius: 24px;
  padding: 32px;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s;
  position: relative;
  overflow: hidden;
  --mouse-x: -100px;
  --mouse-y: -100px;
}
.glass-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    800px circle at var(--mouse-x) var(--mouse-y), 
    rgba(255, 255, 255, 0.08),
    transparent 40%
  );
  z-index: 0;
  opacity: 0;
  transition: opacity 0.5s;
  pointer-events: none;
}
.glass-card:hover::before {
  opacity: 1;
}
.glass-card > * {
  position: relative;
  z-index: 2;
}
.glass-card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-glass-hover);
}
.glass-pill {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 100px;
  padding: 6px 16px;
  font-size: 0.8rem;
  color: var(--text-main);
}

/* --- GRADIENT TEXT --- */
@keyframes shimmerWave {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

.text-gradient {
  background: linear-gradient(to right, #fff 20%, rgba(255,255,255,0.4) 50%, #fff 80%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: shimmerWave 4s linear infinite;
}
.text-gradient-cyan {
  background: linear-gradient(to right, var(--aurora-cyan) 20%, #fff 50%, var(--aurora-cyan) 80%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: shimmerWave 4s linear infinite;
}
.text-gradient-magenta {
  background: linear-gradient(to right, var(--aurora-magenta) 20%, #fff 50%, var(--aurora-magenta) 80%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: shimmerWave 4s linear infinite;
}
.text-gradient-violet {
  background: linear-gradient(to right, var(--aurora-violet) 20%, #fff 50%, var(--aurora-violet) 80%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: shimmerWave 4s linear infinite;
}

.glow-text-cyan { text-shadow: 0 0 20px rgba(0, 242, 254, 0.4); color: var(--aurora-cyan); }
.glow-text-magenta { text-shadow: 0 0 20px rgba(255, 8, 68, 0.4); color: var(--aurora-magenta); }
.glow-text-violet { text-shadow: 0 0 20px rgba(142, 45, 226, 0.4); color: var(--aurora-violet); }

/* --- NAV BAR --- */
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.logo-mark {
  font-size: 1.1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--aurora-cyan), #fff);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 50%;
}
.logo-text { font-size: 0.95rem; font-weight: 600; }
.desktop-nav {
  display: flex;
  gap: 32px;
}
.nav-link {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.3s;
  position: relative;
}
.nav-link:hover, .nav-link.active { color: #fff; }
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--aurora-cyan);
  transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1), left 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  border-radius: 2px;
}
.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
  left: 0;
}
.menu-toggle {
  display: none;
  background: none;
  border: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
}
.menu-toggle .line {
  width: 24px;
  height: 2px;
  background: #fff;
  transition: 0.3s;
}

/* Base Theme Toggle Button */
.theme-toggle {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--text-main);
  backdrop-filter: blur(10px);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: none; /* using custom cursor */
  transition: all 0.3s;
  position: relative;
  z-index: 1000;
}
.theme-toggle:hover {
  background: rgba(255,255,255,0.15);
}
.theme-toggle .sun {
  display: none;
}
body.light-theme .theme-toggle .moon {
  display: none;
}
body.light-theme .theme-toggle .sun {
  display: block;
}

body.light-theme .theme-toggle {
  background: rgba(0,0,0,0.05);
  border-color: rgba(0,0,0,0.1);
}
body.light-theme .theme-toggle:hover {
  background: rgba(0,0,0,0.1);
}

/* --- BUTTONS --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border-radius: 100px;
  text-decoration: none;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s;
  position: relative;
  overflow: hidden;
  cursor: none;
}
.btn-primary {
  background: #fff;
  color: #000;
  border: none;
  box-shadow: 0 4px 15px rgba(255,255,255,0.1);
}
.btn-primary .btn-glow {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.8), transparent);
  transform: translateX(-100%) skewX(-15deg);
  transition: transform 0.6s ease;
}
.btn-primary:hover .btn-glow {
  transform: translateX(100%) skewX(-15deg);
}
.btn-primary:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 30px rgba(255,255,255,0.2);
}
.arrow { margin-left: 8px; font-weight: 400; transition: transform 0.3s; }
.btn-primary:hover .arrow { transform: translateX(4px); }

.btn-secondary {
  background: transparent;
  color: #fff;
  border: 1px solid var(--border-hover);
}
.btn-secondary:hover {
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.3);
  transform: scale(1.05);
}

.btn-glass {
  padding: 8px 20px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  color: #fff;
  backdrop-filter: blur(10px);
  font-size: 0.85rem;
}
.btn-glass:hover {
  background: rgba(255,255,255,0.15);
}

/* --- HERO --- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  z-index: 2;
  padding: 140px 24px 80px;
}
.hero-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items: center;
}
.hero-eyebrow {
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 24px;
}
.hero-title {
  font-size: clamp(3.5rem, 8vw, 7rem);
  font-weight: 700;
  letter-spacing: -0.05em;
  margin-bottom: 24px;
  line-height: 1.05;
}

.typing-wrapper {
  display: inline-block;
  min-width: 5em;
  text-align: left;
}

.typing-text {
  border-right: 4px solid var(--aurora-cyan);
  padding-right: 4px;
  animation: cursorBlink 0.8s step-end infinite;
  white-space: nowrap;
}
@keyframes cursorBlink {
  50% { border-color: transparent; }
}
.hero-desc {
  font-size: clamp(1rem, 1.3vw, 1.25rem);
  max-width: 540px;
  margin-bottom: 40px;
  color: rgba(255,255,255,0.8);
}
.hero-cta {
  display: flex;
  gap: 16px;
  margin-bottom: 48px;
}
.tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.tech-pill {
  padding: 8px 16px;
  border-radius: 100px;
  font-size: 0.8rem;
  font-family: 'Plus Jakarta Sans';
  border: 1px solid rgba(255,255,255,0.08);
}
.hero-visual {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  perspective: 1000px;
}
.profile-container {
  width: 100%;
  max-width: 420px;
  aspect-ratio: 4/5;
  padding: 16px;
  position: relative;
}
.profile-image-wrapper {
  width: 100%;
  height: 100%;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
}
.profile-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}
.img-overlay {
  position: absolute;
  inset: 0;
  background: transparent;
}
.floating-badge {
  position: absolute;
  padding: 12px 20px;
  border-radius: 100px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Plus Jakarta Sans';
  font-size: 0.8rem;
  font-weight: 500;
  color: #fff;
  box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}
.badge-1 {
  bottom: 40px;
  left: -30px;
}
.badge-2 {
  top: 60px;
  right: -40px;
}
.dot {
  width: 8px;
  height: 8px;
  background: var(--aurora-cyan);
  border-radius: 50%;
}
.dot.active {
  box-shadow: 0 0 10px var(--aurora-cyan);
  animation: pulse 2s infinite;
}

.scroll-down-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  opacity: 0.6;
  animation: scrollBounce 3s infinite ease-in-out;
}
@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(10px); }
}
.mouse-shape {
  width: 24px;
  height: 36px;
  border: 1.5px solid #fff;
  border-radius: 12px;
  display: flex;
  justify-content: center;
  padding-top: 6px;
}
.wheel-shape {
  width: 3px;
  height: 6px;
  background: #fff;
  border-radius: 2px;
  animation: scrollWheel 2s infinite;
}
@keyframes scrollWheel {
  0% { transform: translateY(0); opacity: 1; }
  100% { transform: translateY(12px); opacity: 0; }
}

/* --- SECTION HEADERS --- */
.section-subtitle {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}
.section-title {
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  font-weight: 700;
  margin-bottom: 64px;
}

/* --- ABOUT --- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}
.about-text {
  padding: 48px;
}
.lead {
  font-size: 1.25rem;
  color: #fff;
  font-weight: 500;
  margin-bottom: 24px;
}
.stats-row {
  display: flex;
  gap: 48px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--border-light);
}
.stat-num {
  font-size: 3.5rem;
  margin-bottom: 8px;
}
.stat-label {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.about-visual {
  position: relative;
  overflow: hidden;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.circuit-pattern {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.1) 1px, transparent 1px);
  background-size: 24px 24px;
  mask-image: linear-gradient(to bottom, transparent, black, transparent);
  -webkit-mask-image: linear-gradient(to bottom, transparent, black, transparent);
}
.concept-globe {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, var(--aurora-cyan), var(--aurora-magenta), var(--aurora-violet), var(--aurora-cyan));
  filter: blur(40px);
  animation: spin 10s linear infinite;
  opacity: 0.5;
}
@keyframes spin { 100% { transform: rotate(360deg); } }

.about-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 2;
  opacity: 1;
  mix-blend-mode: normal;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.about-visual:hover .about-img {
  transform: scale(1.05);
}

/* --- SKILLS --- */
.skills-category {
  margin-bottom: 48px;
}
.skills-category:last-child {
  margin-bottom: 0;
}
.skill-category-title {
  font-size: 1.25rem;
  margin-bottom: 24px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-align: center;
}

.new-skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 24px;
}
.s-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 32px 24px;
  text-align: center;
  border-radius: 20px;
  background: var(--bg-panel);
  border: 1px solid var(--border-light);
  transition: transform 0.3s, border-color 0.3s;
}
.s-card:hover {
  border-color: var(--aurora-cyan);
  transform: translateY(-5px);
}
.s-card i, .s-card svg {
  font-size: 3.5rem;
  transition: transform 0.3s ease;
}
.s-card span {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-main);
}
@media (min-width: 768px) {
  .new-skills-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }
}

.skill-card {
  position: relative;
  overflow: hidden;
}
.span-2 {
  grid-column: span 2;
}
.skill-header {
  font-size: 1.5rem;
  margin-bottom: 24px;
  position: relative;
  z-index: 2;
}
.card-glow {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.5s;
  pointer-events: none;
  z-index: 1;
}
.glass-card:hover .card-glow { opacity: 0.15; }
.glow-cyan { background: radial-gradient(circle at bottom right, var(--aurora-cyan), transparent 60%); }
.glow-magenta { background: radial-gradient(circle at bottom right, var(--aurora-magenta), transparent 60%); }
.glow-violet { background: radial-gradient(circle at bottom right, var(--aurora-violet), transparent 60%); }

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  position: relative;
  z-index: 2;
}
.s-tag { font-family: 'Plus Jakarta Sans'; font-size: 0.9rem; padding: 10px 20px;}
.skill-bars {
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  z-index: 2;
}
.sb-item { width: 100%; }
.sb-info {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  margin-bottom: 8px;
  color: #fff;
}
.sb-track {
  width: 100%;
  height: 4px;
  background: rgba(255,255,255,0.05);
  border-radius: 2px;
  overflow: hidden;
}
.sb-fill {
  height: 100%;
  border-radius: 2px;
  position: relative;
}
.bg-gradient-magenta { background: linear-gradient(90deg, var(--aurora-magenta-dark), var(--aurora-magenta)); }
.bg-gradient-violet { background: linear-gradient(90deg, var(--aurora-violet-dark), var(--aurora-violet)); }

/* --- PROJECTS --- */
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}
.proj-card {
  display: flex;
  flex-direction: column;
  gap: 24px;
  text-decoration: none;
  color: inherit;
  position: relative;
  overflow: hidden;
}
.proj-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  z-index: 2;
}
.proj-num {
  font-size: 2rem;
  color: rgba(255,255,255,0.1);
  font-weight: 700;
}
.proj-icon {
  font-size: 1.5rem;
}
.proj-body { position: relative; z-index: 2; }
.proj-title {
  font-size: 1.25rem;
  margin-bottom: 12px;
  transition: transform 0.3s;
}
.proj-desc {
  font-size: 0.9rem;
  margin-bottom: 24px;
}
.proj-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.pt {
  font-size: 0.75rem;
  padding: 4px 12px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 100px;
}
.proj-card:hover .proj-title { transform: translateX(5px); }

/* --- CONTACT --- */
.contact-bento {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 24px;
}
.contact-info-card {
  padding: 48px;
}
.contact-info-card h3 {
  font-size: 2rem;
  margin-bottom: 16px;
}
.contact-info-card p { margin-bottom: 40px; font-size: 1.1rem;}
.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.c-method {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  transition: background 0.3s, border-color 0.3s;
  cursor: none;
}
.c-method:hover {
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.2);
}
.c-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 12px;
}
.c-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.c-text span { font-size: 0.8rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.1em; }
.c-text strong { font-size: 1.1rem; color: #fff; font-weight: 500; }
.copy-hint {
  margin-left: auto;
  font-size: 0.85rem;
  color: var(--aurora-cyan);
  opacity: 0;
  transition: opacity 0.3s;
}
.c-method:hover .copy-hint { opacity: 1; }

.contact-social-card {
  padding: 48px;
  display: flex;
  flex-direction: column;
}
.contact-social-card h3 {
  font-size: 1.5rem;
  margin-bottom: 32px;
}
.social-links {
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex-grow: 1;
}
.s-link {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-decoration: none;
  color: #fff;
  font-size: 1.1rem;
  transition: transform 0.3s;
}
.s-link svg { width: 24px; height: 24px; }
.s-link:hover { padding-left: 10px;} /* Subtle indent */

/* --- FOOTER --- */
.footer {
  padding: 40px 24px;
  border-top: 1px solid var(--border-light);
  text-align: center;
}
.footer .desc { font-size: 0.85rem; }

/* TOAST */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  padding: 12px 24px;
  border-radius: 100px;
  color: #fff;
  font-size: 0.9rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s, transform 0.3s;
  z-index: 10000;
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* --- ANIMATIONS & REVEALS --- */
.reveal-up { transform: translateY(40px); opacity: 0; transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1); }
.reveal-up.active { transform: translateY(0); opacity: 1; }

.reveal-left { transform: translateX(60px); opacity: 0; transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1); }

/* --- ENHANCEMENTS --- */
#bg-canvas {
  position: absolute;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  z-index: 1; 
  pointer-events: none;
}
.project-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 40px;
  justify-content: center;
}
.filter-btn {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.1);
  padding: 8px 24px;
  border-radius: 100px;
  color: var(--text-muted);
  font-weight: 500;
  cursor: none;
  font-family: 'Plus Jakarta Sans', sans-serif;
  transition: all 0.3s;
}
.filter-btn:hover, .filter-btn.active {
  background: rgba(255,255,255,0.1);
  color: #fff;
  border-color: var(--aurora-cyan);
  box-shadow: 0 0 15px rgba(0, 242, 254, 0.2);
}
.proj-card {
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s, scale 0.4s;
}
.proj-card.filtered-out {
  display: none; 
}
.proj-card.hiding {
  opacity: 0;
  transform: scale(0.9);
  pointer-events: none;
}
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 16px;
}
.form-input {
  width: 100%;
  background: rgba(0,0,0,0.2);
  border: 1px solid rgba(255,255,255,0.1);
  padding: 16px 20px;
  border-radius: 12px;
  color: #fff;
  font-size: 0.95rem;
  transition: border-color 0.3s, background 0.3s;
  outline: none;
}
.form-input:focus {
  border-color: var(--aurora-magenta);
  background: rgba(255,255,255,0.05);
}
.contact-form-card .btn-primary {
  cursor: none;
  margin-top: 8px;
}
.contact-social-inline {
  display: flex;
  gap: 16px;
  margin-top: 32px;
}
.s-icon {
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 12px;
  color: #fff;
  transition: all 0.3s;
}
.s-icon:hover {
  background: rgba(255,255,255,0.1);
  transform: translateY(-4px);
  border-color: var(--aurora-cyan);
}
.s-icon svg { width: 24px; height: 24px; }
.reveal-left.active { transform: translateX(0); opacity: 1; }

.reveal-right { transform: translateX(-60px); opacity: 0; transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1); }
.reveal-right.active { transform: translateX(0); opacity: 1; }

.reveal-top { transform: translateY(-40px) translateX(-50%); opacity: 0; transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1); }
.reveal-top.active { transform: translateY(0) translateX(-50%); opacity: 1; }

.reveal-stagger > * { transform: translateY(30px); opacity: 0; transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1); }
.reveal-stagger.active > * { transform: translateY(0); opacity: 1; }
.reveal-stagger.active > *:nth-child(1) { transition-delay: 0.1s; }
.reveal-stagger.active > *:nth-child(2) { transition-delay: 0.2s; }
.reveal-stagger.active > *:nth-child(3) { transition-delay: 0.3s; }
.reveal-stagger.active > *:nth-child(4) { transition-delay: 0.4s; }

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }

/* 3D TILT UTILITY */
.tilt-3d {
  transform-style: preserve-3d;
  will-change: transform;
}

/* MEDIA QUERIES */
@media (max-width: 1024px) {
  .hero-wrapper { grid-template-columns: 1fr; text-align: center; }
  .hero-cta, .tech-stack { justify-content: center; }
  .about-grid, .contact-bento { grid-template-columns: 1fr; }
  .badge-1 { left: 10px; }
  .badge-2 { right: 10px; }
  .skills-bento { grid-template-columns: 1fr 1fr; }
  .span-2 { grid-column: span 2; }
}

@media (max-width: 768px) {
  body { cursor: auto; } /* Disable custom cursor */
  .cursor-dot, .cursor-ring { display: none; }
  
  /* Performance: Disable heavy background animations */
  .pcb-pattern, .bg-marquee, .aurora-orb, .concept-globe {
    animation: none !important;
  }
  
  .glass-nav { padding: 0 16px; width: calc(100% - 32px); }
  
  /* Mobile Header overrides */
  .desktop-nav { display: none; }
  .desktop-nav.active-mobile {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 110%;
    left: 0;
    width: 100%;
    background: var(--bg-panel);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--border-glass);
    border-radius: 20px;
    padding: 24px;
    gap: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    z-index: 1000;
  }
  
  .nav-actions { display: flex; }
  .nav-actions .btn-glass { display: none; } /* Hide resume button to save space */
  .menu-toggle { display: flex; z-index: 1001; }
  
  .hero-title { font-size: 2.5rem; }
  .skills-bento { grid-template-columns: 1fr; }
  .span-2 { grid-column: span 1; }
  
  .about-text, .contact-info-card, .contact-social-card { padding: 32px 24px; }
  .contact-methods { flex-direction: column; }
}
