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

html,
body {
  height: 100%;
  scroll-behavior: smooth;
}

body {
  --bg: #0b0f17;
  --panel: #121826;
  --text: #e6e8ee;
  --muted: #a6adbb;
  --accent: #7c5cff;
  --accent-2: #00e0a4;
  --border: #1f2a44;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

.light {
  --bg: #f7f8fb;
  --panel: #ffffff;
  --text: #0b0f17;
  --muted: #3f4a5e;
  --accent: #5b38ff;
  --accent-2: #06c391;
  --border: #e6e9f2;
}

.container {
  width: min(1100px, 92%);
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 15, 23, 0.7);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
}

.brand .accent {
  color: var(--accent);
}

.logo {
  width: 28px;
  height: 28px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 18px;
}

.main-nav a {
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  opacity: 0.9;
}

.main-nav a:hover {
  opacity: 1;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: none;
}

.hamburger span {
  width: 22px;
  height: 2px;
  background: var(--text);
}

/* Buttons */
.btn {
  border: 1px solid var(--border);
  background: var(--panel);
  color: var(--text);
  padding: 10px 16px;
  border-radius: 12px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: var(--shadow);
  margin-top: 5px;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn.primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border: none;
  color: white;
}

.btn.outline {
  background: transparent;
}

.btn.small {
  padding: 8px 12px;
  border-radius: 10px;
}

/* Hero */
.hero {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 32px;
  padding: 64px 0;
  align-items: center;
}

.eyebrow {
  font-weight: 600;
  color: var(--accent-2);
  letter-spacing: .02em;
  margin-bottom: 8px;
}

h1 {
  font-size: clamp(1.8rem, 3vw, 3rem);
  margin-bottom: 12px;
}

.lead {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 60ch;
}

.cta-group {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.socials {
  display: flex;
  gap: 16px;
  margin-top: 16px;
}

.hero-art img {
  width: 100%;
  height: auto;
}

/* Sections */
.section {
  padding: 64px 0;
  border-top: 1px dashed var(--border);

}

.section h2 {
  font-size: clamp(1.4rem, 2vw, 2rem);
  margin-bottom: 20px;
}

.max-600 {
  max-width: 60ch;
  color: var(--muted);
}

.highlights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.highlights li {
  background: var(--panel);
  border: 1px solid var(--border);
  padding: 12px 14px;
  border-radius: 12px;
}

/* Skills */
.skill-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.skill-card {
  background: var(--panel);
  border: 1px solid var(--border);
  padding: 18px;
  border-radius: 16px;
  box-shadow: var(--shadow);
}

.skill-card h3 {
  margin-bottom: 8px;
  font-size: 1.05rem;
}

/* Projects */
.project-card {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 18px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 16px;
  box-shadow: var(--shadow);
}

.project-card img {
  width: 100%;
  border-radius: 12px;
  background: #0e1320;
  border: 1px solid var(--border);
}

.project-card h3 {
  margin-bottom: 8px;
}

.project-card h2 {
  margin-bottom: 8px;
  font-size: 10;
}

.project-card .meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0 12px;
}

.project-card .meta span {
  font-size: 0.85rem;
  background: #0e1320;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
}

.project-card .links {
  display: flex;
  gap: 10px;
}

/* Timeline */
.timeline {
  position: relative;
  margin-left: 8px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 11px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border);
}

.time-item {
  position: relative;
  padding-left: 32px;
  margin-bottom: 22px;
}

.time-item .dot {
  position: absolute;
  left: 4px;
  top: 6px;
  width: 16px;
  height: 16px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: var(--shadow);
}

.time-item .sub {
  color: var(--muted);
  margin: 4px 0 8px;
}

/* Education */
.edu {
  display: grid;
  gap: 10px;
  margin: 10px;
}

.edu li {
  background: var(--panel);
  border: 1px solid var(--border);
  padding: 12px 14px;
  border-radius: 12px;
}


/* Contact */
.contact-form {
  background: var(--panel);
  border: 1px solid var(--border);
  padding: 18px;
  border-radius: 16px;
  box-shadow: var(--shadow);
  margin-top: 16px;
}

.contact-form .row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.contact-form .row.between {
  align-items: center;
  grid-template-columns: 1fr auto;
}

label {
  display: grid;
  gap: 8px;
}

input,
textarea {
  background: #0e1320;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 12px;
  color: var(--text);
}

input:focus,
textarea:focus {
  outline: 2px solid var(--accent);
  border-color: transparent;
}

.checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
}

#formStatus {
  margin-top: 10px;
  color: var(--accent-2);
  font-weight: 600;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 22px 0;
  margin-top: 32px;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-inner a {
  color: var(--muted);
  text-decoration: none;
}

.footer-inner a:hover {
  color: var(--text);
}

/* Responsive */
@media (max-width: 880px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .project-card {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .contact-form .row {
    grid-template-columns: 1fr;
  }

  .main-nav {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .main-nav.open {
    display: flex;
    flex-direction: column;
    background: var(--panel);
    position: absolute;
    right: 16px;
    top: 64px;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 12px;
  }
}