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

:root {
  --bg:        #0F1117;
  --bg2:       #151820;
  --card:      #1C1F2A;
  --border:    #2A2D3E;
  --accent:    #38BDF8;
  --accent-lt: #0F2942;
  --accent-md: #1E5070;
  --accent-dk: #0EA5E9;
  --dark:      #F1F5F9;
  --body:      #CBD5E1;
  --muted:     #64748B;
  --shadow:    0 2px 12px rgba(0,0,0,0.3);
  --shadow-md: 0 6px 30px rgba(0,0,0,0.4);
}

html { scroll-behavior: smooth; }
body { font-family: 'Inter', sans-serif; background: var(--bg); color: var(--body); overflow-x: hidden; line-height: 1.6; }

.container { max-width: 1100px; margin: 0 auto; padding: 0 6%; }

/* NAV */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(15,17,23,0.93);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  padding: 0 6%; height: 64px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo { font-family: 'Sora', sans-serif; font-size: 1.1rem; color: var(--dark); letter-spacing: -0.3px; }
.nav-logo span { color: var(--accent); }
.nav-links { list-style: none; display: flex; gap: 2rem; }
.nav-links a { text-decoration: none; font-size: 0.87rem; font-weight: 500; color: var(--muted); transition: color 0.2s; padding-bottom: 2px; border-bottom: 2px solid transparent; }
.nav-links a:hover, .nav-links a.active { color: var(--accent); border-bottom-color: var(--accent); }
.nav-toggle { display: none; background: none; border: none; color: var(--dark); font-size: 1.4rem; cursor: pointer; }

/* HERO */
.hero {
  min-height: 100vh; display: flex; align-items: center;
  padding: 7rem 6% 5rem; background: var(--bg);
  border-bottom: 1px solid var(--border);
  position: relative; overflow: hidden;
}
.hero-grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(56,189,248,0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(56,189,248,0.03) 1px, transparent 1px); background-size: 50px 50px; pointer-events: none; }
.hero-glow { position: absolute; top: -150px; right: -100px; width: 500px; height: 500px; background: radial-gradient(circle, rgba(56,189,248,0.09) 0%, transparent 65%); border-radius: 50%; pointer-events: none; }
.hero-glow2 { position: absolute; bottom: -100px; left: 5%; width: 350px; height: 350px; background: radial-gradient(circle, rgba(56,189,248,0.05) 0%, transparent 70%); border-radius: 50%; pointer-events: none; }
.hero-inner { max-width: 1100px; margin: 0 auto; width: 100%; display: grid; grid-template-columns: 1fr auto; gap: 4rem; align-items: center; position: relative; z-index: 1; }
.hero-pill { display: inline-flex; align-items: center; gap: 0.5rem; background: var(--accent-lt); color: var(--accent); font-size: 0.76rem; font-weight: 600; letter-spacing: 0.5px; padding: 0.38rem 1rem; border-radius: 2rem; border: 1px solid var(--accent-md); margin-bottom: 1.4rem; }
.hero-pill::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); animation: blink 2s infinite; }
@keyframes blink { 0%,100%{opacity:1;} 50%{opacity:0.2;} }
.hero h1 { font-family: 'Sora', sans-serif; font-size: clamp(2.3rem, 5vw, 3.8rem); line-height: 1.12; color: var(--dark); margin-bottom: 1.2rem; letter-spacing: -0.5px; }
.hero h1 span { color: var(--accent); }
.hero-sub { font-size: 1rem; color: var(--muted); max-width: 500px; line-height: 1.8; margin-bottom: 2rem; }
.hero-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 2.2rem; }
.chip { background: var(--card); border: 1px solid var(--border); color: var(--body); font-size: 0.79rem; font-weight: 500; padding: 0.3rem 0.85rem; border-radius: 0.3rem; }
.hero-btns { display: flex; gap: 0.9rem; flex-wrap: wrap; }
.hero-card { background: var(--card); border: 1px solid var(--border); border-radius: 1.1rem; padding: 2rem 1.7rem; text-align: center; box-shadow: var(--shadow-md); min-width: 210px; }
.avatar { width: 88px; height: 88px; border-radius: 50%; background: linear-gradient(135deg, var(--accent) 0%, #0EA5E9 100%); display: flex; align-items: center; justify-content: center; font-family: 'Sora', sans-serif; font-size: 2rem; color: #0F1117; font-weight: 700; margin: 0 auto 1rem; }
.hero-card h3 { font-size: 0.94rem; font-weight: 700; color: var(--dark); margin-bottom: 0.2rem; }
.hero-card p { font-size: 0.79rem; color: var(--muted); margin-bottom: 1.2rem; line-height: 1.5; }
.open-badge { display: inline-flex; align-items: center; gap: 0.4rem; background: rgba(34,197,94,0.1); border: 1px solid rgba(34,197,94,0.25); color: #4ADE80; font-size: 0.73rem; font-weight: 600; padding: 0.33rem 0.85rem; border-radius: 2rem; }
.open-badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: #4ADE80; animation: blink 2s infinite; }

/* BUTTONS */
.btn { padding: 0.72rem 1.6rem; border-radius: 0.4rem; font-size: 0.88rem; font-weight: 600; text-decoration: none; transition: all 0.2s; font-family: 'Inter', sans-serif; border: none; cursor: pointer; display: inline-flex; align-items: center; gap: 0.4rem; }
.btn-primary { background: var(--accent); color: #0F1117; }
.btn-primary:hover { background: var(--accent-dk); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(56,189,248,0.3); }
.btn-outline { background: transparent; color: var(--dark); border: 1.5px solid var(--border); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }

/* SECTIONS */
.section { padding: 5.5rem 0; }
.bg2 { background: var(--bg2); }
.sec-label { font-size: 0.7rem; font-weight: 700; letter-spacing: 2.5px; text-transform: uppercase; color: var(--accent); margin-bottom: 0.4rem; }
.sec-title { font-family: 'Sora', sans-serif; font-size: clamp(1.5rem, 2.5vw, 2rem); color: var(--dark); margin-bottom: 0.5rem; letter-spacing: -0.3px; }
.sec-desc { font-size: 0.91rem; color: var(--muted); max-width: 480px; line-height: 1.7; }
.sec-line { width: 36px; height: 3px; background: var(--accent); border-radius: 2px; margin-top: 0.8rem; margin-bottom: 3rem; }

/* STATS */
.stats-section { background: var(--bg2); padding: 3rem 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.stats-row { display: grid; grid-template-columns: repeat(4,1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: 1rem; overflow: hidden; }
.stat-box { background: var(--card); padding: 2rem; text-align: center; }
.stat-num { font-family: 'Sora', sans-serif; font-size: 2.2rem; color: var(--accent); font-weight: 700; }
.stat-lbl { font-size: 0.78rem; color: var(--muted); margin-top: 0.3rem; }

/* SKILLS */
.skills-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.2rem; }
.skill-box { background: var(--card); border: 1px solid var(--border); border-radius: 0.85rem; padding: 1.4rem 1.5rem; transition: all 0.22s; }
.skill-box:hover { border-color: var(--accent-md); transform: translateY(-3px); box-shadow: var(--shadow-md); }
.skill-box-title { font-size: 0.7rem; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--accent); margin-bottom: 1rem; }
.skill-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.skill-tag { background: var(--bg2); border: 1px solid var(--border); color: var(--body); font-size: 0.79rem; font-weight: 500; padding: 0.28rem 0.75rem; border-radius: 0.3rem; }

/* FEATURED PROJECTS ON HOME */
.featured-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px,1fr)); gap: 1.3rem; }
.feat-card { background: var(--card); border: 1px solid var(--border); border-radius: 1rem; padding: 1.8rem; transition: all 0.22s; }
.feat-card:hover { border-color: var(--accent-md); transform: translateY(-4px); box-shadow: var(--shadow-md); }
.feat-card-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
.feat-icon { font-size: 1.8rem; }
.live-pill { background: rgba(34,197,94,0.1); border: 1px solid rgba(34,197,94,0.25); color: #4ADE80; font-size: 0.7rem; font-weight: 700; padding: 0.2rem 0.65rem; border-radius: 2rem; }
.feat-card h3 { font-size: 1rem; font-weight: 700; color: var(--dark); margin-bottom: 0.5rem; }
.feat-card p { font-size: 0.83rem; color: var(--muted); line-height: 1.65; margin-bottom: 1rem; }
.feat-techs { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 1.2rem; }
.tech { background: var(--bg); border: 1px solid var(--border); color: var(--muted); font-size: 0.71rem; font-weight: 600; padding: 0.18rem 0.55rem; border-radius: 0.25rem; }
.feat-link { font-size: 0.83rem; font-weight: 600; color: var(--accent); text-decoration: none; transition: gap 0.2s; display: inline-flex; align-items: center; gap: 0.3rem; }
.feat-link:hover { gap: 0.6rem; }

/* CTA */
.cta-section { padding: 5rem 0; background: var(--bg); border-top: 1px solid var(--border); }

/* FOOTER */
footer { background: #090B10; border-top: 1px solid var(--border); padding: 3rem 6%; }
.footer-inner { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 1.2rem; }
.footer-logo { font-family: 'Sora', sans-serif; font-size: 1.1rem; color: var(--dark); }
.footer-logo span { color: var(--accent); }
.footer-links { display: flex; gap: 2rem; }
.footer-links a { text-decoration: none; font-size: 0.84rem; color: var(--muted); transition: color 0.2s; }
.footer-links a:hover { color: var(--accent); }
.footer-copy { font-size: 0.78rem; color: var(--muted); }

/* ABOUT PAGE */
.page-hero { padding: 8rem 0 4rem; background: var(--bg); border-bottom: 1px solid var(--border); }
.page-hero-label { font-size: 0.7rem; font-weight: 700; letter-spacing: 2.5px; text-transform: uppercase; color: var(--accent); margin-bottom: 0.5rem; }
.page-hero-title { font-family: 'Sora', sans-serif; font-size: clamp(2rem, 4vw, 3rem); color: var(--dark); letter-spacing: -0.5px; }
.about-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 4rem; align-items: start; }
.about-grid > div:last-child { padding-top: 3.5rem; }
.about-text p { font-size: 0.95rem; color: var(--body); line-height: 1.85; margin-bottom: 1rem; }
.about-text strong { color: var(--dark); font-weight: 600; }
.info-box { background: var(--card); border: 1px solid var(--border); border-radius: 1rem; padding: 1.5rem; }
.info-box h4 { font-size: 0.69rem; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--accent); margin-bottom: 1rem; }
.info-row { display: flex; justify-content: space-between; padding: 0.52rem 0; border-bottom: 1px solid var(--border); font-size: 0.84rem; }
.info-row:last-child { border-bottom: none; }
.info-row span:first-child { color: var(--muted); }
.info-row span:last-child { color: var(--dark); font-weight: 500; text-align: right; max-width: 55%; }
.edu-list { display: flex; flex-direction: column; gap: 1rem; }
.edu-card { background: var(--card); border: 1px solid var(--border); border-radius: 0.85rem; padding: 1.4rem 1.8rem; display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 1rem; transition: border-color 0.2s; }
.edu-card:hover { border-color: var(--accent-md); }
.edu-card h4 { font-size: 0.95rem; font-weight: 700; color: var(--dark); margin-bottom: 0.2rem; }
.edu-card p { font-size: 0.82rem; color: var(--muted); }
.edu-right { display: flex; flex-direction: column; align-items: flex-end; gap: 0.4rem; }
.edu-year { font-size: 0.77rem; font-weight: 600; color: var(--muted); }
.edu-badge { font-size: 0.69rem; font-weight: 700; padding: 0.22rem 0.7rem; border-radius: 2rem; background: var(--accent-lt); color: var(--accent); border: 1px solid var(--accent-md); }
.edu-badge.done { background: rgba(34,197,94,0.1); color: #4ADE80; border-color: rgba(34,197,94,0.3); }

/* PROJECTS PAGE */
.projects-filter { display: flex; gap: 0.6rem; flex-wrap: wrap; margin-bottom: 2.5rem; }
.filter-btn { padding: 0.4rem 1.1rem; border-radius: 2rem; font-size: 0.8rem; font-weight: 600; border: 1px solid var(--border); background: transparent; color: var(--muted); cursor: pointer; transition: all 0.2s; font-family: 'Inter', sans-serif; }
.filter-btn:hover, .filter-btn.active { background: var(--accent-lt); border-color: var(--accent-md); color: var(--accent); }
.projects-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px,1fr)); gap: 1.3rem; }
.project-card { background: var(--card); border: 1px solid var(--border); border-radius: 1rem; padding: 1.8rem; transition: all 0.22s; }
.project-card:hover { border-color: var(--accent-md); transform: translateY(-4px); box-shadow: var(--shadow-md); }
.project-card-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
.project-icon { width: 44px; height: 44px; border-radius: 0.6rem; background: var(--accent-lt); display: flex; align-items: center; justify-content: center; font-size: 1.3rem; }
.project-card h3 { font-size: 0.97rem; font-weight: 700; color: var(--dark); margin-bottom: 0.5rem; }
.project-card p { font-size: 0.82rem; color: var(--muted); line-height: 1.6; margin-bottom: 1rem; }
.project-techs { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 1rem; }
.project-link { font-size: 0.82rem; font-weight: 600; color: var(--accent); text-decoration: none; display: inline-flex; align-items: center; gap: 0.3rem; transition: gap 0.2s; }
.project-link:hover { gap: 0.6rem; }

/* CONTACT PAGE */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem; align-items: start; }
.contact-grid > div:last-child { padding-top: 3.8rem; }
.contact-info p { font-size: 0.94rem; color: var(--muted); line-height: 1.8; margin-bottom: 1.8rem; }
.contact-links { display: flex; flex-direction: column; gap: 0.75rem; }
.contact-link { display: flex; align-items: center; gap: 0.9rem; background: var(--card); border: 1px solid var(--border); border-radius: 0.6rem; padding: 0.85rem 1.1rem; text-decoration: none; color: var(--body); transition: all 0.2s; }
.contact-link:hover { border-color: var(--accent); color: var(--accent); transform: translateX(3px); }
.contact-link-icon { font-size: 1.1rem; width: 26px; text-align: center; }
.contact-link strong { display: block; font-size: 0.84rem; font-weight: 600; color: var(--dark); }
.contact-link span { font-size: 0.77rem; color: var(--muted); }
.contact-box { background: var(--card); border: 1px solid var(--border); border-radius: 1rem; padding: 2rem; }
.contact-box h3 { font-size: 1rem; font-weight: 700; color: var(--dark); margin-bottom: 0.5rem; }
.contact-box p { font-size: 0.86rem; color: var(--muted); margin-bottom: 1.6rem; line-height: 1.7; }

/* ANIMATIONS */
.fade { opacity: 0; transform: translateY(18px); transition: opacity 0.55s ease, transform 0.55s ease; }
.fade.in { opacity: 1; transform: none; }
.d1 { transition-delay: 0.1s; } .d2 { transition-delay: 0.2s; } .d3 { transition-delay: 0.3s; }

/* RESPONSIVE */
@media (max-width: 860px) {
  .hero-inner, .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .hero-card { display: none; }
  .stats-row { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 600px) {
  .nav-links { display: none; flex-direction: column; position: absolute; top: 64px; left: 0; right: 0; background: #0F1117; border-bottom: 1px solid var(--border); padding: 1rem 6%; gap: 1rem; }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
  .stats-row { grid-template-columns: 1fr 1fr; }
  .footer-links { gap: 1.2rem; }
}
