﻿:root {
  --bg: #0a0e17;
  --text: #e0e0e0;
  --accent: #00ff9f;
  --secondary: #0080ff;
  --panel: rgba(15, 20, 30, 0.92);
  --border: #00ff9f;
  --success: #00ff9f;
  --warning: #ffa500;
  --error: #ff0040;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background-color: #0a0e17; /* Prevent white flash */
  overflow-x: hidden;
  max-width: 100vw;
}

body {
  font-family: "Courier New", monospace;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  transition:
    background 0.5s,
    color 0.5s;
  line-height: 1.6;
}

body.preload,
body.preload * {
  transition: none !important;
}

#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--secondary));
  z-index: 10000;
  transition: width 0.05s linear;
  box-shadow: 0 0 15px var(--accent);
}

.boot-screen-container {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  overflow: hidden;
}

.boot-screen-container.hidden {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s ease-out;
}

.boot-content {
  max-width: 800px;
  width: 95%;
  text-align: center;
}

.boot-logo {
  margin-bottom: 2rem;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-svg {
  width: 80px;
  height: 80px;
  color: var(--accent);
  animation: logoFloat 3s ease-in-out infinite;
  filter: drop-shadow(0 0 20px var(--accent));
}

@keyframes logoFloat {
  0%,
  100% {
    transform: translateY(0) rotateZ(0deg);
  }
  50% {
    transform: translateY(-20px) rotateZ(5deg);
  }
}

.boot-title {
  font-size: 1.5rem;
  color: var(--accent);
  text-shadow: 0 0 20px var(--accent);
  margin-bottom: 2rem;
  letter-spacing: 3px;
  animation: titleGlow 2s ease-in-out infinite;
}

@keyframes titleGlow {
  0%,
  100% {
    text-shadow:
      0 0 20px var(--accent),
      0 0 40px var(--accent);
    opacity: 1;
  }
  50% {
    text-shadow:
      0 0 30px var(--accent),
      0 0 60px var(--accent);
    opacity: 0.8;
  }
}

.boot-logs-container {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(0, 255, 159, 0.3);
  border-radius: 8px;
  padding: 1.5rem 1rem;
  margin-bottom: 1.5rem;
  height: 300px;
  max-height: 50vh;
  overflow-y: auto;
  backdrop-filter: blur(10px);
  width: 100%;
  box-sizing: border-box;
}

.boot-logs {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.boot-log {
  font-size: 0.85rem;
  opacity: 0;
  color: var(--accent);
  animation: logSlideIn 0.4s ease-out forwards;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: left;
}

@keyframes logSlideIn {
  0% {
    opacity: 0;
    transform: translateX(-20px);
  }
  100% {
    opacity: 0.8;
    transform: translateX(0);
  }
}

.boot-progress-bar {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  margin: 1.5rem 0;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(0, 255, 159, 0.3);
}

.boot-progress-fill {
  height: 100%;
  background: linear-gradient(
    90deg,
    var(--accent),
    var(--secondary),
    var(--accent)
  );
  background-size: 200% 100%;
  width: 0%;
  transition: width 0.5s ease-out;
  position: relative;
  overflow: hidden;
  border-radius: 10px;
}

.progress-shimmer {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

.boot-stats {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding: 0.8rem;
  background: rgba(0, 255, 159, 0.05);
  border-radius: 6px;
  border-left: 3px solid var(--accent);
}

#boot-percent {
  font-size: 1.1rem;
  font-weight: bold;
  color: var(--accent);
}

#boot-status {
  font-size: 0.85rem;
  opacity: 0.8;
  font-style: italic;
}

.boot-btn {
  padding: 0.9rem 3rem;
  background: transparent;
  border: 2px solid var(--accent);
  border-radius: 8px;
  color: var(--accent);
  font-family: inherit;
  font-size: 1rem;
  cursor: pointer;
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  text-transform: uppercase;
  letter-spacing: 2px;
  width: 100%;
  max-width: 400px;
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
}

.boot-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--accent);
  transition: left 0.4s;
  z-index: -1;
}

.boot-btn.visible {
  opacity: 1;
  animation: buttonPulse 0.8s ease-out;
}

.boot-btn:hover::before {
  left: 0;
}

.boot-btn:hover {
  color: var(--bg);
  box-shadow: 0 0 30px var(--accent);
  transform: scale(1.05);
}

@keyframes buttonPulse {
  0% {
    opacity: 0;
    transform: scale(0.8);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg);
}

::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--secondary);
  box-shadow: 0 0 10px var(--accent);
}

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  background: linear-gradient(180deg, var(--bg) 0%, rgba(0, 0, 0, 0) 100%);
  backdrop-filter: blur(20px);
  z-index: 1000;
  padding: 1rem;
  opacity: 0;
  transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
  border-bottom: 1px solid rgba(0, 255, 159, 0.1);
}

.navbar.visible {
  opacity: 1;
}

.nav-wrapper {
  display: flex;
  gap: 1.5rem;
  justify-content: space-between;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
}

.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  transition: all 0.3s ease;
  margin-left: -1rem;
}

.logo-img {
  height: 40px;
  width: auto;
  transition: all 0.3s ease;
  filter: drop-shadow(0 0 10px var(--accent));
}

.nav-logo:hover .logo-img {
  transform: scale(1.05);
  filter: drop-shadow(0 0 15px var(--accent));
}

.nav-items {
  display: flex;
  gap: 0.6rem;
  flex: 1;
  justify-content: flex-start;
  align-items: center;
  flex-wrap: nowrap;
  margin-left: 8rem;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1rem;
  color: var(--text);
  text-decoration: none;
  cursor: pointer;
  position: relative;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  border-radius: 50px;
  background: rgba(0, 255, 159, 0.05);
  border: 1.5px solid transparent;
  overflow: hidden;
  min-width: auto;
  justify-content: center;
  white-space: nowrap;
}

.nav-item::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: all 0.5s ease;
  z-index: 0;
}

.nav-item::after {
  content: "";
  position: absolute;
  inset: -2px;
  background: linear-gradient(135deg, var(--accent), var(--secondary));
  border-radius: 50px;
  opacity: 0;
  z-index: -1;
  transition: all 0.4s ease;
  filter: blur(10px);
}

.nav-icon {
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.nav-icon svg {
  width: 100%;
  height: 100%;
  stroke: currentColor;
  transition: all 0.4s ease;
}

.nav-text {
  position: relative;
  z-index: 1;
  transition: all 0.4s ease;
}

.nav-item:hover,
.nav-item.active {
  color: var(--bg);
  background: var(--accent);
  border-color: var(--accent);
  transform: translateY(-4px) scale(1.08);
  box-shadow:
    0 15px 40px rgba(0, 255, 159, 0.4),
    0 0 30px rgba(0, 255, 159, 0.2);
}

.nav-item:hover::before,
.nav-item.active::before {
  width: 120px;
  height: 120px;
  opacity: 0.5;
}

.nav-item:hover::after,
.nav-item.active::after {
  opacity: 0.3;
  inset: -1px;
}

.nav-item:hover svg,
.nav-item.active svg {
  transform: scale(1.2) rotate(5deg);
  filter: drop-shadow(0 0 8px rgba(0, 0, 0, 0.5));
}

.nav-item:active {
  transform: translateY(-2px) scale(1.05);
}

#three-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

#cursor-glow {
  position: fixed;
  top: 0;
  left: 0;
  width: 600px;
  height: 600px;
  background: conic-gradient(
    from 0deg,
    rgba(0, 255, 159, 0.2),
    rgba(0, 128, 255, 0.2),
    rgba(0, 255, 159, 0.2)
  );
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  transform: translate(-50%, -50%);
  mix-blend-mode: screen;
  filter: blur(80px);
  animation: rotateGlow 10s linear infinite;
  opacity: 0;
  transition: opacity 0.5s ease;
}

@keyframes rotateGlow {
  0% {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  100% {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

.section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6rem 2rem;
  z-index: 1;
}

.content-panel {
  background: var(--panel);
  backdrop-filter: blur(20px);
  border: 2px solid var(--border);
  border-radius: 15px;
  padding: 4rem;
  max-width: 1000px;
  width: 100%;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
  animation: panelFadeIn 0.6s ease-out;
}

@keyframes panelFadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.content-panel:hover {
  border-color: var(--accent);
  box-shadow: 0 12px 48px var(--accent);
}

h1 {
  font-size: 4rem;
  color: var(--accent);
  text-shadow: 0 0 30px var(--accent);
  margin-bottom: 1rem;
  letter-spacing: 3px;
  animation: headingGlow 2s ease-in-out infinite;
}

h2 {
  font-size: 2.5rem;
  color: var(--accent);
  text-shadow: 0 0 20px var(--accent);
  margin-bottom: 2rem;
  text-transform: uppercase;
  letter-spacing: 2px;
}

@keyframes headingGlow {
  0%,
  100% {
    text-shadow: 0 0 20px var(--accent);
  }
  50% {
    text-shadow:
      0 0 40px var(--accent),
      0 0 60px var(--secondary);
  }
}

.subtitle {
  font-size: 1.3rem;
  margin-bottom: 2rem;
  color: var(--secondary);
}

.description {
  font-size: 1rem;
  opacity: 0.85;
  line-height: 1.8;
  margin-bottom: 2rem;
}

.section-subtitle {
  margin-bottom: 2rem;
  opacity: 0.8;
  font-size: 0.95rem;
}

.glitch {
  position: relative;
  display: inline-block;
}

.glitch::before,
.glitch::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0.7;
}

.glitch::before {
  animation: glitch-1 0.3s infinite;
  color: var(--secondary);
  z-index: -1;
}

.glitch::after {
  animation: glitch-2 0.3s infinite;
  color: var(--accent);
  z-index: -2;
}

@keyframes glitch-1 {
  0%,
  100% {
    transform: translate(0);
  }
  33% {
    transform: translate(-2px, 2px);
  }
  66% {
    transform: translate(2px, -2px);
  }
}

@keyframes glitch-2 {
  0%,
  100% {
    transform: translate(0);
  }
  33% {
    transform: translate(2px, -2px);
  }
  66% {
    transform: translate(-2px, 2px);
  }
}

.cta-buttons {
  display: flex;
  gap: 1.5rem;
  margin-top: 3rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  padding: 1rem 2.5rem;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  border: 2px solid;
  border-radius: 50px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  font-family: inherit;
  display: inline-block;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  transition: left 0.4s;
  z-index: -1;
}

.btn-primary {
  color: var(--accent);
  border-color: var(--accent);
}

.btn-primary::before {
  background: var(--accent);
}

.btn-primary:hover {
  color: var(--bg);
  box-shadow: 0 0 30px var(--accent);
}

.btn-primary:hover::before {
  left: 0;
}

.btn-secondary {
  color: var(--secondary);
  border-color: var(--secondary);
}

.btn-secondary::before {
  background: var(--secondary);
}

.btn-secondary:hover {
  color: var(--bg);
  box-shadow: 0 0 30px var(--secondary);
}

.btn-secondary:hover::before {
  left: 0;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.about-content p {
  margin-bottom: 1.5rem;
  font-size: 1.05rem;
  line-height: 1.8;
  opacity: 0.9;
}

.highlight-box {
  background: rgba(0, 255, 159, 0.08);
  border-left: 4px solid var(--accent);
  padding: 2rem;
  border-radius: 8px;
  margin-top: 2rem;
}

.highlight-box strong {
  color: var(--accent);
  display: block;
  margin-bottom: 1rem;
}

.highlight-box ul {
  list-style: none;
  margin-left: 0;
}

.highlight-box li {
  padding: 0.5rem 0;
  padding-left: 1.5rem;
  position: relative;
}

.highlight-box li::before {
  content: "\25B8";
  position: absolute;
  left: 0;
  color: var(--accent);
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.skill-card {
  background: rgba(0, 0, 0, 0.3);
  border: 2px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  overflow: hidden;
}

.skill-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0;
  transition: all 0.6s;
}

.skill-card:hover::before {
  left: 100%;
  opacity: 0.3;
}

.skill-card:hover {
  transform: translateY(-12px) scale(1.05);
  border-color: var(--accent);
  box-shadow: 0 15px 40px var(--accent);
}

.skill-card h3 {
  color: var(--accent);
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

.skill-level-bar {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 0.5rem;
}

.skill-level-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--secondary));
  border-radius: 10px;
  transition: width 0.6s ease;
  box-shadow: 0 0 10px var(--accent);
}

.skill-percentage {
  font-size: 0.9rem;
  color: var(--secondary);
  font-weight: bold;
}

.timeline {
  position: relative;
  padding-left: 3rem;
  margin-top: 2rem;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 3px;
  height: 100%;
  background: linear-gradient(
    180deg,
    var(--accent),
    var(--secondary),
    var(--accent)
  );
  box-shadow: 0 0 15px var(--accent);
}

.timeline-item {
  position: relative;
  margin-bottom: 2.5rem;
  padding: 1.5rem;
  background: rgba(0, 0, 0, 0.3);
  border: 2px solid var(--border);
  border-radius: 10px;
  opacity: 0;
  transform: translateX(-100px) rotateY(90deg) scale(0.8);
  transition: all 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.timeline-item.visible {
  opacity: 1;
  transform: translateX(0) rotateY(0deg) scale(1);
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -3.3rem;
  top: 1.8rem;
  width: 20px;
  height: 20px;
  background: var(--accent);
  border: 3px solid var(--bg);
  border-radius: 50%;
  box-shadow: 0 0 20px var(--accent);
  animation: pulseNode 2s ease-in-out infinite;
}

@keyframes pulseNode {
  0%,
  100% {
    box-shadow: 0 0 15px var(--accent);
  }
  50% {
    box-shadow:
      0 0 30px var(--accent),
      0 0 40px var(--accent);
  }
}

.timeline-item.hovered,
.timeline-item:hover {
  border-color: var(--accent);
  box-shadow: 0 0 30px var(--accent);
  background: rgba(0, 255, 159, 0.1);
  transform: translateX(10px);
}

.timeline-item h3 {
  color: var(--accent);
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
}

.timeline-item p {
  opacity: 0.85;
  line-height: 1.6;
}

.terminal {
  background: rgba(0, 0, 0, 0.6);
  border: 2px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  font-family: "Courier New", monospace;
  height: 380px;        /* Fixed height — never grows */
  overflow: hidden;     /* Clips everything; only inner output scrolls */
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.5);
  word-wrap: break-word;
  display: flex;
  flex-direction: column;
}

.terminal-header {
  color: var(--accent);
  border-bottom: 1px solid rgba(0, 255, 159, 0.3);
  padding-bottom: 1rem;
  margin-bottom: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: bold;
  letter-spacing: 1px;
  flex-shrink: 0;  /* Header never shrinks */
}

.terminal-hint {
  font-size: 0.75rem;
  opacity: 0.6;
  font-weight: normal;
}

.terminal-output {
  margin-bottom: 1rem;
  flex: 1;              /* Takes all remaining height */
  overflow-y: auto;     /* Internal scroll */
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 255, 159, 0.3) transparent;
}

.terminal-output::-webkit-scrollbar {
  width: 4px;
}

.terminal-output::-webkit-scrollbar-track {
  background: transparent;
}

.terminal-output::-webkit-scrollbar-thumb {
  background: rgba(0, 255, 159, 0.3);
  border-radius: 2px;
}


.terminal-line {
  margin-bottom: 0.8rem;
  animation: fadeIn 0.3s ease-out;
  word-break: break-word;
}

.terminal-prompt {
  color: var(--accent);
  font-weight: bold;
}

.terminal-info {
  color: var(--secondary);
}

.terminal-input-line {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-top: 1px solid rgba(0, 255, 159, 0.2);
  padding-top: 0.8rem;
  flex-wrap: wrap;
  flex-shrink: 0;
}

.terminal-input {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text);
  font-family: inherit;
  font-size: 1rem;
  outline: none;
}

.terminal-input::placeholder {
  opacity: 0.5;
}

.cursor {
  display: inline-block;
  width: 10px;
  height: 18px;
  background: var(--accent);
  animation: blink 1s infinite;
  margin-left: -2px;
}

@keyframes blink {
  0%,
  49%,
  100% {
    opacity: 1;
  }
  50%,
  99% {
    opacity: 0;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
  perspective: 1000px;
}

.project-card {
  background: rgba(0, 0, 0, 0.3);
  border: 2px solid var(--border);
  border-radius: 15px;
  padding: 2rem;
  cursor: default;
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  transform-style: preserve-3d;
  position: relative;
  overflow: hidden;
  min-height: 300px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.project-card::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}

.project-card:hover::before {
  opacity: 0.1;
}

.project-card:hover {
  transform: translateY(-15px) rotateX(3deg) rotateY(3deg);
  border-color: var(--accent);
  box-shadow: 0 25px 50px var(--accent);
}

.project-card h3 {
  color: var(--accent);
  margin-bottom: 1rem;
  font-size: 1.5rem;
  text-shadow: 0 0 10px var(--accent);
}

.project-card p {
  line-height: 1.7;
  margin-bottom: 1rem;
  opacity: 0.85;
}

.project-tech {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.tech-tag {
  background: rgba(0, 255, 159, 0.1);
  border: 1px solid var(--accent);
  color: var(--accent);
  padding: 0.35rem 0.8rem;
  border-radius: 20px;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.project-actions {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-top: auto;
  padding-top: 1.2rem;
}

.project-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1.1rem;
  border-radius: 8px;
  border: 1.5px solid var(--accent);
  background: transparent;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s;
  letter-spacing: 0.3px;
}

.project-btn:hover {
  background: var(--accent);
  color: var(--bg);
  box-shadow: 0 4px 16px rgba(0, 255, 159, 0.25);
}

.contact-container {
  margin-top: 2rem;
}

.contact-info {
  text-align: center;
}

.contact-info p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.contact-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1rem 2rem;
  border: 2px solid var(--border);
  border-radius: 50px;
  color: var(--text);
  text-decoration: none;
  transition: all 0.3s;
  background: rgba(0, 255, 159, 0.05);
}

.contact-link:hover {
  background: var(--accent);
  color: var(--bg);
  box-shadow: 0 0 20px var(--accent);
}

.contact-link .icon {
  font-size: 1.3rem;
}

.social-icon {
  width: 24px;
  height: 24px;
  display: inline-block;
  transition: all 0.3s ease;
}

.github-link .social-icon {
  fill: #00ff9f;
}

.linkedin-link .social-icon {
  fill: #0080ff;
}

.email-link .social-icon {
  fill: #ff6b6b;
}

.whatsapp-link .social-icon {
  fill: #25d366;
}

.reddit-link .social-icon {
  fill: #ff4500;
}

.x-link .social-icon {
  fill: #e0e0e0;
}

.contact-link:hover .social-icon {
  fill: var(--bg);
}

/* ============================================
   CONTACT FORM
   ============================================ */
.contact-form-wrapper {
  margin-top: 3rem;
  padding-top: 2.5rem;
  border-top: 1px solid rgba(0, 255, 159, 0.2);
}

.form-heading {
  font-size: 1.3rem;
  color: var(--accent);
  margin: 0 0 0.4rem;
  letter-spacing: 1px;
}

.form-subheading {
  color: var(--text);
  opacity: 0.7;
  font-size: 0.9rem;
  margin: 0 0 1.8rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 1.2rem;
}

.form-group label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--accent);
  margin-bottom: 0.5rem;
  font-family: 'Courier New', monospace;
}

.form-group input,
.form-group textarea {
  background: rgba(0, 255, 159, 0.04);
  border: 1.5px solid rgba(0, 255, 159, 0.25);
  border-radius: 8px;
  padding: 0.85rem 1rem;
  color: var(--text);
  font-size: 0.95rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.3s, box-shadow 0.3s, background 0.3s;
  resize: vertical;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(224, 224, 224, 0.35);
  font-size: 0.9rem;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  background: rgba(0, 255, 159, 0.06);
  box-shadow: 0 0 0 3px rgba(0, 255, 159, 0.12), 0 0 15px rgba(0, 255, 159, 0.08);
}

.form-submit-btn {
  width: 100%;
  padding: 0.95rem 1.5rem;
  background: transparent;
  border: 2px solid var(--accent);
  border-radius: 50px;
  color: var(--accent);
  font-size: 1rem;
  font-family: inherit;
  font-weight: 700;
  letter-spacing: 1px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.35s ease;
  margin-top: 0.5rem;
}

.form-submit-btn::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: var(--accent);
  transition: left 0.35s ease;
  z-index: 0;
}

.form-submit-btn:hover::before {
  left: 0;
}

.form-submit-btn span {
  position: relative;
  z-index: 1;
}

.form-submit-btn:hover {
  color: var(--bg);
  box-shadow: 0 0 25px rgba(0, 255, 159, 0.4);
}

.form-submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.form-status-msg {
  margin-top: 1rem;
  padding: 0.8rem 1rem;
  border-radius: 8px;
  font-size: 0.9rem;
  text-align: center;
  font-weight: 600;
  display: block;
  transition: opacity 0.3s;
}

.form-status-success {
  background: rgba(0, 255, 159, 0.08);
  border: 1px solid rgba(0, 255, 159, 0.35);
  color: var(--accent);
}

.form-status-error {
  background: rgba(255, 0, 64, 0.08);
  border: 1px solid rgba(255, 0, 64, 0.35);
  color: #ff4455;
}

.form-status-warn {
  background: rgba(255, 165, 0, 0.08);
  border: 1px solid rgba(255, 165, 0, 0.35);
  color: #ffa500;
}

/* Mobile form adjustments */
@media (max-width: 768px) {
  .contact-form-wrapper {
    margin-top: 2rem;
    padding-top: 2rem;
  }

  .form-group input,
  .form-group textarea {
    font-size: 16px; /* Prevents iOS zoom on focus */
  }
}

/* Social links footer — below form */
.contact-social-footer {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(0, 255, 159, 0.12);
}

.contact-social-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text);
  opacity: 0.45;
  margin: 0 0 1.2rem;
  font-family: 'Courier New', monospace;
}



.move-to-top {
  position: fixed;
  bottom: 30px;
  right: 10px;
  padding: 1rem 1.5rem;
  background: var(--panel);
  border: 2px solid var(--border);
  border-radius: 50px;
  color: var(--text);
  cursor: pointer;
  font-family: inherit;
  font-weight: bold;
  z-index: 999;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  pointer-events: none;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.85rem;
}

.move-to-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}

.move-to-top:hover {
  border-color: var(--accent);
  transform: translateY(-5px);
  box-shadow: 0 0 25px var(--accent);
}

@media (max-width: 1280px) and (min-width: 750px) {
  .nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 0 1.5rem;
  }

  .nav-logo {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    margin-left: 0;
  }

  .logo-img {
    height: 28px;
    width: auto;
  }

  .nav-items {
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 1;
    margin-left: 0;
    gap: 2.4rem;
  }

  .nav-item {
    padding: 0.5rem;
    min-width: 48px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 0;
    background: rgba(0, 255, 159, 0.08);
    border-color: rgba(0, 255, 159, 0.3);
  }

  .nav-text {
    display: none;
  }

  .nav-icon {
    width: 22px;
    height: 22px;
  }

  .nav-item::before {
    width: 0;
    height: 0;
  }

  .nav-item::after {
    display: none;
  }

  .nav-item:hover::before,
  .nav-item.active::before {
    width: 0;
    height: 0;
  }

  .nav-item:hover,
  .nav-item.active {
    background: var(--accent);
    color: var(--bg);
    box-shadow: 0 0 15px rgba(0, 255, 159, 0.3);
    border-color: var(--accent);
  }
}

@media (max-width: 1000px) and (min-width: 750px) {
  .nav-items {
    gap: 1rem;
  }
}

@media (max-width: 1024px) {
  h1 {
    font-size: 3rem;
  }
  h2 {
    font-size: 2rem;
  }
  .content-panel {
    padding: 2.5rem;
  }
  .projects-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

@media (max-width: 750px) {
  h1 {
    font-size: 2.5rem;
    letter-spacing: 1.5px;
    text-align: center;
  }
  h2 {
    font-size: 1.8rem;
    letter-spacing: 1px;
    text-align: center;
  }

  .section {
    padding: 4rem 1rem 7rem 1rem;
    min-height: auto;
  }

  body {
    padding-bottom: 70px;
  }

  .content-panel {
    width: 95%;
    margin: 0 auto;
    padding: 2rem 1.5rem;
    border-radius: 12px;
    max-width: none;
  }

  .navbar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    top: auto;
    width: 100%;
    max-width: 100%;
    background: var(--panel);
    backdrop-filter: blur(20px);
    padding: 0;
    border-bottom: none;
    border-top: 1px solid rgba(0, 255, 159, 0.2);
    box-shadow: 0 -5px 25px rgba(0, 0, 0, 0.3);
    border-radius: 0;
    height: 70px;
    z-index: 1000;
  }

  .nav-wrapper {
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 0.5rem;
    height: 70px;
    margin: 0;
    gap: 0;
  }

  .nav-logo {
    display: none;
  }

  .nav-items {
    display: flex;
    justify-content: space-around;
    align-items: center;
    width: 100%;
    margin: 0;
    gap: 0.2rem;
    flex: none;
  }

  .nav-item {
    flex: 1;
    padding: 0.4rem 0.3rem;
    margin: 0;
    font-size: 0.65rem;
    min-width: 0;
    justify-content: center;
    background: transparent;
    border: none;
    border-radius: 8px;
    height: 60px;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
  }

  .nav-icon {
    width: 20px;
    height: 20px;
  }

  .nav-text {
    display: block;
    font-size: 0.6rem;
    white-space: normal;
    text-align: center;
    line-height: 1;
  }

  .nav-item:hover,
  .nav-item.active {
    background: var(--accent);
    color: var(--bg);
  }

  body {
    padding-bottom: 70px;
  }

  .section {
    padding: 2.5rem 0.75rem 7rem 0.75rem;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .about-content p {
    font-size: 0.95rem;
    text-align: center;
    line-height: 1.7;
    margin-bottom: 1rem;
  }

  .highlight-box {
    padding: 1.5rem;
    border-left-width: 3px;
  }

  .highlight-box strong {
    text-align: center;
  }

  .skills-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    width: 95%;
    margin: 1.5rem auto 0;
  }

  .skill-card {
    padding: 1.5rem 1rem;
    text-align: center;
  }

  .skill-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.8rem;
  }

  .skill-percentage {
    font-size: 0.8rem;
  }

  .timeline {
    padding-left: 2rem;
    width: 95%;
    margin: 1.5rem auto 0;
  }

  .timeline::before {
    left: -0.5rem;
  }

  .timeline-item {
    padding: 1.2rem;
    margin-bottom: 1.5rem;
    min-height: auto;
  }

  .timeline-item::before {
    left: -2.5rem;
    top: 1.5rem;
    width: 16px;
    height: 16px;
  }

  .timeline-item h3 {
    font-size: 1.1rem;
    text-align: center;
  }

  .timeline-item p {
    font-size: 0.95rem;
    text-align: center;
    line-height: 1.6;
  }

  .terminal {
    max-height: 300px;
    padding: 1.2rem;
    width: 95%;
    margin: 1.5rem auto 0;
  }

  .terminal-header {
    font-size: 0.9rem;
  }

  .terminal-line {
    font-size: 0.85rem;
  }

  .terminal-hint {
    font-size: 0.65rem;
  }

  .projects-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    width: 95%;
    margin: 1.5rem auto 0;
  }

  .project-card {
    padding: 1.5rem;
    min-height: auto;
    border-radius: 12px;
    text-align: center;
  }

  .project-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    text-align: center;
  }

  .project-card p {
    font-size: 0.95rem;
    text-align: center;
    margin-bottom: 1rem;
  }

  .project-tech {
    justify-content: center;
    gap: 0.4rem;
  }

  .tech-tag {
    font-size: 0.65rem;
    padding: 0.3rem 0.6rem;
  }

  .contact-info p {
    font-size: 1rem;
    text-align: center;
    margin-bottom: 1.5rem;
  }

  .contact-links {
    gap: 1rem;
    width: 95%;
    margin: 1.5rem auto 0;
  }

  .contact-link {
    min-width: 140px;
    padding: 0.8rem 1rem;
    font-size: 0.85rem;
    justify-content: center;
    text-align: center;
  }

  .contact-link .icon {
    font-size: 1.1rem;
  }

  .cta-buttons {
    flex-direction: column;
    gap: 1rem;
    width: 95%;
    margin: 1.5rem auto 0;
  }

  .btn {
    width: 100%;
    padding: 0.9rem 1.5rem;
    font-size: 0.9rem;
    text-align: center;
  }

  .description {
    font-size: 0.95rem;
    text-align: center;
    line-height: 1.7;
  }

  .subtitle {
    font-size: 1.1rem;
    text-align: center;
  }

  .section-subtitle {
    font-size: 0.9rem;
    text-align: center;
  }

  /* Restore actual bottom navbar on mobile */
  .navbar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    top: auto;
    width: 100%;
    max-width: 100%;
    background: var(--panel);
    backdrop-filter: blur(20px);
    padding: 0;
    border-top: 1px solid rgba(0, 255, 159, 0.2);
    border-radius: 0;
    height: 70px;
    z-index: 1000;
  }

  .nav-wrapper {
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 0.5rem;
    height: 70px;
    margin: 0;
    gap: 0;
    position: relative;
  }

  .nav-logo {
    display: none;
  }

  .nav-items {
    display: flex;
    justify-content: space-around;
    align-items: center;
    width: 100%;
    margin: 0;
    gap: 0;
    flex: none;
    position: relative;
    height: 60px;
    gap: 0.3rem;
  }

  .nav-item {
    flex: 1;
    padding: 0.4rem 0.3rem;
    margin: 0;
    font-size: 0.65rem;
    min-width: 0;
    justify-content: center;
    background: transparent;
    border: none;
    border-radius: 50px;
    height: 60px;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    position: relative;
    z-index: 2;
    transition: color 0.3s ease;
    background: rgba(0, 255, 159, 0.05);
  }

  .nav-icon {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
  }

  .nav-text {
    display: block;
    font-size: 0.6rem;
    white-space: normal;
    text-align: center;
    line-height: 1;
    opacity: 1;
    transform: scale(1);
    transition: all 0.3s ease;
  }

  .nav-item.active {
    background: var(--accent);
    color: var(--bg);
    transform: scale(1);
  }

  @media (hover: hover) {
    .nav-item:hover {
      background: transparent;
      color: var(--bg);
      transform: scale(1);
    }
  }

  .nav-item.active .nav-text {
    opacity: 1;
    transform: scale(1);
  }

  .nav-item.active .nav-icon {
    color: var(--bg);
  }

  .magic-indicator {
    position: absolute;
    bottom: 0;
    left: 0;
    width: calc(100% / 8);
    height: 4px;
    background: linear-gradient(90deg, var(--accent), var(--secondary));
    border-radius: 2px;
    transition: left 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 1;
    box-shadow: 0 -2px 15px var(--accent);
    display: none;
  }

  .nav-item:nth-child(1).active ~ .magic-indicator {
    left: calc(100% * 0 / 8);
  }

  .nav-item:nth-child(2).active ~ .magic-indicator {
    left: calc(100% * 1 / 8);
  }

  .nav-item:nth-child(3).active ~ .magic-indicator {
    left: calc(100% * 2 / 8);
  }

  .nav-item:nth-child(4).active ~ .magic-indicator {
    left: calc(100% * 3 / 8);
  }

  .nav-item:nth-child(5).active ~ .magic-indicator {
    left: calc(100% * 4 / 8);
  }

  .nav-item:nth-child(6).active ~ .magic-indicator {
    left: calc(100% * 5 / 8);
  }

  .nav-item:nth-child(7).active ~ .magic-indicator {
    left: calc(100% * 6 / 8);
  }

  .nav-item:nth-child(8).active ~ .magic-indicator {
    left: calc(100% * 7 / 8);
  }
}

@media (max-width: 480px) {
  body {
    padding-bottom: 70px;
  }

  h1 {
    font-size: 1.8rem;
    letter-spacing: 1px;
    margin-bottom: 1rem;
  }

  .move-to-top {
    bottom: 80px;
  }

  h2 {
    font-size: 1.4rem;
    letter-spacing: 0.5px;
    margin-bottom: 1.5rem;
  }

  .section {
    padding: 2.5rem 0.75rem 7rem 0.75rem;
    min-height: auto;
  }

  .content-panel {
    width: 95%;
    margin: 0 auto;
    padding: 1.5rem 1rem;
    border-radius: 10px;
    max-width: none;
  }

  .subtitle {
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
  }

  .description {
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    line-height: 1.6;
  }

  .skills-grid {
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }

  .skill-card {
    padding: 1.2rem 0.8rem;
  }

  .skill-card h3 {
    font-size: 1rem;
  }

  .skill-level-bar {
    height: 4px;
    margin-bottom: 0.4rem;
  }

  .timeline {
    padding-left: 1.5rem;
  }

  .timeline::before {
    left: -0.8rem;
    width: 2px;
  }

  .timeline-item {
    padding: 1rem;
    margin-bottom: 1.2rem;
  }

  .timeline-item::before {
    left: -2rem;
    top: 1.2rem;
    width: 14px;
    height: 14px;
  }

  .timeline-item h3 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
  }

  .timeline-item p {
    font-size: 0.9rem;
  }

  .projects-grid {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }

  .project-card {
    padding: 1.2rem;
    min-height: auto;
  }

  .project-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.8rem;
  }

  .project-card p {
    font-size: 0.9rem;
    margin-bottom: 1rem;
  }

  .project-tech {
    gap: 0.3rem;
  }

  .tech-tag {
    font-size: 0.6rem;
    padding: 0.25rem 0.5rem;
  }

  .terminal {
    max-height: 350px;
    padding: 1rem 0.8rem;
  }

  .terminal-line {
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
    line-height: 1.4;
  }

  .cta-buttons {
    gap: 0.8rem;
  }

  .btn {
    padding: 0.8rem 1.2rem;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
  }

  .contact-links {
    gap: 0.8rem;
  }

  .contact-link {
    padding: 0.7rem 0.8rem;
    font-size: 0.8rem;
  }

  .highlight-box {
    padding: 1.2rem;
    margin-top: 1.5rem;
  }

  .highlight-box li {
    padding: 0.4rem 0;
    padding-left: 1.2rem;
    font-size: 0.9rem;
  }

  .about-content p {
    font-size: 0.9rem;
    margin-bottom: 0.8rem;
  }

  .move-to-top {
    bottom: 80px;
    right: 15px;
    width: 40px;
    height: 40px;
    font-size: 2em;
  }
}

@media (max-width: 750px) {
  .move-to-top {
    border-radius: 50%;
    width: 44px;
    height: 44px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    bottom: 80px;
  }

  .move-to-top .top-text {
    display: none;
  }

  .move-to-top .top-icon {
    font-size: 1.5rem;
    line-height: 1;
  }
}

@media (max-width: 500px) {
  .nav-item {
    border-radius: 50%;
    width: 44px;
    height: 44px;
    min-width: 44px;
    padding: 0;
    justify-content: center;
    align-items: center;
    flex: 0 0 auto;
  }

  .nav-text {
    display: none;
  }

  .nav-icon {
    width: 24px;
    height: 24px;
    margin: 0;
  }

  .nav-items {
    justify-content: space-evenly;
  }
}

@media (max-width: 430px) {
  .nav-item {
    width: 38px;
    height: 38px;
    min-width: 38px;
  }

  .nav-icon {
    width: 20px;
    height: 20px;
  }
}

@media (max-width: 360px) {
  h1 {
    font-size: 1.5rem;
    letter-spacing: 0px;
  }

  h2 {
    font-size: 1.2rem;
  }

  .section {
    padding: 2rem 0.5rem 7rem 0.5rem;
  }

  .content-panel {
    padding: 1.2rem 0.8rem;
  }

  .navbar {
    height: 65px;
  }

  .nav-wrapper {
    height: 55px; /* Reduced from 65px */
    padding: 0;
  }

  .nav-item {
    height: 35px;
    width: 35px;
    min-width: 35px;
    padding: 0;
    border-radius: 50%;
  }

  .nav-text {
    display: none;
  }

  .nav-icon {
    width: 18px;
    height: 18px;
  }

  .subtitle {
    font-size: 0.9rem;
  }

  .description {
    font-size: 0.85rem;
  }

  .btn {
    padding: 0.7rem 1rem;
    font-size: 0.8rem;
  }

  .cta-buttons {
    gap: 0.6rem;
  }

  .projects-grid {
    gap: 1rem;
  }

  .project-card h3 {
    font-size: 1rem;
  }

  .terminal {
    padding: 0.8rem;
    max-height: 200px;
  }
}

@media (max-width: 540px) {
  .terminal-hint {
    display: none;
  }

  .terminal-info {
    display: none;
  }

  .terminal-output .terminal-line:first-child {
    font-size: 0;
  }

  .terminal-output .terminal-line:first-child .terminal-prompt {
    font-size: 0.85rem;
  }
}

/* ============================================
   MOBILE PERFORMANCE OPTIMIZATIONS (<768px)
   ============================================ */

/* Scroll-reveal keyframes (transform + opacity only) */
@keyframes slideInFromLeft {
  from {
    opacity: 0;
    transform: translateX(-60px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInFromRight {
  from {
    opacity: 0;
    transform: translateX(60px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeSlideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Scroll-reveal base states */
.scroll-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.6s ease-out,
    transform 0.6s ease-out;
  will-change: transform, opacity;
}

.scroll-reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Slide-in card states */
.slide-card {
  opacity: 0;
  will-change: transform, opacity;
  transition:
    opacity 0.6s ease-out,
    transform 0.6s ease-out;
}

.slide-card.slide-left {
  transform: translateX(-60px);
}

.slide-card.slide-right {
  transform: translateX(60px);
}

.slide-card.revealed {
  opacity: 1;
  transform: translateX(0);
}

/* Final section responsive */
.final-quote {
  font-size: 3rem;
  margin-bottom: 1.5rem;
}

.final-desc {
  font-size: 1.2rem;
  opacity: 0.8;
  line-height: 1.8;
}

.final-progress-text {
  margin-top: 1rem;
  color: var(--accent);
}

/* Footer responsive classes */
.footer-copyright {
  font-size: 1rem;
  margin-bottom: 0.7rem;
}

.footer-legal {
  font-size: 0.9rem;
  opacity: 0.8;
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Focus-visible for keyboard accessibility */
.nav-item:focus-visible,
.btn:focus-visible,
.contact-link:focus-visible,
.boot-btn:focus-visible,
#open-chat:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

@media (max-width: 768px) {
  /* === Disable heavy animations === */
  .glitch::before,
  .glitch::after {
    animation: none !important;
    display: none;
  }

  h1 {
    animation: none !important;
  }

  .timeline-item::before {
    animation: none !important;
    box-shadow: 0 0 10px var(--accent);
  }

  #cursor-glow {
    display: none !important;
  }

  #three-canvas {
    display: none !important;
  }

  /* === Remove backdrop-filter for GPU savings === */
  .navbar {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .content-panel {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  /* === Simplify timeline reveal (transform+opacity only) === */
  .timeline-item {
    transform: translateY(30px);
    opacity: 0;
    transition:
      opacity 0.6s ease-out,
      transform 0.6s ease-out;
  }

  .timeline-item.visible {
    transform: translateY(0);
    opacity: 1;
  }

  .timeline-item.hovered,
  .timeline-item:hover {
    transform: translateY(-4px);
    box-shadow: none;
    border-color: var(--accent);
    background: rgba(0, 255, 159, 0.08);
  }

  /* === Simplify card hover states === */
  .skill-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 20px rgba(0, 255, 159, 0.15);
  }

  .project-card {
    transform-style: flat;
  }

  .projects-grid {
    perspective: none;
  }

  .project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 255, 159, 0.15);
  }

  .project-card::before {
    display: none;
  }

  .content-panel:hover {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    border-color: var(--border);
  }

  .contact-link:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 15px rgba(0, 255, 159, 0.2);
  }

  /* === Final section responsive === */
  .final-quote {
    font-size: 1.6rem !important;
    line-height: 1.3;
  }

  .final-desc {
    font-size: 0.95rem !important;
  }

  /* === Footer responsive === */
  .footer-copyright {
    font-size: 0.9rem;
  }

  .footer-legal {
    font-size: 0.8rem;
    padding: 0 0.5rem;
  }
}

/* ============================================
   ACCESSIBILITY: prefers-reduced-motion
   ============================================ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }

  .scroll-reveal,
  .slide-card {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .timeline-item {
    opacity: 1;
    transform: none;
  }
}
