/* ============================================
   AAYAN MALIK — FUTURISTIC AI PORTFOLIO
   ============================================ */

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

:root {
  /* Colors */
  --bg-primary: #06060f;
  --bg-secondary: #0a0a1a;
  --bg-card: rgba(15, 15, 35, 0.6);
  --text-primary: #e8e8f0;
  --text-secondary: #8888aa;
  --text-muted: #55557a;
  --accent-blue: #4f8fff;
  --accent-purple: #8b5cf6;
  --accent-cyan: #22d3ee;
  --accent-pink: #ec4899;
  --gradient-1: linear-gradient(135deg, #4f8fff, #8b5cf6);
  --gradient-2: linear-gradient(135deg, #8b5cf6, #ec4899);
  --gradient-3: linear-gradient(135deg, #22d3ee, #4f8fff);
  --glow-blue: 0 0 30px rgba(79, 143, 255, 0.3);
  --glow-purple: 0 0 30px rgba(139, 92, 246, 0.3);
  --glass-bg: rgba(15, 15, 40, 0.5);
  --glass-border: rgba(255, 255, 255, 0.06);
  --glass-highlight: rgba(255, 255, 255, 0.03);

  /* Typography */
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Space Grotesk', 'Inter', sans-serif;

  /* Spacing */
  --section-padding: 120px 0;
  --container-width: 1200px;

  /* Transitions */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
}

html {
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: var(--accent-purple) var(--bg-primary);
}

body {
  font-family: var(--font-primary);
  background: var(--bg-primary);
  color: var(--text-primary);
  overflow-x: hidden;
  cursor: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--accent-blue), var(--accent-purple));
  border-radius: 3px;
}

a {
  color: inherit;
  text-decoration: none;
}

img { max-width: 100%; }

/* ---------- LOADING SCREEN ---------- */
#loader {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: var(--bg-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  transition: opacity 0.8s var(--ease-out-expo), visibility 0.8s;
}

#loader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

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

.loader-brain {
  width: 80px;
  height: 80px;
  margin: 0 auto 24px;
}

.brain-svg {
  width: 100%;
  height: 100%;
}

.neuron {
  fill: var(--accent-blue);
  filter: drop-shadow(0 0 6px var(--accent-blue));
  animation: neuron-pulse 1.5s ease-in-out infinite;
}
.neuron.n2, .neuron.n4 { animation-delay: 0.2s; }
.neuron.n3, .neuron.n5 { animation-delay: 0.4s; }
.neuron.n6 { animation-delay: 0.6s; }

@keyframes neuron-pulse {
  0%, 100% { opacity: 0.4; r: 3; }
  50% { opacity: 1; r: 5; }
}

.synapse {
  stroke: var(--accent-purple);
  stroke-width: 1;
  opacity: 0.3;
  filter: drop-shadow(0 0 3px var(--accent-purple));
  animation: synapse-fire 2s ease-in-out infinite;
}
.synapse.s1, .synapse.s3 { animation-delay: 0.1s; }
.synapse.s2, .synapse.s4 { animation-delay: 0.3s; }
.synapse.s5, .synapse.s6 { animation-delay: 0.5s; }
.synapse.s7, .synapse.s8 { animation-delay: 0.7s; }
.synapse.s9 { animation-delay: 0.9s; }

@keyframes synapse-fire {
  0%, 100% { opacity: 0.2; stroke-width: 0.5; }
  50% { opacity: 0.8; stroke-width: 1.5; }
}

.loader-text {
  font-family: var(--font-display);
  font-size: 14px;
  color: var(--text-secondary);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.loader-dots::after {
  content: '';
  animation: dots 1.5s steps(4, end) infinite;
}
@keyframes dots {
  0% { content: ''; }
  25% { content: '.'; }
  50% { content: '..'; }
  75% { content: '...'; }
}

.loader-bar {
  width: 200px;
  height: 2px;
  background: rgba(255,255,255,0.05);
  border-radius: 2px;
  margin: 0 auto;
  overflow: hidden;
}

.loader-bar-fill {
  height: 100%;
  width: 0%;
  background: var(--gradient-1);
  border-radius: 2px;
  animation: load-fill 2.5s var(--ease-out-expo) forwards;
}

@keyframes load-fill {
  to { width: 100%; }
}

/* ---------- CURSOR ---------- */
#cursor-glow {
  position: fixed;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(79, 143, 255, 0.4), transparent 70%);
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width 0.3s, height 0.3s, opacity 0.3s;
  mix-blend-mode: screen;
}

#cursor-glow.hover {
  width: 60px;
  height: 60px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.5), transparent 70%);
}

#cursor-trail {
  position: fixed;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(79, 143, 255, 0.06), transparent 70%);
  pointer-events: none;
  z-index: 1;
  transform: translate(-50%, -50%);
  transition: transform 0.6s var(--ease-out-quart);
}

/* ---------- NAVBAR ---------- */
#navbar {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  padding: 20px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 1000;
  transition: all 0.4s var(--ease-out-expo);
}

#navbar.scrolled {
  padding: 14px 40px;
  background: rgba(6, 6, 15, 0.85);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--glass-border);
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  background: var(--gradient-1);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  cursor: pointer;
}

.nav-links {
  display: flex;
  gap: 36px;
}

.nav-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: 0.5px;
  position: relative;
  transition: color 0.3s;
  cursor: pointer;
}

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

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-1);
  border-radius: 1px;
  transition: width 0.3s var(--ease-out-expo);
}

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

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 1001;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all 0.3s;
}

.nav-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}
.nav-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Nav */
.mobile-nav {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(6, 6, 15, 0.95);
  backdrop-filter: blur(30px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.5s var(--ease-out-expo);
}

.mobile-nav.open {
  opacity: 1;
  visibility: visible;
}

.mobile-nav-link {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 600;
  color: var(--text-secondary);
  transition: color 0.3s, transform 0.3s;
}

.mobile-nav-link:hover {
  color: var(--text-primary);
  transform: translateX(8px);
}

/* ---------- THREE.JS CANVAS ---------- */
#hero-canvas {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* ---------- HERO SECTION ---------- */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  padding: 0 40px;
}

.hero-content {
  text-align: center;
  max-width: 900px;
}

.hero-greeting {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 500;
  color: var(--accent-blue);
  letter-spacing: 4px;
  text-transform: uppercase;
  margin-bottom: 20px;
  opacity: 0;
}

.hero-name {
  font-family: var(--font-display);
  font-size: clamp(40px, 7vw, 80px);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 24px;
}

.hero-line {
  display: block;
  opacity: 0;
}

.gradient-text {
  background: linear-gradient(135deg, #4f8fff 0%, #8b5cf6 40%, #ec4899 80%, #22d3ee 100%);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradient-shift 4s ease infinite;
}

@keyframes gradient-shift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.hero-role {
  font-size: 18px;
  color: var(--text-secondary);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  opacity: 0;
}

.role-tag {
  padding: 6px 16px;
  background: rgba(79, 143, 255, 0.08);
  border: 1px solid rgba(79, 143, 255, 0.15);
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
  color: var(--accent-blue);
}

.role-divider {
  color: var(--text-muted);
  font-size: 12px;
}

.hero-sub {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 550px;
  margin: 0 auto 40px;
  line-height: 1.7;
  opacity: 0;
}

.hero-cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 60px;
  opacity: 0;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  font-family: var(--font-primary);
  font-size: 14px;
  font-weight: 600;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s var(--ease-out-expo);
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--gradient-1);
  color: #fff;
  border: none;
  box-shadow: 0 4px 24px rgba(79, 143, 255, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(79, 143, 255, 0.45);
}

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

/* Scroll Indicator */
.scroll-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  opacity: 0;
}

.scroll-indicator span {
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 2px;
  text-transform: uppercase;
}

.scroll-mouse {
  width: 24px;
  height: 38px;
  border: 2px solid rgba(255,255,255,0.15);
  border-radius: 12px;
  display: flex;
  justify-content: center;
  padding-top: 8px;
}

.scroll-dot {
  width: 3px;
  height: 8px;
  background: var(--accent-blue);
  border-radius: 3px;
  animation: scroll-bounce 2s ease-in-out infinite;
}

@keyframes scroll-bounce {
  0%, 100% { transform: translateY(0); opacity: 1; }
  50% { transform: translateY(10px); opacity: 0.3; }
}

/* ---------- SECTIONS (GENERAL) ---------- */
.section {
  position: relative;
  padding: var(--section-padding);
  z-index: 2;
}

.section-compact {
  padding: 80px 0;
}

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 40px;
}

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

.section-tag {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent-blue);
  display: block;
  margin-bottom: 16px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 800;
  background: linear-gradient(135deg, var(--text-primary), var(--text-secondary));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-subtitle {
  margin-top: 16px;
  font-size: 16px;
  color: var(--text-secondary);
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

/* Glass Card */
.glass-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all 0.4s var(--ease-out-expo);
}

.glass-card:hover {
  border-color: rgba(79, 143, 255, 0.15);
  background: rgba(20, 20, 50, 0.6);
  box-shadow: 0 8px 40px rgba(79, 143, 255, 0.08);
}

/* Reveal Animations */
.reveal-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo);
}

.reveal-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- ABOUT SECTION ---------- */
.about-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.about-card {
  padding: 36px 28px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.about-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 3px;
  background: var(--gradient-1);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease-out-expo);
}

.about-card:hover::before {
  transform: scaleX(1);
}

.about-icon {
  font-size: 40px;
  margin-bottom: 20px;
  display: inline-block;
  transition: transform 0.3s;
}

.about-card:hover .about-icon {
  transform: scale(1.15) translateY(-4px);
}

.about-card h3 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
}

.about-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.8;
}

.about-card p strong {
  color: var(--accent-blue);
  font-weight: 600;
}

/* ---------- SKILLS SECTION ---------- */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.skill-card {
  padding: 32px 28px;
  position: relative;
  overflow: hidden;
}

.skill-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 16px;
  padding: 1px;
  background: linear-gradient(135deg, transparent, rgba(79, 143, 255, 0.2), transparent);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.5s;
}

.skill-card:hover::after {
  opacity: 1;
}

.skill-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.skill-icon {
  font-size: 28px;
}

.skill-card h3 {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.skill-tag {
  padding: 8px 18px;
  background: rgba(79, 143, 255, 0.08);
  border: 1px solid rgba(79, 143, 255, 0.12);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--accent-blue);
  transition: all 0.3s var(--ease-out-expo);
  cursor: default;
}

.skill-tag:hover {
  background: rgba(79, 143, 255, 0.15);
  border-color: rgba(79, 143, 255, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(79, 143, 255, 0.15);
}

.skill-tag.learning {
  background: rgba(34, 211, 238, 0.08);
  border-color: rgba(34, 211, 238, 0.12);
  color: var(--accent-cyan);
}

.skill-tag.learning:hover {
  background: rgba(34, 211, 238, 0.15);
  border-color: rgba(34, 211, 238, 0.3);
  box-shadow: 0 4px 16px rgba(34, 211, 238, 0.15);
}

.skill-tag.core {
  background: rgba(139, 92, 246, 0.08);
  border-color: rgba(139, 92, 246, 0.12);
  color: var(--accent-purple);
}

.skill-tag.core:hover {
  background: rgba(139, 92, 246, 0.15);
  border-color: rgba(139, 92, 246, 0.3);
  box-shadow: 0 4px 16px rgba(139, 92, 246, 0.15);
}

.skill-category:nth-child(5) {
  grid-column: 2;
}

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

.project-card-inner {
  padding: 40px 36px;
  position: relative;
  overflow: hidden;
  min-height: 360px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.project-number {
  font-family: var(--font-display);
  font-size: 80px;
  font-weight: 900;
  position: absolute;
  top: -10px;
  right: 20px;
  background: linear-gradient(180deg, rgba(79, 143, 255, 0.08), transparent);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
  pointer-events: none;
}

.project-badge {
  display: inline-block;
  padding: 6px 14px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  border-radius: 6px;
  background: rgba(139, 92, 246, 0.1);
  color: var(--accent-purple);
  border: 1px solid rgba(139, 92, 246, 0.15);
  margin-bottom: 20px;
}

.project-title {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 14px;
  transition: color 0.3s;
}

.project-card:hover .project-title {
  background: var(--gradient-1);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.project-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 20px;
}

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

.project-tech span {
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 6px;
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent-blue);
  transition: all 0.3s;
}

.project-link:hover {
  gap: 10px;
  color: var(--accent-cyan);
}

.project-glow {
  position: absolute;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(79, 143, 255, 0.15), transparent 70%);
  bottom: -60px;
  right: -60px;
  transition: all 0.5s;
  opacity: 0;
}

.project-card:hover .project-glow {
  opacity: 1;
  transform: scale(1.3);
}

/* ---------- VISION SECTION ---------- */
.vision-content {
  max-width: 800px;
  margin: 0 auto;
}

.vision-timeline {
  position: relative;
  padding-left: 40px;
}

.vision-timeline::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--accent-blue), var(--accent-purple), transparent);
}

.vision-item {
  position: relative;
  margin-bottom: 32px;
}

.vision-dot {
  position: absolute;
  left: -36px;
  top: 28px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--bg-primary);
  border: 2px solid var(--accent-blue);
  box-shadow: 0 0 12px rgba(79, 143, 255, 0.4);
  z-index: 2;
}

.vision-item:nth-child(2) .vision-dot {
  border-color: var(--accent-purple);
  box-shadow: 0 0 12px rgba(139, 92, 246, 0.4);
}

.vision-item:nth-child(3) .vision-dot {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 12px rgba(34, 211, 238, 0.4);
}

.vision-card {
  padding: 28px 32px;
}

.vision-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent-blue);
  margin-bottom: 8px;
  display: block;
}

.vision-item:nth-child(2) .vision-label { color: var(--accent-purple); }
.vision-item:nth-child(3) .vision-label { color: var(--accent-cyan); }

.vision-card h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 10px;
}

.vision-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.8;
}

.vision-quote {
  text-align: center;
  margin-top: 64px;
  padding: 48px 32px;
  position: relative;
}

.vision-quote::before {
  content: '"';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-display);
  font-size: 120px;
  font-weight: 900;
  background: var(--gradient-1);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  opacity: 0.15;
  line-height: 1;
}

.vision-quote blockquote {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  font-style: italic;
  line-height: 1.6;
  color: var(--text-primary);
}

.vision-author {
  display: block;
  margin-top: 16px;
  font-size: 14px;
  color: var(--accent-purple);
  font-weight: 600;
}

/* ---------- LANGUAGES SECTION ---------- */
.languages-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
}

.language-card {
  padding: 32px 24px;
  text-align: center;
}

.lang-flag {
  font-size: 36px;
  display: block;
  margin-bottom: 12px;
}

.language-card h3 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 6px;
}

.lang-level {
  font-size: 13px;
  color: var(--text-secondary);
  display: block;
  margin-bottom: 16px;
}

.lang-bar {
  height: 4px;
  background: rgba(255,255,255,0.05);
  border-radius: 4px;
  overflow: hidden;
}

.lang-fill {
  height: 100%;
  width: 0%;
  background: var(--gradient-1);
  border-radius: 4px;
  transition: width 1.2s var(--ease-out-expo);
}

.lang-fill.animated {
  /* width set by JS */
}

/* ---------- CONTACT SECTION ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
}

.contact-card {
  padding: 36px 24px;
  text-align: center;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.contact-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 120%, rgba(79, 143, 255, 0.1), transparent 60%);
  opacity: 0;
  transition: opacity 0.4s;
}

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

.contact-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: rgba(79, 143, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
  color: var(--accent-blue);
  transition: all 0.3s;
}

.contact-card:hover .contact-icon {
  background: rgba(79, 143, 255, 0.15);
  box-shadow: 0 0 24px rgba(79, 143, 255, 0.2);
  transform: translateY(-4px);
}

.contact-card h3 {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 6px;
}

.contact-card p {
  font-size: 13px;
  color: var(--text-secondary);
  word-break: break-all;
}

/* ---------- FOOTER ---------- */
#footer {
  padding: 48px 0;
  border-top: 1px solid var(--glass-border);
  position: relative;
  z-index: 2;
}

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

.footer-logo {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  background: var(--gradient-1);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: block;
  margin-bottom: 12px;
}

.footer-copy {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 4px;
}

.footer-tagline {
  font-size: 12px;
  color: var(--text-muted);
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
  .about-grid,
  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .skill-category:nth-child(5) {
    grid-column: auto;
  }
}

@media (max-width: 768px) {
  :root {
    --section-padding: 80px 0;
  }

  body { cursor: auto; }
  #cursor-glow, #cursor-trail { display: none; }

  .container { padding: 0 24px; }

  #navbar { padding: 16px 24px; }
  .nav-links { display: none; }
  .nav-toggle { display: flex; }

  .hero-content { padding: 0 8px; }
  .hero-sub { font-size: 16px; }
  .hero-role { flex-direction: column; gap: 8px; }
  .role-divider { display: none; }

  .about-grid,
  .skills-grid,
  .projects-grid,
  .languages-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .project-card-inner { min-height: auto; }

  .vision-quote blockquote { font-size: 18px; }
}

@media (max-width: 480px) {
  .hero-name { font-size: 32px; }
  .hero-cta { flex-direction: column; align-items: center; }
  .btn { width: 100%; max-width: 280px; justify-content: center; }
}
