@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600&family=Space+Grotesk:wght@400;500;600;700&display=swap');

:root,
html[data-theme='dark'],
.dark {
  --bg:#090a0c;
  --surface:#101216;
  --surface-2:#15181d;
  --text:#f4f5f7;
  --heading:#ffffff;
  --muted:#9da3ad;
  --line:#252932;
  --accent:#b9ff66;
  --accent-badge:rgba(185,255,102,0.12);
  --max:1160px;
}

html[data-theme='light'],
.light {
  --bg:#f9fafb;
  --surface:#ffffff;
  --surface-2:#f3f4f6;
  --text:#1f2937;
  --heading:#111827;
  --muted:#6b7280;
  --line:#e5e7eb;
  --accent:#b9ff66;
  --accent-badge:rgba(101,163,13,0.12);
  --max:1160px;
}

*{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth}
body{
  background:
    radial-gradient(circle at 78% 5%, rgba(185,255,102,.065), transparent 24%),
    var(--bg);
  color:var(--text);
  font-family:'DM Sans',sans-serif;
  line-height:1.6;
  transition:background-color .25s ease, color .25s ease;
}
a{color:inherit;text-decoration:none}

/* Navigation */
.nav{
  max-width:var(--max);
  margin:auto;
  padding:30px 32px;
  display:flex;
  justify-content:space-between;
  align-items:center;
}
.brand{
  font:700 25px 'Space Grotesk',sans-serif;
  letter-spacing:-1px;
  color:var(--heading);
}
.brand span{color:var(--accent)}
.nav nav{
  display:flex;
  align-items:center;
  gap:32px;
}
.nav nav a{
  color:var(--muted);
  font-size:13px;
  white-space:nowrap;
  transition:color .2s ease;
}
.nav nav a:hover{color:var(--heading)}

/* Theme toggle button in nav */
.theme-toggle-btn{
  background:var(--surface);
  border:1px solid var(--line);
  color:var(--text);
  padding:6px 12px;
  border-radius:999px;
  font-size:12px;
  cursor:pointer;
  display:inline-flex;
  align-items:center;
  gap:6px;
  transition:.2s;
}
.theme-toggle-btn:hover{
  border-color:var(--accent);
  color:var(--heading);
}

/* Hero */
.hero{
  max-width:var(--max);
  min-height:80vh;
  margin:auto;
  padding:105px 32px 85px;
  display:flex;
  flex-direction:column;
  justify-content:center;
}
.hero-copy{max-width:900px}
.eyebrow{
  color:var(--accent);
  font:600 11px 'Space Grotesk',sans-serif;
  letter-spacing:2.5px;
  margin-bottom:20px;
}
.hero h1{
  font:700 clamp(64px,9.5vw,118px)/.9 'Space Grotesk',sans-serif;
  letter-spacing:-6px;
  color:var(--heading);
}
.hero h1 span{color:var(--muted)}
.role{
  max-width:720px;
  color:var(--heading);
  font-size:20px;
  line-height:1.45;
  margin-top:32px;
}
.goal{
  max-width:720px;
  color:var(--muted);
  font-size:16px;
  line-height:1.7;
  margin-top:14px;
}
.location{
  color:var(--muted);
  font-size:14px;
  margin-top:10px;
}
.actions{
  display:flex;
  gap:12px;
  margin-top:34px;
  flex-wrap:wrap;
}
.button{
  padding:12px 22px;
  border:1px solid var(--line);
  border-radius:999px;
  font-size:14px;
  font-weight:600;
  transition:.2s ease;
  cursor:pointer;
  display:inline-block;
}
.button:hover{transform:translateY(-2px);border-color:#59606c}
.button.primary{background:var(--accent);color:#10120c;border-color:var(--accent)}
.button.secondary{color:var(--heading);background:var(--surface)}

.social-strip{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:78px;
}
.social-strip a{
  border:1px solid var(--line);
  background:var(--surface);
  padding:9px 15px;
  border-radius:999px;
  color:var(--muted);
  font-size:12px;
  transition:.2s ease;
}
.social-strip a:hover{color:var(--heading);border-color:var(--accent);transform:translateY(-2px)}

/* Shared sections */
.section{
  max-width:var(--max);
  margin:auto;
  padding:110px 32px;
  border-top:1px solid var(--line);
  display:grid;
  grid-template-columns:190px minmax(0,1fr);
  gap:75px;
}
.section-label{
  color:var(--muted);
  font:600 11px 'Space Grotesk',sans-serif;
  letter-spacing:1.8px;
  padding-top:7px;
}
.section-content{min-width:0;max-width:850px}
.section h2{
  font:600 clamp(38px,5vw,62px)/1.03 'Space Grotesk',sans-serif;
  letter-spacing:-3px;
  margin-bottom:28px;
  color:var(--heading);
}
.section-intro{
  color:var(--muted);
  font-size:16px;
  margin-bottom:32px;
}

/* About Section */
.about-copy>p{
  color:var(--muted);
  max-width:780px;
  margin-bottom:24px;
  font-size:17px;
  line-height:1.85;
}
.about-highlights-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:14px;
  margin-top:36px;
  padding-top:28px;
  border-top:1px solid var(--line);
}
.highlight-card{
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:14px;
  padding:16px;
  display:flex;
  flex-direction:column;
}
.highlight-label{
  font-size:11px;
  font-family:monospace;
  text-transform:uppercase;
  letter-spacing:1px;
  color:var(--accent);
  margin-bottom:6px;
}
.highlight-card strong{
  font-size:14px;
  color:var(--heading);
  margin-bottom:4px;
}
.highlight-sub{
  font-size:12px;
  color:var(--muted);
}

/* Education / Academic Background */
.education-timeline{
  position:relative;
  padding-left:42px;
}
.education-timeline::before{
  content:"";
  position:absolute;
  left:6px;
  top:12px;
  bottom:12px;
  width:1px;
  background:var(--line);
}
.education-item{
  position:relative;
  padding:0 0 60px;
}
.education-item:last-child{padding-bottom:0}
.education-marker{
  position:absolute;
  left:-42px;
  top:14px;
  width:14px;
  height:14px;
  border:2px solid var(--muted);
  border-radius:50%;
  background:var(--bg);
}
.education-item.current .education-marker{
  border-color:var(--accent);
  box-shadow:0 0 0 6px var(--accent-badge);
}
.education-main{
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:18px;
  padding:24px;
}
.edu-top-meta{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-bottom:10px;
  flex-wrap:wrap;
  gap:8px;
}
.tag{
  display:inline-block;
  font:600 10px 'Space Grotesk',sans-serif;
  letter-spacing:1.8px;
  padding:4px 10px;
  border-radius:999px;
  text-transform:uppercase;
}
.current-tag{
  color:var(--accent);
  background:var(--accent-badge);
  border:1px solid rgba(185,255,102,0.3);
}
.past-tag{
  color:var(--muted);
  background:var(--surface-2);
  border:1px solid var(--line);
}
.education-main h3{
  font:600 24px/1.2 'Space Grotesk',sans-serif;
  margin-bottom:4px;
  color:var(--heading);
}
.institution{
  color:var(--text);
  font-size:15px;
  font-weight:500;
}
.muted{
  color:var(--muted);
  font-size:12px;
  font-family:monospace;
}
.education-detail{
  color:var(--muted);
  font-size:14px;
  line-height:1.75;
  margin-top:14px;
}
.course-highlights-box{
  margin-top:18px;
  padding-top:14px;
  border-top:1px solid var(--line);
}
.course-label{
  font-size:10px;
  font-family:monospace;
  letter-spacing:1px;
  color:var(--muted);
  display:block;
  margin-bottom:8px;
}
.course-pills{
  display:flex;
  flex-wrap:wrap;
  gap:6px;
}
.course-pills span{
  font-size:12px;
  padding:4px 10px;
  border-radius:6px;
  background:var(--surface-2);
  border:1px solid var(--line);
  color:var(--text);
}

/* Skills */
.section-header-row{
  display:flex;
  justify-content:space-between;
  align-items:flex-end;
  gap:16px;
  margin-bottom:28px;
  flex-wrap:wrap;
}
.verified-pill{
  font-size:12px;
  font-family:monospace;
  color:var(--muted);
  background:var(--surface-2);
  border:1px solid var(--line);
  padding:4px 12px;
  border-radius:999px;
  white-space:nowrap;
}
.skills-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:18px;
}
.skill-group{
  border:1px solid var(--line);
  border-radius:18px;
  background:var(--surface);
  padding:24px;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
}
.skill-group-head{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-bottom:6px;
}
.skill-group h3{
  font:600 20px/1.2 'Space Grotesk',sans-serif;
  color:var(--heading);
}
.count-tag{
  font-size:11px;
  font-family:monospace;
  color:var(--accent);
  background:var(--accent-badge);
  padding:2px 8px;
  border-radius:999px;
}
.group-subtitle{
  font-size:13px;
  color:var(--muted);
  line-height:1.5;
  margin-bottom:18px;
}
.skill-tags{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}
.skill-pill{
  border:1px solid var(--line);
  border-radius:999px;
  padding:7px 12px;
  font-size:12px;
  color:var(--heading);
  background:var(--surface-2);
  cursor:pointer;
  transition:.2s;
}
.skill-pill:hover{
  border-color:var(--accent);
  transform:translateY(-1px);
}

/* Interests */
.cards{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:18px;
}
.card{
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:20px;
  padding:28px;
  min-height:280px;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  transition:.25s ease;
}
.card:hover{transform:translateY(-4px);border-color:var(--accent)}
.card-head{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-bottom:16px;
}
.card-num{
  color:var(--accent);
  font:600 13px monospace;
}
.card-sub{
  font-size:11px;
  font-family:monospace;
  text-transform:uppercase;
  letter-spacing:1px;
  color:var(--muted);
}
.card h3{
  font:600 22px/1.15 'Space Grotesk',sans-serif;
  margin-bottom:12px;
  color:var(--heading);
}
.card p{color:var(--muted);font-size:14px;line-height:1.75}
.interest-pills{
  margin-top:20px;
  padding-top:14px;
  border-top:1px solid var(--line);
  display:flex;
  flex-wrap:wrap;
  gap:6px;
}
.interest-pills span{
  font-size:11px;
  padding:2px 8px;
  border-radius:4px;
  background:var(--surface-2);
  color:var(--muted);
}

/* Connect / Direct Message Section */
.message-box{
  border:1px solid var(--line);
  border-radius:22px;
  background:var(--surface);
  padding:34px;
}
.message-header{
  display:flex;
  justify-content:space-between;
  align-items:center;
  flex-wrap:wrap;
  gap:16px;
  padding-bottom:20px;
  margin-bottom:24px;
  border-bottom:1px solid var(--line);
}
.inbox-tag{display:flex;flex-direction:column;gap:2px}
.inbox-label{font-size:11px;color:var(--muted);font-family:monospace;text-transform:uppercase}
.inbox-tag strong{font-family:monospace;color:var(--heading);font-size:14px}
.copy-pill{
  background:var(--surface-2);
  border:1px solid var(--line);
  color:var(--heading);
  padding:8px 16px;
  border-radius:999px;
  font-size:12px;
  cursor:pointer;
  transition:.2s;
}
.copy-pill:hover{border-color:var(--accent);color:var(--accent)}
.form-row{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:16px;
  margin-bottom:16px;
}
.form-group{
  display:flex;
  flex-direction:column;
  gap:6px;
}
.form-group label{
  font-size:12px;
  color:var(--muted);
}
.form-group input,
.form-group select,
.form-group textarea{
  background:var(--bg);
  border:1px solid var(--line);
  color:var(--heading);
  padding:12px 16px;
  border-radius:12px;
  font-family:inherit;
  font-size:14px;
  outline:none;
  transition:border-color .2s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus{
  border-color:var(--accent);
}
.form-submit-row{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-top:20px;
  flex-wrap:wrap;
  gap:12px;
}
.connect-profiles-row{
  margin-top:28px;
  padding-top:20px;
  border-top:1px solid var(--line);
  display:flex;
  justify-content:space-between;
  align-items:center;
  flex-wrap:wrap;
  gap:12px;
  font-size:13px;
  color:var(--muted);
}
.profiles-list{
  display:flex;
  flex-wrap:wrap;
  gap:16px;
  font-family:monospace;
}
.profiles-list a{color:var(--heading);transition:color .2s}
.profiles-list a:hover{color:var(--accent)}

/* Toast feedback */
.toast-message{
  position:fixed;
  bottom:24px;
  right:24px;
  background:var(--heading);
  color:var(--bg);
  padding:10px 18px;
  border-radius:999px;
  font-size:13px;
  font-weight:600;
  box-shadow:0 8px 24px rgba(0,0,0,0.25);
  z-index:9999;
  animation:fadein .2s ease;
}
@keyframes fadein{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}

/* Footer */
footer{
  max-width:var(--max);
  margin:auto;
  padding:28px 32px 48px;
  border-top:1px solid var(--line);
  display:flex;
  justify-content:space-between;
  color:var(--muted);
  font-size:12px;
}

@media(max-width:860px){
  .section{grid-template-columns:1fr;gap:24px;padding:75px 24px}
  .skills-grid,.cards,.about-highlights-grid{grid-template-columns:1fr}
  .form-row{grid-template-columns:1fr}
  .nav nav{gap:16px}
}
