/* Base Styles and Variables */
:root {
  --primary: #0f0;
  --primary-dark: #00b300;
  --secondary: #00ffff;
  --accent: #ff00ff;
  --background: #0a0a0a;
  --background-light: #121212;
  --background-lighter: #1a1a1a;
  --text: #e0e0e0;
  --text-dim: #a0a0a0;
  --border: #333;
  --danger: #ff3333;
  --warning: #ffcc00;
  --success: #00cc66;
  --font-mono: "Courier New", monospace;
  --font-sans: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

/* Reset and Base Styles */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-mono);
  background-color: var(--background);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

a {
  color: var(--secondary);
  text-decoration: none;
  transition: color 0.3s ease;
}

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

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 32px;
  padding-right: 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  /* Always center content horizontally */
  box-sizing: border-box;
}

::selection {
  background-color: var(--primary);
  color: var(--background);
}

/* Scan Line Effect */
.scan-line {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(0, 255, 0, 0.10) 20%,
    rgba(0, 255, 0, 0.25) 50%,
    rgba(0, 255, 0, 0.10) 80%,
    transparent 100%
  );
  animation: scan 10s linear infinite;
  z-index: 1500;
  pointer-events: none;
  box-shadow: 0 0 6px rgba(0, 255, 0, 0.15);
  opacity: 0.18;
}

@keyframes scan {
  0% {
    transform: translateY(-10px);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    transform: translateY(100vh);
    opacity: 0;
  }
}

/* Enhanced Scanning Effects */
.scan-line-horizontal {
  position: fixed;
  top: 0;
  left: -100%;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
  animation: scanHorizontal 10s linear infinite;
  z-index: 1499;
  pointer-events: none;
  opacity: 0.6;
}

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

/* Additional scan line variations */
.scan-line-vertical {
  position: fixed;
  top: 0;
  left: 0;
  width: 2px;
  height: 100%;
  background: linear-gradient(180deg, transparent, var(--primary), transparent);
  animation: scanVertical 6s linear infinite;
  z-index: 1498;
  pointer-events: none;
  opacity: 0.4;
}

@keyframes scanVertical {
  0% {
    left: -2px;
  }
  100% {
    left: 100%;
  }
}

/* Grid scanning effect */
.scan-grid-enhanced {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: linear-gradient(rgba(0, 255, 0, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 255, 0, 0.03) 1px, transparent 1px);
  background-size: 50px 50px;
  z-index: 100; /* Above background, below overlays */
  pointer-events: none;
  animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
  0% {
    transform: translate(0, 0);
  }
  100% {
    transform: translate(50px, 50px);
  }
}

/* Pulse scanning effect */
/* .scan-pulse {
  position: fixed;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 10px;
  background: var(--primary);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: scanPulse 3s ease-in-out infinite;
  z-index: 1497;
  pointer-events: none;
} */

@keyframes scanPulse {
  0% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
  }
  50% {
    transform: translate(-50%, -50%) scale(50);
    opacity: 0.1;
  }
  100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
  }
}

/* Enhanced glitch effects */
.glitch-enhanced {
  position: relative;
  color: var(--text);
  letter-spacing: 3px;
}

.glitch-enhanced::before,
.glitch-enhanced::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.8;
}

.glitch-enhanced::before {
  color: var(--primary);
  animation: glitch-anim 2s infinite linear alternate-reverse;
  clip: rect(44px, 450px, 56px, 0);
  left: 2px;
}

.glitch-enhanced::after {
  color: var(--secondary);
  animation: glitch-anim2 2s infinite linear alternate-reverse;
  clip: rect(44px, 450px, 56px, 0);
  left: -2px;
}

@keyframes glitch-anim {
  0% {
    clip: rect(42px, 9999px, 44px, 0);
    transform: skew(0.65deg);
  }
  5% {
    clip: rect(12px, 9999px, 59px, 0);
    transform: skew(0.23deg);
  }
  10% {
    clip: rect(48px, 9999px, 67px, 0);
    transform: skew(0.45deg);
  }
  15% {
    clip: rect(35px, 9999px, 79px, 0);
    transform: skew(0.56deg);
  }
  20% {
    clip: rect(35px, 9999px, 10px, 0);
    transform: skew(0.14deg);
  }
  25% {
    clip: rect(54px, 9999px, 93px, 0);
    transform: skew(0.03deg);
  }
  30% {
    clip: rect(96px, 9999px, 100px, 0);
    transform: skew(0.48deg);
  }
  35% {
    clip: rect(100px, 9999px, 97px, 0);
    transform: skew(0.71deg);
  }
  40% {
    clip: rect(63px, 9999px, 17px, 0);
    transform: skew(0.33deg);
  }
  45% {
    clip: rect(40px, 9999px, 31px, 0);
    transform: skew(0.94deg);
  }
  50% {
    clip: rect(60px, 9999px, 43px, 0);
    transform: skew(0.58deg);
  }
  55% {
    clip: rect(96px, 9999px, 67px, 0);
    transform: skew(0.33deg);
  }
  60% {
    clip: rect(92px, 9999px, 6px, 0);
    transform: skew(0.64deg);
  }
  65% {
    clip: rect(83px, 9999px, 93px, 0);
    transform: skew(0.33deg);
  }
  70% {
    clip: rect(59px, 9999px, 56px, 0);
    transform: skew(0.71deg);
  }
  75% {
    clip: rect(67px, 9999px, 34px, 0);
    transform: skew(0.08deg);
  }
  80% {
    clip: rect(75px, 9999px, 71px, 0);
    transform: skew(0.95deg);
  }
  85% {
    clip: rect(82px, 9999px, 64px, 0);
    transform: skew(0.59deg);
  }
  90% {
    clip: rect(21px, 9999px, 60px, 0);
    transform: skew(0.38deg);
  }
  95% {
    clip: rect(45px, 9999px, 25px, 0);
    transform: skew(0.31deg);
  }
  100% {
    clip: rect(80px, 9999px, 85px, 0);
    transform: skew(0.76deg);
  }
}

@keyframes glitch-anim2 {
  0% {
    clip: rect(65px, 9999px, 100px, 0);
    transform: skew(0.27deg);
  }
  5% {
    clip: rect(93px, 9999px, 100px, 0);
    transform: skew(0.52deg);
  }
  10% {
    clip: rect(79px, 9999px, 97px, 0);
    transform: skew(0.6deg);
  }
  15% {
    clip: rect(32px, 9999px, 23px, 0);
    transform: skew(0.09deg);
  }
  20% {
    clip: rect(18px, 9999px, 72px, 0);
    transform: skew(0.41deg);
  }
  25% {
    clip: rect(71px, 9999px, 2px, 0);
    transform: skew(0.72deg);
  }
  30% {
    clip: rect(2px, 9999px, 60px, 0);
    transform: skew(0.39deg);
  }
  35% {
    clip: rect(20px, 9999px, 73px, 0);
    transform: skew(0.88deg);
  }
  40% {
    clip: rect(26px, 9999px, 73px, 0);
    transform: skew(0.46deg);
  }
  45% {
    clip: rect(75px, 9999px, 87px, 0);
    transform: skew(0.16deg);
  }
  50% {
    clip: rect(7px, 9999px, 59px, 0);
    transform: skew(0.71deg);
  }
  55% {
    clip: rect(53px, 9999px, 40px, 0);
    transform: skew(0.68deg);
  }
  60% {
    clip: rect(33px, 9999px, 36px, 0);
    transform: skew(0.62deg);
  }
  65% {
    clip: rect(71px, 9999px, 87px, 0);
    transform: skew(0.45deg);
  }
  70% {
    clip: rect(47px, 9999px, 31px, 0);
    transform: skew(0.61deg);
  }
  75% {
    clip: rect(82px, 9999px, 89px, 0);
    transform: skew(0.81deg);
  }
  80% {
    clip: rect(47px, 9999px, 4px, 0);
    transform: skew(0.33deg);
  }
  85% {
    clip: rect(48px, 9999px, 50px, 0);
    transform: skew(0.4deg);
  }
  90% {
    clip: rect(89px, 9999px, 99px, 0);
    transform: skew(0.05deg);
  }
  95% {
    clip: rect(10px, 9999px, 66px, 0);
    transform: skew(0.85deg);
  }
  100% {
    clip: rect(83px, 9999px, 97px, 0);
    transform: skew(0.01deg);
  }
}

.scan-grid {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: linear-gradient(rgba(0, 255, 0, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 255, 0, 0.03) 1px, transparent 1px);
  background-size: 50px 50px;
  z-index: 100; /* Above background, below overlays */
  pointer-events: none;
  animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
  0% {
    transform: translate(0, 0);
  }
  100% {
    transform: translate(50px, 50px);
  }
}

/* Background Effects */
.noise {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("data:image/png;base64,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");
  opacity: 0.05;
  z-index: -2;
  pointer-events: none;
}

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, transparent 0%, var(--background) 70%);
  z-index: -1;
  pointer-events: none;
}

/* .terminal-cursor {
  position: fixed;
  width: 10px;
  height: 20px;
  background-color: var(--primary);
  opacity: 0;
  pointer-events: none;
  animation: blink 1s infinite;
} */

/* Audio Controls */
.audio-controls {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
}

.audio-btn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: rgba(0, 0, 0, 0.8);
  border: 2px solid var(--primary);
  color: var(--primary);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  box-shadow: 0 0 20px rgba(0, 255, 0, 0.3);
}

.audio-btn:hover {
  background-color: var(--primary);
  color: var(--background);
  transform: scale(1.1);
  box-shadow: 0 0 30px rgba(0, 255, 0, 0.6);
}

.audio-btn.muted {
  border-color: var(--danger);
  color: var(--danger);
  box-shadow: 0 0 20px rgba(255, 51, 51, 0.3);
}

.audio-btn.muted:hover {
  background-color: var(--danger);
  color: var(--background);
  box-shadow: 0 0 30px rgba(255, 51, 51, 0.6);
}

.audio-status {
  font-size: 0.6rem;
  font-family: var(--font-mono);
  margin-top: 2px;
  letter-spacing: 1px;
}

/* Header Styles */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 70px;
  background-color: rgba(10, 10, 10, 0.9);
  backdrop-filter: blur(10px);
  z-index: 1000;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
  transition: all 0.3s ease;
}

header.scrolled {
  background-color: rgba(0, 0, 0, 0.95);
  border-bottom-color: var(--primary);
}

.logo {
  display: flex;
  align-items: center;
  margin-top: 18px; /* Add space from the top */
}

.logo-text {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--primary);
  letter-spacing: 1px;
}

.status {
  display: flex;
  align-items: center;
  margin-left: 15px;
  /* Ensure default direction: row (circle left, text right) */
  flex-direction: row;
}

.status-circle {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--primary);
  margin-right: 15px; /* Space between circle and text */
  margin-left: 0;    /* Remove any left margin */
  animation: blink 2s infinite;
}

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

nav {
  display: flex;
  align-items: center;
}

.nav-links {
  display: flex;
  flex: 1 1 auto;
  justify-content: space-between;
  align-items: center;
  width: 100vw;
  max-width: 1200px;
  margin: 0 24px;
  padding: 0 32px;
  box-sizing: border-box;
  gap: 0;
}

.nav-links li {
  flex: 1 1 0;
  text-align: center;
  min-width: 0;
  padding: 0 12px;
  margin: 0;
}

.nav-link {
  display: inline-block;
  width: auto;
  min-width: 0;
  max-width: 100%;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--text);
  position: relative;
  padding: 5px 0;
  transition: all 0.3s ease;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary);
  transition: width 0.3s ease;
}

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

.nav-link:hover::after {
  width: 100%;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
  cursor: pointer;
}

.bar {
  height: 3px;
  width: 100%;
  background-color: var(--text);
  border-radius: 3px;
  transition: all 0.3s ease;
}

/* Hero Section */
.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding-top: 70px;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  max-width: 1000px;
  width: 100%;
  z-index: 10;
  position: relative;
}

.terminal {
  width: 100%;
  max-width: 600px;
  background-color: rgba(0, 0, 0, 0.8);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 255, 0, 0.1);
  border: 1px solid var(--border);
  animation: fadeInUp 1s ease-out;
}

.terminal-header {
  display: flex;
  align-items: center;
  padding: 10px;
  background-color: var(--background-lighter);
  border-bottom: 1px solid var(--border);
}

.terminal-buttons {
  display: flex;
  gap: 8px;
}

.terminal-button {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.terminal-button.red {
  background-color: var(--danger);
}

.terminal-button.yellow {
  background-color: var(--warning);
}

.terminal-button.green {
  background-color: var(--success);
}

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

.terminal-body {
  padding: 15px;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  line-height: 1.5;
  min-height: 200px;
}

.line {
  margin-bottom: 10px;
  display: flex;
  align-items: center;
}

.prompt {
  color: var(--primary);
  margin-right: 10px;
}

.command {
  color: var(--text);
}

.cursor {
  color: var(--primary);
  animation: blink 1s infinite;
  margin-left: 2px;
}

.response {
  color: var(--text-dim);
  margin-left: 20px;
}

.hero-info {
  text-align: center;
  animation: fadeInUp 1s ease-out 0.5s both;
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 10px;
  position: relative;
  color: var(--text);
}

.subtitle {
  font-family: var(--font-mono);
  font-size: 1.2rem;
  color: var(--primary);
  margin-bottom: 15px;
  letter-spacing: 2px;
}

.location {
  font-size: 0.9rem;
  color: var(--text-dim);
  margin-bottom: 20px;
}

.social-links {
  display: flex;
  gap: 15px;
  justify-content: center;
}

.social-link {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--background-lighter);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  border: 1px solid var(--border);
  transition: all 0.3s ease;
}

.social-link:hover {
  background-color: var(--primary);
  color: var(--background);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 255, 0, 0.3);
}

.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  animation: fadeInUp 1s ease-out 1s both;
}

.mouse {
  width: 30px;
  height: 50px;
  border: 2px solid var(--text-dim);
  border-radius: 15px;
  position: relative;
}

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

.arrow {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}

.arrow span {
  display: block;
  width: 10px;
  height: 10px;
  border-bottom: 2px solid var(--text-dim);
  border-right: 2px solid var(--text-dim);
  transform: rotate(45deg);
  animation: arrow 2s infinite;
}

.arrow span:nth-child(2) {
  animation-delay: 0.2s;
}

.arrow span:nth-child(3) {
  animation-delay: 0.4s;
}

/* Section Styles */
section {
  padding: 100px 0;
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

section.in-view {
  opacity: 1;
  transform: translateY(0);
}

.section-header {
  text-align: center;
  margin-bottom: 50px;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 10px;
  position: relative;
  display: inline-block;
  color: var(--primary);
}

.section-subtitle {
  font-family: var(--font-mono);
  font-size: 1rem;
  color: var(--secondary);
}

.blink {
  animation: blink 1s infinite;
}

/* About Section */
.about {
  background-color: rgba(26, 26, 26, 0.3);
}

.about-content {
  display: flex;
  gap: 50px;
  align-items: center;
}

.about-text {
  flex: 1;
}

.about-text p {
  margin-bottom: 30px;
  font-size: 1.1rem;
  line-height: 1.8;
  text-align: justify;
}

.key-highlights {
  color: var(--primary);
  font-weight: bold;
}

.stats {
  display: flex;
  gap: 30px;
  margin-top: 30px;
}

.stat {
  text-align: center;
}

.stat-value {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 5px;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--text-dim);
}

.about-image {
  flex: 1;
  height: 300px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cyber-grid {
  width: 100%;
  height: 100%;
  position: relative;
  border: 2px solid var(--primary);
  border-radius: 8px;
  background: linear-gradient(45deg, transparent 49%, var(--primary) 50%, transparent 51%),
    linear-gradient(-45deg, transparent 49%, var(--primary) 50%, transparent 51%);
  background-size: 20px 20px;
  opacity: 0.3;
  animation: gridPulse 3s ease-in-out infinite;
}

.data-stream {
  position: absolute;
  top: 20px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.data-stream span {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--primary);
  opacity: 0.7;
  animation: dataFlow 1s ease-in-out infinite;
}

.data-stream span:nth-child(2) {
  animation-delay: 0.2s;
}
.data-stream span:nth-child(3) {
  animation-delay: 0.4s;
}
.data-stream span:nth-child(4) {
  animation-delay: 0.6s;
}

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

.timeline::before {
  content: "";
  position: absolute;
  top: 0;
  left: 20px;
  height: 100%;
  width: 2px;
  background-color: var(--primary);
}

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

.timeline-item:last-child {
  margin-bottom: 0;
}

/* .timeline-dot {
  position: absolute;
  left: 16px;
  top: 5px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--primary);
  transform: translateX(-50%);
  box-shadow: 0 0 10px var(--primary);
} */

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

.timeline-content {
  background-color: var(--background-lighter);
  border-radius: 8px;
  padding: 20px;
  border: 1px solid var(--border);
  transition: all 0.3s ease;
}

.timeline-content:hover {
  border-color: var(--primary);
  box-shadow: 0 5px 15px rgba(0, 255, 0, 0.1);
}

.timeline-content h3 {
  font-size: 1.3rem;
  margin-bottom: 5px;
  color: var(--primary);
}

.timeline-content h4 {
  font-size: 1rem;
  color: var(--text-dim);
  margin-bottom: 15px;
}

.timeline-content ul {
  list-style-type: disc;
  padding-left: 20px;
}

.timeline-content li {
  margin-bottom: 8px;
  color: var(--text);
}

/* Projects Section */
.projects {
  background-color: rgba(26, 26, 26, 0.3);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
}

.project-card {
  background-color: var(--background-lighter);
  border-radius: 8px;
  padding: 25px;
  border: 1px solid var(--border);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: translateY(20px);
}

.project-card.in-view {
  opacity: 1;
  transform: translateY(0);
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 255, 0, 0.1);
  border-color: var(--primary);
}

.project-card.glitch-effect {
  animation: glitch 0.3s ease-in-out;
}

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

.project-header h3 {
  font-size: 1.3rem;
  color: var(--primary);
}

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

.project-subtitle {
  font-size: 0.9rem;
  color: var(--secondary);
  margin-bottom: 15px;
}

.project-card p {
  margin-bottom: 20px;
  font-size: 0.95rem;
  color: var(--text);
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.project-tech span {
  background-color: var(--background);
  color: orange;
  font-size: 0.8rem;
  padding: 5px 10px;
  border-radius: 4px;
  font-family: var(--font-mono);
  border: 1px solid orange;
}

.project-links {
  display: flex;
  gap: 15px;
}

.project-link {
  font-size: 0.9rem;
  color: var(--secondary);
  display: flex;
  align-items: center;
  gap: 5px;
  transition: all 0.3s ease;
}

.project-link:hover {
  color: var(--primary);
  transform: translateX(5px);
}

/* Skills Section */
.skills-content {
  display: flex;
  gap: 50px;
  margin-bottom: 50px;
}

.skills-category {
  flex: 1;
}

.skills-category h3 {
  font-size: 1.3rem;
  margin-bottom: 25px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--primary);
  color: var(--primary);
}

.skill-bars {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.skill-bar {
  width: 100%;
  opacity: 0;
  transform: translateX(-20px);
  transition: all 0.5s ease;
}

.skill-bar.in-view {
  opacity: 1;
  transform: translateX(0);
}

.skill-name {
  font-size: 1rem;
  margin-bottom: 8px;
  color: var(--text);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.skill-percentage {
  font-size: 0.8rem;
  color: var(--primary);
}

.skill-progress {
  height: 8px;
  background-color: var(--background-lighter);
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.progress {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  border-radius: 4px;
  width: 0;
  transition: width 1.5s ease;
  position: relative;
}

.progress::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  animation: shimmer 2s infinite;
}

/* Engaging and colorful soft skills hexagons */
.skill-hexagons {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

.skill-hexagon {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.5s ease;
}

.skill-hexagon.in-view {
  opacity: 1;
  transform: translateY(0);
}

.hexagon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #00fff7 0%, #0f0 100%);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 2rem;
  transition: all 0.3s ease;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  border: 2px solid var(--primary);
  box-shadow: 0 0 16px 0 rgba(0,255,128,0.15);
  /* Add a subtle glow */
  filter: drop-shadow(0 0 8px #00fff7);
}

.hexagon:hover {
  background: linear-gradient(135deg, #ff00ff 0%, #00ffff 100%);
  color: #fff;
  transform: scale(1.12) rotate(-3deg);
  box-shadow: 0 0 24px #00fff7, 0 0 8px #ff00ff;
  filter: drop-shadow(0 0 12px #ff00ff);
}

.skill-hexagon span {
  font-size: 1rem;
  color: var(--primary);
  font-weight: bold;
  letter-spacing: 1px;
  text-shadow: 0 1px 4px #000, 0 0 2px #0ff;
}

/* Animate icon inside hexagon for more engagement */
.skill-hexagon .hexagon i {
  background: linear-gradient(135deg, #000000 10%, #000000 60%, #000000 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: softSkillPulse 2s infinite alternate;
}

@keyframes softSkillPulse {
  0% {
    filter: drop-shadow(0 0 2px #00fff7);
    transform: scale(1) rotate(0deg);
  }
  100% {
    filter: drop-shadow(0 0 8px #ff00ff);
    transform: scale(1.13) rotate(6deg);
  }
}

/* Achievements Section */
.achievements {
  margin-top: 50px;
}

.achievements h3 {
  font-size: 1.3rem;
  margin-bottom: 25px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--primary);
  color: var(--primary);
}

.achievement-card {
  background-color: var(--background-lighter);
  border-radius: 8px;
  padding: 25px;
  border: 1px solid #004200;
  transition: all 0.3s ease;
}

.achievement-card:hover {
  border-color: var(--primary);
  box-shadow: 0 5px 15px rgba(0, 255, 0, 0.1);
}

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

.achievement-header h4 {
  font-size: 1.2rem;
  color: var(--primary);
}

.achievement-date {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--text-dim);
}

.achievement-details {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.achievement-item {
  display: flex;
  gap: 10px;
}

.achievement-item .label {
  font-weight: 600;
  min-width: 120px;
  color: var(--text);
}

.achievement-item .value {
  color: var(--text-dim);
}

.achievement-item .value.high {
  color: var(--danger);
  font-weight: bold;
}

/* Contact Section */
.contact {
  background-color: rgba(26, 26, 26, 0.3);
}

.contact-content {
  display: flex;
  gap: 50px;
}

.contact-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  transition: all 0.3s ease;
}

.contact-item:hover {
  transform: translateX(10px);
}

.contact-item i {
  font-size: 1.5rem;
  color: var(--primary);
  margin-top: 5px;
}

.contact-item h3 {
  font-size: 1.1rem;
  margin-bottom: 5px;
  color: var(--primary);
}

.contact-item a,
.contact-item p {
  color: var(--text-dim);
  font-size: 0.95rem;
  transition: color 0.3s ease;
}

.contact-item a:hover {
  color: var(--primary);
}

.system-status {
  flex: 1;
  background-color: var(--background-lighter);
  border: 2px solid var(--primary);
  border-radius: 8px;
  padding: 30px;
  text-align: center;
}

.status-header {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--primary);
  margin-bottom: 20px;
  letter-spacing: 2px;
}

.status-grid {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.status-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}

.status-item:last-child {
  border-bottom: none;
}

.status-value {
  color: var(--primary);
  font-weight: bold;
}

/* Footer */
footer {
  background-color: var(--background-light);
  border-top: 1px solid var(--primary);
  padding: 40px 0;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
}

.footer-logo {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--primary);
  letter-spacing: 1px;
}

.footer-text {
  color: var(--text-dim);
  font-size: 0.9rem;
  line-height: 1.6;
}

.footer-social {
  display: flex;
  gap: 15px;
}

/* Hack Overlay */
.hack-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.95);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 1;
  transition: opacity 1s ease;
}

.hack-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}

.hack-content {
  width: 80%;
  max-width: 600px;
  text-align: center;
}

.hack-header {
  font-family: var(--font-mono);
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 30px;
  letter-spacing: 2px;
  animation: pulse 1s infinite;
}

.hack-progress {
  width: 100%;
  height: 10px;
  background-color: var(--background-lighter);
  border-radius: 5px;
  margin-bottom: 20px;
  overflow: hidden;
  border: 1px solid var(--primary);
}

.hack-progress-bar {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  transition: width 0.5s ease;
  position: relative;
}

.hack-progress-bar::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  animation: shimmer 1s infinite;
}

.hack-text {
  font-family: var(--font-mono);
  font-size: 1.2rem;
  color: var(--text);
  margin-bottom: 10px;
}

.hack-percentage {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--text-dim);
}

/* Glitch Effect */
.glitch {
  position: relative;
}

.glitch::before,
.glitch::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
}

.glitch::before {
  color: var(--accent);
  z-index: -1;
}

.glitch::after {
  color: var(--secondary);
  z-index: -2;
}

.glitch.active::before {
  animation: glitch-anim 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
}

.glitch.active::after {
  animation: glitch-anim 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) reverse both;
}

/* Animations */
@keyframes blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.05);
    opacity: 0.8;
  }
}

@keyframes gridPulse {
  0%,
  100% {
    opacity: 0.3;
  }
  50% {
    opacity: 0.6;
  }
}

@keyframes dataFlow {
  0% {
    opacity: 0.3;
    transform: translateY(0);
  }
  50% {
    opacity: 1;
    transform: translateY(-5px);
  }
  100% {
    opacity: 0.3;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scroll {
  0% {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
  100% {
    opacity: 0;
    transform: translateX(-50%) translateY(15px);
  }
}

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

@keyframes glitch {
  0% {
    transform: translate(0);
  }
  20% {
    transform: translate(-2px, 2px);
  }
  40% {
    transform: translate(-2px, -2px);
  }
  60% {
    transform: translate(2px, 2px);
  }
  80% {
    transform: translate(2px, -2px);
  }
  100% {
    transform: translate(0);
  }
}

@keyframes glitch-anim {
  0% {
    transform: translate(0);
    opacity: 0.8;
  }
  20% {
    transform: translate(-5px, 5px);
  }
  40% {
    transform: translate(-5px, -5px);
  }
  60% {
    transform: translate(5px, 5px);
  }
  80% {
    transform: translate(5px, -5px);
  }
  100% {
    transform: translate(0);
    opacity: 0;
  }
}

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

/* Responsive Styles */
@media (max-width: 992px) {
  .about-content,
  .skills-content,
  .contact-content {
    flex-direction: column;
  }

  .about-image {
    height: 200px;
  }

  .projects-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  }
}

@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    height: 0;
    flex-direction: column;
    background-color: var(--background-light);
    overflow: hidden;
    transition: height 0.3s ease;
    z-index: 999;
    padding: 0;
    gap: 0;
  }

  .nav-links.active {
    height: auto;
    padding: 20px 0;
    border-bottom: 1px solid var(--border);
  }

  .nav-links li {
    width: 100%;
    text-align: center;
    padding: 15px 0;
  }

  .menu-toggle.active .bar:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
  }

  .menu-toggle.active .bar:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle.active .bar:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
  }

  .hero-content {
    gap: 20px;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .subtitle {
    font-size: 1rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .stats {
    flex-wrap: wrap;
    justify-content: center;
  }

  .timeline::before {
    left: 15px;
  }

  /* .timeline-dot {
    left: 11px;
  } */

  .timeline-item {
    padding-left: 40px;
  }
}

@media (max-width: 576px) {
  .container {
    padding: 0 15px;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }

  .skill-hexagons {
    gap: 10px;
  }

  .hexagon {
    width: 60px;
    height: 60px;
    font-size: 1.2rem;
  }

  .achievement-item {
    flex-direction: column;
    gap: 5px;
  }

  .achievement-item .label {
    min-width: auto;
  }

  .terminal-body {
    font-size: 0.8rem;
  }

  .audio-controls {
    bottom: 10px;
    right: 10px;
  }

  .audio-btn {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
}

/* Custom scrollbar for hacker theme */
::-webkit-scrollbar {
  width: 8px;
}

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

::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-dark);
}

/* Clickable elements cursor */
.clickable {
  cursor: pointer;
}

/* Additional glitch effects */
.glitch-effect::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--primary);
  opacity: 0.1;
  z-index: -1;
  animation: glitch-flicker 0.3s ease;
}

@keyframes glitch-flicker {
  0%,
  100% {
    opacity: 0.1;
  }
  50% {
    opacity: 0.3;
  }
}
