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

html {
  scroll-behavior: smooth;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  background: radial-gradient(
    circle at top,
    #0b1220 0,
    #020617 45%,
    #020617 100%
  );
  color: #e5e7eb;
  line-height: 1.6;
}

/* ========== Layout Helpers ========== */
.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ========== Navbar ========== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(18px);
  background: linear-gradient(
    to bottom,
    rgba(15, 23, 42, 0.95),
    rgba(15, 23, 42, 0.8)
  );
  border-bottom: 1px solid rgba(148, 163, 184, 0.35);
}

.nav-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.95rem;
}

.logo span {
  color: #38bdf8;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

.nav-links a {
  font-size: 0.9rem;
  text-decoration: none;
  color: #cbd5f5;
  opacity: 0.85;
  transition: opacity 0.2s ease, color 0.2s ease;
}

.nav-links a:hover {
  opacity: 1;
  color: #38bdf8;
}

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

.section-alt {
  background: radial-gradient(
    circle at top left,
    #020617 0,
    #020617 40%,
    #020617 100%
  );
}

.section-content {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.section-header h2 {
  font-size: 1.6rem;
  font-weight: 600;
}

.section-header p {
  font-size: 0.95rem;
  color: #9ca3af;
}

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

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

.hero-tagline {
  font-size: 0.85rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #9ca3af;
  margin-bottom: 0.75rem;
}

.hero h1 {
  font-size: clamp(2rem, 3.1vw, 2.7rem);
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.hero h1 span {
  color: #38bdf8;
}

.hero-subtitle {
  color: #9ca3af;
  max-width: 32rem;
  margin-bottom: 1.5rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-bottom: 1.25rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.4rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 500;
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease,
    border-color 0.12s ease;
}

.btn.primary {
  background: linear-gradient(135deg, #38bdf8, #6366f1);
  color: #0b1120;
  box-shadow: 0 10px 22px rgba(56, 189, 248, 0.35);
}

.btn.primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(56, 189, 248, 0.45);
}

.btn.secondary {
  background: transparent;
  color: #e5e7eb;
  border-color: rgba(148, 163, 184, 0.65);
}

.btn.secondary:hover {
  border-color: #38bdf8;
  background: rgba(15, 23, 42, 0.75);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  font-size: 0.85rem;
  color: #9ca3af;
}

.hero-meta span {
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.4);
}

.hero-card {
  display: flex;
  justify-content: flex-end;
}

.hero-card-inner {
  width: 100%;
  max-width: 320px;
  padding: 1.5rem 1.4rem;
  border-radius: 1.2rem;
  background: radial-gradient(circle at top, #111827 0, #020617 70%);
  border: 1px solid rgba(148, 163, 184, 0.55);
  box-shadow: 0 18px 35px rgba(15, 23, 42, 0.9);
}

.hero-role {
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 0.6rem;
  color: #e5e7eb;
}

.hero-highlight {
  font-size: 0.88rem;
  color: #9ca3af;
  margin-bottom: 0.9rem;
}

.hero-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.pill {
  font-size: 0.75rem;
  padding: 0.32rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.6);
  background: rgba(15, 23, 42, 0.9);
}

/* ========== About ========== */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1.4fr);
  gap: 2.5rem;
}

.about-grid p {
  color: #d1d5db;
  margin-bottom: 1rem;
}

.info-item {
  display: flex;
  flex-direction: column;
  margin-bottom: 0.9rem;
}

.info-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #9ca3af;
}

.info-value {
  font-size: 0.9rem;
}

/* ========== Skills ========== */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

.skill-card {
  padding: 1.4rem 1.3rem;
  border-radius: 1rem;
  background: rgba(15, 23, 42, 0.92);
  border: 1px solid rgba(148, 163, 184, 0.45);
}

.skill-card h3 {
  font-size: 1rem;
  margin-bottom: 0.6rem;
}

.skill-card ul {
  list-style: none;
  padding-left: 0;
}

.skill-card li {
  font-size: 0.9rem;
  color: #d1d5db;
  margin-bottom: 0.2rem;
}

/* ========== Cards (Projects & Experience) ========== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.6rem;
}

.card {
  padding: 1.6rem 1.5rem;
  border-radius: 1.1rem;
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(148, 163, 184, 0.5);
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.85);
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.6rem;
}

.card-header h3 {
  font-size: 1.02rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.7);
  color: #e0f2fe;
  white-space: nowrap;
}

.card-meta {
  font-size: 0.82rem;
  color: #9ca3af;
  margin-bottom: 0.6rem;
}

.card-list {
  list-style: disc;
  padding-left: 1.1rem;
}

.card-list li {
  font-size: 0.88rem;
  color: #d1d5db;
  margin-bottom: 0.35rem;
}

/* ========== Experience ========== */
.experience-card {
  max-width: 820px;
}

.exp-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.6rem;
}

.exp-role {
  font-size: 0.85rem;
  color: #9ca3af;
}

/* ========== Contact ========== */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1.4fr);
  gap: 2.4rem;
}

.contact-grid p {
  color: #d1d5db;
  margin-bottom: 0.9rem;
}

.contact-details .info-item a {
  color: #e5e7eb;
  text-decoration: none;
  border-bottom: 1px solid rgba(148, 163, 184, 0.5);
  padding-bottom: 0.03rem;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.contact-details .info-item a:hover {
  color: #38bdf8;
  border-color: #38bdf8;
}

/* ========== Footer ========== */
.footer {
  border-top: 1px solid rgba(148, 163, 184, 0.4);
  padding: 1.3rem 0 1.6rem;
  background: rgba(15, 23, 42, 0.96);
}

.footer-content {
  text-align: center;
  font-size: 0.8rem;
  color: #9ca3af;
}

/* ========== Responsive ========== */
@media (max-width: 900px) {
  .hero-content,
  .about-grid,
  .skills-grid,
  .card-grid,
  .contact-grid {
    grid-template-columns: minmax(0, 1fr);
  }

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

  .card-grid {
    gap: 1.3rem;
  }
}

@media (max-width: 720px) {
  .nav-links {
    display: none; /* simple mobile: hide nav links, can add hamburger later */
  }

  .hero {
    padding-top: 5rem;
  }

  .section {
    padding: 3.2rem 0;
  }

  .hero-card-inner {
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.85rem;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }
}
