/* ============================================
   ANSH PORTFOLIO — NOAH TEMPLATE STYLE
   Pure CSS — No Framework
   ============================================ */

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg: #050505;
  --bg-secondary: #0a0a0a;
  --bg-card: rgba(255, 255, 255, 0.03);
  --bg-card-hover: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.06);
  --border-hover: rgba(255, 107, 0, 0.3);
  --accent: #ff6b00;
  --accent-glow: rgba(255, 107, 0, 0.25);
  --glass: rgba(255, 255, 255, 0.03);
  --glass-border: rgba(255, 255, 255, 0.07);
  --backdrop: blur(16px);
  --radius: 16px;
  --radius-sm: 10px;
  --radius-pill: 50px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
  --text: #ffffff;
  --text-muted: rgba(255, 255, 255, 0.55);
  --text-dim: rgba(255, 255, 255, 0.35);
}
/* ============ LIGHT MODE VARIABLES ============ */
body.light-mode {
  --bg: #f8f9fa;
  --bg-secondary: #ffffff;
  --bg-card: rgba(0, 0, 0, 0.02);
  --bg-card-hover: rgba(0, 0, 0, 0.05);
  --border: rgba(0, 0, 0, 0.08);
  --border-hover: rgba(255, 107, 0, 0.4);
  --text: #1a1a1a;
  --text-muted: rgba(0, 0, 0, 0.65);
  --text-dim: rgba(0, 0, 0, 0.45);
  --glass: rgba(255, 255, 255, 0.8);
  --glass-border: rgba(0, 0, 0, 0.1);
}

/* Theme Toggle Button Styles */
.theme-toggle {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  border-radius: 50%;
  margin-left: 10px;
}

.theme-toggle:hover {
  color: var(--accent);
  background: rgba(255, 107, 0, 0.08);
}

/* Hide moon by default (since dark mode is default) */
.moon-icon { display: none; }
body.light-mode .sun-icon { display: none; }
body.light-mode .moon-icon { display: block; }
/* ---- LIGHT MODE OVERRIDES ---- */

/* Fix Navbar Visibility */
body.light-mode .nav-container {
  background: rgba(255, 255, 255, 0.85);
  border-color: rgba(0, 0, 0, 0.1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}
body.light-mode .mobile-menu {
  background: rgba(255, 255, 255, 0.98);
  border-color: rgba(0, 0, 0, 0.1);
}

/* Fix Contact Form Inputs Visibility */
body.light-mode .form-group input,
body.light-mode .form-group textarea {
  background: rgba(0, 0, 0, 0.03);
  border: 1px solid rgba(0, 0, 0, 0.15);
  color: var(--text);
}
body.light-mode .form-group input::placeholder,
body.light-mode .form-group textarea::placeholder {
  color: rgba(0, 0, 0, 0.4);
}

/* Fix Hero Quote Card Visibility */
body.light-mode .hero-quote-card {
  background: rgba(255, 255, 255, 0.65);
}
/* Fix Floating Tech Icons */
body.light-mode .tech-icon {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}
/* Reverts the GitHub icon back to its original black color */
body.light-mode .invert-icon {
  filter: none; 
}

/* Fix Scroll Mouse Visibility */
body.light-mode .scroll-mouse {
  border-color: rgba(0, 0, 0, 0.3);
}
body.light-mode .scroll-indicator {
  color: var(--text-muted); 
}
/* Hide light logo by default */
.logo-light { display: none; }

/* When light mode is active, hide dark logo and show light logo */
body.light-mode .logo-dark { display: none; }
body.light-mode .logo-light { display: block; }

/* Fix Hackathon Yellow Contrast (Shifted to Dark Goldenrod) */
body.light-mode .timeline-dot.hackathon {
  background: rgba(184, 134, 11, 0.15); 
  border-color: rgba(184, 134, 11, 0.7);
}
body.light-mode .timeline-card.hackathon-card {
  border-color: rgba(184, 134, 11, 0.2);
}
body.light-mode .timeline-card.hackathon-card:hover {
  border-color: rgba(184, 134, 11, 0.4);
}
body.light-mode .timeline-type.hackathon-badge-type {
  color: #b8860b; /* Dark Goldenrod */
  background: rgba(184, 134, 11, 0.1); 
  border-color: rgba(184, 134, 11, 0.2);
}
body.light-mode .rank-badge {
  color: #b8860b; 
  background: rgba(184, 134, 11, 0.1); 
  border-color: rgba(184, 134, 11, 0.2);
}
body.light-mode .skill-track { background: rgba(0, 0, 0, 0.08); }
/*light mode ends*/

html { scroll-behavior: smooth; overflow-x: hidden; }

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.7;
  overflow-x: hidden;
}

/* ============ UTILITIES ============ */
.container { max-width: 1200px; margin: 0 auto; padding: 0 32px; }
.accent { color: var(--accent); }

.section { padding: 70px 0; }

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

.section-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(255, 107, 0, 0.08);
  border: 1px solid rgba(255, 107, 0, 0.2);
  border-radius: var(--radius-pill);
  padding: 5px 16px;
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 700;
  line-height: 1.2;
}

.section-subtitle {
  margin-top: 12px;
  font-size: 0.95rem;
  color: var(--text-muted);
  max-width: 520px;
  margin-inline: auto;
}

/* ============ SCROLL ANIMATION ============ */
[data-aos] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
[data-aos].aos-animate { opacity: 1; transform: translateY(0); }
[data-aos][data-aos-delay="80"]  { transition-delay: 0.08s; }
[data-aos][data-aos-delay="100"] { transition-delay: 0.1s; }
[data-aos][data-aos-delay="160"] { transition-delay: 0.16s; }
[data-aos][data-aos-delay="200"] { transition-delay: 0.2s; }
[data-aos][data-aos-delay="240"] { transition-delay: 0.24s; }
[data-aos][data-aos-delay="300"] { transition-delay: 0.3s; }
[data-aos][data-aos-delay="320"] { transition-delay: 0.32s; }
[data-aos][data-aos-delay="400"] { transition-delay: 0.4s; }
[data-aos="fade-right"] { transform: translateX(-24px); }
[data-aos="fade-right"].aos-animate { transform: translateX(0); }
[data-aos="fade-left"]  { transform: translateX(24px); }
[data-aos="fade-left"].aos-animate  { transform: translateX(0); }

/* ============ NAVIGATION ============ */
.navbar {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  width: calc(100% - 48px);
  max-width: 960px;
  transition: top var(--transition);
}

.nav-container {
  background: rgba(8, 8, 8, 0.8);
  backdrop-filter: var(--backdrop);
  -webkit-backdrop-filter: var(--backdrop);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-pill);
  padding: 10px 22px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-logo { font-size: 1.3rem; font-weight: 700; color: var(--text); white-space: nowrap; letter-spacing: -0.5px; }

.nav-links { display: flex; gap: 2px; flex: 1; justify-content: center; }

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  transition: var(--transition);
}
.nav-link:hover, .nav-link.active { color: var(--accent); background: rgba(255, 107, 0, 0.08); }

.nav-resume {
  display: flex; align-items: center; gap: 7px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-pill);
  padding: 7px 16px;
  color: var(--text);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 500;
  white-space: nowrap;
  transition: var(--transition);
}
.nav-resume:hover { border-color: var(--accent); color: var(--accent); background: rgba(255, 107, 0, 0.07); }

.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; }
.hamburger span { display: block; width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: var(--transition); }

.mobile-menu {
  display: none; flex-direction: column; gap: 4px;
  background: rgba(8, 8, 8, 0.97);
  backdrop-filter: var(--backdrop);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 14px;
  margin-top: 8px;
}
.mobile-menu.open { display: flex; }
.mobile-link, .mobile-resume {
  color: var(--text-muted); text-decoration: none; font-size: 0.92rem; font-weight: 500;
  padding: 9px 14px; border-radius: var(--radius-sm); transition: var(--transition);
}
.mobile-link:hover { color: var(--text); background: var(--bg-card); }
.mobile-resume { color: var(--accent); border: 1px solid rgba(255,107,0,0.3); text-align: center; margin-top: 6px; }

/* ============ HERO ============ */
.hero {
  min-height: 100vh;
  display: flex; flex-direction: column; justify-content: center;
  position: relative; overflow: hidden;
  padding: 100px 32px 60px;
  background:
    radial-gradient(ellipse 80% 60% at 65% 50%, rgba(255,107,0,0.08) 0%, transparent 65%),
    radial-gradient(ellipse 50% 70% at 10% 50%, rgba(255,107,0,0.04) 0%, transparent 60%),
    var(--bg);
}

/* Radar rings */
.radar-rings {
  position: absolute; right: 18%; top: 50%; transform: translateY(-50%);
  width: 640px; height: 640px; pointer-events: none; z-index: 0;
}
.ring {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  border-radius: 50%; border: 1px solid rgba(255,107,0,0.08);
  animation: pulse-ring 4s ease-in-out infinite;
}
.ring-1 { width: 130px; height: 130px; animation-delay: 0s; }
.ring-2 { width: 260px; height: 260px; animation-delay: 0.4s; border-color: rgba(255,107,0,0.06); }
.ring-3 { width: 390px; height: 390px; animation-delay: 0.8s; border-color: rgba(255,107,0,0.05); }
.ring-4 { width: 520px; height: 520px; animation-delay: 1.2s; border-color: rgba(255,107,0,0.035); }
.ring-5 { width: 640px; height: 640px; animation-delay: 1.6s; border-color: rgba(255,107,0,0.02); }
@keyframes pulse-ring { 0%,100%{opacity:1} 50%{opacity:0.35} }

/* ---- Animated Skill Bars ---- */
.skill-bars {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 10px;
}

.skill-bar-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.skill-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
}

.skill-info span:first-child {
  color: var(--text);
}

.skill-track {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  overflow: hidden;
  position: relative;
}

.skill-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(255, 107, 0, 0.4); /* Gives it a neon glow */
  transform: scaleX(0);
  transform-origin: left;
  animation: fillBar 1.2s cubic-bezier(0.1, 0.8, 0.2, 1) forwards;
}

@keyframes fillBar {
  to { transform: scaleX(1); }
}


/* ============ CODING DASHBOARD ============ */
.coding-section { background: var(--bg-secondary); }

.coding-dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.dashboard-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.dashboard-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(0,0,0,0.3);
}

/* Specific Hover Accents based on platform brand colors */
.leetcode-card:hover { border-color: rgba(255, 161, 22, 0.4); box-shadow: 0 10px 30px rgba(255, 161, 22, 0.1); }
.github-card:hover { border-color: rgba(255, 255, 255, 0.3); }
.hackerrank-card:hover { border-color: rgba(46, 200, 102, 0.4); box-shadow: 0 10px 30px rgba(46, 200, 102, 0.1); }
.gfg-card:hover { border-color: rgba(47, 141, 70, 0.4); box-shadow: 0 10px 30px rgba(47, 141, 70, 0.1); }

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

.card-header h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
  flex: 1;
}

/* Live Ping Indicator */
.live-ping {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #2EC866;
  background: rgba(46, 200, 102, 0.1);
  padding: 4px 8px;
  border-radius: var(--radius-pill);
}
.ping-dot {
  width: 6px; height: 6px;
  background-color: #2EC866;
  border-radius: 50%;
  animation: ping 1.5s cubic-bezier(0, 0, 0.2, 1) infinite;
}
@keyframes ping {
  75%, 100% { transform: scale(2.5); opacity: 0; }
}

.stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 24px;
}

.stat-box { display: flex; flex-direction: column; gap: 4px; }
.stat-label { font-size: 0.75rem; color: var(--text-muted); font-weight: 500; }
.stat-value { font-size: 1.4rem; font-weight: 700; color: var(--text); }
.stat-value.highlight { color: var(--accent); }

.card-link {
  margin-top: auto;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-dim);
  text-decoration: none;
  transition: var(--transition);
  display: inline-block;
}
.dashboard-card:hover .card-link { color: var(--accent); }

/* --- Light Mode Overrides for Dashboard --- */
body.light-mode .dashboard-card { background: rgba(0, 0, 0, 0.02); }
body.light-mode .github-card .card-header svg { fill: #1a1a1a; }
body.light-mode .github-card:hover { border-color: rgba(0, 0, 0, 0.2); }

/* Update this existing class */
.bento-lang { 
  grid-column: span 2; 
  grid-row: span 2; /* This tells the card to span two rows vertically */
}
/* Hero layout */
.hero-content {
  display: grid; grid-template-columns: 1fr 1fr;
  align-items: center; gap: 60px;
  max-width: 1200px; margin: 0 auto; width: 100%;
  position: relative; z-index: 1;
}

.hero-greeting { font-size: 1.05rem; font-weight: 500; color: var(--text-muted); margin-bottom: 10px; }

.hero-title {
  font-size: clamp(2.8rem, 5.5vw, 4.8rem);
  font-weight: 800; line-height: 1.05;
  letter-spacing: -2px; margin-bottom: 18px;
}

.hero-subtitle { font-size: 0.95rem; color: var(--text-muted); max-width: 420px; margin-bottom: 30px; line-height: 1.8; }

.hero-buttons { display: flex; align-items: center; gap: 14px; margin-bottom: 40px; }

.btn-hire {
  background: var(--accent); color: #fff;
  font-family: var(--font); font-size: 0.95rem; font-weight: 600;
  padding: 13px 34px; border-radius: var(--radius-pill);
  text-decoration: none; border: none; cursor: pointer;
  box-shadow: 0 0 28px rgba(255,107,0,0.35), 0 4px 18px rgba(255,107,0,0.2);
  transition: var(--transition); position: relative; overflow: hidden;
}
.btn-hire::after {
  content:''; position:absolute; inset:0;
  background: linear-gradient(45deg, transparent 30%, rgba(255,255,255,0.14) 50%, transparent 70%);
  transform: translateX(-100%); transition: transform 0.5s ease;
}
.btn-hire:hover::after { transform: translateX(100%); }
.btn-hire:hover { transform: translateY(-2px); box-shadow: 0 0 44px rgba(255,107,0,0.5), 0 8px 28px rgba(255,107,0,0.3); }

.btn-email {
  display: flex; align-items: center; justify-content: center;
  width: 50px; height: 50px; border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,0.15);
  color: var(--text); text-decoration: none; transition: var(--transition);
}
.btn-email:hover { border-color: var(--accent); color: var(--accent); background: rgba(255,107,0,0.08); transform: translateY(-2px); }

.hero-quote-card {
  background: var(--glass); backdrop-filter: var(--backdrop);
  border: 1px solid var(--glass-border); border-radius: var(--radius);
  padding: 20px; max-width: 360px; position: relative;
}
.quote-icon { font-size: 2.8rem; font-weight: 900; color: var(--accent); line-height: 0.8; display: block; margin-bottom: 8px; font-family: Georgia, serif; }
.hero-quote-card p { font-size: 0.85rem; color: var(--text-muted); line-height: 1.8; }
.hero-quote-card strong { color: var(--text); }

/* Avatar (Scaled exactly +40%) */
.hero-right { display: flex; justify-content: center; }

.avatar-container {
  position: relative;
  /* Increased by 40% (Base 360px -> 504px) */
  width: 504px !important; 
  height: 504px !important; 
  flex-shrink: 0;
}

.avatar-glow {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  /* Increased by 40% (Base 320px -> 448px) */
  width: 448px !important; 
  height: 448px !important; 
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,107,0,0.18) 0%, transparent 70%);
  animation: glow-pulse 3s ease-in-out infinite;
}
@keyframes glow-pulse { 0%,100%{opacity:1;transform:translate(-50%,-50%) scale(1)} 50%{opacity:0.6;transform:translate(-50%,-50%) scale(1.05)} }

.avatar-ring {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 1px solid rgba(255,107,0,0.22);
}

/* Increased by 40% (Base 320px -> 448px) */
.outer-ring { width: 448px !important; height: 448px !important; animation: spin-slow 20s linear infinite; border-top-color: rgba(255,107,0,0.5); }

/* Increased by 40% (Base 265px -> 370px) */
.inner-ring { width: 370px !important; height: 370px !important; animation: spin-slow 15s linear infinite reverse; border-right-color: rgba(255,107,0,0.4); }

@keyframes spin-slow { from{transform:translate(-50%,-50%) rotate(0deg)} to{transform:translate(-50%,-50%) rotate(360deg)} }

.avatar-wrapper {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  /* Increased by 40% (Base 210px -> 294px) */
  width: 294px !important; 
  height: 294px !important; 
  border-radius: 50%;
  border: 2px solid rgba(255,107,0,0.2);
  overflow: hidden;
  background: #0a0a0a;
}
.avatar-photo {
  width: 100%; height: 100%; object-fit: cover; object-position: center top;
  display: block;
}

/* Floating tech icons — strictly inside orbit */
.tech-icon {
  position: absolute;
  width: 48px; height: 48px; border-radius: 13px;
  background: rgba(12, 12, 12, 0.9);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.09);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 20px rgba(0,0,0,0.45);
  transition: var(--transition);
}
.tech-icon:hover { border-color: rgba(255,107,0,0.4); transform: scale(1.1); box-shadow: 0 10px 25px rgba(255,107,0,0.2); }
.tech-icon img { width: 26px; height: 26px; object-fit: contain; }
.invert-icon { filter: invert(1) brightness(0.8); }

@keyframes float-1 { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-10px)} }
@keyframes float-2 { 0%,100%{transform:translateY(0) rotate(4deg)} 50%{transform:translateY(-9px) rotate(4deg)} }
@keyframes float-3 { 0%,100%{transform:translateY(-4px)} 50%{transform:translateY(7px)} }

/* Positions adjusted perfectly for the 504px container */
.icon-java     { top: 20px;   left: 50%;  margin-left: -24px; animation: float-1 4.2s ease-in-out infinite; }
.icon-python   { top: 110px;  left: 12px; animation: float-2 5s ease-in-out infinite 0.5s; }
.icon-react    { bottom: 110px; left: 12px; animation: float-3 4.5s ease-in-out infinite 1s; }
.icon-nodejs   { top: 110px;  right: 12px; animation: float-1 5s ease-in-out infinite 1.5s; }
.icon-postgres { bottom: 110px; right: 12px; animation: float-2 3.8s ease-in-out infinite 0.8s; }
.icon-github   { bottom: 20px;  left: 50%; margin-left: -24px; animation: float-3 4s ease-in-out infinite 0.3s; }

/* Scroll indicator */
.scroll-indicator {
  position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 7px;
  color: var(--text-dim); font-size: 0.65rem; letter-spacing: 2px; text-transform: uppercase; z-index: 1;
}
.scroll-mouse { width: 22px; height: 36px; border: 1.5px solid rgba(255,255,255,0.18); border-radius: 11px; display: flex; justify-content: center; padding-top: 5px; }
.scroll-dot-anim { width: 3px; height: 7px; background: var(--accent); border-radius: 2px; animation: scroll-bounce 2s ease-in-out infinite; }
@keyframes scroll-bounce { 0%,100%{transform:translateY(0);opacity:1} 50%{transform:translateY(7px);opacity:0.3} }

/* ============ SKILLS BENTO ============ */
.skills-section { background: var(--bg-secondary); }

.skills-bento {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 14px;
}

.bento-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  position: relative; overflow: hidden;
  transition: var(--transition);
}
.bento-card:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
  transform: translateY(-3px);
  box-shadow: 0 16px 36px rgba(0,0,0,0.3), 0 0 24px rgba(255,107,0,0.05);
}

/* Languages card — normal single col width */
.bento-lang { grid-column: span 2; }

/* Hackathons flashcard — sits next to languages */
.bento-hackathons { grid-column: span 2; }

.bento-stat { display: flex; flex-direction: column; justify-content: flex-end; }

.bento-card h3 {
  font-size: 0.75rem; font-weight: 600; color: var(--text-muted);
  margin-bottom: 14px; text-transform: uppercase; letter-spacing: 1px;
}
.bento-icon { margin-bottom: 12px; }

.skill-tags { display: flex; flex-wrap: wrap; gap: 7px; }
.skill-tag {
  font-size: 0.75rem; font-weight: 500; color: var(--text-muted);
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-pill); padding: 4px 11px;
  transition: var(--transition); cursor: default;
}
.bento-card:hover .skill-tag { border-color: rgba(255,107,0,0.18); color: var(--text); }

.stat-number { font-size: 3.2rem; font-weight: 800; line-height: 1; margin-bottom: 6px; }
.stat-plus { font-size: 1.8rem; }
.stat-label { font-size: 0.82rem; color: var(--text-muted); font-weight: 500; }
.stat-platform { font-size: 0.7rem; color: var(--text-dim); margin-top: 3px; }

.soft-skills-list { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.soft-skills-list li { font-size: 0.85rem; color: var(--text-muted); display: flex; align-items: center; gap: 9px; }
.bullet { color: var(--accent); font-weight: 600; }

/* Hackathon card content */
.hackathon-list { display: flex; flex-direction: column; gap: 14px; }
.hackathon-item { display: flex; align-items: flex-start; gap: 12px; }
.hackathon-badge { font-size: 1.4rem; flex-shrink: 0; margin-top: 2px; }
.hackathon-name { font-size: 0.88rem; font-weight: 600; color: var(--text); margin-bottom: 2px; }
.hackathon-sub { font-size: 0.72rem; color: var(--text-dim); }

/* ============ JOURNEY SECTION ============ */
.journey-section { background: var(--bg); }

.journey-group { margin-bottom: 36px; }
.journey-group:last-child { margin-bottom: 0; }

.journey-group-label {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}
.journey-group-label .group-icon { font-size: 1.2rem; }
.journey-group-label span:last-of-type {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent);
  white-space: nowrap;
}
.group-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, rgba(255,107,0,0.3), transparent);
}

/* Timeline */
.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  padding-left: 40px;
}
.timeline::before {
  content: '';
  position: absolute; left: 0; top: 0; bottom: 0; width: 1px;
  background: linear-gradient(to bottom, transparent, rgba(255,107,0,0.25) 10%, rgba(255,107,0,0.12) 90%, transparent);
}

.timeline-item {
  position: relative;
  margin-bottom: 20px;
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 20px;
  align-items: start;
}
.timeline-item:last-child { margin-bottom: 0; }

.timeline-dot {
  position: absolute; left: -45px; top: 18px;
  width: 9px; height: 9px; border-radius: 50%;
  background: rgba(255,107,0,0.5); border: 2px solid var(--accent);
}
.timeline-dot.edu     { background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.28); }
.timeline-dot.training { background: rgba(100,200,255,0.2); border-color: rgba(100,200,255,0.5); }
.timeline-dot.hackathon { background: rgba(255,215,0,0.2); border-color: rgba(255,215,0,0.6); }
.timeline-dot.pulse::after {
  content: ''; position: absolute; top: -4px; left: -4px; width: 17px; height: 17px;
  border-radius: 50%; background: rgba(255,107,0,0.18); animation: dot-pulse 2s ease-in-out infinite;
}
@keyframes dot-pulse { 0%,100%{transform:scale(1);opacity:1} 50%{transform:scale(1.6);opacity:0} }

.timeline-date {
  font-size: 0.73rem; font-weight: 600; color: var(--text-dim);
  text-align: right; padding-top: 18px; letter-spacing: 0.2px; white-space: nowrap;
}

.timeline-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px;
  transition: var(--transition);
}
.timeline-card:hover { border-color: var(--border-hover); transform: translateX(3px); background: var(--bg-card-hover); }
.timeline-card.hackathon-card { border-color: rgba(255,215,0,0.08); }
.timeline-card.hackathon-card:hover { border-color: rgba(255,215,0,0.3); }

.timeline-card-header { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; margin-bottom: 12px; }

.timeline-type {
  font-size: 0.62rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px;
  padding: 3px 9px; border-radius: var(--radius-pill); flex-shrink: 0;
}
.timeline-type.work        { background: rgba(255,107,0,0.1);   color: var(--accent);    border: 1px solid rgba(255,107,0,0.22); }
.timeline-type.project     { background: rgba(100,160,255,0.08); color: #6aa0ff;          border: 1px solid rgba(100,160,255,0.18); }
.timeline-type.education   { background: rgba(120,220,150,0.08); color: #78dc96;          border: 1px solid rgba(120,220,150,0.18); }
.timeline-type.training-badge { background: rgba(100,200,255,0.08); color: #64c8ff; border: 1px solid rgba(100,200,255,0.2); }
.timeline-type.hackathon-badge-type { background: rgba(255,215,0,0.08); color: #ffd700; border: 1px solid rgba(255,215,0,0.2); }

.timeline-card-header h3 { font-size: 0.95rem; font-weight: 600; color: var(--text); flex: 1; min-width: 180px; }
.timeline-company { font-size: 0.78rem; color: var(--text-dim); width: 100%; }
.timeline-link { font-size: 0.74rem; color: var(--accent); text-decoration: none; white-space: nowrap; flex-shrink: 0; transition: var(--transition); }
.timeline-link:hover { text-decoration: underline; }

.rank-badge {
  font-size: 0.72rem; font-weight: 600; color: #ffd700;
  background: rgba(255,215,0,0.08); border: 1px solid rgba(255,215,0,0.2);
  border-radius: var(--radius-pill); padding: 3px 10px; flex-shrink: 0;
}

.timeline-points { list-style: none; display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.timeline-points li {
  font-size: 0.83rem; color: var(--text-muted); padding-left: 14px;
  position: relative; line-height: 1.65;
}
.timeline-points li::before { content: '→'; position: absolute; left: 0; color: var(--accent); font-size: 0.76rem; }
.timeline-points strong { color: var(--text); }

.timeline-stack { display: flex; flex-wrap: wrap; gap: 5px; }
.timeline-stack span {
  font-size: 0.68rem; font-weight: 500; color: var(--text-dim);
  background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.06);
  border-radius: 6px; padding: 2px 9px;
}
.timeline-info { font-size: 0.88rem; color: var(--text-muted); }

/* ============ MILESTONES ============ */
.milestones-section { background: var(--bg-secondary); }

.milestone-group { margin-bottom: 44px; }
.milestone-group:last-child { margin-bottom: 0; }

.milestone-group-header { margin-bottom: 20px; }

.milestone-group-title {
  display: flex; align-items: center; gap: 10px;
  font-size: 1rem; font-weight: 700; color: var(--text);
  border-bottom: 1px solid rgba(255,107,0,0.12);
  padding-bottom: 10px;
}

/* Certificate image grid */
.certs-img-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 14px;
}

.cert-img-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  transition: var(--transition);
}
.cert-img-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(0,0,0,0.4), 0 0 20px rgba(255,107,0,0.07);
}

.cert-img-link {
  display: block; position: relative; overflow: hidden;
  aspect-ratio: 4/3;
}
.cert-img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform 0.4s ease;
}
.cert-img-card:hover .cert-img { transform: scale(1.04); }

.cert-img-overlay {
  position: absolute; inset: 0;
  background: rgba(255,107,0,0.75);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity 0.3s ease;
}
.cert-img-overlay span { color: #fff; font-size: 0.82rem; font-weight: 600; letter-spacing: 0.5px; }
.cert-img-card:hover .cert-img-overlay { opacity: 1; }

.cert-img-info { padding: 12px 14px; }
.cert-img-info h4 { font-size: 0.82rem; font-weight: 600; color: var(--text); margin-bottom: 3px; }
.cert-img-info p { font-size: 0.7rem; color: var(--text-dim); }

.cert-coming .cert-img-placeholder {
  aspect-ratio: 4/3; background: rgba(255,107,0,0.03);
  border-bottom: 1px solid var(--border);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
}
.cert-coming .cert-img-placeholder p { font-size: 0.75rem; color: var(--text-dim); }
.coming-soon-text { font-size: 0.65rem !important; color: rgba(255,107,0,0.5) !important; letter-spacing: 1px; text-transform: uppercase; }

/* Achievements grid */
.achievements-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
}

.achievement-card {
  display: flex; align-items: flex-start; gap: 16px;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px;
  transition: var(--transition);
}
.achievement-card:hover {
  border-color: var(--border-hover); background: var(--bg-card-hover); transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(255,107,0,0.07);
}

.achievement-icon { font-size: 1.6rem; flex-shrink: 0; margin-top: 2px; }

.achievement-content h4 { font-size: 0.9rem; font-weight: 600; color: var(--text); margin-bottom: 5px; }
.achievement-content p { font-size: 0.8rem; color: var(--text-muted); line-height: 1.65; }
.achievement-content strong { color: var(--text); }

/* ============ CONNECT SECTION ============ */
.connect-section { background: var(--bg); }

.connect-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 44px; align-items: start; }

.connect-info { display: flex; flex-direction: column; gap: 22px; }

.connect-item { display: flex; align-items: center; gap: 14px; }

.connect-item-icon {
  width: 42px; height: 42px; border-radius: 11px;
  background: rgba(255,107,0,0.06); border: 1px solid rgba(255,107,0,0.12);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}

.connect-label { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 1.5px; color: var(--text-dim); margin-bottom: 3px; }
.connect-value { color: var(--text); text-decoration: none; font-size: 0.88rem; font-weight: 500; transition: var(--transition); }
.connect-value:hover { color: var(--accent); }

.social-links { display: flex; gap: 10px; flex-wrap: wrap; }
.social-btn {
  display: flex; align-items: center; gap: 7px;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-pill); padding: 9px 18px;
  color: var(--text-muted); text-decoration: none;
  font-size: 0.85rem; font-weight: 500; transition: var(--transition);
}
.social-btn:hover { border-color: var(--accent); color: var(--accent); background: rgba(255,107,0,0.06); transform: translateY(-2px); }

.contact-form {
  display: flex; flex-direction: column; gap: 16px;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 30px;
}

.form-group { display: flex; flex-direction: column; gap: 7px; }
.form-group label { font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; color: var(--text-dim); }

.form-group input, .form-group textarea {
  background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-sm); padding: 12px 16px;
  color: var(--text); font-family: var(--font); font-size: 0.9rem;
  outline: none; transition: var(--transition); resize: vertical;
}
.form-group input:focus, .form-group textarea:focus {
  border-color: rgba(255,107,0,0.4); background: rgba(255,107,0,0.025);
  box-shadow: 0 0 0 3px rgba(255,107,0,0.07);
}
.form-group input::placeholder, .form-group textarea::placeholder { color: rgba(255,255,255,0.18); }

.btn-submit {
  display: flex; align-items: center; justify-content: center; gap: 9px;
  background: var(--accent); color: #fff;
  font-family: var(--font); font-size: 0.92rem; font-weight: 600;
  padding: 14px 30px; border: none; border-radius: var(--radius-pill);
  cursor: pointer; box-shadow: 0 0 22px rgba(255,107,0,0.3); transition: var(--transition);
}
.btn-submit:hover { transform: translateY(-2px); box-shadow: 0 0 38px rgba(255,107,0,0.44); }

.form-success {
  display: none; text-align: center; color: #78dc96; font-size: 0.87rem; font-weight: 500;
  padding: 11px; background: rgba(120,220,150,0.06); border: 1px solid rgba(120,220,150,0.14);
  border-radius: var(--radius-sm);
}
.form-success.visible { display: block; }

.cursor {
  display: inline-block;
  width: 4px;
  background-color: var(--accent);
  animation: blink 1s infinite;
  margin-left: 4px;
}
.cursor.typing {
  animation: none;
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* ============ FOOTER ============ */
.footer {
  padding: 40px 32px;
  border-top: 1px solid var(--border);
  background: var(--bg-secondary);
}
.footer .container { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.footer-logo { font-size: 1.4rem; font-weight: 700; color: var(--accent); }
.footer-text { font-size: 0.78rem; color: var(--text-dim); text-align: center; }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; justify-content: center; }
.footer-links a { font-size: 0.78rem; color: var(--text-dim); text-decoration: none; transition: var(--transition); }
.footer-links a:hover { color: var(--accent); }

/* ============ RESPONSIVE ============ */
@media (max-width: 960px) {
  .skills-bento { grid-template-columns: repeat(2, 1fr); }
  .bento-lang { grid-column: span 2; }
  .bento-hackathons { grid-column: span 2; }

  .hero-content { grid-template-columns: 1fr; text-align: center; gap: 50px; }
  .hero-buttons { justify-content: center; }
  .hero-quote-card { max-width: 100%; }
  .hero-right { order: -1; }
  .radar-rings { right: 50%; transform: translate(50%, -50%); opacity: 0.4; }
  .connect-grid { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  .navbar { top: 10px; width: calc(100% - 24px); }
  .nav-container { padding: 9px 14px; }
  .nav-links, .nav-resume { display: none; }
  .hamburger { display: flex; margin-left: auto; }
  .scroll-indicator { display: none; }
  .hero { padding: 88px 20px 56px; }
  .section { padding: 55px 0; }
  .container { padding: 0 18px; }

  .skills-bento { grid-template-columns: 1fr; }
  .bento-lang, .bento-hackathons { grid-column: span 1; }

  /* Add !important to forcefully shrink the avatar on phones */
  .avatar-container { width: 320px !important; height: 320px !important; }
  .outer-ring { width: 280px !important; height: 280px !important; }
  .inner-ring { width: 230px !important; height: 230px !important; }
  .avatar-wrapper { width: 180px !important; height: 180px !important; }
  
  /* Pull the floating icons closer so they don't fly off the screen */
  .icon-python { top: 60px; left: 0px; }
  .icon-react { bottom: 60px; left: 0px; }
  .icon-nodejs { top: 60px; right: 0px; }
  .icon-postgres { bottom: 60px; right: 0px; }

  .timeline-item { grid-template-columns: 1fr; gap: 4px; }
  .timeline-date { text-align: left; padding-top: 0; padding-bottom: 6px; }
  .timeline { padding-left: 22px; }
  .timeline-dot { left: -27px; }

  .certs-img-grid { grid-template-columns: repeat(2, 1fr); }
  .achievements-grid { grid-template-columns: 1fr; }
  .contact-form { padding: 20px; }
}
