/* Reset */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root{
  --bg:#1a1a1a;
  --panel:#0d1117;
  --panel-2:#161b22;
  --border:#30363d;
  --text:#e0e0e0;
  --muted:#c9d1d9;
  --accent:#58a6ff;
  --accent-2:#79c0ff;
  --green:#238636;
  --green-2:#2ea043;
}

body{
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text);
  background: radial-gradient(1200px 600px at 50% -20%, rgba(88,166,255,0.12), transparent 50%),
              radial-gradient(900px 500px at 90% 10%, rgba(35,134,54,0.10), transparent 45%),
              var(--bg);
}

/* Header */
header{
  background: var(--panel);
  border-bottom: 2px solid var(--border);
  padding: 2.2rem 1rem;
}

.header-inner{
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

header h1{ margin-bottom: .35rem; font-size: 2rem; }
header p{ color: var(--muted); }

.header-actions{
  margin-top: 1.15rem;
  display: flex;
  gap: .6rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Sticky nav */
.topnav{
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(10px);
  background: rgba(13,17,23,0.75);
  border-bottom: 1px solid var(--border);
  display: flex;
  gap: .75rem;
  justify-content: center;
  padding: .6rem 1rem;
}

.navlink{
  font-weight: 800;
  border: 1px solid transparent;
  padding: .35rem .65rem;
  border-radius: 999px;
  color: var(--muted);
  text-decoration: none;
}

.navlink:hover{
  color: white;
  background: rgba(255,255,255,0.06);
  text-decoration: none;
}

.navlink.active{
  color: white;
  border-color: var(--border);
  background: rgba(88,166,255,0.12);
}

/* Layout */
.container{
  max-width: 900px;
  margin: 2rem auto;
  padding: 0 1rem;
}

/* Featured */
.featured{ margin: 1.25rem 0 1.5rem; }

.featured-card{
  display: grid;
  grid-template-columns: 1.4fr .8fr;
  gap: 1rem;
  background: linear-gradient(135deg, rgba(88,166,255,0.10), rgba(35,134,54,0.08));
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.25rem;
  box-shadow: 0 8px 24px rgba(0,0,0,0.35);
}

.kicker{
  letter-spacing: .12em;
  text-transform: uppercase;
  font-weight: 900;
  color: var(--muted);
  font-size: .78rem;
  margin-bottom: .35rem;
}

.featured-title{
  font-size: 1.6rem;
  margin-bottom: .35rem;
}

.featured-actions{
  margin-top: .9rem;
  display: flex;
  gap: .6rem;
  flex-wrap: wrap;
}

.featured-side{
  display: flex;
  flex-direction: column;
  gap: .65rem;
  justify-content: center;
}

.stat{
  background: rgba(13,17,23,0.65);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: .75rem;
}

.stat-num{ font-size: 1.3rem; font-weight: 900; color: white; }
.stat-label{ font-size: .85rem; color: var(--muted); }

@media (max-width: 800px){
  .featured-card{ grid-template-columns: 1fr; }
}

/* Accordions */
.accordion-section{
  background: var(--panel);
  margin-bottom: 1rem;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 2px 6px rgba(0,0,0,0.45);
}

.accordion-header{
  width: 100%;
  background: var(--panel-2);
  color: white;
  padding: 1.1rem 1.25rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 0;
  text-align: left;
  transition: background .25s;
}

.accordion-header:hover{ background: #1f2937; }

.accordion-header h2{
  font-size: 1.25rem;
  font-weight: 800;
}

.accordion-icon{
  font-size: 1.25rem;
  transition: transform .25s;
}

.accordion-header.active .accordion-icon{ transform: rotate(180deg); }

.accordion-header:focus-visible{
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.accordion-content{
  max-height: 0px;
  overflow: hidden;
  transition: max-height .35s ease;
}

.accordion-inner{ padding: 1.25rem; }

/* Projects */
.project{
  background: var(--panel-2);
  padding: 1.25rem;
  margin-bottom: 1rem;
  border-left: 4px solid var(--accent);
  border-radius: 8px;
}

.project-top{
  display: flex;
  justify-content: space-between;
  gap: .75rem;
  align-items: baseline;
  flex-wrap: wrap;
}

.project h3{ color: var(--accent); margin-bottom: .25rem; }

.tag{
  font-size: .8rem;
  color: var(--muted);
  border: 1px solid var(--border);
  padding: .2rem .5rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.03);
}

/* Featured project tag */
.featured-tag{
  color: #f0b429;
  border-color: #f0b429;
  background: rgba(240,180,41,0.08);
  font-weight: 600;
}

/* Meta pills */
.meta{
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
  margin: .6rem 0 .75rem;
}

.pill{
  font-size: .78rem;
  color: var(--muted);
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.04);
  padding: .2rem .55rem;
  border-radius: 999px;
}

.highlights{
  list-style-position: inside;
  margin: .5rem 0 .75rem;
  padding-left: 0;
}
.highlights li{ margin-bottom: .35rem; }

/* Lists */
.list{ list-style-position: inside; }
.list li{ margin-bottom: .5rem; }

/* Links */
a{
  color: var(--accent);
  text-decoration: none;
  font-weight: 800;
}
a:hover{
  color: var(--accent-2);
  text-decoration: underline;
}

/* Utilities */
.muted{ color: var(--muted); margin: .35rem 0 .75rem; }
.small{ font-size: .9rem; }
.mono{
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

/* Buttons */
.btn{
  display: inline-block;
  padding: .75rem 1.1rem;
  text-decoration: none;
  border-radius: 10px;
  transition: transform .15s, background .25s;
  border: 1px solid transparent;
  font-weight: 900;
}

.btn:active{ transform: scale(0.98); }

.btn-primary{
  background: var(--green);
  color: white;
}
.btn-primary:hover{
  background: var(--green-2);
  text-decoration: none;
}

.btn-secondary{
  background: #2b313a;
  color: white;
  border-color: var(--border);
}
.btn-secondary:hover{
  background: #3a424e;
  text-decoration: none;
}

.btn-ghost{
  background: transparent;
  border-color: var(--border);
  color: white;
}
.btn-ghost:hover{
  background: rgba(255,255,255,0.06);
  text-decoration: none;
}

/* Contact */
.contact-grid{
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 1rem;
}
@media (max-width: 900px){
  .contact-grid{ grid-template-columns: 1fr; }
}

.contact-form{
  display: grid;
  gap: .9rem;
}

.contact-form label span{
  display: block;
  margin-bottom: .35rem;
  color: var(--muted);
  font-weight: 800;
}

.contact-form input,
.contact-form textarea{
  width: 100%;
  padding: .75rem .8rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.03);
  color: white;
}

.contact-form input:focus,
.contact-form textarea:focus{
  outline: 2px solid rgba(88,166,255,0.35);
  border-color: rgba(88,166,255,0.55);
}

/* Footer */
footer{
  background: var(--panel);
  color: white;
  text-align: center;
  padding: 1.5rem 1rem;
  margin-top: 2rem;
  border-top: 2px solid var(--border);
}

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