/* ===== Google Fonts ===== */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500;600&display=swap');

/* ===== CSS Variables ===== */
:root {
  --bg-primary: #050508;
  --bg-secondary: #0a0a0f;
  --bg-tertiary: #11111a;
  
  --bg-card: rgba(8, 8, 18, 0.72);
  --bg-card-hover: rgba(12, 12, 24, 0.85);
  
  --text-primary: #f8f8fb;
  --text-secondary: #a0a0b8;
  --text-muted: #64647a;
  
  /* Neon Accents */
  --accent-1: #8a2be2; /* Purple */
  --accent-2: #00ffff; /* Cyan/Teal */
  --accent-3: #ff007f; /* Pink */
  
  --gradient-1: linear-gradient(135deg, var(--accent-1), var(--accent-2));
  --gradient-2: linear-gradient(135deg, var(--accent-1), var(--accent-3));
  --gradient-3: linear-gradient(135deg, var(--accent-2), var(--accent-1));
  
  --border-color: rgba(255, 255, 255, 0.05);
  --border-glow: rgba(138, 43, 226, 0.3);
  
  --glass: rgba(10, 10, 18, 0.6);
  --glass-strong: rgba(10, 10, 18, 0.82);
  --blur: blur(24px);
  
  --shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.8);
  --shadow-glow: 0 0 30px rgba(138, 43, 226, 0.2);
  
  --radius-lg: 32px;
  --radius: 24px;
  --radius-sm: 16px;
  --radius-xs: 8px;
  
  --transition: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: 0.2s ease-out;
  --transition-slow: 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

ul { list-style: none; }
img { max-width: 100%; display: block; border-radius: inherit; }

/* ===== Scrollbar ===== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb {
  background: var(--gradient-1);
  border-radius: 10px;
}

/* ===== Particle & Background ===== */
#particle-canvas {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  pointer-events: none; z-index: 0;
}

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

body::before {
  content: '';
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.02'/%3E%3C/svg%3E");
  pointer-events: none; z-index: 0; opacity: 0.5;
}

.bg-mesh {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  pointer-events: none; z-index: 0; overflow: hidden;
}

.bg-glow {
  position: absolute; border-radius: 50%; filter: blur(140px); opacity: 0.15;
  animation: meshFloat 25s ease-in-out infinite;
}

.bg-glow-1 { width: 800px; height: 800px; top: -20%; left: -10%; background: var(--accent-1); animation-delay: 0s; }
.bg-glow-2 { width: 700px; height: 700px; bottom: -15%; right: -10%; background: var(--accent-2); animation-delay: -5s; }
.bg-glow-3 { width: 600px; height: 600px; top: 50%; left: 50%; transform: translate(-50%, -50%); background: var(--accent-3); opacity: 0.08; animation-delay: -10s; }

@keyframes meshFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(40px, -50px) scale(1.1); }
  50% { transform: translate(-30px, 40px) scale(0.9); }
  75% { transform: translate(50px, 30px) scale(1.05); }
}

.hero-grid-pattern {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  background-image: linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 50px 50px;
  pointer-events: none; z-index: 0;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 10%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 10%, transparent 80%);
}

/* ===== Cursor Spotlight ===== */
.cursor-spotlight {
  position: fixed; width: 800px; height: 800px; border-radius: 50%;
  background: radial-gradient(circle, rgba(138,43,226,0.05) 0%, transparent 60%);
  pointer-events: none; z-index: 1; transform: translate(-50%, -50%);
  transition: opacity 0.3s ease; opacity: 0;
}
.cursor-spotlight.active { opacity: 1; }

/* ===== Container ===== */
.container { max-width: 1280px; margin: 0 auto; padding: 0 32px; position: relative; z-index: 2; }

/* ===== Glass Card (Bento Style) ===== */
.glass-card {
  background: var(--bg-card);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 32px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.glass-card::before {
  content: '';
  position: absolute; inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: var(--gradient-1);
  -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 var(--transition);
  pointer-events: none;
}

.glass-card:hover {
  background: var(--bg-card-hover);
  transform: translateY(-4px) scale(1.01);
  box-shadow: var(--shadow-glow), 0 20px 40px rgba(0,0,0,0.6);
}
.glass-card:hover::before { opacity: 1; }

/* ===== Navigation ===== */
.navbar {
  position: fixed; top: 24px; left: 50%; transform: translateX(-50%);
  width: calc(100% - 64px); max-width: 800px; z-index: 1000;
  padding: 12px; transition: var(--transition);
  background: var(--glass);
  backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur);
  border: 1px solid var(--border-color);
  border-radius: 100px;
}

.navbar.scrolled {
  background: var(--glass-strong);
  border-color: rgba(255,255,255,0.1);
  box-shadow: 0 10px 40px rgba(0,0,0,0.5), var(--shadow-glow);
}

.navbar .container { display: flex; justify-content: space-between; align-items: center; padding: 0 16px; width: 100%; margin: 0;}

.logo {
  font-family: 'Outfit', sans-serif; font-size: 1.5rem; font-weight: 900;
  background: var(--text-primary);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  letter-spacing: -0.5px;
}
.logo:hover {
  background: var(--gradient-1);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}

.nav-links { display: flex; gap: 8px; align-items: center; }

.nav-links a {
  font-size: 0.85rem; font-weight: 600; color: var(--text-secondary);
  padding: 8px 20px; border-radius: 50px; transition: var(--transition);
}

.nav-links a:hover, .nav-links a.active {
  color: var(--text-primary);
  background: rgba(255,255,255,0.05);
}

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

.menu-toggle span {
  width: 24px; height: 2px; background: var(--text-primary);
  border-radius: 2px; transition: var(--transition); transform-origin: center;
}
.menu-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(6px, 6px); }
.menu-toggle.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.menu-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -6px); }

/* ===== Section Styles ===== */
section { padding: 140px 0; position: relative; z-index: 1; }

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

.section-label {
  font-family: 'JetBrains Mono', monospace; font-size: 0.8rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 3px; color: var(--accent-2);
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 20px; background: rgba(0, 255, 255, 0.05);
  border: 1px solid rgba(0, 255, 255, 0.1); border-radius: 50px;
  margin-bottom: 20px;
}

.section-title {
  font-family: 'Outfit', sans-serif; font-size: 3.5rem; font-weight: 900;
  letter-spacing: -1px; line-height: 1.1; margin-bottom: 20px;
}

.gradient {
  background: var(--gradient-1);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.gradient-2 {
  background: var(--gradient-2);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}

.section-desc {
  color: var(--text-secondary); font-size: 1.1rem;
  max-width: 600px; margin: 0 auto; line-height: 1.7;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 16px 36px; border-radius: 100px;
  font-size: 0.9rem; font-weight: 700; font-family: 'Inter', sans-serif;
  cursor: pointer; transition: var(--transition); border: none;
  position: relative; overflow: hidden;
}

/* ===== Lightswind Gradient Button ===== */
.btn-gradient {
  overflow: visible !important; /* Allow glow to bleed out */
  background-color: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.25) !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  text-shadow: 0 1px 3px rgba(0,0,0,0.8);
  font-weight: 800;
  letter-spacing: 0.5px;
  z-index: 20;
  animation: ls-gradient-animate 2s infinite linear;
}

.btn-gradient:hover {
  background-color: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.4) !important;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transform: translateY(-4px);
  color: #fff;
  animation: ls-gradient-animate 0.5s infinite linear;
}

.btn-gradient::before {
  content: "";
  background: linear-gradient(90deg, #ff6d1b, #ffee55, #5bff89, #4d8aff, #6b5fff, #ff64f9, #ff6565);
  height: 30%;
  width: 80%;
  position: absolute;
  bottom: -20%;
  left: 10%;
  z-index: -1;
  background-size: 200%;
  animation: ls-gradient-animate 2s infinite linear;
  filter: blur(0.8rem);
  border-radius: inherit;
}

.btn-gradient:hover::before {
  animation: ls-gradient-animate 0.5s infinite linear;
}

.btn-gradient-glow {
  position: absolute;
  bottom: -20%;
  height: 30%;
  width: 60%;
  left: 50%;
  transform: translateX(-50%);
  z-index: -2;
  filter: blur(24px);
  background: linear-gradient(90deg, #ff6d1b, #ffee55, #5bff89, #4d8aff, #6b5fff, #ff64f9, #ff6565);
  background-size: 200%;
  animation: ls-gradient-animate 2s infinite linear;
  border-radius: inherit;
  pointer-events: none;
}

.btn-gradient:hover .btn-gradient-glow {
  animation: ls-gradient-animate 0.5s infinite linear;
}

@keyframes ls-gradient-animate {
  0% { background-position: 0; }
  100% { background-position: 200%; }
}

.btn-outline {
  background: var(--glass); color: var(--text-primary);
  border: 1px solid var(--border-color); backdrop-filter: var(--blur);
}

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

/* ===== Hero Section ===== */
.hero {
  min-height: 100vh; display: flex; align-items: center;
  padding-top: 120px; position: relative; overflow: hidden;
}

.hero .container {
  display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 60px;
  align-items: center;
}

.hero-content {
  background: rgba(5, 5, 15, 0.4);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 32px;
  padding: 48px 44px;
}

.hero-badge {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 24px; background: rgba(255,255,255,0.03);
  border: 1px solid var(--border-color); border-radius: 50px;
  font-size: 0.85rem; font-weight: 600; color: var(--text-primary);
  margin-bottom: 30px; backdrop-filter: var(--blur);
}

.hero-badge .dot {
  width: 10px; height: 10px; background: var(--accent-2);
  border-radius: 50%; box-shadow: 0 0 12px var(--accent-2);
  animation: pulse-dot 2s infinite;
}

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

.hero h1 {
  font-family: 'Outfit', sans-serif; font-size: 5rem; font-weight: 900;
  line-height: 1; letter-spacing: -3px; margin-bottom: 20px;
}

.hero .tagline {
  font-family: 'Outfit', sans-serif; font-size: 1.8rem; font-weight: 700;
  margin-bottom: 24px; color: var(--text-primary);
  text-shadow: 0 2px 15px rgba(0,0,0,0.8);
}

.hero p.desc {
  color: var(--text-primary); font-size: 1.15rem;
  max-width: 500px; margin-bottom: 40px; line-height: 1.8;
  text-shadow: 0 2px 15px rgba(0,0,0,0.8);
  font-weight: 400;
}

.hero-buttons { display: flex; gap: 20px; flex-wrap: wrap; }

.hero-visual { position: relative; display: flex; justify-content: center; align-items: center; }

.avatar-wrapper {
  position: relative; width: 400px; height: 400px;
  border-radius: 40px; transform: rotate(-5deg); transition: var(--transition);
}

.avatar-wrapper:hover { transform: rotate(0deg) scale(1.05); }

.avatar-bg {
  position: absolute; inset: 0; border-radius: inherit;
  background: var(--gradient-1); opacity: 0.2; filter: blur(40px);
}

.avatar-img {
  width: 100%; height: 100%; object-fit: cover; border-radius: inherit;
  border: 2px solid rgba(255,255,255,0.1); position: relative; z-index: 1;
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}

.avatar-float {
  position: absolute; padding: 14px 24px; background: var(--glass-strong);
  border: 1px solid rgba(255,255,255,0.1); border-radius: 20px;
  font-size: 0.9rem; font-weight: 600; backdrop-filter: var(--blur);
  display: flex; align-items: center; gap: 10px;
  white-space: nowrap; z-index: 2; box-shadow: 0 10px 30px rgba(0,0,0,0.4);
  animation: float 5s ease-in-out infinite;
}

.avatar-float i { color: var(--accent-2); }

.avatar-float.top { top: -20px; right: -40px; animation-delay: 0s; }
.avatar-float.bottom { bottom: 20px; left: -60px; animation-delay: 2.5s; }

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

/* ===== Hero Redesign Enhancements ===== */
/* Animated Gradient for Text */
.animated-gradient {
  background: linear-gradient(to right, var(--accent-1), var(--accent-2), var(--accent-3), var(--accent-1));
  background-size: 300% 100%;
  animation: gradientMove 6s ease-in-out infinite;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
@keyframes gradientMove {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Typing Cursor */
.cursor-blink {
  display: inline-block;
  width: 3px;
  margin-left: 2px;
  height: 1.1em;
  vertical-align: text-bottom;
  background-color: var(--accent-2);
  animation: blink 1s step-end infinite;
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* Shine Effect on Badge */
.shine-effect {
  position: relative;
  overflow: hidden;
}
.shine-effect::before {
  content: '';
  position: absolute;
  top: 0;
  left: -150%;
  width: 50%;
  height: 100%;
  background: linear-gradient(to right, transparent, rgba(255,255,255,0.4), transparent);
  transform: skewX(-20deg);
  animation: shine 4s infinite;
}
@keyframes shine {
  0% { left: -150%; }
  20%, 100% { left: 250%; }
}

/* Pulse Glow Button */
.pulse-glow {
  animation: pulseGlowBtn 2s infinite;
}
@keyframes pulseGlowBtn {
  0%, 100% { box-shadow: 0 0 15px rgba(138, 43, 226, 0.4); }
  50% { box-shadow: 0 0 30px rgba(138, 43, 226, 0.8), 0 0 10px rgba(0, 255, 255, 0.5); }
}

/* Magnetic Effect & Glassmorphism */
.magnetic {
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.enhanced-glass {
  background: rgba(10, 10, 18, 0.82) !important;
  backdrop-filter: blur(30px) saturate(150%) !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  box-shadow: 0 15px 35px rgba(0,0,0,0.5), inset 0 0 20px rgba(255,255,255,0.05) !important;
}

/* Conic Border for Avatar */
.avatar-conic-border {
  position: absolute;
  inset: -4px;
  border-radius: 44px;
  background: conic-gradient(from 0deg, transparent 0%, var(--accent-1) 25%, var(--accent-2) 50%, transparent 50%);
  animation: spin 4s linear infinite;
  z-index: 0;
}
@keyframes spin {
  100% { transform: rotate(360deg); }
}

/* ===== Bento Grid (About & Skills) ===== */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 240px;
  gap: 24px;
}

.bento-item {
  display: flex; flex-direction: column; justify-content: center;
}

.bento-item.large { grid-column: span 2; grid-row: span 2; }
.bento-item.wide { grid-column: span 2; grid-row: span 1; }
.bento-item.tall { grid-column: span 1; grid-row: span 2; }

.bento-item h3 { font-family: 'Outfit', sans-serif; font-size: 1.6rem; margin-bottom: 16px; font-weight: 800; }
.bento-item p { color: var(--text-secondary); font-size: 1rem; line-height: 1.7; }
.bento-icon { font-size: 2.5rem; color: var(--accent-1); margin-bottom: 20px; }

.bento-stat { text-align: center; }
.bento-stat .number { font-family: 'Outfit', sans-serif; font-size: 4rem; font-weight: 900; line-height: 1; margin-bottom: 10px; background: var(--gradient-1); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;}
.bento-stat .label { font-size: 0.9rem; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 2px;}

.tech-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; }
.tech-tag {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 16px; background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.05); border-radius: 50px;
  font-family: 'JetBrains Mono', monospace; font-size: 0.8rem; color: var(--text-primary);
  transition: var(--transition);
}
.tech-tag:hover {
  background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.15);
  transform: translateY(-2px);
}
.tech-icon {
  width: 18px; height: 18px; object-fit: contain;
}

/* ===== Projects (3D Tilt Cards) ===== */
.tilt-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.tilt-card {
  perspective: 900px;
  cursor: pointer;
}

.tilt-card-inner {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  height: 480px;
  transform-style: preserve-3d;
  transition: box-shadow 0.4s ease;
  /* border spotlight driven by --mx / --my CSS vars set via JS */
  border: 1px solid transparent;
  background:
    linear-gradient(var(--bg-card), var(--bg-card)) padding-box,
    conic-gradient(
      from calc(var(--border-angle, 0deg) - 70deg),
      transparent 0%,
      rgba(138,43,226,0.9) 5%,
      rgba(0,255,255,0.7) 10%,
      transparent 15%,
      transparent 100%
    ) border-box;
  will-change: transform;
}

.tilt-card:hover .tilt-card-inner {
  box-shadow: 0 30px 60px rgba(0,0,0,0.6), 0 0 0 1px rgba(138,43,226,0.2);
}

/* Full-bleed background image */
.tilt-card-img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

/* dark + gradient veil so text is always readable */
.tilt-card-inner::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(5, 5, 15, 0.2) 0%,
    rgba(5, 5, 15, 0.55) 40%,
    rgba(5, 5, 15, 0.96) 100%
  );
  border-radius: inherit;
  pointer-events: none;
  z-index: 1;
}

/* Mouse-following glare overlay */
.tilt-card-glare {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(
    circle at var(--glare-x, 50%) var(--glare-y, 50%),
    rgba(255, 255, 255, 0.18) 0%,
    transparent 60%
  );
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  z-index: 2;
  mix-blend-mode: soft-light;
}

.tilt-card:hover .tilt-card-glare { opacity: 1; }

/* Text content layer */
.tilt-card-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 32px;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.tilt-card-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.tilt-card-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.1;
}

.tilt-card-desc {
  font-size: 0.92rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.6;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.4s cubic-bezier(0.16,1,0.3,1),
              opacity 0.4s ease;
}

.tilt-card:hover .tilt-card-desc {
  max-height: 80px;
  opacity: 1;
}

.tilt-card-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent-2);
  font-size: 0.88rem;
  font-weight: 700;
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.5px;
  transition: gap 0.3s ease, color 0.3s ease;
  width: fit-content;
}
.tilt-card-link:hover {
  gap: 14px;
  color: #fff;
}

/* ===== Contact Form ===== */
.contact-container {
  display: grid; grid-template-columns: 1fr 1.5fr; gap: 60px;
}

.contact-info { display: flex; flex-direction: column; gap: 24px; }
.contact-item { display: flex; align-items: center; gap: 20px; }
.contact-icon { width: 60px; height: 60px; border-radius: 20px; background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.05); display: flex; align-items: center; justify-content: center; font-size: 1.5rem; color: var(--accent-1); }
.contact-text h4 { font-size: 0.9rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 4px; }
.contact-text p { font-size: 1.1rem; font-weight: 600; color: var(--text-primary); }

.contact-form { display: flex; flex-direction: column; gap: 24px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.input-group input, .input-group textarea {
  width: 100%; padding: 20px 24px; background: rgba(5, 5, 12, 0.6);
  border: 1px solid var(--border-color); border-radius: 20px;
  color: var(--text-primary); font-family: inherit; font-size: 1rem;
  transition: var(--transition); outline: none;
}
.input-group input:focus, .input-group textarea:focus { border-color: var(--accent-1); background: rgba(0,0,0,0.4); box-shadow: 0 0 0 4px rgba(138,43,226,0.1); }
.input-group textarea { min-height: 160px; resize: vertical; }

/* ===== Footer ===== */
footer { padding: 40px 0; border-top: 1px solid var(--border-color); margin-top: 80px; }
.footer-content {
  display: flex; justify-content: space-between; align-items: center;
  background: rgba(5, 5, 18, 0.88);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(138, 43, 226, 0.25);
  box-shadow: 0 0 30px rgba(138, 43, 226, 0.12), inset 0 1px 0 rgba(255,255,255,0.06);
  border-radius: 20px;
  padding: 24px 36px;
}
.footer-text { color: var(--text-secondary); font-size: 0.9rem; font-weight: 500; }
.footer-socials { display: flex; gap: 16px; }
.footer-socials a { width: 44px; height: 44px; border-radius: 50%; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); display: flex; align-items: center; justify-content: center; color: var(--text-secondary); transition: var(--transition); }
.footer-socials a:hover { background: var(--text-primary); color: var(--bg-primary); transform: translateY(-4px); }

/* ===== Tech Arsenal Section ===== */
#tech-arsenal .container {
  background: rgba(5, 5, 15, 0.4);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 32px;
  padding: 48px 44px;
  margin-bottom: 40px;
}

.tech-marquee-container {
  width: 100%;
  overflow: hidden;
  padding: 10px 0;
  position: relative;
}

.tech-marquee {
  width: 100%;
  overflow: hidden;
  display: flex;
}

.marquee-track-left {
  display: flex;
  gap: 24px;
  width: max-content;
  animation: scrollLeft 15s linear infinite;
}

.marquee-track-right {
  display: flex;
  gap: 24px;
  width: max-content;
  animation: scrollRight 15s linear infinite;
}

/* Pause animation only when hovering on a tech card */
.tech-marquee:has(.tech-card:hover) .marquee-track-left,
.tech-marquee:has(.tech-card:hover) .marquee-track-right {
  animation-play-state: paused;
}

@keyframes scrollLeft {
  0% { transform: translateX(0); }
  100% { transform: translateX(calc(-50% - 12px)); }
}

@keyframes scrollRight {
  0% { transform: translateX(calc(-50% - 12px)); }
  100% { transform: translateX(0); }
}

.tech-card {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  width: 130px; height: 130px; border-radius: 24px;
  background: var(--bg-card); backdrop-filter: var(--blur);
  border: 1px solid var(--border-color);
  transition: var(--transition);
  cursor: pointer;
  flex-shrink: 0;
}

.tech-card:hover {
  transform: translateY(-10px) scale(1.05);
  background: var(--bg-card-hover);
  border-color: rgba(138, 43, 226, 0.4);
  box-shadow: 0 15px 30px rgba(138, 43, 226, 0.2);
}

.tech-icon-large {
  width: 48px; height: 48px; object-fit: contain;
  filter: drop-shadow(0 0 10px rgba(255,255,255,0.1));
  transition: var(--transition);
}

.tech-card:hover .tech-icon-large {
  transform: scale(1.1);
  filter: drop-shadow(0 0 15px rgba(255,255,255,0.3));
}

.tech-card span {
  font-family: 'Outfit', sans-serif; font-weight: 600; font-size: 1.05rem;
  color: var(--text-primary); transition: var(--transition);
}

.tech-card:hover span {
  color: var(--accent-2);
}


/* ===== Reveal Animations ===== */
.reveal { opacity: 0; transform: translateY(40px); transition: 0.8s cubic-bezier(0.16, 1, 0.3, 1); }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .hero h1 { font-size: 4rem; }
  .bento-grid { grid-template-columns: repeat(2, 1fr); }
  .bento-item.wide { grid-column: span 2; }
  .contact-container { grid-template-columns: 1fr; }
  .tilt-cards-grid { grid-template-columns: 1fr; }
  .tilt-card-inner { height: 400px; }
}

@media (max-width: 768px) {
  .hero .container { grid-template-columns: 1fr; text-align: center; }
  .hero-visual { order: -1; margin-bottom: 40px; }
  .hero p.desc { margin: 0 auto 40px; }
  .hero-buttons { justify-content: center; }
  .nav-links { display: none; }
  .menu-toggle { display: flex; }
  .projects-bento { grid-template-columns: 1fr; }
  .project-card.featured { flex-direction: column; }
  .project-card.featured .project-img { width: 100%; height: 280px; }
  .form-row { grid-template-columns: 1fr; }
  .section-title { font-size: 2.8rem; }
  .bento-grid { display: flex; flex-direction: column; }
}
