html, body {
  font-family: 'Outfit', 'Inter', sans-serif, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-weight: 400;
  color: var(--text);
  background: var(--bg);
  scroll-behavior: smooth;
}

/* Headings — bold & modern */
h1, h2, h3, h4, h5 {
  font-family: 'Outfit', 'Inter', sans-serif;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.5px;
  margin-bottom: 0.6rem;
}

:root {
  --bg: #f8fafc;
  --bg-alt: #ffffff;
  --text: #1c1c1e;
  --muted: #5f6b7a;
  --accent: #65a1f4;
  --radius: 12px;
  --shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}
[data-theme="dark"] {
  --bg: #0b1220;
  --bg-alt: #111b2e;
  --text: #e6eef8;
  --muted: #a2b2cc;
  --accent: #4da3ff;
  --shadow: 0 4px 18px rgba(255, 255, 255, 0.05);
}
body {
  background: var(--bg);
  color: var(--text);
  margin: 0;
  font-family: "Inter", sans-serif;
  transition: background 0.3s, color 0.3s;
}
.section {
  padding: 3rem 1.5rem;
  max-width: 1100px;
  margin: auto;
}
.section-title {
  font-size: 2rem;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--text);
  position: relative;
  text-align: center;
  margin-bottom: 2.2rem;
}
.section-title::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
}

/* Header */
.site-header {
  position: sticky;
  top: 10px;
  z-index: 999;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(12px);
  border-radius: 14px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  max-width: 75%;
  margin: 0.5rem auto;
  transition: background 0.3s;
}
[data-theme="dark"] .site-header {
  background: rgba(11, 18, 32, 0.75);
  box-shadow: 0 8px 25px rgba(255, 255, 255, 0.03);
}
.header-inner {
  padding: 0.8rem 1.2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  font-size: 1.1rem;
}
.nav ul {
  list-style: none;
  display: flex;
  gap: 0.8rem;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}
.nav a {
  text-decoration: none;
  color: var(--text);
  padding: 0.5rem 0.7rem;
  border-radius: 8px;
  transition: background 0.2s;
}
.nav a:hover {
  background: var(--bg-alt);
}

/* --------------------- Hide Hamburger on Desktop --------------------- */
.hamburger {
  display: none;
  color: var(--text);
  background: var(--bg-alt);
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  border-radius: var(--radius);
  padding: 0.2rem 0.5rem;
  transition: background 0.3s, color 0.3s;
}
/* Dark mode */
[data-theme="dark"] .hamburger {
  color: var(--text);
  background: var(--bg-alt);
}

/* Nav menu default */
.nav {
  display: flex;
  gap: 0.8rem;
}

/* Desktop nav (flex horizontal) */
.nav ul {
  display: flex;
  gap: 0.8rem;
  margin: 0;
  padding: 0;
}

/* Mobile styles */
@media (max-width: 560px) {
  /* Show hamburger */
  .hamburger {
    display: block;
  }

  /* Hide desktop nav */
  .nav {
    display: none; /* hidden by default */
    position: absolute;
    top: 100%;
    right: 0;
    width: 220px; /* adjust as needed */
    background: var(--bg-alt);
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    flex-direction: column;
    padding: 0.5rem 0;
    z-index: 1000;
  }

  /* Show menu when active */
  .nav.active {
    display: flex;
  }

  /* Stack menu items vertically */
  .nav ul {
    flex-direction: column;
    gap: 0;
    margin: 0;
    padding: 0;
  }

  .nav ul li {
    width: 100%;
  }

  /* Links inside menu */
  .nav ul li a,
  .nav ul li button {
    display: block;
    width: 100%;
    padding: 0.8rem 1.2rem;
    color: var(--text);
    text-decoration: none;
    transition: background 0.2s, color 0.3s;
  }

  /* Hover effect */
  .nav ul li a:hover,
  .nav ul li button:hover {
    background: var(--bg);
  }

  /* Dark mode */
  [data-theme="dark"] .nav {
    background: var(--bg-alt);
  }
  [data-theme="dark"] .nav ul li a,
  [data-theme="dark"] .nav ul li button {
    color: var(--text);
  }
}

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--accent), #073ea3);
  color: #fff;
  padding: 4em 1rem;
  min-height: 75vh;
  display: flex;
  justify-content: center;
  align-items: center;
}
.hero-content {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  max-width: 1200px;
  gap: 5rem;
}
.hero-photo {
  width: 250px;
  height: 250px;
  border-radius: 50%;
  border: 3px solid #fff;
  object-fit: cover;
  box-shadow: 0 0 30px rgba(255, 255, 255, 0.3);
  margin-bottom: 0.2rem;
}
.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  max-width: 800px;
  color: (var(--bg-alt));
}
.hero-left h1 {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 2.8rem;
  color: #fff;
  line-height: 1.2;
}
.hero-sub {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  color: var(--text-secondary);
  font-size: 1.2rem;
  margin-top: 0.2rem;
  justify-content: center;
}
.hero-buttons .btn {
  margin-right:0.5rem; /* space between buttons */
}
.hero-buttons .btn:last-child {
  margin-top: 0.2rem;
  margin-right: 0; /* remove extra margin on last button */
}
.hero-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  /* gap: 0.6rem; */
}
.hero h1 {
  font-size: 2.8rem;
  font-weight: 700;
  line-height: 1.2;
  color: #fff;
}
.hero h1 .accent {
  color: var(--accent);
}

/* Cards */
.card-skills{
  text-align: center;
}
.card {
  background: var(--bg-alt);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.2rem;
  transition: transform 0.3s, box-shadow 0.3s;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.15);
}
[data-theme="dark"] .card:hover {
  box-shadow: 0 10px 25px rgba(255, 255, 255, 0.08);
}
.about-card {
  text-align: justify;
}
@media (max-width: 560px) {
  .about-card {
    text-align: left;
  }
}

/* Grids */
.skills-grid {
  display: grid;
  gap: 1.2rem;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}
.projects-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

/* Timeline */
.timeline {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}
.timeline-top {
  display: flex;
  align-items: center;
  gap: 1rem;
}
/* Special for AVL */
.org-logo-avl {
  width: 70px;
  height: 70px;
  border-radius: 7.5px;
  /* padding: 5px; */
  object-fit: contain;
  background: #fff;
}
.org-logo {
  width: 60px;
  height: 60px;
  border-radius: 7.5px;
  padding: 5px;
  object-fit: contain;
  background: #fff;
}
.toggle-btn {
  border: 0;
  background: none;
  color: var(--accent);
  font-weight: 600;
  cursor: pointer;
}
.edu-btn {
  border: 0;
  background: none;
  color: var(--accent);
  font-weight: 600;
  cursor: pointer;
}
.toggle-content {
  display: none;
}

/* Projects */
.project-thumb {
  width: 100%;
  height: 160px;
  border-radius: 10px 10px 0 0;
  object-fit: cover;
}
.project-body {
  padding-top: 0.8rem;
}
.project-tags {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}
.tag {
  background: var(--accent);
  color: #fff;
  font-size: 0.75rem;
  padding: 0.25rem 0.6rem;
  border-radius: 12px;
}
.project-link {
  display: block;
  color: inherit; /* keeps text color */
  text-decoration: none; /* remove underline */
  height: 100%; /* fill the card */
}

.project-card {
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: transform 0.2s;
}

.project-card:hover {
  transform: translateY(-5px);
}

.project-link:hover h3 {
  text-decoration: underline;
}

/* Buttons */
.btn {
  border: none;
  text-decoration: none;
  padding: 0.6rem 1.2rem;
  border-radius: var(--radius);
  cursor: pointer;
  font-weight: 600;
}
.btn.primary {
  background: var(--accent);
  color: #fff;
}
.btn.outline {
  background: transparent;
  border: 2px solid #fff;
  color: #fff;
}
.btn.neutral {
  border: 1px solid var(--muted);
  color: var(--text);
}

/* Gitub Buttons */
/* === CONTACT SECTION === */
.contact-card {
  text-align: center;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
}

.contact-card p {
  max-width: 600px;
  color: var(--text-secondary);
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1rem;
  justify-content: center;
}

/* === CONTACT BUTTONS === */
.contact-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
  font-weight: 600;
  color: var(--bg);
  background: var(--text);
  transition: transform 0.2s, background 0.3s;
}
.contact-btn:hover {
  transform: translateY(-2px);
  background: var(--accent);
  color: #fff;
}

/* Individual Button Colors */
.email-btn {
  background: #0078d7; /* Outlook blue */
}
.email-btn:hover {
  background: #005a9e;
  color: #fff;
}

.linkedin-btn {
  background: #0077b5; /* LinkedIn blue */
}
.linkedin-btn:hover {
  background: #005983;
  color: #fff;
}

.github-connect {
  background: var(--text);
  color: var(--bg);
}
.github-connect:hover {
  background: var(--accent);
  color: #fff;
}

/* === CONTACT ICONS === */
.contact-icon {
  vertical-align: middle;
  margin-top: -1px;
}
.github-connect {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: var(--text);
  color: var(--bg);
  font-weight: 600;
  transition: background 0.3s, transform 0.2s;
}
.github-connect:hover {
  background: var(--accent);
  color: #fff;
  transform: translateY(-2px);
}
@media (max-width: 560px) {
  .contact-actions { gap: 0.6rem; }
  .contact-btn { padding: 0.5rem .8rem; font-size: 0.95rem; }
}

/* Footer */
.site-footer {
  text-align: center;
  padding: 1rem;
  color: var(--muted);
}