/* ═══════════════════════════════════════════════════════════ */
/* STYLE SECTION: All visual styling for the page goes here */
/* ═══════════════════════════════════════════════════════════ */

/* RESET STYLES - Remove default browser styling */
*,
*::before,
*::after {
  box-sizing: border-box;
  /* Makes sizing more predictable */
  margin: 0;
  /* Remove default margins */
  padding: 0;
  /* Remove default padding */
}

/* ── COLOR VARIABLES ── */
/* Define colors once, use everywhere (easy to change later) */
:root {
  --bg: #02040a;
  /* Deeper black for high contrast */
  --bg2: #050a14;
  /* Slightly lighter background */
  --bg3: #081225;
  /* Interactive highlights */
  --cyan: #00f3ff;
  /* Neon Cyan */
  --magenta: #ff00ff;
  /* Neon Magenta */
  --amber: #ff8c00;
  /* Electric Amber */
  --text: #e0f2f1;
  /* High-visibility text */
  --text-dim: #708090;
  /* Slate gray for secondary info */
  --border: rgba(0, 243, 255, 0.2);
  /* Cyan border */
  --glow-cyan: 0 0 15px rgba(0, 243, 255, 0.4);
  --glow-magenta: 0 0 15px rgba(255, 0, 255, 0.4);
}

/* ── CUSTOM SCROLLBAR ── */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(var(--bg), var(--cyan), var(--bg));
  border: 1px solid var(--border);
  box-shadow: var(--glow-cyan);
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(var(--bg), var(--magenta), var(--bg));
  box-shadow: var(--glow-magenta);
}

#blackout-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #000;
  z-index: 50;
  /* Above content, below Nav & Battery */
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s ease;
}

html {
  scroll-behavior: smooth;
  /* Makes scrolling smooth instead of jumpy */
}

body {
  background: linear-gradient(135deg, #02040a 0%, #050a14 100%);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  line-height: 1.7;
  overflow-x: hidden;
  padding-left: 220px;
  /* Sidebar offset */
  position: relative;
}

/* ── BLADE RUNNER OVERLAYS ── */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.15) 50%),
    linear-gradient(90deg, rgba(255, 0, 0, 0.03), rgba(0, 255, 0, 0.01), rgba(0, 0, 255, 0.03));
  background-size: 100% 3px, 3px 100%;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.2;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at 10% 10%, rgba(255, 0, 255, 0.05) 0%, transparent 40%),
    radial-gradient(circle at 90% 90%, rgba(0, 243, 255, 0.05) 0%, transparent 40%);
  pointer-events: none;
  z-index: 1;
}

@media (max-width: 1024px) {
  body {
    padding-left: 0;
  }

  nav {
    transform: translateX(-100%);
  }

  nav.active {
    transform: translateX(0);
  }
}

#canvas {
  position: fixed;
  /* Stays in place when scrolling */
  top: 0;
  left: 0;
  /* Place at top-left corner */
  width: 100%;
  height: 100%;
  /* Cover entire screen properly */
  z-index: 0;
  /* Put behind everything (lower number = behind) */
  pointer-events: none;
  /* Don't block clicks/interactions */
  opacity: 0.25;
  /* Lowered base opacity for better readability */
  transition: opacity 0.8s ease, filter 0.8s ease;
}

/* ── SIDEBAR NAVIGATION ── */
nav {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 220px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  padding: 0;
  background: rgba(6, 11, 20, 0.98);
  backdrop-filter: blur(10px);
  border-right: 1px solid var(--border);
  transition: transform 0.3s ease;
}

.nav-inner {
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 1.2rem 1rem;
}

.nav-profile {
  text-align: center;
  margin-bottom: 1rem;
}

.nav-profile-img {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  border: 3px solid var(--cyan);
  margin-bottom: 0.5rem;
  object-fit: cover;
  object-position: center 20%;
  padding: 4px;
  background: var(--bg2);
  box-shadow: var(--glow-cyan);
}

.nav-profile-name {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--text);
  letter-spacing: 0.02em;
}

.nav-profile-tag {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.65rem;
  color: var(--cyan);
  margin-top: 0.2rem;
  opacity: 0.8;
}

/* ── MUSIC PLAYER ── */
.cyber-player {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-top: 0.8rem;
  padding: 0.6rem;
  background: rgba(0, 243, 255, 0.03);
  border: 1px solid rgba(0, 243, 255, 0.2);
  clip-path: polygon(0 0, 100% 0, 100% 85%, 95% 100%, 0 100%);
  transition: all 0.3s ease;
  position: relative;
}

.player-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 0.5rem;
}

.player-controls {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.play-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--cyan);
  background: transparent;
  color: var(--cyan);
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  font-size: 0.7rem;
  transition: all 0.2s;
  box-shadow: 0 0 5px rgba(0, 243, 255, 0.2);
}

.play-btn#play-pause-btn {
  width: 34px;
  height: 34px;
  font-size: 0.9rem;
}

.play-btn:hover {
  background: var(--cyan);
  color: var(--bg);
  box-shadow: var(--glow-cyan);
}

.track-info {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.6rem;
  color: var(--cyan);
  text-transform: uppercase;
  letter-spacing: 1px;
  width: 100%;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  opacity: 0.8;
  margin-bottom: 0.2rem;
  border-bottom: 1px solid rgba(0, 243, 255, 0.1);
  padding-bottom: 0.2rem;
}

.visualizer {
  display: flex;
  align-items: center;
  gap: 3px;
  height: 12px;
}

.vis-bar {
  width: 2px;
  height: 4px;
  background: var(--cyan);
  opacity: 0.3;
  transition: all 0.2s ease;
}

.cyber-player.playing .vis-bar {
  animation: barPulse 0.6s infinite alternate;
}

.cyber-player.playing .vis-bar:nth-child(2) {
  animation-delay: 0.1s;
}

.cyber-player.playing .vis-bar:nth-child(3) {
  animation-delay: 0.2s;
}

.cyber-player.playing .vis-bar:nth-child(4) {
  animation-delay: 0.3s;
}

.cyber-player.playing .vis-bar:nth-child(5) {
  animation-delay: 0.4s;
}

@keyframes barPulse {
  from {
    height: 4px;
    opacity: 0.4;
  }

  to {
    height: 12px;
    opacity: 1;
  }
}

/* Volume Slider */
.volume-control {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex: 1;
  margin-top: 0;
  padding: 0;
}

#volume-slider {
  flex: 1;
  height: 3px;
  -webkit-appearance: none;
  appearance: none;
  background: rgba(0, 243, 255, 0.15);
  outline: none;
  cursor: pointer;
  position: relative;
}

#volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 10px;
  height: 10px;
  background: var(--cyan);
  border-radius: 0;
  cursor: pointer;
  box-shadow: var(--glow-cyan);
  border: none;
}

.volume-control i {
  font-size: 0.7rem;
  color: var(--cyan);
  opacity: 0.7;
  width: 12px;
}

/* Logo/brand name styling */
.nav-logo {
  font-family: 'Syne', sans-serif;
  /* Use bold Syne font */
  font-weight: 800;
  /* Extra bold */
  font-size: 1.1rem;
  /* Logo text size */
  color: var(--cyan);
  /* Use cyan color */
  letter-spacing: 0.05em;
  /* Spread letters apart slightly */
  text-decoration: none;
  /* Remove underline from link */
  text-shadow: var(--glow-cyan);
}

.nav-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.7rem;
  list-style: none;
  flex-grow: 1;
  text-align: center;
}

.nav-links a {
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--text-dim);
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: all 0.3s;
  display: block;
  padding: 0.2rem 0;
  position: relative;
}

.nav-links a:hover {
  color: var(--cyan);
  transform: scale(1.05);
  text-shadow: var(--glow-cyan);
}




.nav-socials {
  margin-top: auto;
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(0, 243, 255, 0.1);
}

.nav-socials a {
  color: var(--text-dim);
  font-size: 1.3rem;
  transition: all 0.3s ease;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-socials a:hover {
  color: var(--magenta);
  text-shadow: var(--glow-magenta);
}

/* ── LANGUAGE SWITCHER ── */
.lang-switcher {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin: 0.5rem 0;
  padding-top: 0.3rem;
  border-top: 1px solid rgba(0, 243, 255, 0.1);
}

.lang-btn {
  background: transparent;
  border: 1px solid transparent;
  font-size: 1.4rem;
  cursor: pointer;
  padding: 0.3rem;
  transition: all 0.3s ease;
  filter: grayscale(0.6) opacity(0.5);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lang-btn:hover {
  filter: grayscale(0) opacity(1);
  transform: scale(1.15);
  background: rgba(0, 243, 255, 0.05);
  border-color: rgba(0, 243, 255, 0.2);
}

.lang-btn.active {
  filter: grayscale(0) opacity(1);
  border-color: var(--cyan);
  box-shadow: var(--glow-cyan);
  background: rgba(0, 243, 255, 0.1);
}

.lang-btn .fi {
  border-radius: 2px;
}

.highlight-chip .fi {
  margin-right: 6px;
  vertical-align: middle;
  margin-top: -2px;
}

/* ── GALLERY SECTION ── */

/* GALLERY CONTAINER: Creates responsive grid layout for gallery items */
.gallery-container {
  display: grid;
  /* Use CSS Grid for layout */
  grid-template-columns: repeat(4, 1fr);
  /* Force 4 columns on larger screens */
  gap: 0.8rem;
  /* Reduced space between items */
  margin-bottom: 1rem;
  /* Reduced space at bottom */
}


/* GALLERY ITEM: Each photo or video card in the gallery */
.gallery-item {
  position: relative;
  /* Position relative for overlay positioning */
  background: var(--bg2);
  /* Light background color */
  border: 1px solid var(--border);
  /* Gray border around item */
  border-radius: 4px;
  /* Slightly rounded corners */
  overflow: hidden;
  /* Hide content that goes outside borders */
  transition: all 0.3s;
  /* Smooth animation for all changes */
  aspect-ratio: 4 / 3;
  /* Make items 4:3 rectangle (same as photos) */
  cursor: pointer;
  /* Show pointer cursor (clickable) */
}

/* Hover effect when mouse moves over gallery item */
.gallery-item:hover {
  border-color: var(--cyan);
  /* Change border to cyan */
  transform: translateY(-3px);
  /* Move up 3 pixels */
  box-shadow: var(--glow-cyan);
  /* Add glowing shadow effect */
}

/* GALLERY MEDIA: The actual photo or video image */
.gallery-media {
  width: 100%;
  /* Fill entire container width */
  height: 100%;
  /* Fill entire container height */
  object-fit: cover;
  /* Crop image to fit (don't distort) */
  transition: transform 0.3s;
  /* Smooth zoom animation */
}

/* Zoom effect on photo when hovering over item */
.gallery-item:hover .gallery-media {
  transform: scale(1.02);
  /* Make image 2% bigger */
}

/* GALLERY OVERLAY: Title, description overlay that appears on hover */
.gallery-overlay {
  position: absolute;
  /* Position on top of image */
  inset: 0;
  /* Cover entire item (top, right, bottom, left = 0) */
  background: rgba(0, 0, 0, 0.6);
  /* Dark overlay so text is readable */
  display: flex;
  /* Use flexbox for layout */
  flex-direction: column;
  /* Stack items vertically */
  justify-content: flex-end;
  /* Move content to bottom */
  padding: 1.2rem;
  /* Space inside overlay */
  opacity: 0;
  /* Start invisible */
  transition: opacity 0.3s;
  /* Fade in/out on hover */
}

/* Make overlay visible when hovering over gallery item */
.gallery-item:hover .gallery-overlay {
  opacity: 1;
  /* Fade in to visible */
}

/* GALLERY TITLE: Photo or video title text */
.gallery-title {
  font-family: 'Syne', sans-serif;
  /* Use special title font */
  font-size: 1rem;
  /* Normal text size */
  font-weight: 600;
  /* Medium-bold weight */
  color: var(--cyan);
  /* Cyan color */
  margin-bottom: 0.3rem;
  /* Small space below */
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8), var(--glow-cyan);
}

/* GALLERY DESCRIPTION: Small description text under title */
.gallery-desc {
  font-size: 0.75rem;
  /* Smaller text */
  color: var(--text-dim);
  /* Light gray color */
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

/* CATEGORY TAG: Colored tag showing photo category (Lab, Pilot, etc) */
.gallery-category {
  display: inline-block;
  /* Only take up needed width */
  font-family: 'IBM Plex Mono', monospace;
  /* Technical monospace font */
  font-size: 0.6rem;
  /* Very small text */
  background: rgba(0, 212, 170, 0.15);
  /* Semi-transparent teal background */
  color: var(--cyan);
  /* Teal text */
  padding: 0.25rem 0.6rem;
  /* Padding inside tag */
  border-radius: 2px;
  /* Slightly rounded tag */
  margin-top: 0.5rem;
  /* Space above tag */
  letter-spacing: 0.05em;
  /* Extra space between letters */
}

/* VIDEO BADGE: Blue play button circle on video items */
.video-badge {
  position: absolute;
  /* Position on top of image */
  top: 1rem;
  /* 1rem from top */
  right: 1rem;
  /* 1rem from right */
  background: rgba(79, 195, 247, 0.9);
  /* Blue background */
  color: var(--bg);
  /* Dark text */
  width: 40px;
  /* 40px width */
  height: 40px;
  /* 40px height (makes circle) */
  border-radius: 50%;
  /* Make it circular */
  display: flex;
  /* Use flexbox */
  align-items: center;
  /* Center vertically */
  justify-content: center;
  /* Center horizontally */
  font-size: 1.4rem;
  /* Size of play symbol */
  z-index: 10;
  /* Show on top */
}

/* VIDEO DURATION: Time display in bottom right of video items */
.video-duration {
  position: absolute;
  /* Position on top of image */
  bottom: 1rem;
  /* 1rem from bottom */
  right: 1rem;
  /* 1rem from right */
  background: rgba(0, 0, 0, 0.7);
  /* Dark background */
  color: var(--text);
  /* White text */
  font-family: 'IBM Plex Mono', monospace;
  /* Technical font */
  font-size: 0.7rem;
  /* Small text */
  padding: 0.3rem 0.6rem;
  /* Padding inside */
  border-radius: 2px;
  /* Slightly rounded */
  letter-spacing: 0.05em;
  /* Extra letter spacing */
}

/* GALLERY FILTER: Container for category filter buttons */
.gallery-filter {
  display: flex;
  /* Use flexbox layout */
  gap: 0.8rem;
  /* Space between buttons */
  margin-bottom: 1rem;
  /* Reduced space below buttons */
  flex-wrap: wrap;
  /* Allow buttons to wrap on small screens */
  justify-content: center;
  /* Center buttons */
}

/* FILTER BUTTON: Buttons to filter gallery by category */
.filter-btn {
  font-family: 'IBM Plex Mono', monospace;
  /* Use technical monospace font */
  font-size: 0.75rem;
  /* Small text size */
  padding: 0.5rem 1rem;
  /* Space inside button */
  background: var(--bg2);
  /* Light background */
  border: 1px solid var(--border);
  /* Light gray border */
  color: var(--text-dim);
  /* Dim gray text */
  border-radius: 20px;
  /* Very rounded edges (pill-shaped) */
  cursor: pointer;
  /* Show pointer on hover */
  transition: all 0.25s;
  /* Smooth animation for changes */
  letter-spacing: 0.06em;
  /* Extra space between letters */
}

/* Hover and Active state for filter buttons */
.filter-btn:hover,
.filter-btn.active {
  border-color: var(--cyan);
  /* Teal border when selected/hovering */
  color: var(--cyan);
  /* Teal text when selected/hovering */
  background: rgba(0, 243, 255, 0.08);
  /* Faint teal background */
}

/* ── SECTIONS STYLING ── */
section {
  position: relative;
  z-index: 1;
}


/* ── HERO SECTION ── */
/* Main banner/header section at top (after nav) */
#hero {
  min-height: auto;
  /* Adjust from 100vh to fit content and reduce gap */
  display: flex;
  /* Use flexbox layout */
  flex-direction: column;
  /* Stack items vertically */
  justify-content: flex-start;
  /* Center items vertically */
  padding: 4rem 4rem 1.5rem;
  /* Standardized vertical padding, reduced bottom */
  max-width: 1100px;
  /* Limit width for readability */
  margin: 0 auto;
  /* Center on page */
}

/* Two-column layout for hero: text on left, picture on right */
.hero-content {
  display: grid;
  /* Use CSS Grid layout */
  grid-template-columns: 1fr 1fr;
  /* Two equal columns */
  gap: 4rem;
  /* Space between columns */
  align-items: flex-start;
  /* Align items to top */
}

/* First hero-content: name and title only */
.hero-content:first-of-type {
  align-items: flex-start;
}

/* Left side: text content */
.hero-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.text-window {
  position: relative;
  overflow: hidden;
  padding: 0.5rem 0;
}


.hero-desc p {
  line-height: 1.7;
  margin-bottom: 1.2rem;
  font-size: 1.05rem;
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.4rem 0;
  transition: all 0.3s ease;
}

.feature-icon {
  font-size: 1.1rem;
  color: var(--cyan);
  filter: drop-shadow(0 0 5px var(--cyan));
}

.feature-text {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  align-items: baseline;
}

.feature-text strong {
  color: var(--cyan);
  font-size: 0.95rem;
  font-family: 'IBM Plex Mono', monospace;
}

.feature-text span {
  font-size: 0.95rem;
  color: var(--text-dim);
}

.vision-block {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(0, 243, 255, 0.1);
  font-style: italic;
  color: var(--magenta);
  font-size: 0.9rem;
  display: flex;
  gap: 0.8rem;
  align-items: flex-start;
}

/* Right side: profile picture container */
.profile-image {
  position: relative;
  /* Allow child positioning */
  width: 100%;
  /* Take full width */
  max-width: 400px;
  /* Don't get too big */
  margin: 0 auto;
  /* Center horizontally */
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid var(--cyan);
  box-shadow: 0 0 30px rgba(0, 243, 255, 0.2);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.profile-image:hover {
  box-shadow: 0 0 50px rgba(0, 212, 170, 0.4);
  transform: translateY(-5px);
}

/* Profile picture styling */
.profile-pic {
  width: 100%;
  height: auto;
  display: block;
  transition: all 0.5s ease;
  opacity: 0;
  animation: fadeUp 0.8s 0.5s forwards;
  filter: drop-shadow(2px 0 0 rgba(255, 0, 255, 0.3)) drop-shadow(-2px 0 0 rgba(0, 243, 255, 0.3));
  position: relative;
  z-index: 1;
}

.vhs-glitch {
  position: relative;
  width: 100%;
  height: 100%;
  animation: vhsStatic 2s infinite linear;
}

.profile-image::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(transparent,
      transparent 2px,
      rgba(0, 0, 0, 0.15) 3px,
      rgba(0, 0, 0, 0.15) 4px);
  z-index: 10;
  pointer-events: none;
  opacity: 0.6;
  mask-image: url('../assets/profile_pic.webp');
  mask-size: contain;
  mask-repeat: no-repeat;
  mask-position: center;
  mix-blend-mode: overlay;
}

.profile-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  z-index: 11;
  pointer-events: none;
  opacity: 0.08;
  mask-image: url('../assets/profile_pic.webp');
  mask-size: contain;
  mask-repeat: no-repeat;
  mask-position: center;
  animation: noiseAnim 0.2s infinite;
}

@keyframes noiseAnim {
  0% {
    transform: translate(0, 0);
  }

  10% {
    transform: translate(-5%, -5%);
  }

  20% {
    transform: translate(-10%, 5%);
  }

  30% {
    transform: translate(5%, -10%);
  }

  40% {
    transform: translate(-5%, 15%);
  }

  50% {
    transform: translate(-10%, 5%);
  }

  60% {
    transform: translate(15%, 0);
  }

  70% {
    transform: translate(0, 10%);
  }

  80% {
    transform: translate(-15%, 0);
  }

  90% {
    transform: translate(10%, 5%);
  }

  100% {
    transform: translate(5%, 0);
  }
}

@keyframes vhsStatic {
  0% {
    filter: drop-shadow(2px 0 0 rgba(255, 0, 255, 0.3)) drop-shadow(-2px 0 0 rgba(0, 243, 255, 0.3)) brightness(1);
    transform: translateX(0);
  }

  5% {
    transform: translateX(1px);
  }

  10% {
    transform: translateX(-1px);
  }

  15% {
    transform: translateX(2px);
    filter: drop-shadow(4px 0 0 rgba(255, 0, 255, 0.5)) drop-shadow(-4px 0 0 rgba(0, 243, 255, 0.5)) brightness(1.2);
  }

  20% {
    transform: translateX(0);
  }

  95% {
    transform: translateX(0);
  }

  97% {
    transform: translateX(-2px);
    filter: drop-shadow(3px 0 0 rgba(255, 0, 255, 0.4)) drop-shadow(-3px 0 0 rgba(0, 243, 255, 0.4)) brightness(1.1);
  }

  100% {
    transform: translateX(0);
  }
}

.profile-pic-hover {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  transform: scale(1.15) rotate(1deg);
  filter: brightness(0.8) contrast(1.2);
}

@media (hover: hover) {
  .profile-image:hover .profile-pic-hover {
    opacity: 1;
    transform: scale(1) rotate(0deg);
    filter: brightness(1) contrast(1);
  }

  .profile-image:hover .profile-pic {
    opacity: 0.2;
    filter: grayscale(1) blur(4px);
  }
}

/* Mobile fix: Use :active so it swaps while touching and returns when released */
.profile-image:active .profile-pic-hover {
  opacity: 1;
  transform: scale(1) rotate(0deg);
  filter: brightness(1) contrast(1);
}

.profile-image:active .profile-pic {
  opacity: 0.2;
  filter: grayscale(1) blur(4px);
}

.hover-disclaimer {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--cyan);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.85rem;
  padding: 1.2rem 0.6rem 0.6rem;
  text-align: center;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 2;
  letter-spacing: 0.05em;
  pointer-events: none;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9);
}

.quote-banner {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.65rem;
  color: var(--cyan);
  letter-spacing: 0.2rem;
  opacity: 0.6;
  margin-bottom: 0.8rem;
  display: block;
  text-shadow: var(--glow-cyan);
  animation: pulseOpacity 4s infinite ease-in-out;
}

@keyframes pulseOpacity {

  0%,
  100% {
    opacity: 0.4;
  }

  50% {
    opacity: 0.8;
  }
}

@media (max-width: 1024px) {
  .quote-banner {
    font-size: 0.55rem;
    margin-bottom: 0.5rem;
  }
}

@media (hover: hover) {
  .profile-image:hover .hover-disclaimer {
    transform: translateY(0);
  }
}

.profile-image:active .hover-disclaimer {
  transform: translateY(0);
}

/* ── TAP INDICATOR (Mobile Hint) ── */
.tap-indicator {
  position: absolute;
  top: 25%;
  /* Positioned roughly between hands */
  left: 75%;
  transform: translate(-50%, -50%);
  background: rgba(0, 243, 255, 0.15);
  border: 1px solid var(--cyan);
  color: var(--cyan);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.65rem;
  font-weight: 500;
  padding: 0.2rem 0.6rem;
  border-radius: 2px;
  z-index: 10;
  pointer-events: none;
  text-shadow: var(--glow-cyan);
  box-shadow: var(--glow-cyan);
  animation: tapPulse 1.5s infinite alternate;
  display: none;
  /* Only show on touch devices */
  white-space: nowrap;
}

@media (hover: none) {
  .tap-indicator {
    display: block;
  }
}

/* Hide indicator when interacting */
.profile-image:active .tap-indicator,
.profile-image:hover .tap-indicator {
  opacity: 0;
  transition: opacity 0.2s ease;
}

@keyframes tapPulse {
  0% {
    opacity: 0.5;
    transform: translate(-50%, -50%) scale(0.9);
  }

  100% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.1);
  }
}

/* Small text at top of hero (comment style) */
.hero-mono {
  font-family: 'IBM Plex Mono', monospace;
  /* Monospace font */
  font-size: 0.82rem;
  /* Small text */
  color: var(--cyan);
  /* Cyan color */
  letter-spacing: 0.15em;
  /* Spread letters far apart */
  margin-bottom: 1.2rem;
  /* Space below */
  opacity: 0;
  /* Start invisible */
  animation: fadeUp 0.8s 0.2s forwards;
  /* Fade in after 0.2 seconds */
  text-shadow: var(--glow-cyan);
}

/* Main heading (h1 = most important) */
h1 {
  font-family: 'Syne', sans-serif;
  /* Bold sans-serif font */
  font-size: clamp(3rem, 7vw, 6rem);
  /* Responsive size (3-6rem) */
  font-weight: 800;
  /* Extra bold */
  line-height: 1.0;
  /* Tight line spacing */
  letter-spacing: -0.02em;
  /* Pull letters closer */
  margin-bottom: 0.5rem;
  /* Space below heading */
  opacity: 0;
  /* Start invisible */
  animation: fadeUp 0.8s 0.35s forwards;
  /* Fade in animation */
}

/* Highlight part of heading (SPAN element) */
h1 span {
  color: var(--magenta);
  /* Change color to magenta */
  text-shadow: var(--glow-magenta);
  animation: glitch 3s infinite;
}

@keyframes glitch {
  0% {
    transform: translate(0);
    text-shadow: var(--glow-magenta);
  }

  1% {
    transform: translate(-2px, 1px);
    text-shadow: 2px 0 var(--cyan), -2px 0 var(--magenta);
  }

  2% {
    transform: translate(2px, -1px);
    text-shadow: -2px 0 var(--cyan), 2px 0 var(--magenta);
  }

  3% {
    transform: translate(0);
    text-shadow: var(--glow-magenta);
  }

  100% {
    transform: translate(0);
    text-shadow: var(--glow-magenta);
  }
}

/* Subtitle text */
.hero-title {
  font-family: 'Syne', sans-serif;
  /* Use Syne font */
  font-size: clamp(1rem, 2.5vw, 1.4rem);
  /* Responsive size */
  font-weight: 400;
  /* Normal weight */
  color: var(--text-dim);
  /* Use dim text color */
  margin-bottom: 2rem;
  /* Space below */
  opacity: 0;
  /* Start invisible */
  animation: fadeUp 0.8s 0.5s forwards;
  /* Fade in animation */
}

/* Bold text within hero-title */
.hero-title strong {
  color: var(--amber);
  /* Use amber/orange color */
  font-weight: 600;
  /* Make bold */
}

/* Main description paragraph */
.hero-desc {
  max-width: 560px;
  /* Limit width for readability */
  font-size: 1.05rem;
  /* Slightly larger text */
  color: var(--text-dim);
  /* Use dim text color */
  margin-bottom: 2.5rem;
  /* Space below */
  opacity: 0;
  /* Start invisible */
  animation: fadeUp 0.8s 0.65s forwards;
  /* Fade in animation */
}

/* Button container (holds multiple buttons) */
.hero-btns {
  display: flex;
  /* Horizontal layout */
  gap: 1rem;
  /* Space between buttons */
  flex-wrap: wrap;
  /* Wrap buttons on small screens */
  opacity: 0;
  /* Start invisible */
  animation: fadeUp 0.8s 0.8s forwards;
  /* Fade in animation */
}

/* General button styling */
.btn {
  font-family: 'IBM Plex Mono', monospace;
  /* Monospace font */
  font-size: 0.8rem;
  /* Small text */
  letter-spacing: 0.1em;
  /* Spread letters */
  padding: 0.75rem 1.8rem;
  /* Internal space */
  border-radius: 2px;
  /* Slightly rounded corners */
  text-decoration: none;
  /* Remove link underline */
  transition: all 0.25s;
  /* Smooth animation */
  cursor: pointer;
  /* Show it's clickable */
  border: none;
  /* No border by default */
}

/* Primary button (main call-to-action) */
.btn-primary {
  background: var(--cyan);
  /* Cyan background */
  color: var(--bg);
  /* Dark text */
  font-weight: 600;
  /* Medium weight */
  box-shadow: var(--glow-cyan);
}

/* Primary button hover effect */
.btn-primary:hover {
  background: #00f5c4;
  /* Lighter teal */
  box-shadow: var(--glow);
  /* Add glow */
  transform: translateY(-1px);
  /* Lift up slightly */
}

/* Secondary button (outline style) */
.btn-outline {
  border: 1px solid var(--border);
  /* Thin teal border */
  color: var(--cyan);
  /* Teal text */
  background: transparent;
  /* No background */
}

/* Secondary button hover effect */
.btn-outline:hover {
  border-color: var(--cyan);
  /* Bright teal border */
  background: rgba(0, 212, 170, 0.07);
  /* Faint teal background */
  transform: translateY(-1px);
  /* Lift up slightly */
}

/* Statistics display area */
.hero-stats {
  display: flex;
  /* Horizontal layout */
  gap: 1.5rem;
  /* Reduced space between stats */
  margin-top: 1.5rem;
  /* Reduced space above */
  opacity: 0;

  /* Start invisible */
  animation: fadeUp 0.8s 1s forwards;
  /* Fade in animation */
  flex-wrap: wrap;
  /* Wrap on small screens */
}

/* Individual stat item */
.stat-item {
  border-left: 2px solid var(--cyan);
  /* Teal line on left */
  padding-left: 1.2rem;
  /* Space after line */
}

/* Large stat number */
.stat-num {
  font-family: 'Syne', sans-serif;
  /* Bold font */
  font-size: 2rem;
  /* Large text */
  font-weight: 800;
  /* Extra bold */
  color: var(--cyan);
  /* Teal color */
  line-height: 1;
  /* Tight line spacing */
}

/* Label under stat number */
.stat-label {
  font-family: 'IBM Plex Mono', monospace;
  /* Monospace font */
  font-size: 0.72rem;
  /* Small text */
  color: var(--text-dim);
  /* Dim text */
  letter-spacing: 0.08em;
  /* Spread letters */
  margin-top: 0.25rem;
  /* Space above */
}



/* ── CONTENT WRAPPER ── */
.content {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0.8rem 4rem;
  /* Standardized vertical padding - REDUCED for compactness */
}


/* ── SECTION HEADER ── */
.sec-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding-top: 0;
  margin-bottom: 0.6rem;
}


/* ── COLLAPSIBLE SECTIONS ── */
.collapsible-section .sec-header {
  cursor: pointer;
  user-select: none;
  transition: background 0.3s ease;
  padding: 0.5rem 1rem;
  margin-left: -1rem;
  margin-right: -1rem;
  border-radius: 4px;
}

.collapsible-section .sec-header:hover {
  background: rgba(0, 243, 255, 0.05);
}

.collapsible-section .sec-header::after {
  content: '\f078';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  font-size: 0.8rem;
  color: var(--cyan);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  margin-left: auto;
  text-shadow: var(--glow-cyan);
}

.collapsible-section.collapsed .sec-header::after {
  transform: rotate(-90deg);
}

.sec-content-wrapper {
  overflow: hidden;
  transition: max-height 0.6s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease;
  max-height: 10000px;
  opacity: 1;
}

.collapsible-section.collapsed .sec-content-wrapper {
  max-height: 0;
  opacity: 0 !important;
  pointer-events: none;
}

.sec-tag {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.72rem;
  color: var(--cyan);
  letter-spacing: 0.15em;
  white-space: nowrap;
}

.sec-line {
  flex: 1;
  height: 1px;
  background: var(--border);
}


h2 {
  font-family: 'Syne', sans-serif;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.01em;
}



/* ── EXPERTISE ── */
.expertise-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.8rem;
}

.expertise-row {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 1.5rem;
  align-items: start;
}

.expertise-featured-image {
  border: none;
  padding: 0;
  position: relative;
  background: none;
  box-shadow: none;
  transition: all 0.4s ease;
}

.expertise-featured-image:hover {
  transform: translateY(-5px);
}

@media (max-width: 1100px) {
  .expertise-row {
    grid-template-columns: 1fr;
  }

  .expertise-featured-image {
    max-width: 400px;
    margin: 0 auto;
  }
}

.exp-card {
  background: none;
  backdrop-filter: none;
  border: none;
  border-radius: 4px;
  padding: 0.6rem 0.8rem;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.exp-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--cyan);
  transition: width 0.3s;
}

.exp-card:hover,
.exp-card.expanded {
  border-color: rgba(0, 212, 170, 0.2);
  background: rgba(0, 212, 170, 0.05);
  transform: translateY(-2px);
}

.exp-card:hover::after,
.exp-card.expanded::after {
  width: 100%;
}

.exp-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  transition: color 0.3s;
}

.exp-card.expanded .exp-header {
  color: var(--cyan);
}

.exp-icon {
  font-size: 1.2rem;
}

.exp-title {
  font-family: 'Syne', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
}

.exp-desc {
  font-size: 0.8rem;
  color: var(--text-dim);
  line-height: 1.5;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.exp-card.expanded .exp-desc {
  max-height: 300px;
  opacity: 1;
  margin-top: 0.8rem;
}

/* ── PROJECTS ── */
.project-list {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}


.project-card,
.work-card {
  background: transparent;
  backdrop-filter: none;
  border: 1px solid transparent;
  border-radius: 4px;
  padding: 1rem 1.2rem 1rem 1.5rem;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.project-card::before,
.work-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--cyan);
  opacity: 0;
  transition: opacity 0.3s;
}

.project-card:hover,
.work-card:hover {
  border-color: rgba(0, 212, 170, 0.2);
  background: rgba(0, 212, 170, 0.05);
}

.project-card.expanded,
.work-card.expanded {
  background: rgba(0, 212, 170, 0.08);
  border-color: var(--cyan);
}

.project-card:hover::before,
.project-card.expanded::before,
.work-card:hover::before,
.work-card.expanded::before {
  opacity: 1;
}

.project-meta,
.work-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
}

.project-date,
.work-date {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.72rem;
  color: var(--cyan);
  letter-spacing: 0.08em;
}

.project-tag,
.work-tag {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.65rem;
  color: var(--amber);
  border: 1px solid rgba(245, 166, 35, 0.35);
  padding: 0.15rem 0.6rem;
  border-radius: 2px;
  letter-spacing: 0.06em;
}

.project-title,
.work-title {
  font-family: 'Syne', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.2rem;
  line-height: 1.3;
  transition: color 0.3s;
}

.project-card.expanded .project-title,
.work-card.expanded .work-title {
  color: var(--cyan);
}

.project-body,
.work-body {
  font-size: 0.87rem;
  color: var(--text-dim);
  line-height: 1.7;
  margin-bottom: 0;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-card.expanded .project-body,
.work-card.expanded .work-body {
  max-height: 1000px;
  opacity: 1;
  margin-top: 1rem;
  margin-bottom: 1rem;
}

.project-highlights {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-card.expanded .project-highlights {
  max-height: 500px;
  opacity: 1;
}

.highlight-chip {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.68rem;
  background: rgba(0, 243, 255, 0.08);
  border: 1px solid rgba(0, 243, 255, 0.2);
  color: var(--cyan);
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
  letter-spacing: 0.04em;
}

/* ── PUBLICATIONS ── */
.pub-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}


.pub-item {
  background: transparent;
  backdrop-filter: none;
  border: 1px solid transparent;
  border-radius: 4px;
  padding: 0.8rem 1.2rem;
  transition: all 0.25s;
}


.pub-item:hover {
  border-color: rgba(0, 212, 170, 0.2);
  background: rgba(0, 212, 170, 0.05);
}

.pub-type {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  color: var(--amber);
  margin-bottom: 0.4rem;
}

.pub-title {
  font-size: 0.9rem;
  color: var(--text);
  font-weight: 400;
  line-height: 1.5;
  margin-bottom: 0.3rem;
}

.pub-authors {
  font-size: 0.78rem;
  color: var(--text-dim);
}

.pub-authors strong {
  color: var(--cyan);
  font-weight: 500;
}

/* ── EDUCATION ── */
.edu-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.edu-item {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 1.2rem;
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--border);
  align-items: flex-start;
}


.edu-year {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.75rem;
  color: var(--cyan);
  padding-top: 0;
  line-height: 1.6;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.edu-degree {
  font-family: 'Syne', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.2rem;
}

.edu-school {
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-bottom: 0.3rem;
}

.edu-thesis {
  font-size: 0.78rem;
  color: var(--text-dim);
  font-style: italic;
}

.edu-thesis span {
  color: var(--amber);
  font-style: normal;
}

/* ── CONFERENCES ── */
.conf-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 0.6rem;
}


.conf-item {
  background: transparent;
  border: 1px solid transparent;
  border-radius: 4px;
  padding: 0.8rem 1rem;

  transition: all 0.25s;
}

.conf-item:hover {
  border-color: rgba(79, 195, 247, 0.2);
  background: rgba(79, 195, 247, 0.05);
}

.conf-name {
  font-family: 'Syne', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
}

.conf-meta {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.68rem;
  color: var(--blue);
  margin-bottom: 0.5rem;
}

.conf-role {
  font-size: 0.78rem;
  color: var(--text-dim);
}

/* ── TECHNICAL VISITS & INTERNSHIPS TABLE ── */
.table-wrapper {
  width: 100%;
  overflow-x: auto;
  margin: 0.8rem 0;

  border: 1px solid var(--border);
  background: rgba(6, 11, 20, 0.4);
  clip-path: polygon(0 0, 98% 0, 100% 4%, 100% 100%, 2% 100%, 0 96%);
}

.cyber-table {
  width: 100%;
  border-collapse: collapse;
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  text-align: left;
}

.cyber-table th {
  background: rgba(0, 243, 255, 0.05);
  color: var(--cyan);
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.8rem 1rem;

  border-bottom: 1px solid var(--border);
}

.cyber-table td {
  padding: 0.6rem 1rem;

  border-bottom: 1px solid rgba(0, 243, 255, 0.05);
  color: var(--text-dim);
  transition: all 0.2s;
}

.cyber-table tr:hover td {
  background: rgba(0, 243, 255, 0.02);
  color: var(--text);
}

.cyber-table .cell-date {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.75rem;
  color: var(--cyan);
  white-space: nowrap;
}

.cyber-table .cell-location {
  font-style: italic;
  font-size: 0.8rem;
}

.cyber-table .cell-name {
  font-weight: 600;
  color: var(--text);
}

@media (max-width: 768px) {
  .cyber-table thead {
    display: none;
  }

  .cyber-table tr {
    display: block;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
  }

  .cyber-table td {
    display: block;
    padding: 0.5rem 1rem;
    border: none;
  }

  .cyber-table td::before {
    content: attr(data-label);
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.65rem;
    color: var(--cyan);
    display: block;
    margin-bottom: 0.2rem;
    text-transform: uppercase;
  }
}


/* ── FOOTER SECTION ── */
footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border);
  /* Line above footer */
  padding: 2.5rem 4rem;
  /* Standardized vertical padding */
  display: flex;
  /* Use flexbox layout */
  justify-content: space-between;
  /* Put items on left and right */
  align-items: center;
  /* Center vertically */
  flex-wrap: wrap;
  /* Allow wrapping on small screens */
  gap: 1rem;
  /* Space between items */
  background: rgba(6, 11, 20, 0.7);
  /* Slightly transparent dark background */
}

/* FOOTER LEFT: Text on left side of footer */
.footer-left {
  font-family: 'IBM Plex Mono', monospace;
  /* Technical monospace font */
  font-size: 0.75rem;
  /* Small text */
  color: var(--text-dim);
  /* Light gray text */
}

/* Make "name" (strong text) teal color in footer */
.footer-left strong {
  color: var(--cyan);
  /* Highlight name in teal */
}

/* ── ANIMATIONS AND EFFECTS ── */

/* FADE UP ANIMATION: Makes items fade in and slide up when page loads */
@keyframes fadeUp {
  from {
    opacity: 0;
    /* Start invisible */
    transform: translateY(20px);
    /* Start 20px lower */
  }

  to {
    opacity: 1;
    /* End visible */
    transform: translateY(0);
    /* End at normal position */
  }
}

.reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.7s, transform 0.7s;
}

body.js-loaded .reveal {
  opacity: 0;
  transform: translateY(24px);
}

body.js-loaded .reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── SCROLLBAR ── */
::-webkit-scrollbar {
  width: 5px;
}

::-webkit-scrollbar-track {
  background: var(--bg);
}

::-webkit-scrollbar-thumb {
  background: var(--cyan);
  border-radius: 0;
  box-shadow: var(--glow-cyan);
}


/* ── RECHARGE BUTTON & BATTERY STATUS ── */
.battery-status {
  margin-top: 2rem;
  display: flex;
  align-items: center;
  gap: 1.2rem;
  z-index: 10;
  position: relative;
}

.recharge-btn {
  padding: 0.6rem 2.2rem 0.6rem 1.4rem;
  background: rgba(0, 243, 255, 0.03);
  border: 1px solid rgba(0, 243, 255, 0.5);
  border-radius: 0;
  color: var(--cyan);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  gap: 0.8rem;
  position: relative;
  overflow: hidden;
  clip-path: polygon(0 0, 92% 0, 100% 25%, 100% 100%, 15% 100%, 0 75%);
  z-index: 100;
  box-shadow: inset 0 0 10px rgba(0, 243, 255, 0.1);
}

.recharge-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg,
      transparent,
      rgba(0, 212, 170, 0.15),
      transparent);
  transition: 0.5s;
  animation: scan 3s infinite linear;
}

.recharge-btn::after {
  content: "PWR_LINK";
  position: absolute;
  top: 2px;
  right: 8px;
  font-size: 0.45rem;
  opacity: 0.5;
  letter-spacing: 0.05em;
}

@keyframes scan {
  0% {
    left: -100%;
  }

  100% {
    left: 100%;
  }
}

.battery-warning {
  display: none;
}

.recharge-btn.popup-btn {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2000;
  padding: 1.5rem 3rem;
  font-size: 1.2rem;
  box-shadow: 0 0 50px rgba(0, 243, 255, 0.5), inset 0 0 20px rgba(0, 243, 255, 0.2);
  border: 2px solid var(--cyan);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  animation: buttonPulse 2s infinite ease-in-out;
}

.recharge-btn.popup-btn.visible {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
}

@keyframes buttonPulse {

  0%,
  100% {
    transform: translate(-50%, -50%) scale(1);
  }

  50% {
    transform: translate(-50%, -50%) scale(1.05);
    box-shadow: 0 0 80px rgba(0, 243, 255, 0.7), inset 0 0 30px rgba(0, 243, 255, 0.3);
  }
}

.recharge-btn:hover {
  background: rgba(0, 243, 255, 0.1);
  border-color: var(--cyan);
  box-shadow: 0 0 20px rgba(0, 243, 255, 0.25);
  color: #fff;
}

.recharge-btn:active {
  transform: scale(0.98);
}

.recharge-btn.charging {
  color: var(--amber);
  border-color: rgba(255, 140, 0, 0.5);
  background: rgba(255, 140, 0, 0.05);
  clip-path: polygon(0 25%, 5% 0, 100% 0, 100% 75%, 95% 100%, 0 100%);
}

.recharge-btn.charging::before {
  background: linear-gradient(90deg,
      transparent,
      rgba(255, 140, 0, 0.2),
      transparent);
  animation: scan 1.5s infinite linear;
}

#recharge-icon {
  font-size: 0.9rem;
  display: inline-block;
  transition: transform 0.3s;
}

.recharge-btn.charging #recharge-icon {
  transform: rotate(180deg);
  filter: drop-shadow(0 0 5px var(--amber));
}

/* ── LIGHTBOX ── */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: transparent;
  z-index: 3000;
  display: flex;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s ease;
}

.lightbox.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.lightbox-content {
  position: absolute;
  width: 400px;
  transform: translateX(-20px) scale(0.8);
  opacity: 0;
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  filter: drop-shadow(0 0 20px rgba(0, 243, 255, 0.3));
}

.lightbox.active .lightbox-content {
  transform: translateX(0) scale(1);
  opacity: 1;
}

.lightbox-img {
  width: 100%;
  height: auto;
  border: 1px solid var(--cyan);
  box-shadow: 0 0 20px rgba(0, 243, 255, 0.2);
  clip-path: polygon(0 0, 92% 0, 100% 8%, 100% 100%, 8% 100%, 0 92%);
  background: var(--bg);
}

.lightbox-close {
  position: absolute;
  top: -10px;
  right: -10px;
  width: 24px;
  height: 24px;
  background: var(--bg2);
  border: 1px solid var(--cyan);
  color: var(--cyan);
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1rem;
  cursor: pointer;
  z-index: 10;
  clip-path: polygon(20% 0, 100% 0, 100% 80%, 80% 100%, 0 100%, 0 20%);
}

.lightbox-close:hover {
  text-shadow: var(--glow-cyan);
  transform: scale(1.1);
}

.nav-profile-img,
.profile-pic {
  cursor: pointer;
  transition: transform 0.3s ease;
}

.nav-profile-img:hover,
.profile-pic:hover {
  transform: scale(1.02);
}

#nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

#nav-toggle {
  display: none;
  position: fixed;
  top: 1.2rem;
  left: 1.2rem;
  z-index: 1001;
  background: rgba(6, 11, 20, 0.9);
  border: 1px solid var(--border);
  color: var(--cyan);
  padding: 0.7rem;
  cursor: pointer;
  backdrop-filter: blur(8px);
  box-shadow: 0 0 10px rgba(0, 243, 255, 0.2);
  transition: all 0.3s ease;
  clip-path: polygon(10% 0, 100% 0, 100% 90%, 90% 100%, 0 100%, 0 10%);
  width: 44px;
  height: 44px;
  font-size: 1.1rem;
  justify-content: center;
  align-items: center;
}

#nav-toggle:hover {
  box-shadow: var(--glow-cyan);
  border-color: var(--cyan);
}

/* ── MOBILE ── */
@media (max-width: 1024px) {
  #nav-toggle {
    display: flex !important;
  }

  nav {
    transform: translateX(-100%);
    width: 260px;
  }

  nav.active {
    transform: translateX(0);
    box-shadow: 10px 0 30px rgba(0, 0, 0, 0.5);
  }

  #nav-overlay.active {
    opacity: 1;
    visibility: visible;
  }

  #hero {
    padding: 3rem 1.5rem 0.5rem;
    /* Standardized mobile padding + offset for toggle, reduced bottom (FINALLY COMPACT) */
  }


  .hero-content {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    text-align: center;
  }

  .hero-desc {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-btns {
    justify-content: center;
  }

  .hero-stats {
    gap: 1.5rem;
    justify-content: center;
  }

  .hero-stats .stat-item {
    padding-left: 1rem;
    text-align: left;
  }

  .content {
    padding: 1.2rem 1rem;
    /* Standardized mobile padding (compact) */
  }


  #expertise .content {
    padding-top: 1rem;
  }


  .gallery-container {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  }



  .edu-item {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }


  footer {
    padding: 1.5rem 1rem;
    flex-direction: column;
    text-align: center;
  }


  .lightbox-content {
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) scale(0.8) !important;
    width: 90vw !important;
    max-width: 400px;
  }

  .lightbox.active .lightbox-content {
    transform: translate(-50%, -50%) scale(1) !important;
  }
}

/* ── TYPING ANIMATION ── */
.typing-container {
  font-size: 1.2rem;
  font-weight: 700;
  min-height: 1.4em;

  display: flex;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 0.5rem;
  font-family: 'Syne', sans-serif;
}

#typing-prefix {
  color: var(--text);
}

#typing-text {
  color: var(--cyan);
  text-shadow: var(--glow-cyan);
  margin-left: 0.5rem;
}

.typing-cursor {
  display: inline-block;
  width: 3px;
  height: 1.1em;
  background-color: var(--cyan);
  margin-left: 4px;
  animation: blink 0.8s infinite;
  vertical-align: middle;
}

@keyframes blink {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0;
  }
}

@media (max-width: 768px) {
  .typing-container {
    font-size: 1.2rem;
  }
}

/* ── HERO STATS ── */
.hero-stats {
  display: flex;
  gap: 2.5rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.stat-value {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--cyan);
  font-family: 'Syne', sans-serif;
  line-height: 1;
  text-shadow: var(--glow-cyan);
}

.stat-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-dim);
  margin-top: 0.5rem;
  font-family: 'IBM Plex Mono', monospace;
}

@media (max-width: 768px) {
  .hero-stats {
    gap: 1.5rem;
    justify-content: center;
  }

  .stat-value {
    font-size: 1.8rem;
  }
}
