/* ==========================================================================
   DESIGN SYSTEM & VARIABLES
   ========================================================================== */
:root {
  --primary-color: #00ff41;      /* Electric green */
  --primary-glow: rgba(0, 255, 65, 0.35);
  --secondary-color: #00d4ff;    /* Cyan */
  --secondary-glow: rgba(0, 212, 255, 0.35);
  --bg-black: #0a0a0a;           /* Deep black background */
  --bg-navy: #0d1117;            /* Dark navy cards */
  --border-color: rgba(0, 255, 65, 0.2);
  --text-light: #e6edf3;
  --text-dim: #8b949e;
  
  --glass-bg: rgba(13, 17, 23, 0.75);
  --glass-border: rgba(0, 255, 65, 0.15);
  --glass-border-cyan: rgba(0, 212, 255, 0.15);
  
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
  --font-sans: 'Inter', sans-serif;
  
  --transition-speed: 0.3s;
}

/* ==========================================================================
   BASE STYLES & RESET
   ========================================================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  cursor: none !important; /* Hide default cursor to use custom target cursor */
}

html {
  scroll-behavior: smooth;
  background-color: var(--bg-black);
  color: var(--text-light);
  font-family: var(--font-sans);
  overflow-x: hidden;
}

body {
  position: relative;
  min-height: 100vh;
}

/* ==========================================================================
   SCROLLBAR STYLES
   ========================================================================== */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-black);
}
::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary-color);
  box-shadow: 0 0 10px var(--primary-color);
}

/* ==========================================================================
   BACKGROUND OVERLAYS (Scanlines, Grid & Particles)
   ========================================================================== */
.scanlines {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    rgba(10, 10, 10, 0) 50%,
    rgba(0, 0, 0, 0.25) 50%
  );
  background-size: 100% 4px;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.2;
}

.grid-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(rgba(0, 255, 65, 0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 255, 65, 0.015) 1px, transparent 1px);
  background-size: 40px 40px;
  z-index: -2;
  pointer-events: none;
}

#particles-js {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}

/* ==========================================================================
   CUSTOM CURSOR
   ========================================================================== */
.custom-cursor-dot {
  width: 6px;
  height: 6px;
  background-color: var(--secondary-color);
  border-radius: 50%;
  position: fixed;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 999999;
  transition: width 0.1s, height 0.1s, background-color 0.1s;
}

.custom-cursor-circle {
  width: 32px;
  height: 32px;
  border: 1.5px solid var(--primary-color);
  border-radius: 50%;
  position: fixed;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 999998;
  transition: width 0.2s ease-out, height 0.2s ease-out, border-color 0.2s, transform 0.05s ease-out;
  box-shadow: 0 0 10px var(--primary-glow);
}

/* Custom Cursor States */
body.hovered-interactive .custom-cursor-circle {
  width: 46px;
  height: 46px;
  border-color: var(--secondary-color);
  border-style: dashed;
  box-shadow: 0 0 15px var(--secondary-glow);
  animation: rotate-cursor 8s linear infinite;
}

body.hovered-interactive .custom-cursor-dot {
  background-color: var(--primary-color);
  width: 4px;
  height: 4px;
}

@keyframes rotate-cursor {
  0% { transform: translate(-50%, -50%) rotate(0deg); }
  100% { transform: translate(-50%, -50%) rotate(360deg); }
}

@media (max-width: 1024px) {
  /* Disable custom cursor on touch screens */
  * { cursor: auto !important; }
  .custom-cursor-dot, .custom-cursor-circle { display: none; }
}

/* ==========================================================================
   LOADING SCREEN (Boot Sequence)
   ========================================================================== */
.loader-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--bg-black);
  z-index: 100000;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  transition: opacity 0.5s ease;
}

.loader-terminal {
  width: 100%;
  max-width: 650px;
  background-color: #050505;
  border: 1px solid var(--border-color);
  box-shadow: 0 0 30px rgba(0, 255, 65, 0.15);
  border-radius: 6px;
  overflow: hidden;
  font-family: var(--font-mono);
}

.loader-terminal .terminal-header {
  background-color: #0f1419;
  padding: 10px 15px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(0, 255, 65, 0.1);
}

.loader-terminal .terminal-header .dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin-right: 8px;
}

.loader-terminal .terminal-header .dot.red { background-color: #ff5f56; }
.loader-terminal .terminal-header .dot.yellow { background-color: #ffbd2e; }
.loader-terminal .terminal-header .dot.green { background-color: #27c93f; }

.loader-terminal .terminal-header .title {
  margin-left: auto;
  margin-right: auto;
  font-size: 0.85rem;
  color: var(--text-dim);
}

.loader-terminal .terminal-body {
  padding: 20px;
  height: 280px;
  overflow-y: auto;
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--primary-color);
}

.loader-terminal .terminal-body .boot-line {
  margin-bottom: 6px;
  white-space: pre-wrap;
}

.loader-terminal .terminal-body .ok {
  color: var(--primary-color);
  font-weight: bold;
}

.loader-terminal .terminal-body .fail {
  color: #ff5f56;
  font-weight: bold;
}

.loader-terminal .progress-container {
  height: 4px;
  background-color: #121212;
  width: 100%;
  position: relative;
}

.loader-terminal .progress-bar {
  height: 100%;
  width: 0%;
  background-color: var(--primary-color);
  box-shadow: 0 0 10px var(--primary-color);
  transition: width 0.05s linear;
}

.loader-terminal .progress-text {
  text-align: right;
  padding: 8px 20px;
  font-size: 0.85rem;
  color: var(--primary-color);
}

.skip-btn {
  display: block;
  width: 100%;
  padding: 12px;
  background-color: rgba(0, 255, 65, 0.05);
  border: none;
  border-top: 1px solid rgba(0, 255, 65, 0.1);
  color: var(--primary-color);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: background-color 0.2s, color 0.2s;
}

.skip-btn:hover {
  background-color: var(--primary-color);
  color: var(--bg-black);
  cursor: pointer;
}

/* ==========================================================================
   NAVIGATION BAR
   ========================================================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: rgba(10, 10, 10, 0.6);
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: padding 0.3s, background-color 0.3s, border-color 0.3s;
  padding: 20px 0;
}

.navbar.scrolled {
  padding: 12px 0;
  background-color: rgba(10, 10, 10, 0.85);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.navbar .logo {
  font-family: var(--font-mono);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--primary-color);
  text-decoration: none;
  letter-spacing: -0.5px;
  text-shadow: 0 0 10px var(--primary-glow);
}

.navbar .logo .blink-cursor {
  animation: blink 1s step-end infinite;
}

.nav-menu {
  display: flex;
  gap: 30px;
}

.nav-link {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-light);
  text-decoration: none;
  position: relative;
  padding: 5px 0;
  transition: color var(--transition-speed);
}

.nav-link::before {
  content: "> ";
  color: var(--primary-color);
  opacity: 0;
  transition: opacity 0.25s, transform 0.25s;
  transform: translateX(-5px);
  display: inline-block;
}

.nav-link:hover {
  color: var(--primary-color);
}

.nav-link:hover::before {
  opacity: 1;
  transform: translateX(0);
}

/* Hamburger Menu */
.hamburger {
  display: none;
  background: none;
  border: none;
  outline: none;
}

.hamburger .bar {
  display: block;
  width: 24px;
  height: 2px;
  margin: 5px auto;
  background-color: var(--primary-color);
  box-shadow: 0 0 5px var(--primary-glow);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Hamburger Mobile Open Animation */
.hamburger.active .bar:nth-child(2) {
  opacity: 0;
}
.hamburger.active .bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.hamburger.active .bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 768px) {
  .hamburger {
    display: block;
  }
  
  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background-color: rgba(13, 17, 23, 0.98);
    border-left: 1px solid var(--glass-border);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 40px;
    z-index: 999;
    transition: right 0.4s cubic-bezier(0.77, 0.2, 0.05, 1.0);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.8);
  }
  
  .nav-menu.active {
    right: 0;
  }
  
  .nav-link {
    font-size: 1.1rem;
  }
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  background-color: var(--bg-black);
  z-index: 1;
}

/* Canvas background for matrix rain */
.matrix-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
  opacity: 0.15;
}

.hero-content-wrapper {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 40px;
  margin-top: 60px;
}

.hero-text {
  z-index: 2;
}

.terminal-prompt-hero {
  font-family: var(--font-mono);
  color: var(--secondary-color);
  font-size: 0.9rem;
  margin-bottom: 15px;
  text-shadow: 0 0 5px var(--secondary-glow);
}

.glitch-text {
  position: relative;
  font-family: var(--font-mono);
  font-size: 4.8rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: 2px;
  line-height: 1.1;
  margin-bottom: 20px;
  text-shadow: 0 0 15px var(--primary-glow);
}

.glitch-text::before,
.glitch-text::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg-black);
  overflow: hidden;
}

.glitch-text::before {
  left: 3px;
  text-shadow: -2px 0 var(--secondary-color);
  clip: rect(24px, 999px, 90px, 0);
  animation: glitch-anim-1 3s infinite linear alternate-reverse;
}

.glitch-text::after {
  left: -3px;
  text-shadow: -3px 0 var(--primary-color), 0 3px var(--secondary-color);
  clip: rect(85px, 999px, 140px, 0);
  animation: glitch-anim-2 2.5s infinite linear alternate-reverse;
}

/* Typewriter wrapper */
.typewriter-container {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 500;
  margin-bottom: 25px;
  color: var(--text-light);
}

.typewriter-container .static-txt {
  color: var(--text-dim);
}

.typewriter-container .typed-txt {
  color: var(--primary-color);
  text-shadow: 0 0 8px var(--primary-glow);
}

.hero-tagline {
  color: var(--text-dim);
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 40px;
  max-width: 550px;
  font-family: var(--font-mono);
}

.hero-tagline .divider {
  color: var(--primary-color);
  margin: 0 8px;
}

/* Hero CTA Buttons */
.hero-ctas {
  display: flex;
  gap: 20px;
  margin-bottom: 45px;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  padding: 12px 28px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 500;
  transition: all var(--transition-speed);
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background-color: rgba(0, 255, 65, 0.05);
  border: 1px solid var(--primary-color);
  color: var(--primary-color);
  box-shadow: 0 0 10px rgba(0, 255, 65, 0.15);
}

.btn-primary:hover {
  background-color: var(--primary-color);
  color: var(--bg-black);
  box-shadow: 0 0 25px var(--primary-color);
  transform: translateY(-2px);
}

.btn-secondary {
  background-color: rgba(0, 212, 255, 0.05);
  border: 1px solid var(--secondary-color);
  color: var(--secondary-color);
  box-shadow: 0 0 10px rgba(0, 212, 255, 0.15);
}

.btn-secondary:hover {
  background-color: var(--secondary-color);
  color: var(--bg-black);
  box-shadow: 0 0 25px var(--secondary-color);
  transform: translateY(-2px);
}

.btn-prompt {
  opacity: 0.5;
  margin-right: 6px;
}

/* Hero Socials */
.hero-socials {
  display: flex;
  gap: 20px;
}

.social-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(13, 17, 23, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--text-dim);
  font-size: 1.1rem;
  text-decoration: none;
  transition: all var(--transition-speed);
}

.social-icon:hover {
  color: var(--primary-color);
  border-color: var(--primary-color);
  box-shadow: 0 0 15px var(--primary-glow);
  transform: translateY(-3px);
}

/* Hero Decor / Floating Icons */
.hero-decor-container {
  position: relative;
  height: 380px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.floating-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.1;
  z-index: 0;
}

.floating-orb.glow-green {
  width: 250px;
  height: 250px;
  background-color: var(--primary-color);
  top: 10%;
  left: 20%;
  animation: float-slow 10s ease-in-out infinite;
}

.floating-orb.glow-cyan {
  width: 200px;
  height: 200px;
  background-color: var(--secondary-color);
  bottom: 10%;
  right: 10%;
  animation: float-slow 12s ease-in-out infinite alternate;
}

.floating-icon {
  position: absolute;
  font-size: 2.5rem;
  color: rgba(0, 255, 65, 0.25);
  filter: drop-shadow(0 0 10px rgba(0, 255, 65, 0.2));
  z-index: 1;
}

.floating-icon.shield-icon {
  top: 20%;
  left: 30%;
  animation: spin-and-float 15s linear infinite;
}

.floating-icon.lock-icon {
  bottom: 25%;
  right: 25%;
  font-size: 2.2rem;
  color: rgba(0, 212, 255, 0.25);
  filter: drop-shadow(0 0 10px rgba(0, 212, 255, 0.2));
  animation: float-wobble 8s ease-in-out infinite alternate;
}

.floating-icon.terminal-icon {
  top: 60%;
  left: 15%;
  font-size: 1.8rem;
  color: rgba(255, 255, 255, 0.15);
  animation: float-wobble 10s ease-in-out infinite;
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0.6;
  z-index: 2;
}

.mouse-wheel {
  width: 22px;
  height: 38px;
  border: 2px solid var(--text-dim);
  border-radius: 12px;
  position: relative;
}

.mouse-wheel::before {
  content: "";
  width: 4px;
  height: 8px;
  background-color: var(--primary-color);
  border-radius: 2px;
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  animation: scroll-wheel 1.8s infinite;
}

.scroll-arrow {
  width: 8px;
  height: 8px;
  border-bottom: 2px solid var(--text-dim);
  border-right: 2px solid var(--text-dim);
  transform: rotate(45deg);
  animation: scroll-arrow 1.8s infinite;
}

@media (max-width: 992px) {
  .hero-content-wrapper {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 20px;
  }
  
  .hero-tagline {
    margin: 0 auto 30px auto;
  }
  
  .hero-ctas {
    justify-content: center;
  }
  
  .hero-socials {
    justify-content: center;
  }
  
  .hero-decor-container {
    height: 220px;
  }
  
  .glitch-text {
    font-size: 3.2rem;
  }
}

/* ==========================================================================
   GLOBAL SECTION SETTINGS & HEADINGS
   ========================================================================== */
.section-padding {
  padding: 100px 0;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-title {
  font-family: var(--font-mono);
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 60px;
  position: relative;
  display: inline-block;
  color: #fff;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.15);
}

.section-title span {
  color: var(--primary-color);
  margin-right: 10px;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 80px;
  height: 2px;
  background-color: var(--primary-color);
  box-shadow: 0 0 8px var(--primary-color);
}

.neon-pulse::after {
  animation: title-glow-pulse 2s infinite alternate;
}

@keyframes title-glow-pulse {
  0% {
    width: 60px;
    box-shadow: 0 0 4px var(--primary-color);
  }
  100% {
    width: 100px;
    box-shadow: 0 0 15px var(--primary-color), 0 0 5px var(--secondary-color);
    background-color: var(--secondary-color);
  }
}

/* Glassmorphism Cards Base */
.card-glass {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 6px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all var(--transition-speed) cubic-bezier(0.165, 0.84, 0.44, 1);
}

.card-glass:hover {
  transform: translateY(-5px);
  border-color: var(--primary-color);
  box-shadow: 0 10px 30px rgba(0, 255, 65, 0.12), 0 0 15px rgba(0, 255, 65, 0.05);
}

/* ==========================================================================
   ABOUT SECTION
   ========================================================================== */
.about-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 40px;
  align-items: flex-start;
}

/* Linux Terminal Window */
.terminal-card {
  background-color: #0c0f12;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
  font-family: var(--font-mono);
}

.terminal-card .terminal-header {
  background-color: #161b22;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.terminal-card .terminal-header .dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin-right: 8px;
}

.terminal-card .terminal-header .dot.red { background-color: #ff5f56; }
.terminal-card .terminal-header .dot.yellow { background-color: #ffbd2e; }
.terminal-card .terminal-header .dot.green { background-color: #27c93f; }

.terminal-card .terminal-header .title {
  margin-left: 15px;
  font-size: 0.8rem;
  color: var(--text-dim);
}

.terminal-card .terminal-header .terminal-actions {
  margin-left: auto;
  color: var(--text-dim);
  font-size: 0.85rem;
  display: flex;
  gap: 12px;
}

.terminal-card .terminal-body {
  padding: 22px;
  font-size: 0.9rem;
  line-height: 1.6;
  min-height: 380px;
  max-height: 480px;
  overflow-y: auto;
}

.terminal-line {
  margin-bottom: 12px;
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
}

.terminal-line .prompt {
  color: var(--primary-color);
  margin-right: 10px;
  user-select: none;
}

.terminal-line .cmd-input {
  color: #fff;
  font-weight: 500;
}

.terminal-output {
  margin-bottom: 20px;
  padding-left: 10px;
  border-left: 2px solid rgba(255, 255, 255, 0.05);
}

.terminal-output.text-justify {
  text-align: justify;
}

.text-cyan { color: var(--secondary-color); }
.text-green { color: var(--primary-color); }
.text-dim { color: var(--text-dim); }

.terminal-cursor {
  display: inline-block;
  width: 8px;
  height: 15px;
  background-color: var(--primary-color);
  animation: blink 1s step-end infinite;
  vertical-align: middle;
}

/* Profile Panel with HUD overlay */
.profile-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
}

.avatar-wrapper {
  position: relative;
  width: 260px;
  height: 260px;
  border-radius: 6px;
  overflow: hidden;
  padding: 10px;
}

.avatar-glow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 1px solid rgba(0, 255, 65, 0.1);
  background-color: rgba(0, 255, 65, 0.01);
  box-shadow: inset 0 0 20px rgba(0, 255, 65, 0.1);
  z-index: 1;
}

.avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.15) brightness(0.95);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: filter var(--transition-speed);
}

.avatar-overlay {
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  bottom: 10px;
  background: linear-gradient(rgba(0, 255, 65, 0.08) 50%, rgba(0, 0, 0, 0.2) 50%);
  background-size: 100% 4px;
  pointer-events: none;
  z-index: 2;
}

.avatar-wrapper:hover .avatar-img {
  filter: grayscale(0.2) contrast(1.1) brightness(1);
}

/* Corner HUD decorations */
.hud-box {
  position: absolute;
  width: 16px;
  height: 16px;
  border-color: var(--primary-color);
  border-style: solid;
  z-index: 3;
  pointer-events: none;
}

.hud-box.top-left { top: 0; left: 0; border-width: 2px 0 0 2px; }
.hud-box.top-right { top: 0; right: 0; border-width: 2px 2px 0 0; }
.hud-box.bottom-left { bottom: 0; left: 0; border-width: 0 0 2px 2px; }
.hud-box.bottom-right { bottom: 0; right: 0; border-width: 0 2px 2px 0; }

.cyber-status-card {
  width: 100%;
  background-color: var(--bg-navy);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 24px;
  border-radius: 6px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.cyber-status-card h3 {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  color: var(--primary-color);
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.threat-alert {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  background: rgba(0, 255, 65, 0.03);
  border: 1px solid rgba(0, 255, 65, 0.1);
  padding: 8px 12px;
  border-radius: 4px;
}

.threat-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--primary-color);
  letter-spacing: 1px;
  font-weight: bold;
}

.diagnostic-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

.diag-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.05);
  padding-bottom: 6px;
}

.diag-key {
  font-size: 0.7rem;
  color: var(--text-dim);
  font-family: var(--font-mono);
}

.diag-val {
  font-size: 0.85rem;
  color: var(--text-light);
  font-family: var(--font-mono);
  font-weight: 600;
}

.live-activity-stream {
  background-color: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.03);
  border-radius: 4px;
  padding: 10px 12px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: var(--text-dim);
}

.stream-line {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Education Timeline in About */
.education-timeline-wrapper {
  margin-top: 80px;
}

.timeline-heading {
  font-family: var(--font-mono);
  font-size: 1.4rem;
  color: var(--secondary-color);
  margin-bottom: 40px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.timeline-line-pulsing {
  position: absolute;
  top: 0;
  left: 20px;
  width: 2px;
  height: 100%;
  background: linear-gradient(var(--primary-color), var(--secondary-color));
  box-shadow: 0 0 8px var(--primary-glow);
}

.timeline-item {
  position: relative;
  padding-left: 60px;
  margin-bottom: 30px;
}

.timeline-dot {
  position: absolute;
  left: 11px;
  top: 10px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background-color: var(--bg-black);
  border: 3px solid var(--primary-color);
  box-shadow: 0 0 10px var(--primary-glow);
  z-index: 2;
}

.timeline-dot.pulsing::after {
  content: "";
  position: absolute;
  top: -6px;
  left: -6px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid var(--primary-color);
  animation: pulse-ring 1.8s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
}

.timeline-date {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--primary-color);
  margin-bottom: 8px;
  font-weight: 600;
}

.timeline-content {
  padding: 24px;
  border-width: 1px;
}

.timeline-content h4 {
  font-size: 1.15rem;
  margin-bottom: 5px;
  color: #fff;
}

.timeline-content .institution {
  color: var(--secondary-color);
  font-family: var(--font-mono);
  font-size: 0.9rem;
  margin-bottom: 8px;
}

.timeline-content .location {
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-bottom: 12px;
}

.timeline-content .location i {
  margin-right: 5px;
}

.timeline-content .description {
  font-size: 0.9rem;
  color: var(--text-dim);
  line-height: 1.5;
}

@media (max-width: 992px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 50px;
  }
}

/* ==========================================================================
   SKILLS SECTION
   ========================================================================== */
.skills-tabs {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 50px;
  flex-wrap: wrap;
}

.tab-btn {
  background-color: var(--bg-navy);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  padding: 10px 20px;
  border-radius: 4px;
  transition: all var(--transition-speed);
}

.tab-btn:hover, .tab-btn.active {
  background-color: rgba(0, 255, 65, 0.05);
  border-color: var(--primary-color);
  color: var(--primary-color);
  box-shadow: 0 0 12px var(--primary-glow);
}

.skills-dashboard {
  max-width: 1000px;
  margin: 0 auto;
}

.skills-category-content {
  display: none;
}

.skills-category-content.active {
  display: block;
  animation: fade-in 0.5s ease;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

@media (max-width: 768px) {
  .skills-grid {
    grid-template-columns: 1fr;
  }
}

.skill-card-detailed {
  padding: 24px;
  border-width: 1px;
}

.skill-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.skill-title {
  font-family: var(--font-mono);
  font-size: 1.05rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
}

.skill-value {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  color: var(--secondary-color);
}

.skill-bar-container {
  height: 6px;
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 15px;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.5);
}

.skill-bar-fill {
  height: 100%;
  border-radius: 3px;
  width: 0%; /* Animated on trigger */
  transition: width 1.2s cubic-bezier(0.1, 0.8, 0.2, 1);
}

.skill-bar-fill.green-glow {
  background-color: var(--primary-color);
  box-shadow: 0 0 8px var(--primary-color);
}

.skill-bar-fill.cyan-glow {
  background-color: var(--secondary-color);
  box-shadow: 0 0 8px var(--secondary-color);
}

.skill-desc {
  font-size: 0.85rem;
  color: var(--text-dim);
  line-height: 1.5;
}

/* ==========================================================================
   PROJECTS SECTION
   ========================================================================== */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

@media (max-width: 992px) {
  .projects-grid {
    grid-template-columns: 1fr;
  }
}

.project-card {
  overflow: hidden;
  border-width: 1px;
  display: flex;
  flex-direction: column;
}

.project-img-wrapper {
  position: relative;
  height: 250px;
  overflow: hidden;
  background-color: #050505;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.project-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  filter: saturate(0.8) contrast(1.1);
}

.project-img-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(10, 10, 10, 0.75);
  backdrop-filter: blur(4px);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity var(--transition-speed);
  z-index: 2;
}

.view-gallery-btn {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--primary-color);
  border: 1px solid var(--primary-color);
  padding: 8px 16px;
  border-radius: 4px;
  background-color: rgba(0, 255, 65, 0.05);
  box-shadow: 0 0 8px var(--primary-glow);
  transition: all 0.2s;
}

.view-gallery-btn:hover {
  background-color: var(--primary-color);
  color: var(--bg-black);
  box-shadow: 0 0 15px var(--primary-color);
  cursor: pointer;
}

.project-card:hover .project-img {
  transform: scale(1.05);
}

.project-card:hover .project-img-overlay {
  opacity: 1;
}

.project-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  background-color: rgba(13, 17, 23, 0.85);
  border: 1px solid var(--glass-border);
  padding: 5px 12px;
  border-radius: 20px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 1;
  box-shadow: 0 4px 10px rgba(0,0,0,0.4);
}

.project-info {
  padding: 26px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.project-name {
  font-size: 1.35rem;
  margin-bottom: 12px;
  color: #fff;
  font-weight: 700;
}

.project-desc {
  font-size: 0.9rem;
  color: var(--text-dim);
  line-height: 1.6;
  margin-bottom: 25px;
  flex-grow: 1;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 25px;
}

.project-tags .tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--secondary-color);
  background-color: rgba(0, 212, 255, 0.05);
  border: 1px solid rgba(0, 212, 255, 0.15);
  padding: 4px 10px;
  border-radius: 4px;
}

.btn-card-action {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  background: none;
  border: none;
  color: var(--primary-color);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s;
  padding: 5px 0;
  border-bottom: 1px solid transparent;
}

.btn-card-action .arrow {
  transition: transform 0.2s;
}

.btn-card-action:hover {
  color: var(--primary-color);
  border-bottom-color: var(--primary-color);
}

.btn-card-action:hover .arrow {
  transform: translateX(5px);
}

/* ==========================================================================
   CERTIFICATIONS SECTION
   ========================================================================== */
.certs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

@media (max-width: 992px) {
  .certs-grid {
    grid-template-columns: 1fr;
  }
}

.cert-card {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 20px;
  padding: 30px;
  position: relative;
  border-width: 1px;
}

.cert-badge-wrapper {
  position: relative;
  width: 80px;
  height: 80px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.cert-shield-border {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 1.5px solid var(--primary-color);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--primary-glow);
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  animation: rotate-shield 20s linear infinite;
}

@keyframes rotate-shield {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.cert-icon-container {
  font-size: 1.8rem;
  color: var(--primary-color);
  filter: drop-shadow(0 0 6px var(--primary-glow));
}

.cert-card:nth-child(even) .cert-shield-border {
  border-color: var(--secondary-color);
  box-shadow: 0 0 10px var(--secondary-glow);
  animation-duration: 25s;
  animation-direction: reverse;
}

.cert-card:nth-child(even) .cert-icon-container {
  color: var(--secondary-color);
  filter: drop-shadow(0 0 6px var(--secondary-glow));
}

.cert-info h3 {
  font-size: 1.15rem;
  margin-bottom: 6px;
  color: #fff;
}

.cert-issuer {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--primary-color);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.cert-card:nth-child(even) .cert-issuer {
  color: var(--secondary-color);
}

.cert-desc {
  font-size: 0.85rem;
  color: var(--text-dim);
  line-height: 1.5;
  margin-bottom: 15px;
}

.cert-status {
  display: flex;
  align-items: center;
  gap: 8px;
}

.status-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--primary-color);
  box-shadow: 0 0 6px var(--primary-color);
}

.status-indicator.verified {
  animation: pulse-ring 1.5s infinite;
}

.cert-card:nth-child(even) .status-indicator {
  background-color: var(--secondary-color);
  box-shadow: 0 0 6px var(--secondary-color);
}

.status-txt {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.5px;
  color: var(--text-dim);
}

.cert-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 15px;
  flex-wrap: wrap;
  gap: 15px;
}

.cert-pdf-link {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--primary-color);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
  border: 1px dashed var(--primary-color);
  padding: 4px 10px;
  border-radius: 4px;
  background-color: rgba(0, 255, 65, 0.02);
  transition: all var(--transition-speed);
}

.cert-pdf-link:hover {
  background-color: var(--primary-color);
  color: var(--bg-black);
  box-shadow: 0 0 10px var(--primary-glow);
}

.cert-card:nth-child(even) .cert-pdf-link {
  color: var(--secondary-color);
  border-color: var(--secondary-color);
  background-color: rgba(0, 212, 255, 0.02);
}

.cert-card:nth-child(even) .cert-pdf-link:hover {
  background-color: var(--secondary-color);
  color: var(--bg-black);
  box-shadow: 0 0 10px var(--secondary-glow);
}

.cert-link {
  position: absolute;
  top: 20px;
  right: 20px;
  color: var(--text-dim);
  font-size: 1rem;
  transition: color 0.2s, transform 0.2s;
}

.cert-link:hover {
  color: var(--primary-color);
  transform: scale(1.1);
}

.cert-card:nth-child(even) .cert-link:hover {
  color: var(--secondary-color);
}

/* ==========================================================================
   ACHIEVEMENTS SECTION
   ========================================================================== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  max-width: 900px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

.stat-card {
  padding: 40px;
  text-align: center;
  position: relative;
  border-width: 1px;
}

.stat-icon-glow {
  position: absolute;
  top: 15%;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 80px;
  border-radius: 50%;
  filter: blur(25px);
  opacity: 0.15;
  z-index: 0;
}

.stat-icon-glow.green { background-color: var(--primary-color); }
.stat-icon-glow.cyan { background-color: var(--secondary-color); }

.stat-icon {
  font-size: 2.5rem;
  margin-bottom: 20px;
  z-index: 1;
  position: relative;
}

.stat-card:nth-child(1) .stat-icon {
  color: var(--primary-color);
  filter: drop-shadow(0 0 8px var(--primary-glow));
}

.stat-card:nth-child(2) .stat-icon {
  color: var(--secondary-color);
  filter: drop-shadow(0 0 8px var(--secondary-glow));
}

.stat-numbers {
  font-family: var(--font-mono);
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 15px;
  color: #fff;
  z-index: 1;
  position: relative;
}

.stat-prefix {
  font-size: 1.5rem;
  color: var(--text-dim);
  vertical-align: top;
  margin-right: 5px;
}

.stat-suffix {
  color: var(--primary-color);
  font-size: 2rem;
}

.stat-card:nth-child(2) .stat-suffix {
  color: var(--secondary-color);
}

.stat-title {
  font-family: var(--font-mono);
  font-size: 1.2rem;
  margin-bottom: 12px;
  color: #fff;
}

.stat-desc {
  font-size: 0.9rem;
  color: var(--text-dim);
  line-height: 1.6;
  margin-bottom: 25px;
}

.stat-link-btn {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--primary-color);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--primary-color);
  padding: 6px 14px;
  border-radius: 4px;
  background-color: rgba(0, 255, 65, 0.02);
  transition: all 0.2s;
}

.stat-link-btn:hover {
  background-color: var(--primary-color);
  color: var(--bg-black);
  box-shadow: 0 0 12px var(--primary-color);
}

.stat-meta {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-dim);
  border: 1px dashed rgba(255, 255, 255, 0.1);
  padding: 4px 12px;
  border-radius: 20px;
}

/* ==========================================================================
   CONTACT SECTION
   ========================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: flex-start;
}

@media (max-width: 992px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

/* Terminal Contact Form Details */
.terminal-form {
  margin-top: 15px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.form-row {
  display: flex;
  align-items: center;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.05);
  padding-bottom: 5px;
}

.form-row.message-row {
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.form-prompt {
  font-family: var(--font-mono);
  color: var(--secondary-color);
  font-size: 0.85rem;
  white-space: nowrap;
}

.form-input {
  background: none;
  border: none;
  outline: none;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--primary-color);
  width: 100%;
  padding: 5px 10px;
}

.form-input::placeholder {
  color: rgba(0, 255, 65, 0.25);
}

.form-textarea {
  resize: none;
  border: 1px dashed rgba(0, 255, 65, 0.15);
  background-color: rgba(0, 0, 0, 0.2);
  border-radius: 4px;
}

.form-textarea::placeholder {
  color: rgba(0, 255, 65, 0.2);
}

.form-submit-row {
  margin-top: 15px;
}

.submit-btn {
  background-color: rgba(0, 255, 65, 0.05);
  border: 1px solid var(--primary-color);
  color: var(--primary-color);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  padding: 10px 20px;
  border-radius: 4px;
  transition: all 0.2s;
}

.submit-btn:hover {
  background-color: var(--primary-color);
  color: var(--bg-black);
  box-shadow: 0 0 15px var(--primary-color);
  cursor: pointer;
}

.terminal-log-output {
  margin-top: 20px;
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--text-dim);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 15px;
}

/* Contact Info Details */
.contact-info-panel {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.info-block {
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  border-width: 1px;
}

.info-icon {
  width: 50px;
  height: 50px;
  border-radius: 6px;
  background-color: rgba(0, 255, 65, 0.05);
  border: 1px solid var(--border-color);
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--primary-color);
  font-size: 1.2rem;
  box-shadow: 0 0 10px rgba(0, 255, 65, 0.1);
}

.info-block:nth-child(even) .info-icon {
  background-color: rgba(0, 212, 255, 0.05);
  border-color: rgba(0, 212, 255, 0.2);
  color: var(--secondary-color);
  box-shadow: 0 0 10px rgba(0, 212, 255, 0.1);
}

.info-details h4 {
  font-size: 0.8rem;
  font-family: var(--font-mono);
  color: var(--text-dim);
  text-transform: uppercase;
  margin-bottom: 5px;
}

.info-val {
  font-size: 1rem;
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

a.info-val:hover {
  color: var(--primary-color);
}

.secure-tunnel-box {
  background-color: #08120c;
  border: 1px solid rgba(0, 255, 65, 0.15);
  border-radius: 6px;
  padding: 20px;
}

.secure-tunnel-box .tunnel-header {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 8px;
}

.secure-tunnel-box p {
  font-size: 0.8rem;
  color: var(--text-dim);
  line-height: 1.5;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.pulse-dot.green {
  background-color: var(--primary-color);
  box-shadow: 0 0 6px var(--primary-color);
  animation: pulse-ring 1.8s infinite;
}

/* ==========================================================================
   INTERACTIVE DETAILS / MODAL
   ========================================================================== */
.modal-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(8px);
  z-index: 10000;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-container.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  width: 100%;
  max-width: 800px;
  border: 1px solid var(--primary-color);
  box-shadow: 0 0 40px rgba(0, 255, 65, 0.2);
  border-radius: 8px;
  overflow: hidden;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
}

.modal-header {
  background-color: #0f1419;
  padding: 15px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(0, 255, 65, 0.15);
}

.modal-header h3 {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  color: var(--primary-color);
}

.modal-close {
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 1.8rem;
  transition: color 0.2s;
}

.modal-close:hover {
  color: var(--primary-color);
  cursor: pointer;
}

.modal-body {
  padding: 24px;
  overflow-y: auto;
  flex-grow: 1;
}

.modal-gallery-container {
  position: relative;
  height: 350px;
  background-color: #050505;
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 24px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.modal-slides {
  display: flex;
  height: 100%;
  transition: transform 0.4s cubic-bezier(0.1, 0.8, 0.2, 1);
}

.modal-slide {
  min-width: 100%;
  height: 100%;
}

.modal-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.modal-slide iframe {
  width: 100%;
  height: 100%;
  border: none;
  background-color: #000;
}

.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(13, 17, 23, 0.8);
  border: 1px solid var(--glass-border);
  color: var(--primary-color);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: var(--font-mono);
  font-weight: bold;
  font-size: 1.1rem;
  transition: all 0.2s;
  z-index: 10;
}

.gallery-nav:hover {
  background-color: var(--primary-color);
  color: var(--bg-black);
  box-shadow: 0 0 10px var(--primary-color);
  cursor: pointer;
}

.gallery-nav.prev { left: 15px; }
.gallery-nav.next { right: 15px; }

.modal-info-details h4 {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  margin-bottom: 10px;
}

.modal-info-details p {
  font-size: 0.9rem;
  color: var(--text-dim);
  line-height: 1.6;
  margin-bottom: 24px;
}

.modal-specs-list {
  list-style: none;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-light);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.modal-specs-list li::before {
  content: "- ";
  color: var(--primary-color);
}

@media (max-width: 576px) {
  .modal-gallery-container {
    height: 200px;
  }
  .modal-specs-list {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
  background-color: #06080b;
  border-top: 1px solid rgba(255, 255, 255, 0.03);
  padding: 40px 0;
  text-align: center;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  position: relative;
}

.footer-brand {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  color: var(--primary-color);
  text-shadow: 0 0 6px var(--primary-glow);
}

.footer-text {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-dim);
}

.back-to-top {
  position: absolute;
  right: 24px;
  bottom: 0;
}

.back-to-top a {
  width: 40px;
  height: 40px;
  border-radius: 4px;
  border: 1px solid var(--border-color);
  background-color: rgba(13, 17, 23, 0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--primary-color);
  text-decoration: none;
  transition: all var(--transition-speed);
}

.back-to-top a:hover {
  background-color: var(--primary-color);
  color: var(--bg-black);
  box-shadow: 0 0 15px var(--primary-color);
  transform: translateY(-3px);
}

@media (max-width: 768px) {
  .back-to-top {
    position: static;
    margin-top: 15px;
  }
}

/* ==========================================================================
   KEYFRAME ANIMATIONS
   ========================================================================== */
@keyframes blink {
  50% { opacity: 0; }
}

@keyframes scroll-wheel {
  0% { opacity: 1; top: 6px; }
  50% { opacity: 0.3; top: 18px; }
  100% { opacity: 1; top: 6px; }
}

@keyframes scroll-arrow {
  0% { opacity: 0; transform: rotate(45deg) translate(-2px, -2px); }
  50% { opacity: 1; }
  100% { opacity: 0; transform: rotate(45deg) translate(2px, 2px); }
}

@keyframes float-slow {
  0% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-20px) scale(1.05); }
  100% { transform: translateY(0) scale(1); }
}

@keyframes float-wobble {
  0% { transform: translate(0, 0) rotate(0deg); }
  50% { transform: translate(-10px, -15px) rotate(3deg); }
  100% { transform: translate(0, 0) rotate(0deg); }
}

@keyframes spin-and-float {
  0% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-15px) rotate(180deg); }
  100% { transform: translateY(0) rotate(360deg); }
}

@keyframes pulse-ring {
  0% { transform: scale(0.6); opacity: 0; }
  50% { opacity: 0.5; }
  100% { transform: scale(1.2); opacity: 0; }
}

@keyframes fade-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Glitch Animation 1 */
@keyframes glitch-anim-1 {
  0% { clip: rect(15px, 999px, 66px, 0); }
  5% { clip: rect(85px, 999px, 5px, 0); }
  10% { clip: rect(32px, 999px, 115px, 0); }
  15% { clip: rect(110px, 999px, 45px, 0); }
  20% { clip: rect(5px, 999px, 98px, 0); }
  25% { clip: rect(70px, 999px, 15px, 0); }
  30% { clip: rect(40px, 999px, 130px, 0); }
  35% { clip: rect(120px, 999px, 55px, 0); }
  40% { clip: rect(25px, 999px, 75px, 0); }
  45% { clip: rect(90px, 999px, 10px, 0); }
  50% { clip: rect(10px, 999px, 110px, 0); }
  55% { clip: rect(80px, 999px, 30px, 0); }
  60% { clip: rect(55px, 999px, 95px, 0); }
  65% { clip: rect(15px, 999px, 125px, 0); }
  70% { clip: rect(95px, 999px, 5px, 0); }
  75% { clip: rect(35px, 999px, 70px, 0); }
  80% { clip: rect(115px, 999px, 40px, 0); }
  85% { clip: rect(50px, 999px, 105px, 0); }
  90% { clip: rect(5px, 999px, 85px, 0); }
  95% { clip: rect(75px, 999px, 20px, 0); }
  100% { clip: rect(20px, 999px, 120px, 0); }
}

/* Glitch Animation 2 */
@keyframes glitch-anim-2 {
  0% { clip: rect(90px, 999px, 120px, 0); }
  5% { clip: rect(20px, 999px, 40px, 0); }
  10% { clip: rect(110px, 999px, 5px, 0); }
  15% { clip: rect(5px, 999px, 95px, 0); }
  20% { clip: rect(75px, 999px, 130px, 0); }
  25% { clip: rect(45px, 999px, 15px, 0); }
  30% { clip: rect(115px, 999px, 80px, 0); }
  35% { clip: rect(10px, 999px, 50px, 0); }
  40% { clip: rect(85px, 999px, 105px, 0); }
  45% { clip: rect(30px, 999px, 25px, 0); }
  50% { clip: rect(95px, 999px, 115px, 0); }
  55% { clip: rect(15px, 999px, 60px, 0); }
  60% { clip: rect(125px, 999px, 5px, 0); }
  65% { clip: rect(40px, 999px, 85px, 0); }
  70% { clip: rect(50px, 999px, 110px, 0); }
  75% { clip: rect(5px, 999px, 35px, 0); }
  80% { clip: rect(70px, 999px, 90px, 0); }
  85% { clip: rect(120px, 999px, 15px, 0); }
  90% { clip: rect(35px, 999px, 100px, 0); }
  95% { clip: rect(80px, 999px, 55px, 0); }
  100% { clip: rect(15px, 999px, 125px, 0); }
}
