/* ── Reset ── */
*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', sans-serif;
  background: #050508;
  color: #e2e8f0;
  overflow-x: hidden;
  min-height: 100vh;
}
h1, h2, h3, h4, h5, h6, .section-title { font-family: 'Space Grotesk', sans-serif; }
body * { cursor: none !important; }

/* ── Custom Scrollbar ── */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #050508; }
::-webkit-scrollbar-thumb { 
  background: linear-gradient(180deg, var(--neon-cyan), var(--neon-mag)); 
  border-radius: 4px; 
}
::-webkit-scrollbar-thumb:hover { background: var(--neon-yellow); }

/* ── Design Tokens ── */
:root {
  --neon-yellow: hsl(50, 100%, 60%);
  --neon-red:    hsl(0,  100%, 60%);
  --neon-cyan:   hsl(180,100%, 50%);
  --neon-mag:    hsl(285, 80%, 65%);
  --neon-blue:   hsl(220, 90%, 65%);
  --glow-y:  0 0 8px var(--neon-yellow), 0 0 20px var(--neon-yellow);
  --glow-c:  0 0 8px var(--neon-cyan),   0 0 20px var(--neon-cyan);
  --glow-m:  0 0 8px var(--neon-mag),    0 0 20px var(--neon-mag);
}

/* ── Glass ── */
.glass {
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
}

/* ── Accent ── */
.accent { color: var(--neon-cyan); }

/* ── Ambient ── */
.ambient-bg { position:fixed; inset:0; z-index:-2; overflow:hidden; }
.orb { position:absolute; border-radius:50%; filter:blur(90px); opacity:.45; animation: floatOrb 20s ease-in-out infinite alternate; }
.orb-1 { width:45vw; height:45vw; background:var(--neon-mag); top:-10%; left:-10%; }
.orb-2 { width:55vw; height:55vw; background:var(--neon-blue); bottom:-15%; right:-10%; animation-delay:-10s; }
@keyframes floatOrb { 0%{transform:translate(0,0) scale(1);} 100%{transform:translate(12vw,12vh) scale(1.2);} }

/* ── Scanlines ── */
.scanlines {
  position:fixed; inset:0; z-index:-1; pointer-events:none;
  background: repeating-linear-gradient(to bottom, transparent 0px, transparent 3px, rgba(0,0,0,0.08) 3px, rgba(0,0,0,0.08) 4px);
  opacity:.35;
}

/* ── Preloader ── */
#preloader {
  position:fixed; inset:0; background:#000; z-index:10000;
  display:flex; align-items:center; justify-content:center;
  font-size:2.5rem; font-weight:900; letter-spacing:6px;
  transition: opacity .8s ease, visibility .8s ease;
}
#preloader.hidden { opacity:0; visibility:hidden; }

/* ── Scroll Progress ── */
#scroll-progress {
  position:fixed; top:0; left:0; height:3px; width:0%;
  background: linear-gradient(90deg, var(--neon-cyan), var(--neon-mag));
  box-shadow: var(--glow-c);
  z-index:10001; transition: width .1s linear;
}

/* ── Custom Cursor ── */
#cursor {
  position:fixed; top:0; left:0; width:8px; height:8px;
  background:var(--neon-cyan); border-radius:50%;
  pointer-events:none; z-index:9999;
  transform:translate(-50%,-50%); mix-blend-mode:screen;
}
#cursor-follower {
  position:fixed; top:0; left:0; width:40px; height:40px;
  border:1.5px solid var(--neon-cyan); border-radius:50%;
  pointer-events:none; z-index:9998;
  transform:translate(-50%,-50%); mix-blend-mode:screen;
  transition: width .2s, height .2s, background .2s, border-color .2s;
}
.hovering-link #cursor-follower { width:64px; height:64px; background:rgba(0,255,255,.08); border-color:var(--neon-mag); }

/* ── Navigation ── */
.nav {
  position:fixed; top:0; width:100%; z-index:1000;
  background:rgba(0,0,0,.55); backdrop-filter:blur(12px);
  border-bottom: 1px solid rgba(255,255,255,.05);
}
.nav-container {
  display: flex; justify-content: space-between; align-items: center;
  max-width: 1100px; margin: 0 auto; padding: .85rem 1rem;
}
.nav-logo {
  font-family: 'Space Grotesk', sans-serif; font-size: 1.2rem; font-weight: 800;
  color: var(--neon-cyan); text-shadow: 0 0 10px rgba(0,255,255,.5);
}
.hamburger {
  display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; z-index: 1001;
}
.hamburger span {
  display: block; width: 25px; height: 3px; background: #fff; border-radius: 3px;
  transition: all 0.3s ease;
}
.hamburger.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.nav ul { display:flex; justify-content:center; list-style:none; gap:1.5rem; flex-wrap:wrap; }
.nav a { color:#cdd9e5; text-decoration:none; font-weight:600; font-size:.875rem; position:relative; transition: color .2s; }
.nav a::after { content:''; position:absolute; left:0; bottom:-4px; width:100%; height:2px; background:var(--neon-cyan); transform:scaleX(0); transition:transform .3s ease; }
.nav a:hover { color:#fff; }
.nav a:hover::after { transform:scaleX(1); }

/* ── Sections ── */
.section { padding: 7rem 2rem; display:flex; align-items:center; justify-content:center; }
.container { max-width:1100px; width:100%; margin:0 auto; }

/* ── Section Title ── */
.section-title {
  font-size: clamp(1.8rem,4vw,2.6rem);
  font-weight:900; text-align:center;
  margin-bottom:3rem; letter-spacing:-.02em;
  text-shadow: 0 0 20px rgba(0,255,255,.2);
}

/* ── Scroll Animations ── */
.animate { opacity:0; transform:translateY(40px) scale(0.95); transition: opacity .8s ease, transform .8s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
.animate.visible { opacity:1; transform:translateY(0) scale(1); }

/* ════════════════════════════════════
   HERO
════════════════════════════════════ */
.hero {
  height:100vh; min-height:600px; padding:0 2rem;
  position:relative; overflow:hidden;
  background:linear-gradient(160deg, #040408, #090913);
  display:flex; align-items:center; justify-content:center;
}

/* Two-column inner */
.hero-inner {
  display:grid;
  grid-template-columns: 1fr 1fr;
  align-items:center;
  gap:3rem;
  max-width:1100px;
  width:100%;
  padding: 5rem 0 2rem;
}
.hero-text { text-align:left; }

.hero-badge {
  display:inline-block; font-size:.78rem; font-weight:700;
  letter-spacing:.12em; text-transform:uppercase;
  background: rgba(0,255,255,.08); border:1px solid rgba(0,255,255,.25);
  color:var(--neon-cyan); border-radius:999px; padding:.35rem 1.1rem;
  margin-bottom:1.5rem;
}
.hero h1 {
  font-size: clamp(2.2rem,5vw,4.2rem);
  font-weight:900; line-height:1.05;
  background: linear-gradient(to right, var(--neon-cyan), var(--neon-mag), var(--neon-yellow), var(--neon-cyan));
  background-size: 300% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shineGradient 6s linear infinite;
  margin-bottom:.75rem;
}
@keyframes shineGradient {
  to { background-position: 300% center; }
}
.hero h2 {
  font-size: clamp(1.1rem,2.5vw,1.6rem);
  min-height:2.2rem; color:var(--neon-yellow);
  text-shadow: 0 0 6px var(--neon-yellow);
  margin-bottom:.5rem;
}
.hero-sub { color:#6b7280; font-size:.9rem; margin-bottom:1.5rem; font-weight:500; letter-spacing:.05em; }

/* ─ Photo Side ─ */
.hero-photo-wrap {
  position:relative;
  display:flex; align-items:center; justify-content:center;
  width:100%; aspect-ratio:1;
  max-width:380px; margin:0 auto;
}

/* Clean glowing frame — static, nothing rotates */
.photo-glow-frame {
  position:relative; z-index:2;
  width:100%; height:100%;
  border-radius:24px;
  /* Multi-layer glow matching the photo's own yellow+red lighting */
  box-shadow:
    0 0 0 3px rgba(250,180,0,.5),
    0 0 30px rgba(250,180,0,.25),
    0 0 60px rgba(180,20,20,.2),
    0 8px 40px rgba(0,0,0,.6);
  overflow:hidden;
}

/* THE GREETING WAVE ANIMATION — only the image moves */
.hero-photo {
  width:100%; height:100%;
  object-fit:cover; object-position:center top;
  border-radius:24px; display:block;
  filter: brightness(1.05) contrast(1.05);
  transform-origin: bottom center;   /* pivot from feet = natural body lean */
  animation: greetingWave 3s ease-in-out infinite;
}

/*
  Simulates a "Hi!" greeting:
  – leans slightly forward (toward viewer)
  – quick cheerful side swings like waving hello
  – pauses at rest, then repeats
*/
@keyframes greetingWave {
  0%          { transform: rotate(0deg) translateY(0);        }
  8%          { transform: rotate(-4deg) translateY(-6px);    }  /* lean left */
  16%         { transform: rotate(5deg)  translateY(-4px);    }  /* swing right */
  24%         { transform: rotate(-3deg) translateY(-5px);    }  /* swing left */
  32%         { transform: rotate(4deg)  translateY(-3px);    }  /* swing right */
  40%         { transform: rotate(-1deg) translateY(-2px);    }  /* settle */
  50%, 100%   { transform: rotate(0deg) translateY(0);        }  /* rest pause */
}

.cta-buttons { display:flex; flex-wrap:wrap; gap:.75rem; justify-content:flex-start; margin-top:1.25rem; }

.btn {
  display:inline-flex; align-items:center; gap:.5rem;
  padding:.7rem 1.6rem; border:1.5px solid var(--neon-yellow);
  color:var(--neon-yellow); text-decoration:none; font-weight:700;
  font-size:.9rem; border-radius:10px; transition:all .25s ease;
  position:relative; overflow:hidden;
}
.btn.glow { box-shadow:var(--glow-y); }
.btn:hover { background:var(--neon-yellow); color:#000; box-shadow:0 0 18px var(--neon-yellow); }
.btn-icon {
  border-color:rgba(255,255,255,.25); color:#9ca3af;
  padding:.65rem .9rem;
}
.btn-icon:hover { background:rgba(255,255,255,.1); color:#fff; box-shadow:none; border-color:#fff; }
.btn-social { border-color:var(--neon-cyan); color:var(--neon-cyan); gap:.4rem; }
.btn-social:hover { background:var(--neon-cyan); color:#000; }

/* ════════════════════════════════════
   ABOUT
════════════════════════════════════ */
.about-grid { display:grid; grid-template-columns:1.4fr 1fr; gap:2rem; align-items:start; }
.about-bio { padding:2rem; }
.about-avatar-photo {
  width:72px; height:72px; border-radius:12px;
  overflow:hidden; margin-bottom:1.25rem;
  border:2px solid var(--neon-cyan);
  box-shadow: 0 0 12px var(--neon-cyan);
  flex-shrink:0;
}
.about-avatar-photo img { width:100%; height:100%; object-fit:cover; object-position:center top; }

.about-avatar {
  width:60px; height:60px; border-radius:50%;
  background:linear-gradient(135deg, var(--neon-cyan), var(--neon-mag));
  display:flex; align-items:center; justify-content:center;
  font-weight:900; font-size:1.2rem; color:#000; margin-bottom:1.25rem;
}
.about-bio h3 { font-size:1.4rem; font-weight:800; margin-bottom:1rem; }
.about-bio p { color:#9ca3af; line-height:1.8; font-size:.95rem; }

.about-cards { display:flex; flex-direction:column; gap:1.25rem; }
.about-card { padding:1.5rem; transition:transform .2s, box-shadow .2s; }
.about-card:hover { transform:translateY(-4px); box-shadow:var(--glow-c); }
.about-card-icon { font-size:1.8rem; margin-bottom:.5rem; }
.about-card h4 { font-size:1rem; font-weight:800; margin-bottom:.5rem; color:var(--neon-cyan); }
.about-card p { color:#9ca3af; font-size:.9rem; line-height:1.7; }
.interest-list { list-style:none; display:flex; flex-direction:column; gap:.3rem; }
.interest-list li { font-size:.88rem; color:#9ca3af; }
.interest-list li::before { content:'→ '; color:var(--neon-cyan); }

/* ════════════════════════════════════
   EDUCATION
════════════════════════════════════ */
.edu-card { padding:2rem; max-width:800px; margin:0 auto; }
.edu-header { display:flex; align-items:flex-start; gap:1.25rem; margin-bottom:1.5rem; flex-wrap:wrap; }
.edu-icon { font-size:2.5rem; }
.edu-header h3 { font-size:1.25rem; font-weight:800; }
.edu-college { color:var(--neon-cyan); font-size:.9rem; margin-top:.3rem; }
.cgpa-badge {
  margin-left:auto; text-align:center; padding:.6rem 1.2rem;
  background:rgba(0,255,255,.08); border:1.5px solid var(--neon-cyan);
  border-radius:12px; font-size:.7rem; font-weight:700; color:#9ca3af;
  letter-spacing:.08em; text-transform:uppercase;
  box-shadow: var(--glow-c);
}
.cgpa-badge span { display:block; font-size:1.6rem; font-weight:900; color:var(--neon-cyan); line-height:1; margin-top:.2rem; }
.coursework h4 { font-size:.85rem; color:#6b7280; font-weight:700; text-transform:uppercase; letter-spacing:.1em; margin-bottom:.75rem; }

/* ════════════════════════════════════
   TAGS
════════════════════════════════════ */
.tag-group { display:flex; flex-wrap:wrap; gap:.5rem; }
.tag {
  font-size:.78rem; font-weight:600; padding:.3rem .75rem;
  background:rgba(255,255,255,.06); border:1px solid rgba(255,255,255,.12);
  border-radius:999px; color:#cbd5e1; letter-spacing:.03em;
  transition: all .2s;
}
.tag:hover { border-color:var(--neon-cyan); color:var(--neon-cyan); }
.glow-tag { border-color:rgba(0,255,255,.25); color:#a5f3fc; }
.glow-tag:hover { background:rgba(0,255,255,.1); box-shadow:var(--glow-c); transform:scale(1.05); }

/* ════════════════════════════════════
   SKILLS
════════════════════════════════════ */
.skills-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(240px,1fr)); gap:1.5rem; }
.skill-cat { padding:1.5rem; transition:transform .2s, box-shadow .2s; }
.skill-cat:hover { transform:translateY(-4px); box-shadow:var(--glow-c); }
.skill-cat h4 { font-size:1rem; font-weight:800; margin-bottom:1rem; }

/* ════════════════════════════════════
   PROJECTS
════════════════════════════════════ */
.projects-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(300px,1fr)); gap:1.5rem; }
.proj-card {
  padding:0; display:flex; flex-direction:column;
  transition:transform .4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow .4s ease, border-color .4s ease;
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(255,255,255,0.08);
}
.proj-card:hover { 
  transform:translateY(-8px) scale(1.02); 
  box-shadow: 0 15px 30px rgba(0,255,255,0.15);
  border-color: var(--neon-cyan);
}
.proj-banner {
  width: 100%;
  height: 200px;
  overflow: hidden;
  position: relative;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.proj-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease, filter 0.5s ease;
}
.proj-card:hover .proj-banner img {
  transform: scale(1.08);
}
.proj-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.proj-header { display:flex; align-items:center; justify-content:space-between; margin-bottom:1rem; }
.proj-icon { font-size:1.5rem; display: none; }
.proj-status { font-size:.7rem; font-weight:700; text-transform:uppercase; letter-spacing:.1em; padding:.25rem .6rem; border-radius:999px; }
.proj-status.live { background:rgba(74,222,128,.1); color:#4ade80; border:1px solid rgba(74,222,128,.3); }
.proj-card h3 { font-size:1.15rem; font-weight:800; margin-bottom:.5rem; }
.proj-card p { color:#9ca3af; font-size:.9rem; line-height:1.6; flex:1; margin-bottom:1rem; }

/* ════════════════════════════════════
   MODAL
════════════════════════════════════ */
.modal { position:fixed; inset:0; background:rgba(0,0,0,.85); display:flex; align-items:center; justify-content:center; z-index:2000; }
.modal.hidden { display:none; }
.modal-content { max-width:600px; width:90%; padding:2rem; position:relative; }
.modal-content .close { position:absolute; top:.75rem; right:1rem; font-size:1.5rem; color:var(--neon-yellow); }

/* ════════════════════════════════════
   EXPERIENCE / TIMELINE
════════════════════════════════════ */
.timeline { position:relative; max-width:800px; margin:0 auto; }
.timeline-item { position:relative; padding-left:2rem; margin-bottom:2rem; }
.timeline-dot {
  position:absolute; left:0; top:1.5rem;
  width:12px; height:12px; border-radius:50%;
  background:var(--neon-cyan); box-shadow:var(--glow-c);
}
.timeline-card { padding:1.5rem; }
.timeline-header { display:flex; align-items:flex-start; gap:1rem; margin-bottom:1rem; flex-wrap:wrap; }
.timeline-icon { font-size:1.8rem; }
.timeline-header h3 { font-size:1.05rem; font-weight:800; }
.timeline-org { color:var(--neon-cyan); font-size:.85rem; margin-top:.2rem; }
.timeline-date { margin-left:auto; font-size:.78rem; color:#6b7280; font-weight:600; white-space:nowrap; }
.timeline-points { list-style:none; display:flex; flex-direction:column; gap:.5rem; }
.timeline-points li { font-size:.88rem; color:#9ca3af; line-height:1.6; }
.timeline-points li::before { content:'▸ '; color:var(--neon-cyan); }

/* ════════════════════════════════════
   CERTIFICATIONS
════════════════════════════════════ */
.cert-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(280px,1fr)); gap:1.5rem; }
.cert-card { padding:1.75rem; text-align:center; transition:transform .2s, box-shadow .2s; }
.cert-card:hover { transform:translateY(-5px); box-shadow:var(--glow-m); }
.cert-icon { font-size:2.5rem; margin-bottom:.75rem; }
.cert-card h3 { font-size:1rem; font-weight:800; margin-bottom:.35rem; }
.cert-provider { color:var(--neon-mag); font-size:.85rem; font-weight:600; }

/* ════════════════════════════════════
   ACHIEVEMENTS
════════════════════════════════════ */
.achieve-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(280px,1fr)); gap:1.5rem; }
.achieve-card { padding:2rem; text-align:center; transition:transform .2s, box-shadow .2s; }
.achieve-card:hover { transform:translateY(-5px); box-shadow:var(--glow-y); }
.achieve-badge { font-size:3rem; margin-bottom:.75rem; }
.achieve-card h3 { font-size:1.05rem; font-weight:800; margin-bottom:.3rem; }
.achieve-org { color:var(--neon-yellow); font-size:.82rem; font-weight:600; margin-bottom:.75rem; }
.achieve-card p { color:#9ca3af; font-size:.88rem; line-height:1.7; }

/* ════════════════════════════════════
   YOUTUBE
════════════════════════════════════ */
.youtube .glass { padding:3rem; border: 1px solid rgba(0,255,255,0.15); box-shadow: 0 0 30px rgba(0,255,255,0.05); }
.yt-sub-text { text-align:center; color:#9ca3af; font-size:1rem; margin-bottom:2.5rem; letter-spacing:.05em; font-weight:500; }

.video-grid { 
  display:grid; 
  grid-template-columns:repeat(auto-fit,minmax(280px,1fr)); 
  gap:2rem; 
}

.video-card { 
  border-radius:16px; 
  overflow:hidden; 
  position:relative; 
  cursor:pointer; 
  border:1px solid rgba(255,255,255,0.1); 
  background: rgba(0,0,0,0.3);
  transition:all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); 
}

.video-card:hover { 
  transform:translateY(-10px) scale(1.03); 
  box-shadow: 0 15px 30px rgba(0,255,255,0.2);
  border-color: var(--neon-cyan);
}

.video-thumb-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/9;
}

.video-card img { 
  width:100%; 
  height: 100%;
  object-fit: cover;
  display:block; 
  transition:transform 0.5s ease; 
}

.video-card:hover img { transform:scale(1.1); filter: brightness(0.7); }

/* Play Button Overlay */
.video-card::after {
  content: '▶';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.8);
  width: 50px;
  height: 50px;
  background: var(--neon-cyan);
  color: #000;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  opacity: 0;
  transition: all 0.3s ease;
  z-index: 2;
  box-shadow: 0 0 20px var(--neon-cyan);
}

.video-card:hover::after {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.video-info {
  padding: 1rem 1.25rem;
  background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
  position: relative;
}

.video-card p { 
  font-size:.9rem; 
  font-weight: 600;
  color: #fff;
  line-height: 1.4;
  margin: 0;
}

.yt-btn-wrap {
  text-align: center;
  margin-top: 3rem;
}

.yt-btn {
  background: #ff0000;
  border-color: #ff0000;
  color: #fff;
  padding: 0.8rem 2rem;
  font-size: 1rem;
  box-shadow: 0 0 15px rgba(255,0,0,0.3);
}

.yt-btn:hover {
  background: #cc0000;
  border-color: #cc0000;
  box-shadow: 0 0 25px rgba(255,0,0,0.5);
}

/* ════════════════════════════════════
   CONTACT
════════════════════════════════════ */
.contact-layout { display:grid; grid-template-columns:1fr 1.5fr; gap:2rem; align-items:start; }
.contact-info { padding:2rem; display:flex; flex-direction:column; gap:1rem; }
.contact-info h3 { font-size:1.1rem; font-weight:800; margin-bottom:.5rem; }
.contact-item { display:flex; align-items:center; gap:.75rem; }
.contact-item a { color:#9ca3af; text-decoration:none; font-size:.9rem; transition:color .2s; }
.contact-item a:hover { color:var(--neon-cyan); }
.contact-socials { display:flex; flex-wrap:wrap; gap:.75rem; margin-top:.5rem; }
.contact-form-wrap { padding:2rem; }
#contact-form { display:flex; flex-direction:column; gap:1rem; }
#contact-form input,
#contact-form textarea {
  padding:.8rem 1rem; border-radius:10px;
  background:rgba(255,255,255,.04); border:1px solid rgba(255,255,255,.1);
  color:#e2e8f0; font-family:inherit; font-size:.9rem;
  outline:none; resize:none; transition:border-color .2s;
}
#contact-form input:focus, #contact-form textarea:focus { border-color:var(--neon-cyan); }
#contact-form .btn {
  background: linear-gradient(135deg, var(--neon-cyan), var(--neon-mag));
  border: none;
  color: #000;
  font-weight: 800;
  box-shadow: 0 5px 15px rgba(0, 255, 255, 0.2);
  margin-top: 0.5rem;
}
#contact-form .btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(200, 50, 255, 0.4);
  background: linear-gradient(135deg, var(--neon-mag), var(--neon-cyan));
}

/* ════════════════════════════════════
   FOOTER
════════════════════════════════════ */
.footer { text-align:center; padding:2rem; font-size:.85rem; color:#4b5563; margin-top:2rem; }

/* ════════════════════════════════════
   GLITCH
════════════════════════════════════ */
.glitch { position:relative; display:inline-block; }
.glitch::before, .glitch::after { content:attr(data-text); position:absolute; top:0; left:0; width:100%; height:100%; opacity:.8; }
.glitch::before { left:2px; text-shadow:-2px 0 var(--neon-mag); animation:glitch-a 5s infinite linear alternate-reverse; }
.glitch::after  { left:-2px; text-shadow:-2px 0 var(--neon-cyan); animation:glitch-b 5s infinite linear alternate-reverse; }
@keyframes glitch-a {
  0%  { clip-path:inset(10px 0 80px 0); }
  20% { clip-path:inset(60px 0 5px 0); }
  40% { clip-path:inset(30px 0 50px 0); }
  60% { clip-path:inset(75px 0 10px 0); }
  80% { clip-path:inset(3px 0 85px 0); }
  100%{ clip-path:inset(50px 0 20px 0); }
}
@keyframes glitch-b {
  0%  { clip-path:inset(65px 0 5px 0); }
  20% { clip-path:inset(10px 0 75px 0); }
  40% { clip-path:inset(40px 0 30px 0); }
  60% { clip-path:inset(80px 0 5px 0); }
  80% { clip-path:inset(20px 0 60px 0); }
  100%{ clip-path:inset(90px 0 2px 0); }
}

/* ════════════════════════════════════
   RESPONSIVE
════════════════════════════════════ */
@media (max-width: 768px) {
  .hamburger { display: flex; }
  #nav-menu {
    position: fixed; top: 0; right: -100%; width: 250px; height: 100vh;
    background: rgba(5,5,8,0.95); backdrop-filter: blur(15px);
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    transition: right 0.4s ease; border-left: 1px solid rgba(255,255,255,0.1);
  }
  #nav-menu.active { right: 0; }
  .nav ul { flex-direction: column; gap: 2rem; align-items: center; padding: 0; }
  .nav a { font-size: 1.1rem; }
  .about-grid { grid-template-columns:1fr; }
  .contact-layout { grid-template-columns:1fr; }
  .edu-header { flex-direction:column; }
  .cgpa-badge { margin-left:0; }
  .timeline-date { margin-left:0; }
  /* Hero mobile: stack vertically, photo on top */
  .hero-inner { grid-template-columns:1fr; text-align:center; padding-top:6rem; gap:2rem; flex-direction:column-reverse; }
  .hero-inner > .hero-text { order:2; }
  .hero-inner > .hero-photo-wrap { order:1; max-width:220px; }
  .hero-text { text-align:center; }
  .cta-buttons { justify-content:center; }
  .pill-1, .pill-2, .pill-3 { display:none; }
}

/* ════════════════════════════════════
   TESTIMONIALS
════════════════════════════════════ */
.test-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(300px,1fr)); gap:1.5rem; }
.test-card { padding:2rem; position:relative; }
.test-card::before { content:'"'; position:absolute; top:1rem; right:1.5rem; font-size:4rem; color:var(--neon-cyan); opacity:0.2; font-family:serif; line-height:1; }
.test-quote { font-style:italic; color:#e2e8f0; line-height:1.7; margin-bottom:1.5rem; font-size:0.95rem; position:relative; z-index:1; }
.test-author { display:flex; align-items:center; gap:1rem; }
.test-avatar { font-size:2rem; width:50px; height:50px; background:rgba(0,255,255,0.1); border-radius:50%; display:flex; align-items:center; justify-content:center; }
.test-author h4 { font-size:1rem; font-weight:800; color:var(--neon-yellow); margin-bottom:0.2rem; }
.test-author p { font-size:0.8rem; color:#9ca3af; text-transform:uppercase; letter-spacing:0.05em; font-weight:600; }

/* ════════════════════════════════════
   LIGHT MODE
════════════════════════════════════ */
body.light-mode { background: #f8fafc; color: #0f172a; }
body.light-mode .glass { background: rgba(0,0,0,0.03); border: 1px solid rgba(0,0,0,0.06); }
body.light-mode .nav { background: rgba(255,255,255,0.85); border-bottom: 1px solid rgba(0,0,0,0.08); }
body.light-mode #nav-menu { background: rgba(255,255,255,0.95); border-left: 1px solid rgba(0,0,0,0.1); }
body.light-mode .nav a { color: #334155; }
body.light-mode .nav a:hover { color: #000; }
body.light-mode .nav-logo { color: #0ea5e9; text-shadow: none; }
body.light-mode .hamburger span { background: #000; }
body.light-mode .hero { background: linear-gradient(160deg, #f8fafc, #e2e8f0); }
body.light-mode .hero h1 { 
  background: linear-gradient(to right, #0ea5e9, #8b5cf6, #f59e0b, #0ea5e9);
  background-size: 300% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
body.light-mode .hero h2 { text-shadow: none; color: #92400e; font-weight: 800; }
body.light-mode .hero-sub { color: #1e293b; font-weight: 600; }
body.light-mode .about-bio p, body.light-mode .about-card p, body.light-mode .proj-card p,
body.light-mode .timeline-points li, body.light-mode .achieve-card p { color: #1e293b; font-weight: 500; }
body.light-mode .interest-list li { color: #1e293b; font-weight: 500; }
body.light-mode .tag { background: rgba(0,0,0,0.08); border-color: rgba(0,0,0,0.2); color: #0f172a; font-weight: 700; }
body.light-mode .tag:hover { border-color: var(--neon-cyan); color: #000; background: rgba(0,255,255,0.1); }
body.light-mode .btn-icon { border-color: rgba(0,0,0,0.3); color: #0f172a; }
body.light-mode .btn-icon:hover { background: rgba(0,0,0,0.08); color: #000; border-color: #000; }
body.light-mode #contact-form input, body.light-mode #contact-form textarea {
  background: rgba(0,0,0,0.03); border: 1px solid rgba(0,0,0,0.2); color: #0f172a; font-weight: 500;
}
body.light-mode .footer { color: #334155; font-weight: 500; }
body.light-mode .scanlines { opacity: 0.1; }
body.light-mode .section-title { text-shadow: none; }
body.light-mode .modal { background: rgba(255,255,255,.85); }
body.light-mode .modal-content { background: #fff; box-shadow: 0 10px 40px rgba(0,0,0,.1); border-color: rgba(0,0,0,.1); }
body.light-mode .modal-content .close { color: #f97316; }
body.light-mode .test-quote { color: #1e293b; font-weight: 500; }
body.light-mode .test-author h4 { color: #92400e; font-weight: 800; }
body.light-mode .test-author p { color: #334155; font-weight: 600; }
body.light-mode .test-card::before { color: #0284c7; opacity: 0.15; }
