/* ===== Variables ===== */
:root {
  --bg: #1a1a2e;
  --bg-surface: #16213e;
  --text: #e0e0e0;
  --text-muted: #a0a0b0;
  --heading: #ffffff;
  --accent: #4cc9f0;
  --accent-secondary: #f0a500;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --max-width: 800px;
}

/* ===== Reset ===== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-size: 1rem;
}

/* ===== Layout ===== */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 5rem 0;
}

.section__title {
  color: var(--heading);
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 2rem;
  border-bottom: 2px solid var(--accent);
  display: inline-block;
  padding-bottom: 0.25rem;
}

/* ===== Header ===== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background-color: var(--bg);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1rem 0;
}

.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-header__name {
  color: var(--accent);
  font-weight: 700;
  font-size: 1.25rem;
  text-decoration: none;
}

.site-nav a {
  color: var(--text);
  text-decoration: none;
  margin-left: 2rem;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}

.site-nav a:hover,
.site-nav a:focus {
  color: var(--accent);
}

/* Mobile nav toggle */
.mobile-nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.mobile-nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--text);
  transition: transform 0.3s, opacity 0.3s;
}

/* ===== Hero ===== */
.hero {
  padding: 10rem 0 5rem;
  min-height: 80vh;
  display: flex;
  align-items: center;
}

.hero__greeting {
  color: var(--accent);
  font-size: 1.1rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.hero__name {
  color: var(--heading);
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 0.5rem;
}

.hero__title {
  color: var(--text-muted);
  font-size: 1.5rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
}

.hero__summary {
  max-width: 550px;
  font-size: 1.05rem;
  margin-bottom: 2rem;
  line-height: 1.8;
}

.hero__container {
  display: flex;
  align-items: center;
  gap: 3rem;
}

.hero__text {
  flex: 1;
}

.hero__photo {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--accent);
  flex-shrink: 0;
}

.hero__links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  padding: 0.65rem 1.5rem;
  border-radius: 4px;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}

.btn--primary {
  background-color: var(--accent);
  color: var(--bg);
}

.btn--primary:hover,
.btn--primary:focus {
  background-color: #3ab8df;
}

.btn--outline {
  border: 1.5px solid var(--accent);
  color: var(--accent);
  background: transparent;
}

.btn--outline:hover,
.btn--outline:focus {
  background-color: var(--accent);
  color: var(--bg);
}

/* ===== About ===== */
.about__content p {
  margin-bottom: 1.25rem;
}

.about__content p:last-child {
  margin-bottom: 0;
}

/* ===== Skills ===== */
.skills {
  background-color: var(--bg-surface);
}

.skills__grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.skills__tag {
  background-color: rgba(76, 201, 240, 0.1);
  color: var(--accent);
  border: 1px solid rgba(76, 201, 240, 0.25);
  padding: 0.4rem 1rem;
  border-radius: 4px;
  font-size: 0.9rem;
  font-weight: 500;
}

/* ===== Experience ===== */
.experience__timeline {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.experience__item {
  border-left: 2px solid var(--accent);
  padding-left: 1.5rem;
}

.experience__header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.25rem;
}

.experience__company {
  color: var(--heading);
  font-size: 1.2rem;
  font-weight: 600;
}

.experience__dates {
  color: var(--text-muted);
  font-size: 0.85rem;
  white-space: nowrap;
}

.experience__role {
  color: var(--accent);
  font-size: 0.95rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.experience__summary {
  margin-bottom: 0.5rem;
}

.experience__tech {
  color: var(--text-muted);
  font-size: 0.85rem;
  font-style: italic;
}

.experience__links {
  margin-top: 0.5rem;
}

.experience__links a {
  color: var(--accent-secondary);
  font-size: 0.9rem;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.experience__links a:hover,
.experience__links a:focus {
  color: #ffc233;
}

/* ===== Education ===== */
.education {
  background-color: var(--bg-surface);
}

.education__item h3 {
  color: var(--heading);
  font-size: 1.1rem;
  font-weight: 600;
}

.education__item p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ===== Contact / Footer ===== */
.contact {
  text-align: center;
  padding-bottom: 3rem;
}

.contact__text {
  margin-bottom: 1.5rem;
  font-size: 1.05rem;
}

.contact__links {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.contact__copyright {
  color: var(--text-muted);
  font-size: 0.8rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 2rem;
}

/* ===== Responsive ===== */
@media (max-width: 600px) {
  .hero__name {
    font-size: 2.25rem;
  }

  .hero__title {
    font-size: 1.2rem;
  }

  .hero {
    padding: 8rem 0 3rem;
    min-height: auto;
  }

  .section {
    padding: 3.5rem 0;
  }

  .hero__container {
    flex-direction: column-reverse;
    text-align: center;
  }

  .hero__photo {
    width: 160px;
    height: 160px;
  }

  .hero__links {
    justify-content: center;
  }

  .experience__header {
    flex-direction: column;
    gap: 0.15rem;
  }

  /* Mobile navigation */
  .mobile-nav-toggle {
    display: flex;
  }

  .site-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    max-width: 280px;
    height: 100vh;
    background-color: var(--bg-surface);
    display: flex;
    flex-direction: column;
    padding: 5rem 2rem 2rem;
    transition: right 0.3s ease;
    z-index: 200;
  }

  .site-nav.is-open {
    right: 0;
  }

  .site-nav a {
    margin-left: 0;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
  }
}

/* ===== Focus styles for accessibility ===== */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
