/* ===== CSS VARIABLES ===== */
:root {
  --bg: #0a0a0a;
  --bg-secondary: #111111;
  --glass-bg: rgba(255, 255, 255, 0.03);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-highlight: rgba(255, 255, 255, 0.1);
  --text-main: #ffffff;
  --text-muted: #94a3b8;
  --text-dim: #475569;
  --accent: #10b981;
  --accent-bright: #1dd1a1;
  --accent-glow: rgba(16, 185, 129, 0.4);
  --accent-dim: rgba(16, 185, 129, 0.1);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --max-width: 1200px;
  --nav-height: 80px;
  --transition: 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
  --transition-spring: 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

[data-theme="light"] {
  --bg: #ffffff;
  --bg-secondary: #f8fafc;
  --glass-bg: rgba(0, 0, 0, 0.03);
  --glass-border: rgba(0, 0, 0, 0.06);
  --glass-highlight: rgba(0, 0, 0, 0.05);
  --text-main: #0f172a;
  --text-muted: #64748b;
  --text-dim: #cbd5e1;
  --accent: #059669;
  --accent-glow: rgba(5, 150, 105, 0.2);
}

/* ===== RESET & BASE ===== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Share Tech Mono', sans-serif;
  background: var(--bg);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'VT323', monospace;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-main);
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

button {
  font-family: inherit;
}

main {
  display: block;
}

/* ===== KEYFRAME ANIMATIONS ===== */
@keyframes reveal-up {
  from {
    opacity: 0;
    transform: translateY(60px);
    filter: blur(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

@keyframes reveal-left {
  from {
    opacity: 0;
    transform: translateX(-60px);
    filter: blur(8px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
    filter: blur(0);
  }
}

@keyframes reveal-right {
  from {
    opacity: 0;
    transform: translateX(60px);
    filter: blur(8px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
    filter: blur(0);
  }
}

@keyframes stagger-in {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes float-subtle {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
}

@keyframes shimmer {
  0% { background-position: -1000px 0; }
  100% { background-position: 1000px 0; }
}

@keyframes glitch-anim-1 {
  0% { clip: rect(30px, 9999px, 36px, 0); }
  20% { clip: rect(80px, 9999px, 90px, 0); }
  40% { clip: rect(10px, 9999px, 50px, 0); }
  60% { clip: rect(40px, 9999px, 60px, 0); }
  80% { clip: rect(15px, 9999px, 25px, 0); }
  100% { clip: rect(60px, 9999px, 70px, 0); }
}

@keyframes glitch-anim-2 {
  0% { clip: rect(15px, 9999px, 20px, 0); }
  20% { clip: rect(70px, 9999px, 80px, 0); }
  40% { clip: rect(25px, 9999px, 30px, 0); }
  60% { clip: rect(90px, 9999px, 95px, 0); }
  80% { clip: rect(40px, 9999px, 45px, 0); }
  100% { clip: rect(5px, 9999px, 15px, 0); }
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

@keyframes pulse-glow {
  from {
    opacity: 0.3;
    transform: scale(0.9);
  }
  to {
    opacity: 0.6;
    transform: scale(1.1);
  }
}

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

@keyframes scan {
  0% { background-position: 0 0, 0 0, 0 0; }
  100% { background-position: 0 0, 0 -100%, 0 0; }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes modal-slide-in {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(30px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@keyframes float {
  0%, 100% { transform: translateY(0) translateZ(30px); }
  50% { transform: translateY(-15px) translateZ(30px); }
}

/* ===== LAYOUT & STRUCTURE ===== */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

section {
  padding: 6rem 0;
  position: relative;
}

#bg-fixed-gradient {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    linear-gradient(to bottom, transparent, var(--bg)),
    linear-gradient(to right, var(--accent-dim) 1px, transparent 1px),
    linear-gradient(to bottom, var(--accent-dim) 1px, transparent 1px);
  background-size: 100% 100%, 50px 50px, 50px 50px;
  animation: scan 10s linear infinite;
  z-index: -2;
}

/* ===== NAVBAR ===== */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  z-index: 100;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--glass-border);
  background: rgba(10, 10, 10, 0.6);
  display: flex;
  align-items: center;
}

.nav-inner {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand {
  font-family: 'Fira Code', monospace;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.5px;
}

.brace {
  color: var(--accent);
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  align-items: center;
  background: var(--glass-bg);
  padding: 0.5rem 1.5rem;
  border-radius: 50px;
  border: 1px solid var(--glass-border);
}

.nav-num {
  color: var(--accent);
  font-family: 'Fira Code', monospace;
  font-size: 0.8rem;
  margin-right: 4px;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
}

.nav-links a:hover {
  color: var(--text-main);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.toggle-btn, .burger {
  background: none;
  border: none;
  color: var(--text-main);
  cursor: pointer;
  padding: 5px;
}

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 30px;
}

.burger span {
  height: 2px;
  width: 100%;
  background: var(--text-main);
  transition: 0.3s;
}

.burger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.burger.active span:nth-child(2) {
  opacity: 0;
}

.burger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ===== HERO SECTION ===== */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-height);
  overflow: hidden;
}

.hero-container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 2;
  width: 100%;
}

.hero-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 50px;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.15) 0%, rgba(16, 185, 129, 0.05) 100%);
  border: 1.5px solid rgba(16, 185, 129, 0.3);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--accent);
  margin-bottom: 1.5rem;
  font-family: 'Fira Code', monospace;
  animation: reveal-up 0.6s ease-out;
  transition: all var(--transition-spring);
}

.status-badge:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(16, 185, 129, 0.15);
}

.status-dot {
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--accent), inset 0 0 6px rgba(16, 185, 129, 0.5);
  animation: blink 2s infinite;
}

.hero-text h1 {
  font-size: clamp(3rem, 5vw, 4.5rem);
  line-height: 1.1;
  margin-bottom: 1.5rem;
  animation: reveal-up 0.8s ease-out;
  color: var(--text-main);
  letter-spacing: -1px;
}

.gradient-text {
  background: linear-gradient(135deg, var(--accent-bright) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
  animation: reveal-up 0.8s ease-out 0.1s backwards;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 500px;
  margin-bottom: 2.5rem;
  animation: reveal-up 0.8s ease-out 0.2s backwards;
  line-height: 1.7;
  transition: all 0.3s ease;
}

.hero-subtitle:hover {
  color: var(--text-main);
}

.highlight {
  color: var(--text-main);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-underline-offset: 4px;
}

.hero-actions {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 3rem;
  animation: reveal-up 0.8s ease-out 0.3s backwards;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2.2rem;
  border-radius: 8px;
  font-weight: 600;
  transition: all var(--transition-spring);
  cursor: pointer;
  border: 1px solid transparent;
  gap: 8px;
  font-size: 1rem;
  position: relative;
  overflow: hidden;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.1) 50%, transparent 70%);
  transform: translateX(-100%);
  transition: transform 0.6s ease;
}

.btn:hover::before {
  transform: translateX(100%);
}

.btn-primary {
  background: var(--accent);
  color: #000;
  box-shadow: 0 0 20px var(--accent-glow);
}

.btn-primary:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 40px var(--accent-glow), 0 10px 30px rgba(16, 185, 129, 0.2);
}

.btn-secondary {
  background: linear-gradient(135deg, var(--glass-bg) 0%, rgba(10, 10, 10, 0.5) 100%);
  border-color: var(--glass-border);
  color: var(--text-main);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: var(--glass-highlight);
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(16, 185, 129, 0.1);
}

.big-btn {
  padding: 1.2rem 3.5rem;
  font-size: 1.15rem;
}

.tech-stack-mini {
  display: flex;
  gap: 1.5rem;
  color: var(--text-dim);
  font-family: 'Fira Code', monospace;
  font-size: 0.9rem;
  align-items: center;
  animation: reveal-up 0.8s ease-out 0.4s backwards;
  flex-wrap: wrap;
}

.tech-stack-mini span {
  transition: all 0.3s ease;
  cursor: default;
}

.tech-stack-mini span:nth-child(odd):hover {
  color: var(--accent);
  transform: scale(1.1);
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  perspective: 1000px;
}

.glow-backdrop {
  position: absolute;
  inset: -20px;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  filter: blur(40px);
  opacity: 0.5;
  z-index: 0;
  animation: pulse-glow 4s ease-in-out infinite alternate;
}

.image-card {
  position: relative;
  z-index: 1;
  width: 380px;
  height: 480px;
  border-radius: 16px;
  overflow: hidden;
  border: 1.5px solid var(--glass-border);
  background: var(--glass-bg);
  box-shadow: 20px 20px 60px rgba(0, 0, 0, 0.5), 0 0 40px rgba(16, 185, 129, 0.05);
  transition: all 0.5s var(--transition-spring);
  animation: reveal-right 0.8s ease-out;
}

.image-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 30%, rgba(16, 185, 129, 0.1) 50%, transparent 70%);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 10;
  pointer-events: none;
}

.image-card:hover::before {
  opacity: 1;
  animation: shimmer 2s linear infinite;
}

.image-card:hover {
  border-color: var(--accent);
  box-shadow: 20px 20px 60px rgba(0, 0, 0, 0.5), 0 0 60px rgba(16, 185, 129, 0.15), inset 0 0 30px rgba(16, 185, 129, 0.05);
  transform: translateY(-8px);
}

.profile-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(20%) brightness(1);
  transition: all 0.6s var(--transition-spring);
}

.image-card:hover .profile-img {
  filter: grayscale(0%) brightness(1.1);
  transform: scale(1.08) rotate(1deg);
}

.float-tag {
  position: absolute;
  padding: 12px 18px;
  background: linear-gradient(135deg, rgba(15, 15, 15, 0.95) 0%, rgba(10, 10, 10, 0.9) 100%);
  border: 1.5px solid var(--glass-border);
  border-radius: 12px;
  color: var(--text-main);
  font-size: 0.9rem;
  font-weight: 600;
  z-index: 3;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), 0 0 20px rgba(16, 185, 129, 0.05);
  display: flex;
  align-items: center;
  gap: 8px;
  backdrop-filter: blur(6px);
  transform: translateZ(30px);
  transition: all var(--transition-spring);
}

.float-tag::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(16, 185, 129, 0.1) 0%, transparent 70%);
  border-radius: 12px;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.float-tag:hover::before {
  opacity: 1;
}

.float-tag:hover {
  border-color: var(--accent);
  box-shadow: 0 15px 40px rgba(16, 185, 129, 0.2), 0 0 30px rgba(16, 185, 129, 0.1);
  transform: translateZ(40px) scale(1.05);
}

.tag-1 {
  top: 10%;
  right: -20px;
  animation: float 6s ease-in-out infinite, reveal-right 0.8s ease-out;
}

.tag-2 {
  bottom: 15%;
  left: -30px;
  animation: float 6s ease-in-out infinite 1s, reveal-left 0.8s ease-out;
}

.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0.6;
  font-size: 0.8rem;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.mouse {
  width: 26px;
  height: 42px;
  border: 2px solid var(--text-muted);
  border-radius: 20px;
  position: relative;
}

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

/* ===== GLITCH EFFECT ===== */
.glitch {
  position: relative;
  color: var(--text-main);
}

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

.glitch::before {
  left: 2px;
  text-shadow: -1px 0 #ff00c1;
  clip: rect(44px, 450px, 56px, 0);
  animation: glitch-anim-1 5s infinite linear alternate-reverse;
}

.glitch::after {
  left: -2px;
  text-shadow: -1px 0 #00fff9;
  clip: rect(44px, 450px, 56px, 0);
  animation: glitch-anim-2 5s infinite linear alternate-reverse;
}

/* ===== ABOUT SECTION ===== */
.section-label {
  display: block;
  color: var(--accent);
  font-family: 'Fira Code', monospace;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  animation: reveal-left 0.6s ease-out;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
}

.section-header {
  text-align: center;
  animation: reveal-up 0.6s ease-out;
}

.section-header h2 {
  font-size: clamp(2rem, 4vw, 3.5rem);
  margin-bottom: 1.5rem;
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}

.about-text {
  animation: reveal-left 0.8s ease-out;
}

.about-skills {
  animation: reveal-right 0.8s ease-out;
}

.about-text p {
  color: var(--text-muted);
  margin-bottom: 1.3rem;
  line-height: 1.8;
  transition: all 0.3s ease;
}

.about-text p:hover {
  color: var(--text-main);
  transform: translateX(5px);
}

.text-accent {
  color: var(--accent-bright);
  font-weight: 600;
}

.lead {
  font-size: 1.2rem;
  color: var(--text-main);
  margin-bottom: 1.5rem;
  font-weight: 500;
  animation: reveal-up 0.6s ease-out backwards;
}

.tech-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.tech-category {
  background: linear-gradient(135deg, var(--glass-bg) 0%, rgba(10, 10, 10, 0.4) 100%);
  border: 1px solid var(--glass-border);
  padding: 2rem;
  border-radius: 12px;
  transition: all 0.5s var(--transition-spring);
  position: relative;
  overflow: hidden;
  animation: stagger-in 0.6s ease-out forwards;
}

.tech-category::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.1) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.tech-category:hover::before {
  opacity: 1;
  animation: float-subtle 3s ease-in-out infinite;
}

.tech-category::after {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), transparent);
  transform: scaleX(0);
  transition: transform 0.5s ease;
  transform-origin: left;
}

.tech-category:hover::after {
  transform: scaleX(1);
}

.tech-category:hover {
  border-color: var(--accent);
  transform: translateY(-8px);
  box-shadow: 0 15px 40px rgba(16, 185, 129, 0.15), inset 0 0 20px rgba(16, 185, 129, 0.05);
}

.tech-category h3 {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--accent);
  transition: all 0.3s ease;
  position: relative;
}

.tech-category:hover h3 {
  transform: translateX(5px);
  letter-spacing: 1px;
}

.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.tag {
  font-size: 0.85rem;
  padding: 8px 16px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  transition: all var(--transition-spring);
  position: relative;
  border: 1px solid rgba(16, 185, 129, 0.1);
  overflow: hidden;
  cursor: pointer;
  animation: stagger-in 0.5s ease-out forwards;
}

.tag::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent, rgba(16, 185, 129, 0.2), transparent);
  transform: translateX(-100%) translateY(-100%);
  transition: transform 0.5s ease;
}

.tag:hover::before {
  transform: translateX(100%) translateY(100%);
}

.tag:hover {
  color: var(--accent-bright);
  background: var(--accent-dim);
  border-color: var(--accent);
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 8px 20px rgba(16, 185, 129, 0.2), inset 0 0 10px rgba(16, 185, 129, 0.1);
}

/* ===== PROJECTS SECTION ===== */
.centered {
  text-align: center;
}

.centered h2 {
  animation: reveal-up 0.6s ease-out;
}

.centered p {
  max-width: 600px;
  margin: 1rem auto 0;
  color: var(--text-muted);
}

#projectFilters {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 3.5rem;
  flex-wrap: wrap;
  animation: reveal-up 0.6s ease-out 0.3s backwards;
}

.filter-btn {
  background: transparent;
  border: 1.5px solid var(--glass-border);
  color: var(--text-muted);
  padding: 10px 24px;
  border-radius: 8px;
  cursor: pointer;
  transition: all var(--transition-spring);
  position: relative;
  overflow: hidden;
  font-weight: 500;
  letter-spacing: 0.5px;
}

.filter-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(16, 185, 129, 0.2), transparent);
  transform: translateX(-100%);
  transition: transform 0.5s ease;
}

.filter-btn:hover::before {
  transform: translateX(100%);
}

.filter-btn:hover {
  background: var(--accent-dim);
  color: var(--accent);
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(16, 185, 129, 0.15);
}

.filter-btn.active {
  background: var(--accent);
  color: #000;
  border-color: var(--accent);
  box-shadow: 0 0 30px var(--accent-glow);
  font-weight: 600;
}

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

.project-card {
  background: linear-gradient(135deg, var(--glass-bg) 0%, rgba(10, 10, 10, 0.5) 100%);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  position: relative;
  transition: all 0.4s var(--transition-spring);
  transform-style: preserve-3d;
  animation: stagger-in 0.6s ease-out forwards;
}

.project-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(16, 185, 129, 0.1) 0%, transparent 80%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 1;
}

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

.project-card::after {
  content: '';
  position: absolute;
  inset: -1px;
  background: linear-gradient(45deg, transparent 30%, rgba(16, 185, 129, 0.1) 50%, transparent 70%);
  background-size: 300% 300%;
  border-radius: 12px;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  z-index: 0;
}

.project-card:hover::after {
  opacity: 1;
  animation: shimmer 2s linear infinite;
}

.project-card:hover {
  transform: translateY(-12px) translateZ(30px);
  border-color: var(--accent);
  box-shadow: 0 20px 50px rgba(16, 185, 129, 0.2), 0 0 40px rgba(16, 185, 129, 0.1), inset 0 0 20px rgba(16, 185, 129, 0.05);
}

.project-card:nth-child(1) { animation-delay: 0.1s; }
.project-card:nth-child(2) { animation-delay: 0.2s; }
.project-card:nth-child(3) { animation-delay: 0.3s; }
.project-card:nth-child(4) { animation-delay: 0.4s; }
.project-card:nth-child(5) { animation-delay: 0.5s; }
.project-card:nth-child(6) { animation-delay: 0.6s; }
.project-card:nth-child(7) { animation-delay: 0.7s; }
.project-card:nth-child(8) { animation-delay: 0.8s; }

.video-wrapper {
  position: relative;
  width: 100%;
  padding-top: 60%;
  background: #000;
  overflow: hidden;
  border-radius: 8px;
  transition: all 0.5s ease;
}

.video-wrapper::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, transparent 0%, rgba(0, 0, 0, 0.4) 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 2;
  pointer-events: none;
}

.project-card:hover .video-wrapper::before {
  opacity: 1;
}

.video-wrapper video,
.video-wrapper img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.6s var(--transition-spring);
  filter: brightness(0.85) contrast(1.1);
}

.project-card:hover .video-wrapper video,
.project-card:hover .video-wrapper img {
  filter: brightness(1) contrast(1.15);
  transform: scale(1.08);
}

.card-action-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.7) 0%, rgba(16, 185, 129, 0.1) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  opacity: 0;
  transition: all var(--transition-spring);
  backdrop-filter: blur(4px);
  transform: translateZ(30px) scale(0.9);
}

.project-card:hover .card-action-overlay {
  opacity: 1;
  transform: translateZ(30px) scale(1);
}

.icon-btn {
  width: 50px;
  height: 50px;
  background: var(--bg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  transition: all var(--transition-spring);
  border: 1.5px solid var(--accent);
  cursor: pointer;
  opacity: 0;
  transform: translateY(20px) scale(0.8);
}

.project-card:hover .icon-btn {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.icon-btn:nth-child(1) { animation-delay: 0.05s; }
.icon-btn:nth-child(2) { animation-delay: 0.1s; }

.icon-btn:hover {
  background: var(--accent);
  color: #000;
  transform: scale(1.15) translateY(-5px);
  box-shadow: 0 0 30px var(--accent-glow);
}

.project-info {
  padding: 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  transform: translateZ(20px);
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.2) 100%);
  position: relative;
  overflow: hidden;
}

.project-info::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.project-card:hover .project-info::before {
  opacity: 1;
}

.project-title {
  font-size: 1.3rem;
  word-break: break-word;
  color: var(--accent-bright);
  transition: all 0.3s ease;
  margin-bottom: 0.8rem;
}

.project-card:hover .project-title {
  color: var(--accent);
  letter-spacing: 0.5px;
}

.project-description {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
  transition: all 0.3s ease;
  flex-grow: 1;
}

.project-card:hover .project-description {
  color: var(--text-main);
}

/* ===== CONTACT SECTION ===== */
.contact-card {
  background: linear-gradient(145deg, var(--glass-bg) 0%, rgba(10, 10, 10, 0.4) 100%);
  border: 1.5px solid var(--glass-border);
  border-radius: 16px;
  padding: 4.5rem 3rem;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  transition: all 0.5s var(--transition-spring);
  animation: reveal-up 0.8s ease-out;
  position: relative;
  overflow: hidden;
}

.contact-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  background: linear-gradient(45deg, transparent 30%, rgba(16, 185, 129, 0.1) 50%, transparent 70%);
  background-size: 300% 300%;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.contact-card:hover::before {
  opacity: 1;
  animation: shimmer 2s linear infinite;
}

.contact-card:hover {
  border-color: var(--accent);
  box-shadow: 0 20px 50px rgba(16, 185, 129, 0.15), 0 0 40px rgba(16, 185, 129, 0.1), inset 0 0 20px rgba(16, 185, 129, 0.05);
  transform: translateY(-8px);
}

.contact-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.5rem;
  margin-top: 2.5rem;
  animation: reveal-up 0.6s ease-out 0.2s backwards;
}

.social-links {
  display: flex;
  gap: 1.5rem;
}

.social-link {
  width: 52px;
  height: 52px;
  border-radius: 8px;
  border: 1.5px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: all var(--transition-spring);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.02);
}

.social-link::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.2) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.social-link:hover::before {
  opacity: 1;
}

.social-link:hover {
  color: var(--accent);
  border-color: var(--accent);
  transform: translateY(-6px) scale(1.1);
  box-shadow: 0 12px 30px rgba(16, 185, 129, 0.2), 0 0 20px rgba(16, 185, 129, 0.1);
}

/* ===== FOOTER ===== */
footer {
  padding: 2rem;
  text-align: center;
  color: var(--text-dim);
  font-size: 0.9rem;
  border-top: 1px solid var(--glass-border);
  margin-top: 4rem;
}

/* ===== PRELOADER ===== */
#preloader {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s;
}

.loader-content {
  text-align: center;
}

.spinner {
  width: 50px;
  height: 50px;
  border: 3px solid var(--glass-border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s infinite linear;
  margin: 0 auto 1rem;
}

.loading-text {
  font-family: 'Fira Code', monospace;
  font-size: 0.9rem;
  color: var(--accent);
  letter-spacing: 2px;
}

/* ===== SCROLL ANIMATIONS ===== */
[data-animate] {
  opacity: 0;
  transform: translateY(40px);
  filter: blur(4px);
  animation: reveal-up 0.8s ease-out forwards;
  animation-timeline: view();
  animation-range: entry 0% cover 40%;
}

[data-animate].is-visible {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

[data-animate] > :nth-child(1) { animation-delay: 0.1s; }
[data-animate] > :nth-child(2) { animation-delay: 0.2s; }
[data-animate] > :nth-child(3) { animation-delay: 0.3s; }
[data-animate] > :nth-child(4) { animation-delay: 0.4s; }
[data-animate] > :nth-child(5) { animation-delay: 0.5s; }

.scanning::after {
  content: '▋';
  animation: 0.75s step-end infinite;
  color: var(--accent);
  margin-left: 5px;
}

/* ===== PROJECT MODAL ===== */
.project-modal {
  position: fixed;
  inset: 0;
  z-index: 8000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.project-modal.active {
  display: flex;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(12px);
  animation: fade-in 0.3s ease-out;
}

.modal-content {
  position: relative;
  z-index: 1;
  background: linear-gradient(135deg, var(--glass-bg) 0%, rgba(10, 10, 10, 0.6) 100%);
  border: 1.5px solid var(--glass-border);
  border-radius: 16px;
  max-width: 1200px;
  width: 95%;
  max-height: 90vh;
  overflow-y: auto;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
  padding: 2.5rem;
  animation: modal-slide-in 0.4s var(--transition-spring);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6), 0 0 60px rgba(16, 185, 129, 0.1), inset 0 0 30px rgba(16, 185, 129, 0.03);
}

.modal-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1.5px solid var(--glass-border);
  color: var(--text-main);
  cursor: pointer;
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-spring);
  z-index: 2;
  border-radius: 8px;
  width: 44px;
  height: 44px;
}

.modal-close:hover {
  color: var(--accent);
  border-color: var(--accent);
  transform: rotate(90deg) scale(1.1);
  background: rgba(16, 185, 129, 0.1);
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.2);
}

.modal-video-container {
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 0 40px rgba(16, 185, 129, 0.1);
}

.modal-video-container video {
  width: 100%;
  height: auto;
  border-radius: 12px;
  background: #000;
  display: block;
}

.modal-info {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  overflow-y: auto;
  padding-right: 1rem;
  animation: reveal-left 0.6s ease-out 0.2s backwards;
}

.modal-info::-webkit-scrollbar {
  width: 8px;
}

.modal-info::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 4px;
}

.modal-info::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--accent), var(--accent-dim));
  border-radius: 4px;
  transition: all 0.3s ease;
}

.modal-info::-webkit-scrollbar-thumb:hover {
  background: var(--accent);
}

#modalTitle {
  font-size: 2.2rem;
  margin: 0;
  color: var(--accent-bright);
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-bright) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: reveal-up 0.6s ease-out backwards;
}

.modal-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  animation: reveal-up 0.6s ease-out 0.1s backwards;
}

.modal-tags .tag {
  font-size: 0.85rem;
  padding: 8px 14px;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.15) 0%, rgba(16, 185, 129, 0.05) 100%);
  color: var(--accent-bright);
  border: 1px solid rgba(16, 185, 129, 0.4);
  transition: all var(--transition-spring);
  cursor: default;
}

.modal-tags .tag:hover {
  border-color: var(--accent);
  background: var(--accent-dim);
  transform: translateY(-2px);
}

.modal-description {
  color: var(--text-muted);
  line-height: 1.9;
  font-size: 0.95rem;
  animation: reveal-up 0.6s ease-out 0.2s backwards;
}

.modal-description p {
  margin-bottom: 1.2rem;
  transition: all 0.3s ease;
}

.modal-description p:hover {
  color: var(--text-main);
  transform: translateX(5px);
}

.modal-description p:last-child {
  margin-bottom: 0;
}

.modal-description ul {
  list-style: none;
  margin-left: 0;
  margin-bottom: 1.2rem;
}

.modal-description li {
  position: relative;
  padding-left: 1.8rem;
  margin-bottom: 0.8rem;
  color: var(--text-muted);
  transition: all 0.3s ease;
}

.modal-description li:hover {
  color: var(--text-main);
  transform: translateX(5px);
}

.modal-description li:before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: bold;
}

.modal-description strong {
  color: var(--accent);
  font-weight: 600;
}

.modal-links {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.modal-links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.75rem 1.5rem;
  background: var(--glass-highlight);
  border: 1px solid var(--glass-border);
  border-radius: 6px;
  color: var(--text-muted);
  transition: all 0.3s ease;
  font-weight: 500;
}

.modal-links a:hover {
  background: var(--accent-dim);
  color: var(--accent);
  border-color: var(--accent);
  transform: translateY(-2px);
}

/* ===== RESPONSIVE DESIGN ===== */
@media (min-width: 768px) {
  .about-skills .tech-grid,
  .tech-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .modal-content {
    grid-template-columns: 1fr;
    max-height: 95vh;
    padding: 1.5rem;
    gap: 1.5rem;
  }

  .modal-info {
    padding-right: 0;
  }

  #modalTitle {
    font-size: 1.5rem;
  }

  .modal-close {
    top: 1rem;
    right: 1rem;
  }
}

@media (max-width: 900px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 3rem;
  }

  .hero-text {
    align-items: center;
  }

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

  .hero-visual {
    display: block;
    margin-top: 4rem;
  }

  .about-content {
    grid-template-columns: 1fr;
  }

  .nav-links {
    display: none;
    position: fixed;
    top: var(--nav-height);
    left: 0;
    width: 100%;
    background: var(--bg);
    flex-direction: column;
    padding: 2rem;
    border-bottom: 1px solid var(--glass-border);
    border-radius: 0;
  }

  .nav-links.active {
    display: flex;
  }

  .burger {
    display: flex;
  }
}

@media (min-width: 900px) and (max-width: 1100px) {
  .image-card {
    width: 300px;
    height: 400px;
  }
}
