/* ========== BASE STYLES ========== */
:root {
  --bg: #020617;
  --bg-alt: #050816;
  --card-bg: #020617;
  --accent: #fbbf24;          /* golden accent */
  --accent-soft: rgba(251, 191, 36, 0.08);
  --accent-strong: #facc15;   /* brighter gold */
  --text: #e5e7eb;
  --text-muted: #9ca3af;
  --border-subtle: rgba(148, 163, 184, 0.4);
  --radius-lg: 20px;
  --radius-md: 12px;
  --shadow-soft: 0 24px 60px rgba(15, 23, 42, 0.9);
  --max-width: 1024px;
}


/* ========== EXPERIENCE COLLAPSE / GRADIENT ========== */

.experience-list {
  position: relative;
  max-height: 550px; /* adjust if you want more/less shown */
  overflow: hidden;
  transition: max-height 0.45s ease;
}

/* nice fade at the bottom to suggest more content */
.experience-list::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 120px;
  background: linear-gradient(
    to bottom,
    rgba(2, 6, 23, 0) 0%,
    rgba(2, 6, 23, 0.85) 50%,
    var(--bg-alt) 100%
  );
  pointer-events: none;
  transition: opacity 0.3s ease;
}

/* blur/ease the items after the second to get that "2.5" effect */
.experience-list .item {
  transition: filter 0.3s ease, opacity 0.3s ease, transform 0.3s ease;
}

.experience-list:not(.experience-expanded) .item:nth-of-type(n + 3) {
  filter: blur(2px);
  opacity: 0.6;
}

/* expanded state: full list, no blur, no fade */
.experience-list.experience-expanded {
  max-height: 3000px; /* effectively "open" */
}

.experience-list.experience-expanded::after {
  opacity: 0;
}

.experience-list.experience-expanded .item {
  filter: none;
  opacity: 1;
}

/* View more button styling */
.experience-toggle-btn {
  margin-top: 1.2rem;
  border-radius: 999px;
  padding: 0.55rem 1.3rem;
  font-size: 0.9rem;
  border: 1px solid var(--border-subtle);
  background: rgba(15, 23, 42, 0.85);
  color: var(--text-muted);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.experience-toggle-btn::after {
  content: "↓";
  font-size: 0.85rem;
}

.experience-list.experience-expanded + .experience-toggle-btn::after {
  content: "↑";
}

.experience-toggle-btn:hover {
  border-color: var(--accent-strong);
  color: var(--accent-strong);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text",
    "Segoe UI", sans-serif;
  background: radial-gradient(circle at top, #111827 0, #020617 50%, #000 100%);
  color: var(--text);
  line-height: 1.6;
}

/* ========== LAYOUT HELPERS ========== */
.container {
  width: min(100% - 2.5rem, var(--max-width));
  margin-inline: auto;
}

.section {
  padding: 4rem 0;
}

.section-alt {
  background: radial-gradient(circle at top, #0b1120 0, #020617 55%);
}

.section h2 {
  font-size: 1.9rem;
  margin-bottom: 1.5rem;
}

.section-intro {
  max-width: 44rem;
  color: var(--text-muted);
}

/* ========== HEADER ========== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(2, 6, 23, 0.9);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(30, 64, 175, 0.4);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 0;
}

.logo {
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
  color: var(--text);
  font-size: 1.1rem;
}

.logo span {
  color: var(--accent-strong);
}

.nav {
  display: flex;
  gap: 1.25rem;
  align-items: center;
}

.nav a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.nav a:hover {
  color: var(--accent-strong);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border-subtle);
  color: var(--text);
  border-radius: 999px;
  padding: 0.25rem 0.7rem;
  cursor: pointer;
}

/* ========== HERO ========== */
.hero {
  padding: 4.5rem 0 4rem;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2.2fr);
  gap: 2.5rem;
  align-items: center;
}

.hero-kicker {
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  color: var(--accent-strong);
  margin-bottom: 0.4rem;
}

.hero h1 {
  font-size: 2.6rem;
  margin: 0 0 0.7rem;
}

.hero-subtitle {
  color: var(--text-muted);
  max-width: 32rem;
}

.hero-meta {
  margin-top: 0.8rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 1.7rem;
}

.btn {
  border-radius: 999px;
  padding: 0.65rem 1.3rem;
  font-size: 0.92rem;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn.primary {
  background: linear-gradient(135deg, var(--accent), #22c55e);
  color: #f9fafb;
  box-shadow: 0 12px 30px rgba(55, 48, 163, 0.7);
}

.btn.primary:hover {
  transform: translateY(-1px);
}

.btn.ghost {
  border-color: var(--border-subtle);
  color: var(--text-muted);
  background: rgba(15, 23, 42, 0.9);
}

.btn.ghost:hover {
  border-color: var(--accent-strong);
  color: var(--accent-strong);
}

/* Hero card */
.hero-card {
  position: relative;
}

.hero-card-inner {
  background: radial-gradient(circle at top, #1d2443 0, #020617 60%);
  border-radius: 20px;
  padding: 1.4rem 1.5rem;
  border: 1px solid rgba(129, 140, 248, 0.5);
  box-shadow: var(--shadow-soft);
}

.hero-role {
  font-weight: 600;
  margin: 0 0 0.5rem;
}

.hero-blurb {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 0.9rem;
}

.hero-highlights {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.hero-highlights li {
  font-size: 0.78rem;
  padding: 0.3rem 0.6rem;
  border-radius: 999px;
  background: var(--accent-soft);
  border: 1px solid rgba(129, 140, 248, 0.5);
}

/* ========== ABOUT & CARDS ========== */
.two-col {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2.3fr);
  gap: 2rem;
  align-items: flex-start;
}

.info-card,
.item,
.project-card,
.contact-list {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  padding: 1.4rem 1.5rem;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.75);
}

.info-card h3 {
  margin-top: 0;
  margin-bottom: 0.75rem;
  font-size: 1.05rem;
}

.info-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.info-list li {
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
}

.info-list span {
  color: var(--text-muted);
}

/* ========== EXPERIENCE & EDUCATION ========== */
.item {
  margin-bottom: 1.1rem;
}

.item-header {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.item-header h3 {
  margin: 0;
  font-size: 1.05rem;
}

.item-meta {
  font-size: 0.85rem;
  color: var(--accent-strong);
}

.item-subheader {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 0.35rem;
}

.item-list {
  margin: 0.75rem 0 0;
  padding-left: 1.1rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.item-muted {
  opacity: 0.7;
  border-style: dashed;
}

.item-placeholder {
  margin: 0.5rem 0 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ========== SKILLS ========== */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
}

.skills-group {
  background: var(--card-bg);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  padding: 1rem 1.1rem;
}

.skills-group h3 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.skills-group ul {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ========== PROJECTS ========== */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.1rem;
  margin-top: 1.5rem;
}

.project-card h3 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-size: 1rem;
}

.project-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.project-tags {
  list-style: none;
  padding: 0;
  margin: 0.6rem 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.project-tags li {
  font-size: 0.75rem;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  background: rgba(30, 64, 175, 0.4);
}

.project-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 0.6rem;
}

.project-links a {
  font-size: 0.85rem;
  color: var(--accent-strong);
  text-decoration: none;
}

.project-muted {
  opacity: 0.9;
}

/* ========== CONTACT ========== */
.contact-list {
  display: grid;
  gap: 0.9rem;
}

.contact-item span {
  display: block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  margin-bottom: 0.15rem;
}

.contact-item a {
  text-decoration: none;
  color: var(--text);
  font-size: 0.95rem;
}

.contact-item a:hover {
  color: var(--accent-strong);
}

/* ========== FOOTER ========== */
.site-footer {
  padding: 1.6rem 0 2.2rem;
  border-top: 1px solid rgba(30, 64, 175, 0.5);
  background: #020617;
}

.footer-inner {
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer-note {
  margin-top: 0.25rem;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 800px) {
  .hero-inner,
  .two-col {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero {
    padding-top: 3.6rem;
  }

  .hero-card {
    order: -1;
  }

  .nav {
    position: fixed;
    inset: 3.2rem 0 auto 0;
    background: rgba(2, 6, 23, 0.96);
    padding: 0.8rem 1.25rem;
    display: none;
    flex-direction: column;
    gap: 0.6rem;
    border-bottom: 1px solid rgba(30, 64, 175, 0.6);
  }

  .nav.nav-open {
    display: flex;
  }

  .nav-toggle {
    display: inline-flex;
  }
}
