/* =========================
   Base / Theme variables
   ========================= */
:root {
  --bg: #0f1724;
  --card: #0b1220;
  --muted: #9fb0c8;
  --text: #e6eef8;
  --accent: #4fd1c5;
  --glass: rgba(255, 255, 255, 0.03);

  --radius: 12px;
  --max-width: 1100px;
  --gap: 18px;
}

* {
  box-sizing: border-box;
}
html,
body {
  height: 100%;
}
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto,
    "Helvetica Neue", Arial;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background 0.25s, color 0.25s;
}

.headline {
  text-align: center;
  margin-top: 14px;
}
.headline-title {
  font-size: 1.2rem;
  margin: 0;
  font-weight: 700;
}
.headline-sub {
  font-size: 0.95rem;
  color: var(--muted);
  margin: 6px 0 0;
}
.meta a {
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
}
.meta a:hover,
.meta a:focus {
  text-decoration: underline;
}

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 24px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background:#0b1220; /* default dark semi-transparent */
  backdrop-filter: blur(8px);
  padding: 8px 0;
  transition: background 0.3s ease;
}

/* Scrolled state */
.site-header.scrolled {
  background: #0b1220; /* default dark solid */
}

/* LIGHT MODE HEADER */
body.light .site-header {
  background: rgba(247, 250, 252, 0.95); /* light semi-transparent */
}

body.light .site-header.scrolled {
  background: rgba(247, 250, 252, 1); /* light solid */
}


.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 16px;
}
.brand {
  flex: 1;
}
.logo {
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  font-size: 18px;
}
.tag {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
}
.main-nav {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-left: 10px;
}
.main-nav a {
  color: var(--text);
  text-decoration: none;
  font-size: 14px;
  padding: 6px;
  border-radius: 8px;
}
.controls {
  display: flex;
  gap: 10px;
  align-items: center;
}
.cta {
  background: var(--accent);
  color: #062025;
  padding: 8px 12px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
}
#theme-toggle {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--text);
  padding: 7px 8px;
  border-radius: 8px;
  cursor: pointer;
}

/* Card */
.card {
  background: var(--card);
  padding: 18px;
  border-radius: var(--radius);
  box-shadow: 0 6px 20px rgba(2, 6, 23, 0.6);
  margin: 22px 0;
}
.hero {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 18px;
  align-items: start;
}
.lead {
  color: var(--muted);
  margin-top: 8px;
  font-size: 15px;
}
.meta {
  list-style: none;
  padding: 0;
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 14px;
}
.hero-actions {
  margin-top: 70px;
  display: flex;
  gap: 10px;
}
.btn {
  display: inline-block;
  padding: 10px 14px;
  border-radius: 10px;
  text-decoration: none;
  background: var(--accent);
  color: #062025;
  font-weight: 600;
}

/* small aside */
.small {
  padding: 12px;
}
.profile-pic img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
  object-fit: cover;
  max-height: 220px;
}

/* Experience */
.exp + .exp {
  margin-top: 12px;
}
.muted {
  color: var(--muted);
  font-size: 13px;
  margin-top: 6px;
}

/* Skills grid */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-top: 10px;
}
.skill {
  background: var(--glass);
  padding: 12px;
  border-radius: 10px;
  font-weight: 600;
}

/* Carousel */
.carousel-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}
.carousel {
  display: flex;
  gap: 12px;
  overflow: hidden;
  padding: 8px 0;
  scroll-behavior: smooth;
}
.slide {
  min-width: 260px;
  background: rgba(255, 255, 255, 0.03);
  padding: 14px;
  border-radius: 10px;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.02);
}
.carousel-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--text);
  cursor: pointer;
}

/* Footer */
.site-footer {
  padding: 20px 0;
  color: var(--muted);
  text-align: center;
}

/* Responsive */
@media (max-width: 880px) {
  .hero {
    grid-template-columns: 1fr;
  }
  .main-nav {
    display: none;
  }
  .wrap {
    padding: 18px;
  }
}

/* LIGHT THEME */
body.light {
  --bg: #f7fafc;
  --card: #ffffff;
  --muted: #516272;
  --text: #0b1220;
  --glass: rgba(11, 18, 32, 0.03);
  --accent: #06b6d4;
}
