:root{
  --bg: #0b0f14;
  --bg-elev: #0f1520;
  --text: #e6edf3;
  --muted: #94a3b8;
  --card: #111827;
  --stroke: rgba(148,163,184,.2);
  --accent: #6ee7b7;
  --accent-2: #60a5fa;
  --accent-3: #a78bfa;
  --shadow: 0 10px 30px rgba(0,0,0,.35);
  --radius: 14px;
}

body.light{
  --bg: #f7fafc;
  --bg-elev: #ffffff;
  --text: #0f172a;
  --muted: #475569;
  --card: #ffffff;
  --stroke: rgba(15,23,42,.1);
  --accent: #2563eb;
  --accent-2: #10b981;
  --accent-3: #f59e0b;
  --shadow: 0 10px 30px rgba(2,6,23,.08);
}

*{box-sizing:border-box}
html,body{padding:0;margin:0}
html{scroll-behavior:smooth}
body{
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Apple Color Emoji","Segoe UI Emoji", "Segoe UI Symbol";
  background: radial-gradient(1200px 600px at 80% -10%, rgba(96,165,250,.15), transparent 60%),
              radial-gradient(800px 400px at 10% 10%, rgba(167,139,250,.15), transparent 60%),
              var(--bg);
  color: var(--text);
  line-height: 1.65;
}

/* Utilities */
.container{width:min(1100px, 92%); margin-inline:auto}
.section{padding: 88px 0}
.section.alt{background: linear-gradient(180deg, transparent, rgba(148,163,184,.08) 40%, transparent)}
.section-title{
  font-size: clamp(24px, 3vw, 36px);
  margin: 0 0 24px;
  letter-spacing: -0.02em;
}
.gradient{
  background: linear-gradient(90deg, var(--accent), var(--accent-2), var(--accent-3));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.btn{
  display:inline-flex; align-items:center; gap:10px;
  border:1px solid var(--stroke);
  color:var(--text); text-decoration:none;
  padding:12px 16px; border-radius:999px;
  transition:.2s ease; cursor:pointer; font-weight:600;
  backdrop-filter: blur(8px);
}
.btn.primary{
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  border-color: transparent; color:#04060d;
}
.btn.ghost{background: rgba(148,163,184,.08)}
.btn:hover{transform: translateY(-1px)}
.btn.primary:hover{filter: brightness(1.05)}
.w-100{width:100%}

/* Navbar */
.navbar{
  position: sticky; top:0; z-index:40;
  background: color-mix(in oklab, var(--bg-elev), transparent 15%);
  border-bottom:1px solid var(--stroke);
  backdrop-filter: blur(10px);
}
.nav-container{
  width:min(1100px, 92%); margin-inline:auto;
  display:flex; align-items:center; justify-content:space-between;
  height:64px;
}
.brand{display:flex; align-items:center; gap:10px; color:var(--text); text-decoration:none; font-weight:700}
.brand-mark{
  width:32px; height:32px; display:grid; place-items:center; border-radius:8px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color:#030712; font-weight:800;
  box-shadow: var(--shadow);
}
.nav-links{display:flex; gap:18px}
.nav-link{
  color:var(--muted); text-decoration:none; padding:10px 12px; border-radius:8px;
  transition: .2s ease; font-weight:600;
}
.nav-link.active, .nav-link:hover{color:var(--text); background: rgba(148,163,184,.08)}
.nav-actions{display:flex; align-items:center; gap:8px}
.theme-toggle{
  width:40px; height:40px; border-radius:50%; border:1px solid var(--stroke);
  background: rgba(148,163,184,.08); color:var(--text); display:grid; place-items:center;
  cursor:pointer; position:relative; overflow:hidden;
}
.theme-toggle i{position:absolute; transition: transform .35s ease, opacity .35s ease}
.theme-toggle .fa-moon{transform: translateY(0)}
.theme-toggle .fa-sun{transform: translateY(20px); opacity:.0}
body.light .theme-toggle .fa-moon{transform: translateY(-20px); opacity:.0}
body.light .theme-toggle .fa-sun{transform: translateY(0); opacity:1}
.hamburger{
  width:44px; height:44px; display:none; place-items:center; border-radius:10px;
  border:1px solid var(--stroke); background: rgba(148,163,184,.08); cursor:pointer;
}
.hamburger span{display:block; width:20px; height:2px; background:var(--text); margin:3px 0; transition:.2s}

/* Hero */
.hero{position:relative; overflow:hidden}
.hero-grid{
  display:grid; grid-template-columns: 1.1fr .9fr; gap:40px; align-items:center;
}
.eyebrow{color:var(--muted); text-transform:uppercase; letter-spacing:.15em; font-size:.8rem; margin:0 0 10px}
.hero-title{font-size: clamp(28px, 5vw, 48px); line-height:1.1; margin:0 0 12px}
.hero-subtitle{font-size: clamp(16px, 2.4vw, 20px); color:var(--muted); margin:0 0 14px}
.hero-desc{margin: 0 0 18px; color: var(--muted)}
.cta-row{display:flex; gap:12px; flex-wrap:wrap}
.social-row{display:flex; gap:10px; margin-top:12px}
.social{
  width:40px; height:40px; border-radius:10px; display:grid; place-items:center;
  border:1px solid var(--stroke); color:var(--text); text-decoration:none;
  background: rgba(148,163,184,.08);
}
.hero-visual{position:relative}
.orbit{
  width: 260px; height:260px; border-radius:50%;
  border:1px dashed var(--stroke);
  display:grid; place-items:center; margin-inline:auto; position:relative;
}
.avatar{
  width:120px; height:120px; border-radius:50%;
  display:grid; place-items:center; font-size:54px; color:var(--text);
  background: linear-gradient(180deg, rgba(148,163,184,.12), rgba(148,163,184,.02));
  border:1px solid var(--stroke);
  box-shadow: var(--shadow);
  .avatar img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}
}
/* Add this somewhere after .avatar styles */
/* Coding Journey Section Styles */
#coding {
  background: var(--section-bg);
  position: relative;
}

.coding-intro {
  text-align: center;
  margin-bottom: 3rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.coding-intro p {
  font-size: 1.125rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.coding-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  align-items: start;
}

.coding-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 1.5rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.coding-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  border-color: var(--primary);
}

.coding-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}

.platform-info {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.platform-icon {
  font-size: 1.5rem;
  color: var(--primary);
  flex-shrink: 0;
}

.coding-header h3 {
  margin: 0 0 0.25rem 0;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
}

.coding-header p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.external-link {
  color: var(--text-secondary);
  font-size: 1rem;
  text-decoration: none;
  transition: color 0.2s ease;
  flex-shrink: 0;
}

.external-link:hover {
  color: var(--primary);
}

.coding-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.stat-item {
  text-align: center;
  padding: 0.75rem;
  background: var(--section-bg);
  border-radius: 8px;
  border: 1px solid var(--card-border);
}

.stat-number {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.25rem;
}

.stat-label {
  font-size: 0.75rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  background: #fff;
  transition: opacity 0.3s ease;
}

.leetcode-badge,
.github-badge,
.languages-badge {
  margin-top: 1rem;
}

.achievement-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1rem;
}

.achievement {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem;
  background: var(--section-bg);
  border-radius: 6px;
  border: 1px solid var(--card-border);
}

.achievement i {
  color: var(--primary);
  font-size: 0.875rem;
}

.achievement span {
  font-size: 0.875rem;
  color: var(--text-primary);
  font-weight: 500;
}

/* Platform specific styling */
.coding-card.leetcode {
  border-left: 4px solid #FFA116;
}

.coding-card.github {
  border-left: 4px solid #333;
}

.coding-card.languages {
  border-left: 4px solid #0366d6;
}

.coding-card.other {
  border-left: 4px solid #28a745;
}

/* Dark mode badge switching */
body.light .badge-img[data-dark-src] {
  content: attr(src);
}

body:not(.light) .badge-img[data-dark-src] {
  content: attr(data-dark-src);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .coding-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .coding-stats {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
  
  .stat-number {
    font-size: 1.25rem;
  }
  
  .coding-card {
    padding: 1.25rem;
  }
}

@media (max-width: 480px) {
  .platform-info {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  
  .coding-header {
    flex-direction: column;
    gap: 1rem;
  }
}
.dot{
  position:absolute; width:10px; height:10px; border-radius:50%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 0 4px color-mix(in oklab, var(--accent), transparent 75%);
}
.d1{top: -5px; left: 50%; transform:translateX(-50%); animation: spin 9s linear infinite}
.d2{left: -5px; top: 50%; transform:translateY(-50%); animation: spin 12s linear infinite reverse}
.d3{bottom: -5px; right: 50%; transform:translateX(50%); animation: spin 15s linear infinite}
@keyframes spin{to{transform: rotate(360deg)}}

.glass-stats{
  display:grid; grid-template-columns: repeat(3, 1fr); gap:10px; margin-top:16px;
}
.glass-card{
  background: linear-gradient(180deg, rgba(148,163,184,.12), rgba(148,163,184,.02));
  border:1px solid var(--stroke); border-radius:12px; padding:12px; text-align:center;
}
.kpi{font-weight:800}
.muted{color:var(--muted); font-size:.85rem}

/* About */
.about-grid{
  display:grid; grid-template-columns: 1.1fr .9fr; gap:28px; align-items:start;
}
.stats-row{
  display:grid; grid-template-columns: repeat(3, 1fr); gap:10px; margin-top:16px;
}
.stat{
  background: var(--bg-elev); border:1px solid var(--stroke);
  padding:12px; border-radius:12px;
}
.stat-label{color:var(--muted); font-size:.8rem}
.stat-value{display:block; font-weight:700}
.about-cards{display:grid; gap:12px}
.info-card{
  display:flex; gap:12px; align-items:flex-start;
  background: var(--bg-elev); border:1px solid var(--stroke);
  padding:14px; border-radius:12px;
}
.info-card i{
  width:36px; height:36px; display:grid; place-items:center;
  border-radius:10px; background: rgba(148,163,184,.08);
}

/* Skills */
.chip-cloud{display:flex; flex-wrap:wrap; gap:10px; margin-bottom:18px}
.chip{
  padding:8px 12px; border-radius:999px; font-weight:600;
  border:1px solid var(--stroke); background: rgba(148,163,184,.08);
}
.skill-bars{display:grid; gap:14px}
.bar .bar-top{display:flex; justify-content:space-between; margin-bottom:6px}
.bar-track{
  height:10px; background: color-mix(in oklab, var(--muted), transparent 85%);
  border-radius:999px; overflow:hidden; border:1px solid var(--stroke)
}
.bar-fill{
  display:block; height:100%; width: var(--p);
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}

/* Projects */
.cards-grid{
  display:grid; grid-template-columns: repeat(3, 1fr); gap:16px;
}
.card{
  background: var(--bg-elev); border:1px solid var(--stroke); border-radius:16px;
  padding:16px; box-shadow: var(--shadow); transition: transform .2s ease, border-color .2s ease;
}
.card:hover{transform: translateY(-4px); border-color: color-mix(in oklab, var(--accent), var(--stroke))}
.card-head{display:flex; justify-content:space-between; align-items:center; margin-bottom:8px}
.card .tags{display:flex; gap:8px; flex-wrap:wrap; margin-top:10px}
.card .tags span{
  font-size:.8rem; padding:6px 10px; border-radius:999px;
  background: rgba(148,163,184,.1); border:1px dashed var(--stroke);
}
.icon-link{color:var(--text); width:36px; height:36px; display:grid; place-items:center;
  border-radius:10px; border:1px solid var(--stroke); background: rgba(148,163,184,.08); text-decoration:none}

/* Contact */
.contact-grid{
  display:grid; grid-template-columns: 1fr 1fr; gap:24px; align-items:start;
}
.contact-links{display:flex; flex-wrap:wrap; gap:10px; margin-top:10px}
.contact-link{
  display:inline-flex; align-items:center; gap:8px; text-decoration:none; color:var(--text);
  border:1px solid var(--stroke); padding:10px 12px; border-radius:999px; background: rgba(148,163,184,.08)
}
.contact-form{
  background: var(--bg-elev); border:1px solid var(--stroke); border-radius:16px; padding:18px;
}
.field{display:grid; gap:6px; margin-bottom:12px}
.field input, .field textarea{
  width:100%; padding:12px 12px; border-radius:10px; border:1px solid var(--stroke);
  background: rgba(148,163,184,.06); color:var(--text); outline:none;
}
.field input:focus, .field textarea:focus{border-color: color-mix(in oklab, var(--accent), var(--stroke))}
.error{color:#ef4444; font-size:.85rem; min-height:1.1em}
/* Add (or keep) your existing styles above. This only adds the honeypot hider. */

.hp{
  position: absolute;
  left: -5000px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

/* Footer */
.footer{border-top:1px solid var(--stroke); padding:20px 0; background: color-mix(in oklab, var(--bg-elev), transparent 10%)}
.footer-inner{display:flex; justify-content:space-between; align-items:center}
.back-to-top{
  width:40px; height:40px; border-radius:10px; border:1px solid var(--stroke);
  display:grid; place-items:center; color:var(--text); text-decoration:none;
  background: rgba(148,163,184,.08); opacity:0; transform: translateY(6px); pointer-events:none; transition:.25s ease;
}
.back-to-top.visible{opacity:1; transform: translateY(0); pointer-events:auto}

/* Background flair */
.bg-gradient{
  position:absolute; inset:-10% -10% auto -10%; height: 420px; z-index:-1;
  background: radial-gradient(800px 300px at 20% 70%, color-mix(in oklab, var(--accent), transparent 70%), transparent 70%),
              radial-gradient(700px 300px at 80% 30%, color-mix(in oklab, var(--accent-2), transparent 70%), transparent 70%);
  filter: blur(40px); opacity:.6;
}

/* Reveal on scroll */
.reveal{opacity:0; transform: translateY(14px); transition: .6s ease}
.reveal.visible{opacity:1; transform: translateY(0)}

/* Responsive */
@media (max-width: 980px){
  .hero-grid, .about-grid, .contact-grid{grid-template-columns: 1fr}
  .cards-grid{grid-template-columns: 1fr 1fr}
}
@media (max-width: 680px){
  .nav-links{
    position: absolute; inset:64px 0 auto 0; background: var(--bg-elev);
    border-bottom:1px solid var(--stroke); display:grid; gap:4px; padding:8px 4%;
    transform-origin: top; transform: scaleY(0); transition:.2s ease; opacity:0; pointer-events:none;
  }
  .nav-links.open{transform: scaleY(1); opacity:1; pointer-events:auto}
  .hamburger{display:grid}
  .cards-grid{grid-template-columns: 1fr}
  .glass-stats{grid-template-columns: 1fr 1fr}
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce){
  *{animation: none !important; transition: none !important}
}
