/* ========== 1. VARIABLES & RESET ========== */
:root {
  --bg: #0a192f;
  --bg-alt: #0d2038;
  --card: #112240;
  --border: #1d3557;
  --accent: #3b82f6;
  --accent-light: #60a5fa;
  --text: #e6f1ff;
  --text-muted: #8da2c0;
  --radius: 14px;
  --nav-height: 70px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: var(--nav-height); }

body {
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text-muted);
  line-height: 1.7;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }

.container { width: min(1100px, 92%); margin-inline: auto; }

/* ========== 2. NAVBAR ========== */
.navbar {
  position: fixed; top: 0; left: 0; width: 100%;
  height: var(--nav-height);
  background: rgba(10, 25, 47, 0.85);
  backdrop-filter: blur(10px);
  z-index: 100;
  transition: box-shadow 0.3s;
}
.navbar.scrolled { box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4); }

.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 100%; }

.logo { font-size: 1.4rem; font-weight: 800; color: var(--text); }
.logo span { color: var(--accent); }

.nav-links { display: flex; align-items: center; gap: 1.8rem; }
.nav-links a { font-size: 0.95rem; font-weight: 500; transition: color 0.2s; }
.nav-links a:hover,
.nav-links a.active { color: var(--accent-light); }

.nav-cta {
  border: 1px solid var(--accent);
  padding: 0.4rem 1rem;
  border-radius: 8px;
  color: var(--accent-light);
}
.nav-cta:hover { background: rgba(59, 130, 246, 0.15); }

.menu-toggle { display: none; background: none; border: none; cursor: pointer; flex-direction: column; gap: 5px; }
.menu-toggle span { width: 26px; height: 2px; background: var(--text); transition: 0.3s; }

/* ========== 3. HERO ========== */
.hero {
  min-height: 100vh;
  display: flex; align-items: center;
  padding-top: var(--nav-height);
  background: radial-gradient(circle at 80% 20%, rgba(59, 130, 246, 0.15), transparent 50%), var(--bg);
}
.eyebrow { color: var(--accent-light); font-weight: 600; margin-bottom: 0.5rem; }
.hero h1 { font-size: clamp(2.8rem, 8vw, 5rem); color: var(--text); line-height: 1.1; font-weight: 800; }
.headline { font-size: clamp(1.1rem, 3vw, 1.6rem); color: var(--accent-light); font-weight: 600; margin: 0.8rem 0 1.2rem; }
.hero-text { max-width: 600px; font-size: 1.05rem; }

.hero-buttons { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2rem; }
.hero-buttons.center { justify-content: center; }

/* ========== 4. BUTTONS ========== */
.btn {
  display: inline-block;
  padding: 0.8rem 1.6rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid var(--accent);
  transition: transform 0.2s, background 0.2s, box-shadow 0.2s;
}
.btn:hover { transform: translateY(-3px); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: #2563eb; box-shadow: 0 8px 20px rgba(59, 130, 246, 0.35); }
.btn-outline { background: transparent; color: var(--accent-light); }
.btn-outline:hover { background: rgba(59, 130, 246, 0.12); }
.btn-sm { padding: 0.6rem 1.2rem; margin-top: auto; align-self: flex-start; }

/* ========== 5. SECTIONS ========== */
.section { padding: 6rem 0; }
.section.alt { background: var(--bg-alt); }

.section-title {
  color: var(--text);
  font-size: clamp(1.7rem, 4vw, 2.3rem);
  margin-bottom: 2.5rem;
  position: relative;
}
.section-title::after {
  content: ""; display: block;
  width: 60px; height: 4px; margin-top: 0.6rem;
  background: var(--accent); border-radius: 4px;
}

.about-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 3rem; }
.about-grid p { margin-bottom: 1rem; }
.small-heading { color: var(--text); margin-bottom: 1rem; }

/* ========== 6. CARDS ========== */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.6rem;
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}
.card:hover {
  transform: translateY(-6px);
  border-color: var(--accent);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
}
.card h3 { color: var(--text); margin-bottom: 0.4rem; font-size: 1.15rem; }

.skills-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.5rem; }
.projects-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem; }
.project { display: flex; flex-direction: column; gap: 0.3rem; }
.label { color: var(--accent-light); font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; margin-top: 0.8rem; }

.tag-list { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.tag-list li {
  background: rgba(59, 130, 246, 0.12);
  color: var(--accent-light);
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 500;
}
.tag-list.small li { font-size: 0.78rem; padding: 0.25rem 0.7rem; }

.timeline { display: grid; gap: 1.5rem; }
.muted { color: var(--text-muted); font-size: 0.9rem; opacity: 0.85; }
.placeholder { color: #f59e0b; font-size: 0.9rem; font-style: italic; } /* orange = still to fill in */

.contact-wrap { text-align: center; }
.contact-wrap .section-title::after { margin-inline: auto; }
.contact-wrap p { max-width: 560px; margin-inline: auto; }

/* ========== 7. FOOTER ========== */
.footer { text-align: center; padding: 2rem 0; border-top: 1px solid var(--border); font-size: 0.9rem; }

/* ========== 8. SCROLL ANIMATION ========== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ========== 9. RESPONSIVE ========== */
@media (max-width: 768px) {
  .menu-toggle { display: flex; }

  .nav-links {
    position: absolute; top: var(--nav-height); left: 0; width: 100%;
    flex-direction: column; gap: 0;
    background: var(--bg);
    max-height: 0; overflow: hidden;
    transition: max-height 0.35s ease;
  }
  .nav-links.open { max-height: 400px; border-bottom: 1px solid var(--border); }
  .nav-links a { width: 100%; text-align: center; padding: 1rem 0; }

  .about-grid { grid-template-columns: 1fr; gap: 2rem; }
  .section { padding: 4.5rem 0; }
}

/* Respect users who prefer less motion */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ========== 10. PHOTO, SCREENSHOTS, EXTRAS ========== */
.hero { padding-bottom: 3rem; }

.hero-inner {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  align-items: center;
  gap: 3rem;
}

.hero-photo { display: flex; justify-content: center; }
.hero-photo img {
  width: min(320px, 80%);
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid var(--accent);
  box-shadow: 0 0 0 10px rgba(59, 130, 246, 0.15), 0 20px 50px rgba(0, 0, 0, 0.45);
}

.lead { color: var(--text); font-size: 1.2rem; font-weight: 600; }

.project-img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: top;
  border-radius: 10px;
  border: 1px solid var(--border);
  margin-bottom: 0.8rem;
}

.exp-list { margin-top: 0.7rem; padding-left: 1.2rem; list-style: disc; }
.exp-list li { margin-bottom: 0.4rem; }

.muted a { color: var(--accent-light); }
.muted a:hover { text-decoration: underline; }

@media (max-width: 768px) {
  .hero-inner { grid-template-columns: 1fr; gap: 1.5rem; padding-top: 1.5rem; }
  .hero-photo { order: -1; }
  .hero-photo img { width: 200px; }
}