/* ===========================
   ASHISH CHAURASIYA PORTFOLIO
   style.css
=========================== */

:root {
  --bg: #050508;
  --bg2: #0a0a12;
  --bg3: #0f0f1a;
  --surface: #13131f;
  --surface2: #1a1a2e;
  --border: rgba(100, 120, 255, 0.12);
  --accent: #6478ff;
  --accent2: #a78bfa;
  --accent3: #38bdf8;
  --cyan: #00d4ff;
  --white: #f0efff;
  --muted: #7070a0;
  --text: #c8c8e8;
  --gold: #fbbf24;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  cursor: none;
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 2px; }

/* ===== CURSOR ===== */
.cursor {
  position: fixed; width: 10px; height: 10px;
  background: var(--accent); border-radius: 50%;
  pointer-events: none; z-index: 99999;
  transform: translate(-50%, -50%);
  transition: transform 0.1s, background 0.2s;
}
.cursor-trail {
  position: fixed; width: 32px; height: 32px;
  border: 1.5px solid rgba(100, 120, 255, 0.4);
  border-radius: 50%; pointer-events: none; z-index: 99998;
  transform: translate(-50%, -50%);
  transition: all 0.12s ease;
}
body:has(a:hover) .cursor, body:has(button:hover) .cursor { transform: translate(-50%,-50%) scale(2.5); background: var(--accent2); }

/* ===== CONTAINER ===== */
.container { max-width: 1160px; margin: 0 auto; padding: 0 32px; }

/* ===== NAVBAR ===== */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 20px 0;
  transition: all 0.4s ease;
}
nav.scrolled {
  background: rgba(5, 5, 8, 0.92);
  backdrop-filter: blur(20px);
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1160px; margin: 0 auto; padding: 0 32px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo {
  font-family: 'Syne', sans-serif;
  font-size: 26px; font-weight: 800;
  color: var(--white); text-decoration: none; letter-spacing: -0.5px;
}
.nav-logo span { color: var(--accent); }
.nav-links { display: flex; gap: 36px; list-style: none; }
.nav-links a {
  font-size: 13px; font-weight: 500; letter-spacing: 0.5px;
  color: var(--muted); text-decoration: none;
  transition: color 0.3s; position: relative;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -4px; left: 0; right: 0;
  height: 1px; background: var(--accent);
  transform: scaleX(0); transition: transform 0.3s;
}
.nav-links a:hover { color: var(--white); }
.nav-links a:hover::after { transform: scaleX(1); }
.nav-cta {
  font-size: 12px; font-weight: 600; letter-spacing: 0.5px;
  color: var(--bg); background: var(--accent);
  padding: 10px 22px; border-radius: 50px;
  text-decoration: none; transition: all 0.3s;
}
.nav-cta:hover { background: var(--accent2); transform: translateY(-2px); }
.hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: none; padding: 4px;
}
.hamburger span { width: 22px; height: 1.5px; background: var(--white); display: block; transition: all 0.3s; }

/* Mobile Menu */
.mobile-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,0.6); z-index: 1001;
  backdrop-filter: blur(4px);
}
.mobile-overlay.open { display: block; }
.mobile-menu {
  position: fixed; top: 0; right: -280px; bottom: 0; width: 280px;
  background: var(--bg3); z-index: 1002;
  display: flex; flex-direction: column;
  padding: 80px 32px 32px;
  gap: 24px; transition: right 0.4s cubic-bezier(0.16,1,0.3,1);
  border-left: 1px solid var(--border);
}
.mobile-menu.open { right: 0; }
.mobile-menu a {
  font-family: 'Syne', sans-serif;
  font-size: 22px; font-weight: 700;
  color: var(--text); text-decoration: none;
  transition: color 0.3s;
}
.mobile-menu a:hover { color: var(--accent); }
.mobile-close {
  position: absolute; top: 20px; right: 20px;
  background: none; border: none; color: var(--text);
  font-size: 24px; cursor: none;
}
.mobile-cta {
  background: var(--accent) !important; color: var(--bg) !important;
  padding: 14px 24px; border-radius: 50px;
  font-size: 14px !important; font-weight: 700 !important;
  text-align: center; margin-top: 8px;
}

/* ===== HERO ===== */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
#particleCanvas {
  position: absolute; inset: 0; width: 100%; height: 100%;
  z-index: 0; opacity: 0.6;
}
.hero-content {
  position: relative; z-index: 1;
  text-align: center; padding: 120px 24px 60px;
  max-width: 800px;
}
.hero-badge {
  display: inline-block;
  font-size: 12px; font-weight: 500; letter-spacing: 2px;
  color: var(--accent); border: 1px solid rgba(100,120,255,0.3);
  background: rgba(100,120,255,0.08);
  padding: 6px 18px; border-radius: 50px; margin-bottom: 24px;
}
.hero-greeting {
  font-size: 18px; font-weight: 400; color: var(--muted);
  margin-bottom: 8px; letter-spacing: 2px;
}
.hero-name {
  font-family: 'Syne', sans-serif;
  font-size: clamp(52px, 9vw, 100px);
  font-weight: 800; line-height: 0.9;
  color: var(--white); margin-bottom: 24px;
  letter-spacing: -2px;
}
.hero-name span {
  background: linear-gradient(135deg, var(--accent), var(--accent2), var(--cyan));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-typing {
  font-size: clamp(18px, 3vw, 26px);
  font-weight: 400; color: var(--text); margin-bottom: 20px;
  min-height: 40px;
}
.typing-prefix { color: var(--muted); }
.typing-text { color: var(--accent2); font-weight: 500; }
.typing-cursor {
  color: var(--accent); animation: blink 1s step-end infinite;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0} }

.hero-sub {
  font-size: 16px; font-weight: 300; color: var(--muted);
  max-width: 500px; margin: 0 auto 36px; line-height: 1.7;
}
.hero-btns {
  display: flex; gap: 14px; justify-content: center; flex-wrap: wrap;
  margin-bottom: 32px;
}
.hero-socials { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.social-pill {
  font-size: 12px; font-weight: 500; letter-spacing: 0.5px;
  color: var(--muted); border: 1px solid var(--border);
  background: rgba(255,255,255,0.03);
  padding: 8px 16px; border-radius: 50px;
  text-decoration: none; transition: all 0.3s;
}
.social-pill:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }

.hero-scroll-hint {
  position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  z-index: 1;
}
.hero-scroll-hint span { font-size: 10px; letter-spacing: 3px; text-transform: uppercase; color: var(--muted); }
.scroll-dot {
  width: 4px; height: 40px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  border-radius: 2px; animation: scrollAnim 2s ease-in-out infinite;
}
@keyframes scrollAnim { 0%,100%{opacity:0.4;transform:scaleY(0.7)} 50%{opacity:1;transform:scaleY(1)} }

/* ===== BUTTONS ===== */
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; letter-spacing: 0.5px;
  color: var(--bg); background: linear-gradient(135deg, var(--accent), var(--accent2));
  padding: 14px 28px; border-radius: 50px; border: none;
  text-decoration: none; cursor: none; transition: all 0.3s;
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 12px 40px rgba(100,120,255,0.35); }
.btn-secondary {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; letter-spacing: 0.5px;
  color: var(--white); background: transparent;
  border: 1.5px solid rgba(255,255,255,0.15);
  padding: 14px 28px; border-radius: 50px;
  text-decoration: none; cursor: none; transition: all 0.3s;
}
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-3px); }

/* ===== SECTION COMMON ===== */
section { padding: 100px 0; }
.section-tag {
  display: inline-block; font-size: 11px; font-weight: 500; letter-spacing: 3px;
  text-transform: uppercase; color: var(--accent);
  background: rgba(100,120,255,0.08); border: 1px solid rgba(100,120,255,0.2);
  padding: 5px 14px; border-radius: 50px; margin-bottom: 16px;
}
.section-title {
  font-family: 'Syne', sans-serif;
  font-size: clamp(32px, 5vw, 54px);
  font-weight: 800; color: var(--white); line-height: 1.1;
  margin-bottom: 16px; letter-spacing: -1px;
}
.section-title em { font-style: normal; color: var(--accent2); }
.section-sub {
  font-size: 15px; font-weight: 300; color: var(--muted);
  max-width: 560px; line-height: 1.8;
}
.section-header { margin-bottom: 60px; }
.accent-line {
  width: 48px; height: 3px;
  background: linear-gradient(to right, var(--accent), var(--accent2));
  border-radius: 2px; margin-bottom: 24px;
}

/* ===== ABOUT ===== */
.about { background: var(--bg2); }
.about-grid {
  display: grid; grid-template-columns: 1fr 1.6fr;
  gap: 80px; align-items: center;
}
.about-img-col { display: flex; flex-direction: column; align-items: center; gap: 20px; }
.about-avatar {
  position: relative; width: 220px; height: 220px;
  display: flex; align-items: center; justify-content: center;
}
.avatar-inner {
  width: 180px; height: 180px; border-radius: 50%;
  background: linear-gradient(135deg, var(--surface2), var(--bg3));
  border: 2px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Syne', sans-serif; font-size: 56px; font-weight: 800;
  color: var(--accent); position: relative; z-index: 1;
}
.avatar-ring {
  position: absolute; inset: -8px; border-radius: 50%;
  border: 1.5px solid rgba(100,120,255,0.25);
  animation: spin 12s linear infinite;
}
.avatar-ring2 {
  position: absolute; inset: -20px; border-radius: 50%;
  border: 1px solid rgba(167,139,250,0.15);
  animation: spin 20s linear infinite reverse;
}
@keyframes spin { from{transform:rotate(0deg)} to{transform:rotate(360deg)} }

.about-status {
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 500; color: #4ade80;
  background: rgba(74,222,128,0.08); border: 1px solid rgba(74,222,128,0.2);
  padding: 6px 16px; border-radius: 50px;
}
.status-dot {
  width: 7px; height: 7px; background: #4ade80; border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:0.6;transform:scale(0.8)} }

.about-bio {
  font-size: 15px; font-weight: 300; line-height: 1.9;
  color: var(--text); margin-bottom: 14px;
}
.about-bio strong { color: var(--white); font-weight: 600; }
.about-cards {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 12px; margin: 28px 0;
}
.about-card {
  display: flex; gap: 12px; align-items: flex-start;
  background: var(--surface); border: 1px solid var(--border);
  padding: 16px; border-radius: 12px; transition: border-color 0.3s;
}
.about-card:hover { border-color: rgba(100,120,255,0.4); }
.about-card-icon { font-size: 20px; flex-shrink: 0; margin-top: 2px; }
.about-card-label {
  font-size: 10px; font-weight: 600; letter-spacing: 2px;
  text-transform: uppercase; color: var(--accent); margin-bottom: 4px;
}
.about-card-value { font-size: 13px; font-weight: 400; color: var(--text); line-height: 1.4; }

/* ===== SKILLS ===== */
.skills { background: var(--bg); }
.skills-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 20px; margin-bottom: 48px;
}
.skill-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 20px; padding: 36px 28px;
  transition: all 0.4s ease; position: relative; overflow: hidden;
}
.skill-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(to right, var(--accent), var(--accent2));
  transform: scaleX(0); transform-origin: left; transition: transform 0.4s;
}
.skill-card:hover::before { transform: scaleX(1); }
.skill-card:hover { border-color: rgba(100,120,255,0.3); transform: translateY(-4px); }
.skill-card.featured {
  background: linear-gradient(135deg, rgba(100,120,255,0.08), rgba(167,139,250,0.05));
  border-color: rgba(100,120,255,0.3);
}
.skill-card-badge {
  position: absolute; top: 16px; right: 16px;
  font-size: 10px; font-weight: 600; letter-spacing: 1px;
  color: var(--gold); background: rgba(251,191,36,0.1);
  border: 1px solid rgba(251,191,36,0.2);
  padding: 3px 10px; border-radius: 20px;
}
.skill-card-icon { font-size: 36px; margin-bottom: 16px; display: block; }
.skill-card h3 {
  font-family: 'Syne', sans-serif; font-size: 18px; font-weight: 700;
  color: var(--white); margin-bottom: 20px;
}
.skill-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  font-size: 11px; font-weight: 500; letter-spacing: 0.5px;
  color: var(--accent2); background: rgba(167,139,250,0.1);
  border: 1px solid rgba(167,139,250,0.2);
  padding: 5px 12px; border-radius: 20px; transition: all 0.2s;
}
.tag:hover { background: rgba(167,139,250,0.2); transform: translateY(-1px); }

/* Why Grid */
.why-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
}
.why-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 16px; padding: 28px 22px; transition: all 0.3s;
  text-align: center;
}
.why-card:hover { border-color: rgba(100,120,255,0.3); transform: translateY(-3px); }
.why-icon { font-size: 28px; display: block; margin-bottom: 12px; }
.why-card h4 {
  font-family: 'Syne', sans-serif; font-size: 14px; font-weight: 700;
  color: var(--white); margin-bottom: 8px;
}
.why-card p { font-size: 12px; font-weight: 300; color: var(--muted); line-height: 1.7; }

/* ===== EXPERIENCE ===== */
.experience { background: var(--bg2); }
.timeline {
  position: relative; max-width: 760px; margin: 0 auto;
  padding-left: 32px;
}
.timeline::before {
  content: ''; position: absolute;
  left: 8px; top: 0; bottom: 0; width: 1px;
  background: linear-gradient(to bottom, var(--accent), var(--accent2), transparent);
}
.timeline-item {
  position: relative; margin-bottom: 48px;
}
.timeline-dot {
  position: absolute; left: -28px; top: 8px;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--bg2);
  box-shadow: 0 0 12px rgba(100,120,255,0.5);
}
.timeline-content {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 16px; padding: 28px 28px;
  transition: border-color 0.3s;
}
.timeline-content:hover { border-color: rgba(100,120,255,0.3); }
.timeline-date {
  font-size: 11px; font-weight: 600; letter-spacing: 2px;
  text-transform: uppercase; color: var(--accent); margin-bottom: 8px;
}
.timeline-content h3 {
  font-family: 'Syne', sans-serif; font-size: 20px; font-weight: 700;
  color: var(--white); margin-bottom: 4px;
}
.timeline-subtitle {
  font-size: 13px; font-weight: 400; color: var(--accent2); margin-bottom: 12px;
}
.timeline-content p {
  font-size: 14px; font-weight: 300; color: var(--text);
  line-height: 1.8; margin-bottom: 16px;
}
.timeline-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.timeline-tags span {
  font-size: 11px; color: var(--muted); background: var(--bg3);
  border: 1px solid var(--border); padding: 4px 12px; border-radius: 20px;
}

/* ===== PROJECTS ===== */
.projects { background: var(--bg); }
.projects-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.project-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 20px; overflow: hidden; transition: all 0.4s ease;
}
.project-card:hover { transform: translateY(-6px); border-color: rgba(100,120,255,0.4); box-shadow: 0 20px 60px rgba(0,0,0,0.4); }
.project-banner {
  height: 160px; display: flex; align-items: center; justify-content: center;
  position: relative;
}
.project-emoji { font-size: 52px; }
.project-body { padding: 24px; }
.project-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.project-tags span {
  font-size: 10px; font-weight: 600; letter-spacing: 1px;
  text-transform: uppercase; color: var(--accent);
  background: rgba(100,120,255,0.08); border: 1px solid rgba(100,120,255,0.2);
  padding: 3px 10px; border-radius: 20px;
}
.project-body h3 {
  font-family: 'Syne', sans-serif; font-size: 18px; font-weight: 700;
  color: var(--white); margin-bottom: 10px; line-height: 1.3;
}
.project-body p {
  font-size: 13px; font-weight: 300; color: var(--muted);
  line-height: 1.8; margin-bottom: 20px;
}
.project-footer { border-top: 1px solid var(--border); padding-top: 16px; }
.project-btn {
  font-size: 12px; font-weight: 600; letter-spacing: 0.5px;
  color: var(--accent); text-decoration: none;
  transition: gap 0.3s; display: inline-flex; gap: 4px;
}
.project-btn:hover { color: var(--accent2); gap: 8px; }

/* ===== CONTACT ===== */
.contact { background: var(--bg2); }
.contact-grid {
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 56px;
}
.contact-form {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 20px; padding: 36px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.form-group label {
  font-size: 11px; font-weight: 600; letter-spacing: 2px;
  text-transform: uppercase; color: var(--accent);
}
.form-group input, .form-group textarea {
  background: var(--bg3); border: 1px solid var(--border);
  color: var(--white); padding: 14px 16px; border-radius: 10px;
  font-family: 'DM Sans', sans-serif; font-size: 14px; font-weight: 300;
  outline: none; transition: border-color 0.3s; resize: none;
}
.form-group input::placeholder, .form-group textarea::placeholder { color: rgba(112,112,160,0.5); }
.form-group input:focus, .form-group textarea:focus { border-color: var(--accent); }
.form-success {
  display: none; text-align: center; padding: 14px;
  background: rgba(74,222,128,0.08); border: 1px solid rgba(74,222,128,0.2);
  border-radius: 10px; color: #4ade80; font-size: 14px; margin-top: 12px;
}
.form-success.show { display: block; }

.contact-info-cards { display: flex; flex-direction: column; gap: 12px; margin-bottom: 20px; }
.contact-info-card {
  display: flex; align-items: center; gap: 16px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 14px; padding: 18px 20px;
  text-decoration: none; transition: all 0.3s;
}
.contact-info-card:hover { border-color: rgba(100,120,255,0.4); transform: translateX(4px); }
.contact-info-card.no-link { cursor: default; }
.ci-icon { font-size: 22px; flex-shrink: 0; }
.ci-label {
  font-size: 10px; font-weight: 600; letter-spacing: 2px;
  text-transform: uppercase; color: var(--accent); margin-bottom: 2px;
}
.ci-value { font-size: 14px; font-weight: 400; color: var(--white); }
.ci-arrow { margin-left: auto; color: var(--muted); font-size: 16px; transition: transform 0.3s; }
.contact-info-card:hover .ci-arrow { transform: translateX(3px); color: var(--accent); }

.whatsapp-big-btn {
  display: flex; align-items: center; gap: 16px;
  background: linear-gradient(135deg, #25D366, #128C7E);
  border-radius: 16px; padding: 20px 24px;
  text-decoration: none; transition: all 0.3s;
}
.whatsapp-big-btn:hover { transform: translateY(-3px); box-shadow: 0 12px 40px rgba(37,211,102,0.25); }
.wa-icon-big { font-size: 28px; flex-shrink: 0; }
.wa-title { font-size: 16px; font-weight: 700; color: #fff; }
.wa-sub { font-size: 12px; color: rgba(255,255,255,0.7); margin-top: 2px; }
.wa-arrow { margin-left: auto; color: rgba(255,255,255,0.7); font-size: 20px; }

/* ===== FOOTER ===== */
footer { background: var(--bg3); border-top: 1px solid var(--border); padding: 56px 0 0; }
.footer-inner {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr;
  gap: 48px; margin-bottom: 40px; align-items: start;
}
.footer-logo {
  font-family: 'Syne', sans-serif; font-size: 28px; font-weight: 800;
  color: var(--white); display: block; margin-bottom: 12px;
}
.footer-logo span { color: var(--accent); }
.footer-brand p { font-size: 14px; font-weight: 300; color: var(--muted); line-height: 1.7; }
.footer-links {
  display: flex; flex-direction: column; gap: 12px;
}
.footer-links a {
  font-size: 14px; font-weight: 400; color: var(--muted);
  text-decoration: none; transition: color 0.3s;
}
.footer-links a:hover { color: var(--accent); }
.footer-socials { display: flex; gap: 12px; flex-wrap: wrap; }
.fsocial {
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--surface); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; text-decoration: none; transition: all 0.3s;
}
.fsocial:hover { border-color: var(--accent); transform: translateY(-3px); }
.footer-bottom {
  border-top: 1px solid var(--border); padding: 24px 0;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 12px;
}
.footer-bottom p { font-size: 12px; color: var(--muted); }
.footer-bottom span { color: var(--accent); font-weight: 500; }

/* ===== FLOATING BUTTONS ===== */
.floating-btns {
  position: fixed; bottom: 28px; right: 28px;
  z-index: 9000; display: flex; flex-direction: column; gap: 10px;
}
.fab {
  width: 52px; height: 52px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; text-decoration: none; transition: all 0.3s;
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}
.fab-wa { background: #25D366; }
.fab-call { background: var(--accent); }
.fab:hover { transform: scale(1.12) translateY(-2px); }

/* Back to Top */
.back-top {
  position: fixed; bottom: 28px; left: 28px; z-index: 9000;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--surface); border: 1px solid var(--border);
  color: var(--white); font-size: 18px; cursor: none;
  display: none; align-items: center; justify-content: center;
  transition: all 0.3s;
}
.back-top.show { display: flex; }
.back-top:hover { border-color: var(--accent); color: var(--accent); }

/* ===== SCROLL ANIMATIONS ===== */
.reveal { opacity: 0; transform: translateY(36px); transition: all 0.8s cubic-bezier(0.16,1,0.3,1); }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-left { opacity: 0; transform: translateX(-36px); transition: all 0.8s cubic-bezier(0.16,1,0.3,1); }
.reveal-left.visible { opacity: 1; transform: translateX(0); }
.reveal-right { opacity: 0; transform: translateX(36px); transition: all 0.8s cubic-bezier(0.16,1,0.3,1); }
.reveal-right.visible { opacity: 1; transform: translateX(0); }

/* Stagger delays */
.skills-grid .skill-card:nth-child(1) { transition-delay: 0s; }
.skills-grid .skill-card:nth-child(2) { transition-delay: 0.1s; }
.skills-grid .skill-card:nth-child(3) { transition-delay: 0.2s; }
.projects-grid .project-card:nth-child(1) { transition-delay: 0s; }
.projects-grid .project-card:nth-child(2) { transition-delay: 0.1s; }
.projects-grid .project-card:nth-child(3) { transition-delay: 0.2s; }
.why-grid .why-card:nth-child(1) { transition-delay: 0s; }
.why-grid .why-card:nth-child(2) { transition-delay: 0.08s; }
.why-grid .why-card:nth-child(3) { transition-delay: 0.16s; }
.why-grid .why-card:nth-child(4) { transition-delay: 0.24s; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .about-grid { grid-template-columns: 1fr; gap: 48px; text-align: center; }
  .about-img-col { align-items: center; }
  .accent-line { margin: 0 auto 24px; }
  .skills-grid { grid-template-columns: 1fr 1fr; }
  .why-grid { grid-template-columns: 1fr 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  section { padding: 72px 0; }
  .container { padding: 0 20px; }
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: flex; }
  .skills-grid { grid-template-columns: 1fr; }
  .projects-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr 1fr; }
  .about-cards { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .hero-name { letter-spacing: -1px; }
  .floating-btns { bottom: 20px; right: 16px; }
  .back-top { bottom: 20px; left: 16px; }
}
@media (max-width: 480px) {
  .why-grid { grid-template-columns: 1fr; }
  .hero-btns { flex-direction: column; align-items: center; }
}

/* ===== AVATAR HOVER PHOTO EFFECT ===== */
.about-avatar {
  position: relative;
  width: 220px; height: 220px;
  display: flex; align-items: center; justify-content: center;
  cursor: none;
}
.avatar-photo {
  position: absolute;
  width: 180px; height: 180px;
  border-radius: 50%;
  object-fit: cover; object-position: center top;
  opacity: 0;
  transform: scale(0.85);
  transition: opacity 0.4s cubic-bezier(0.16,1,0.3,1),
              transform 0.4s cubic-bezier(0.16,1,0.3,1);
  z-index: 2;
  border: 2px solid rgba(100,120,255,0.5);
  filter: saturate(1.1) brightness(1.05);
}
#avatarInitials {
  transition: opacity 0.4s ease, transform 0.4s ease;
  z-index: 1;
}
.about-avatar:hover .avatar-photo {
  opacity: 1;
  transform: scale(1);
}
.about-avatar:hover #avatarInitials {
  opacity: 0;
  transform: scale(1.1);
}
.avatar-hover-hint {
  position: absolute;
  bottom: -32px; left: 50%;
  transform: translateX(-50%);
  font-size: 11px; font-weight: 500; letter-spacing: 1px;
  color: rgba(100,120,255,0.6);
  white-space: nowrap;
  opacity: 1;
  transition: opacity 0.3s;
}
.about-avatar:hover .avatar-hover-hint {
  opacity: 0;
}
/* Glow effect on hover */
.about-avatar:hover .avatar-ring {
  border-color: rgba(100,120,255,0.6);
  box-shadow: 0 0 20px rgba(100,120,255,0.2);
}
.about-avatar:hover .avatar-ring2 {
  border-color: rgba(167,139,250,0.4);
}
