/* ========== Base ========== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background: #f3f4f6;
  color: #111827;
  line-height: 1.6;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: 100%;
  max-width: 1024px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ========== Skip Link (Accessibility) ========== */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  background: #2563eb;
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 0 0 0.5rem 0.5rem;
  font-size: 0.9rem;
  text-decoration: none;
  z-index: 100;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 0;
}

/* ========== Navbar ========== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: #ffffffd9;
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #e5e7eb;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 3.75rem;
}

.logo {
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.06em;
}

.logo span {
  color: #2563eb;
}

.nav {
  display: flex;
  gap: 1rem;
  font-size: 0.9rem;
}

.nav a {
  text-decoration: none;
  color: #4b5563;
  padding-bottom: 0.1rem;
  border-bottom: 2px solid transparent;
}

.nav a:hover {
  border-color: #2563eb;
  color: #111827;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.nav-links a {
  color: #4b5563;
  font-size: 1rem;
}

.nav-links a:hover {
  color: #111827;
}

/* ========== Hamburger (mobile) ========== */
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: #4b5563;
  font-size: 1.2rem;
  padding: 0.25rem 0.4rem;
}

.hamburger:hover {
  color: #111827;
}

/* ========== Mobile Menu ========== */
.mobile-menu {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-top: 1px solid #e5e7eb;
  padding: 0.75rem 1.5rem 1rem;
  gap: 0.6rem;
}

.mobile-menu[hidden] {
  display: none;
}

.mobile-menu a {
  text-decoration: none;
  color: #374151;
  font-size: 0.95rem;
  padding: 0.35rem 0;
  border-bottom: 1px solid #f3f4f6;
}

.mobile-menu a:hover {
  color: #2563eb;
}

/* ========== Hero ========== */
.hero {
  padding: 4.5rem 0 3rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 2.5rem;
  align-items: center;
}

.hero-kicker {
  font-size: 0.85rem;
  text-transform: uppercase;
  color: #6b7280;
  letter-spacing: 0.12em;
  margin-bottom: 0.5rem;
}

.hero-text h1 {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
}

.hero-text h1 span {
  color: #2563eb;
}

.hero-summary {
  font-size: 0.98rem;
  color: #4b5563;
  max-width: 36rem;
  margin-bottom: 1.4rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.4rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.6rem 1.2rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.9rem;
  text-decoration: none;
  cursor: pointer;
}

.btn.primary {
  background: #2563eb;
  color: #ffffff;
}

.btn.primary:hover {
  background: #1d4ed8;
}

.btn.outline {
  border-color: #2563eb;
  color: #2563eb;
  background: transparent;
}

.btn.outline:hover {
  background: #eff6ff;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  font-size: 0.85rem;
}

.meta-label {
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.7rem;
  color: #9ca3af;
}

.meta-value {
  color: #111827;
}

/* Hero profile card */
.hero-profile {
  display: flex;
  justify-content: flex-end;
}

.profile-card {
  background: #ffffff;
  border-radius: 1rem;
  border: 1px solid #e5e7eb;
  padding: 1.25rem;
  max-width: 280px;
  margin-left: auto;
}

.profile-photo {
  width: 100%;
  border-radius: 0.9rem;
  object-fit: cover;
  margin-bottom: 0.75rem;
}

.profile-info {
  margin-bottom: 0.5rem;
}

.profile-title {
  font-size: 0.9rem;
  font-weight: 600;
}

.profile-org {
  font-size: 0.85rem;
  color: #6b7280;
}

.profile-tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  font-size: 0.75rem;
  margin-top: 0.4rem;
}

.profile-tags li {
  background: #eff6ff;
  color: #1d4ed8;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
}

/* ========== Sections ========== */
.section {
  padding: 3rem 0;
}

.section-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

/* About */
.about-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: 2rem;
}

.about-main p + p {
  margin-top: 0.9rem;
}

.about-main p {
  font-size: 0.96rem;
  color: #374151;
}

.about-side {
  background: #ffffff;
  border-radius: 1rem;
  border: 1px solid #e5e7eb;
  padding: 1.2rem 1.3rem;
  font-size: 0.9rem;
}

.subheading {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.about-side ul {
  list-style: disc;
  padding-left: 1.1rem;
}

.about-side li + li {
  margin-top: 0.3rem;
}

/* Cards (Projects) – 2 columns on desktop */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.75rem;
}

.card {
  background: #ffffff;
  border-radius: 1rem;
  border: 1px solid #e5e7eb;
  padding: 1.4rem 1.5rem;
  font-size: 0.95rem;
}

.card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.2rem;
}

.card-meta {
  font-size: 0.85rem;
  color: #6b7280;
  margin-bottom: 0.6rem;
}

.card p {
  color: #374151;
}

.card-list {
  margin-top: 0.6rem;
  margin-bottom: 0.8rem;
  padding-left: 1.1rem;
}

.card-list li + li {
  margin-top: 0.25rem;
}

.card-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.85rem;
}

.card-links a {
  text-decoration: none;
  color: #2563eb;
}

.card-links a:hover {
  text-decoration: underline;
}

.muted {
  color: #6b7280;
}

/* ========== Skills Section ========== */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
  margin-top: 1.5rem;
}

.skill-column {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.skill-group {
  background: #ffffff;
  border-radius: 1rem;
  border: 1px solid #e5e7eb;
  padding: 1.4rem 1.5rem;
  min-height: 200px;
  display: flex;
  flex-direction: column;
}

.skill-group h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.skill-group ul {
  padding-left: 1.1rem;
  font-size: 0.92rem;
  color: #374151;
  line-height: 1.5;
}

.skill-group ul li + li {
  margin-top: 0.35rem;
}

/* Timeline (Education & Experience) */
.timeline {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.timeline-item {
  background: #ffffff;
  border-radius: 1rem;
  border: 1px solid #e5e7eb;
  padding: 1.1rem 1.2rem;
  font-size: 0.9rem;
}

.timeline-item h3 {
  font-size: 1rem;
  margin-bottom: 0.15rem;
}

.timeline-org {
  font-size: 0.86rem;
  color: #6b7280;
  margin-bottom: 0.4rem;
}

/* Contact */
.contact-box {
  max-width: 720px;
  margin: 0 auto;
  background: #ffffff;
  border-radius: 1rem;
  border: 1px solid #e5e7eb;
  padding: 1.6rem 1.7rem;
  font-size: 0.95rem;
}

.contact-text {
  color: #374151;
  margin-bottom: 1.4rem;
}

.contact-info {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 1.4rem;
}

.info-block {
  min-width: 200px;
}

.info-label {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #9ca3af;
  margin-bottom: 0.25rem;
}

.info-block a {
  text-decoration: none;
  color: #2563eb;
  font-size: 0.9rem;
}

.info-block a i {
  margin-right: 0.3rem;
}

.info-block a:hover {
  text-decoration: underline;
}

/* Footer */
.footer {
  border-top: 1px solid #e5e7eb;
  padding: 1.2rem 0 1.6rem;
  background: #f9fafb;
  font-size: 0.85rem;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.back-to-top {
  text-decoration: none;
  color: #2563eb;
  font-size: 0.9rem;
}

.back-to-top i {
  margin-left: 0.2rem;
}

/* ========== Responsive ========== */
@media (max-width: 880px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-profile {
    justify-content: flex-start;
  }

  .about-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .nav {
    display: none;
  }

  .hamburger {
    display: block;
  }
}

@media (max-width: 768px) {
  .cards-grid {
    grid-template-columns: 1fr;
  }

  .skills-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
  }
}

@media (max-width: 640px) {
  .hero {
    padding-top: 4rem;
  }

  .profile-card {
    max-width: 100%;
  }

  .contact-info {
    flex-direction: column;
  }
}