/* Modern Dark Theme */
:root {
  --bg-0: #0a0a0b;
  --bg-1: #111216;
  --bg-2: #171922;
  --bg-3: #1e2230;
  --txt-0: #ffffff;
  --txt-1: #b8c0cc;
  --txt-2: #8b94a7;
  --blue: #00d4ff;
  --green: #00ff88;
  --purple: #8b5cf6;
  --orange: #ff6b35;
  --grad-1: linear-gradient(135deg, var(--blue), var(--green));
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 18px;
  --shadow-1: 0 10px 30px rgba(0,0,0,.45);
  --shadow-glow: 0 0 24px rgba(0, 212, 255, .35);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, sans-serif; background: var(--bg-0); color: var(--txt-0); line-height: 1.6; }
.no-js .fade-in { opacity: 1 !important; transform: none !important; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* Navbar */
.navbar { position: sticky; top: 0; z-index: 100; background: rgba(10,10,11,.7); backdrop-filter: blur(10px); border-bottom: 1px solid rgba(0,212,255,.12); }
.nav-container { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.nav-prompt { color: var(--txt-2); font-weight: 800; letter-spacing: .02em; font-size: 13px; padding: 8px 12px; border: 1px solid rgba(0,212,255,.2); border-radius: 10px; background: var(--bg-1); white-space: nowrap; max-width: 40vw; overflow: hidden; text-overflow: ellipsis; margin-left: 8px; }
.nav-container nav { margin-left: auto; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--txt-0); }
.brand-mark { background: var(--grad-1); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; font-weight: 900; font-size: 22px; letter-spacing: .5px; }
.brand-text { color: var(--txt-1); font-weight: 600; font-size: 14px; }

.nav-menu { list-style: none; display: flex; gap: 26px; }
.nav-link { color: var(--txt-2); text-decoration: none; font-weight: 600; position: relative; font-size: 14px; }
.nav-link:hover, .nav-link.active { color: var(--blue); }
.nav-link::after { content: ""; position: absolute; left: 0; bottom: -8px; width: 0; height: 2px; background: var(--grad-1); transition: .25s ease; }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }
.nav-toggle { display: flex; align-items: center; justify-content: center; padding-left: 4px; }
.toggle { position: relative; width: 54px; height: 26px; border-radius: 999px; border: 1px solid rgba(0,212,255,.25); background: #0f131d; cursor: pointer; display: inline-flex; align-items: center; justify-content: space-between; padding: 0 8px; color: var(--txt-2); font-weight: 800; font-size: 12px; }
.toggle .t-knob { position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--grad-1); box-shadow: var(--shadow-glow); transition: left .25s ease; }
.nav-toggle input { display: none; }
.nav-toggle input:checked + .toggle .t-knob { left: 31px; }
.t-label { pointer-events: none; }

.hamburger { display: none; width: 44px; height: 44px; border: 1px solid rgba(0,212,255,.2); border-radius: 10px; background: transparent; align-items: center; justify-content: center; gap: 5px; }
.hamburger span { display: block; width: 18px; height: 2px; background: #e6eefb; }

/* Hero */
.hero { min-height: 100svh; display: grid; place-items: center; position: relative; background:
  radial-gradient(800px 400px at 10% -20%, rgba(0,212,255,.12), transparent 60%),
  radial-gradient(800px 400px at 90% 120%, rgba(0,255,136,.12), transparent 60%), var(--bg-0); }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 56px; padding-top: 32px; }
.overline { color: var(--txt-2); letter-spacing: .2em; text-transform: uppercase; font-size: 12px; margin-bottom: 10px; }
.title { font-size: clamp(36px, 7vw, 64px); line-height: 1.1; background: var(--grad-1); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; font-weight: 900; }
.subtitle { margin-top: 16px; color: var(--txt-1); font-size: 18px; max-width: 52ch; }
.subtitle { word-wrap: break-word; overflow-wrap: anywhere; }
.highlight { color: var(--green); font-weight: 700; }
.hero-cta { display: flex; gap: 14px; margin-top: 28px; }
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 12px 18px; border-radius: 12px; text-decoration: none; font-weight: 700; font-size: 14px; border: 1px solid transparent; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.btn-primary { background: var(--grad-1); color: #051018; box-shadow: var(--shadow-1); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-glow); }
.btn-ghost { background: transparent; color: #e9f4ff; border-color: rgba(0,212,255,.3); }
.btn-ghost:hover { background: rgba(0,212,255,.08); box-shadow: var(--shadow-glow); transform: translateY(-2px); }
.socials { display: flex; gap: 12px; margin-top: 22px; }
.social { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; color: var(--txt-1); border: 1px solid rgba(0,212,255,.2); background: var(--bg-1); text-decoration: none; transition: .25s ease; }
.social:hover { color: #081218; background: var(--blue); box-shadow: var(--shadow-glow); transform: translateY(-2px); }
.icon-medium-box { width: 22px; height: 22px; border-radius: 6px; background: #12100e; display: grid; place-items: center; }
.icon-medium-box svg { width: 16px; height: 16px; display: block; }

.scene { position: relative; width: min(460px, 90vw); height: min(460px, 90vw); margin-inline: auto; filter: drop-shadow(0 30px 50px rgba(0,0,0,.35)); }
.orb { position: absolute; border-radius: 50%; filter: blur(10px); opacity: .8; }
.orb-lg { width: 64%; height: 64%; top: 18%; left: 18%; background: radial-gradient(circle at 35% 35%, rgba(0,212,255,.6), transparent 60%), radial-gradient(circle at 65% 65%, rgba(0,255,136,.6), transparent 60%); animation: drift 14s ease-in-out infinite; }
.orb-sm { width: 22%; height: 22%; top: 10%; right: 10%; background: radial-gradient(circle at 50% 50%, rgba(139,92,246,.8), transparent 60%); animation: drift 10s ease-in-out infinite reverse; }
.chip { position: absolute; inset: 25% 25% auto auto; width: 140px; height: 90px; background: linear-gradient(180deg, #0f121a, #0a0c12); border: 1px solid rgba(0,212,255,.18); color: #7ee1ff; display: grid; place-items: center; border-radius: 14px; font-family: "JetBrains Mono", monospace; letter-spacing: .2em; text-shadow: 0 0 12px rgba(126, 225, 255, .45); box-shadow: 0 6px 24px rgba(0,0,0,.45); animation: float 6s ease-in-out infinite; }
.node { position: absolute; width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: #0e1118; color: var(--blue); border: 2px solid rgba(0,212,255,.35); box-shadow: inset 0 0 40px rgba(0,212,255,.06); animation: float 7s ease-in-out infinite; }
.n1 { left: 6%; top: 22%; }
.n2 { right: 6%; top: 18%; color: var(--green); border-color: rgba(0,255,136,.35); }
.n3 { left: 12%; bottom: 16%; color: var(--purple); border-color: rgba(139,92,246,.35); }
.n4 { right: 12%; bottom: 12%; color: var(--orange); border-color: rgba(255,107,53,.35); }

/* Sections */
.section { padding: 92px 0; }
.section.alt { background: var(--bg-1); }
.section-title { text-align: center; font-size: clamp(24px, 4vw, 34px); font-weight: 900; margin-bottom: 30px; background: var(--grad-1); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.muted { color: var(--txt-2); }
.badge { display: inline-block; padding: 4px 10px; border-radius: 999px; border: 1px solid rgba(0,255,136,.3); color: var(--green); font-weight: 700; font-size: 12px; }

/* Contact header icons aligned with title */
.contact-header { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; margin-bottom: 18px; }
.contact-icons { display: flex; gap: 12px; justify-content: center; }
.contact-icon { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px; color: var(--txt-2); border: 1px solid rgba(0,212,255,.2); background: var(--bg-1); text-decoration: none; }
.contact-icon:hover { color: #081218; background: var(--blue); box-shadow: var(--shadow-glow); }

/* Cards */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.card { background: var(--bg-2); border: 1px solid rgba(0,212,255,.12); border-radius: var(--radius-lg); padding: 20px; transition: .25s ease; position: relative; overflow: hidden; }
.card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--grad-1); opacity: .75; }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-1); border-color: rgba(0,212,255,.35); }
.card-header { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.card-header i { color: var(--blue); }

/* Skills */
.skills-layout { display: grid; grid-template-columns: 1.4fr .9fr; gap: 28px; }
.cat { color: var(--blue); font-weight: 800; margin-bottom: 12px; }
.skills-list { display: grid; gap: 14px; }
.skill { display: grid; grid-template-columns: 28px 1fr 160px; align-items: center; gap: 12px; background: var(--bg-2); border: 1px solid rgba(0,212,255,.12); border-radius: var(--radius-md); padding: 12px 14px; }
.skill i { color: var(--blue); }
.skill .bar { background: #0f131d; border: 1px solid rgba(0,212,255,.14); height: 10px; border-radius: 999px; overflow: hidden; }
.skill .bar span { display: block; height: 100%; width: 0; background: var(--grad-1); border-radius: 999px; box-shadow: var(--shadow-glow); transition: width 1.6s ease; }
.soft-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.soft { background: var(--bg-2); border: 1px solid rgba(0,255,136,.12); border-radius: var(--radius-md); padding: 12px 14px; color: var(--txt-1); font-weight: 600; }
.soft i { color: var(--green); margin-right: 8px; }

/* Projects */
.projects-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; }
.project { background: var(--bg-2); border: 1px solid rgba(0,212,255,.12); border-radius: var(--radius-lg); overflow: hidden; transition: .3s ease; }
.project:hover { transform: translateY(-8px); box-shadow: var(--shadow-1); border-color: rgba(0,212,255,.35); }
.thumb { height: 180px; display: grid; place-items: center; background: radial-gradient(600px 200px at 20% -20%, rgba(0,212,255,.12), transparent 60%), var(--bg-3); color: var(--blue); font-size: 44px; }
.project-body { padding: 18px; }
.project-body h3 { margin-bottom: 6px; }
.project-body p { color: var(--txt-1); margin-bottom: 10px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.tags span { font-size: 12px; font-weight: 700; padding: 6px 10px; border-radius: 999px; border: 1px solid rgba(0,212,255,.18); color: var(--blue); background: rgba(0,212,255,.06); }
.links { display: flex; gap: 12px; }
.links a { color: var(--txt-2); text-decoration: none; font-weight: 700; font-size: 14px; }
.links a:hover { color: var(--blue); }

/* Publications */
.pub-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.pub { background: var(--bg-2); border: 1px solid rgba(0,255,136,.12); border-radius: var(--radius-lg); padding: 18px; transition: .25s ease; }
.pub:hover { transform: translateY(-6px); box-shadow: var(--shadow-1); border-color: rgba(0,255,136,.35); }
.pub-ico { width: 56px; height: 56px; display: grid; place-items: center; border-radius: 12px; color: var(--green); background: #0f131d; border: 1px solid rgba(0,255,136,.18); margin-bottom: 10px; }
.pub-link { color: var(--green); text-decoration: none; font-weight: 700; }

/* Certifications */
.cert-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.cert { text-align: center; background: var(--bg-2); border: 1px solid rgba(139,92,246,.12); border-radius: var(--radius-lg); padding: 20px; position: relative; overflow: hidden; }
.cert::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: linear-gradient(135deg, var(--purple), var(--blue)); }
.cert:hover { transform: translateY(-6px); box-shadow: var(--shadow-1); border-color: rgba(139,92,246,.35); }
.medal { width: 78px; height: 78px; display: grid; place-items: center; border-radius: 50%; margin: 0 auto 10px; color: var(--purple); background: #0f131d; border: 3px solid rgba(139,92,246,.35); }

/* Workshops */
.timeline { position: relative; max-width: 820px; margin: 0 auto; }
.timeline::before { content: ""; position: absolute; left: 26px; top: 0; bottom: 0; width: 2px; background: var(--grad-1); }
.t-item { position: relative; padding-left: 74px; margin: 20px 0; }
.t-dot { position: absolute; left: 18px; top: 10px; width: 18px; height: 18px; border-radius: 50%; background: var(--blue); border: 4px solid var(--bg-0); box-shadow: var(--shadow-glow); }
.t-card { background: var(--bg-2); border: 1px solid rgba(0,212,255,.12); border-radius: var(--radius-lg); padding: 16px 18px; }
.t-card h3 { margin-bottom: 4px; }

/* Hobbies */
.hobby-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.hobby { background: var(--bg-2); border: 1px solid rgba(255,107,53,.14); border-radius: var(--radius-lg); padding: 18px; text-align: center; transition: .25s ease; }
.hobby:hover { transform: translateY(-6px); box-shadow: var(--shadow-1); border-color: rgba(255,107,53,.35); }
.h-ico { width: 70px; height: 70px; display: grid; place-items: center; border-radius: 50%; margin: 0 auto 10px; color: var(--orange); background: #0f131d; border: 3px solid rgba(255,107,53,.35); }

/* Footer */
.footer { border-top: 1px solid rgba(0,212,255,.12); background: var(--bg-0); }
.foot-wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 28px 0; }
.foot-social { display: flex; gap: 12px; }
.foot-link { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px; color: var(--txt-2); border: 1px solid rgba(0,212,255,.2); text-decoration: none; background: var(--bg-1); }
.foot-link:hover { color: #081218; background: var(--blue); box-shadow: var(--shadow-glow); }
.foot-link .icon-medium-box { width: 20px; height: 20px; border-radius: 5px; }
.foot-link .icon-medium-box svg { width: 14px; height: 14px; }

/* Animation helpers */
.fade-in { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

@keyframes float { 0%,100% { transform: translateY(0) } 50% { transform: translateY(-14px) } }
@keyframes drift { 0%,100% { transform: translate(0,0) } 50% { transform: translate(10px, -12px) } }

/* Responsive */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 30px; text-align: center; }
  .subtitle { margin-inline: auto; }
}
@media (max-width: 860px) {
  .nav-menu { position: fixed; inset: 72px 0 auto 0; background: rgba(10,10,11,.98); backdrop-filter: blur(8px); border-bottom: 1px solid rgba(0,212,255,.12); transform: translateY(-130%); transition: .25s ease; display: grid; padding: 16px; gap: 8px; }
  .nav-menu.open { transform: translateY(0); }
  .hamburger { display: inline-flex; }
  .nav-prompt { display: none; }
}
@media (max-width: 640px) {
  .skills-layout { grid-template-columns: 1fr; }
  .skill { grid-template-columns: 28px 1fr; grid-auto-rows: auto; }
  .skill .bar { grid-column: 1 / -1; }
  .foot-wrap { flex-direction: column; }
  .title { font-size: clamp(28px, 8vw, 36px); }
  .subtitle { font-size: 15px; max-width: 60ch; }
  .section { padding: 68px 0; }
  .section-title { margin-bottom: 22px; }
  #objective p.muted { font-size: 15px; line-height: 1.7; }
}
@media (max-width: 400px) {
  .subtitle { font-size: 14px; }
  #objective p.muted { font-size: 14px; }
}

/* Career Objective Grid Layout */
.objective-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 40px;
  align-items: center;
  margin-top: 30px;
}

.objective-left {
  display: flex;
  justify-content: center;
}

.profile-photo {
  width: 280px;
  height: 280px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--txt-2);
  position: relative;
}

.profile-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.profile-photo:hover img {
  transform: scale(1.05);
}

.objective-right {
  display: flex;
  align-items: center;
}

.objective-right p {
  font-size: 16px;
  line-height: 1.7;
  max-width: none;
  margin: 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .objective-grid {
    grid-template-columns: 1fr;
    gap: 30px;
    text-align: center;
  }
  
  .profile-photo {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    margin: 0 auto;
  }
  
  .objective-right p {
    font-size: 15px;
  }
}

@media (max-width: 480px) {
  .profile-photo {
    width: 160px;
    height: 160px;
    border-radius: 50%;
  }
  
  .objective-right p {
    font-size: 14px;
  }
}

