/* Global theme defaults */
:root {
  color-scheme: dark;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background-color: #0b0f16;
  color: #f4f6fb;
  line-height: 1.6;
}

* {
  box-sizing: border-box;
}

/* Page canvas centers content */
body {
  margin: 0;
  background: radial-gradient(circle at top, rgba(32, 56, 91, 0.45), transparent 60%), #05070c;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

a {
  color: inherit;
}

a:hover {
  opacity: 0.85;
}

.page-container {
  width: min(1100px, 100%);
  margin: 0 auto;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Hero banner */
.hero {
  display: grid;
  gap: 3rem;
  padding: 5rem clamp(1.5rem, 4vw, 5rem) 4rem;
  background: linear-gradient(140deg, rgba(41, 68, 112, 0.6), rgba(11, 15, 22, 0.95));
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  justify-items: center;
}

.hero__content {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.hero__eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.75rem;
  margin-bottom: 1rem;
  color: #8ba8ff;
}

h1 {
  font-size: clamp(2.8rem, 5vw, 4rem);
  margin: 0 0 1.5rem;
}

.hero__summary {
  margin: 0 0 1.2rem;
  font-size: 1.05rem;
  color: rgba(244, 246, 251, 0.82);
}

/* Buttons */
.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 2rem 0 1rem;
}

.btn {
  padding: 0.8rem 1.6rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn.primary {
  background: linear-gradient(135deg, #5a8bff, #56d6ff);
  color: #05070c;
  border-color: transparent;
  box-shadow: 0 10px 30px rgba(86, 214, 255, 0.25);
}

.btn.outline {
  background: rgba(255, 255, 255, 0.05);
  color: #f4f6fb;
}

.btn:hover {
  transform: translateY(-3px);
}

.meta {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  font-size: 0.9rem;
  color: rgba(244, 246, 251, 0.65);
}

.hero__badge-stack {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.95rem;
}

.badge.secondary {
  color: #c7dcff;
}

/* Section blocks */
.section {
  padding: clamp(3.5rem, 5vw, 5rem) clamp(1.5rem, 4vw, 5rem);
}

.section__header {
  max-width: 720px;
  margin-bottom: 2.5rem;
}

.section__header h2 {
  font-size: clamp(2rem, 3vw, 3rem);
  margin-bottom: 0.6rem;
}

.section__header p {
  color: rgba(244, 246, 251, 0.7);
  margin: 0;
}

/* Grid utilities */
.grid {
  display: grid;
  gap: 1.5rem;
}

.skills {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

/* Cards and project tiles */
.card {
  background: rgba(16, 22, 33, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 1.8rem;
  box-shadow: 0 25px 45px rgba(0, 0, 0, 0.35);
}

.card h3 {
  margin-top: 0;
  font-size: 1.25rem;
}

.card ul {
  padding-left: 1.2rem;
  margin: 1rem 0 0;
}

.card li {
  margin-bottom: 0.4rem;
  color: rgba(244, 246, 251, 0.78);
}

.projects {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.project header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.tag {
  background: rgba(90, 139, 255, 0.15);
  color: #8fb6ff;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.project__links {
  margin-top: 1.2rem;
}

.project__links a {
  font-weight: 600;
  color: #8fb6ff;
}

.credentials {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

/* Timeline */
.timeline {
  display: grid;
  gap: 1.5rem;
}

.timeline__item {
  border-left: 3px solid rgba(90, 139, 255, 0.3);
  padding-left: 1.5rem;
  position: relative;
}

.timeline__item::before {
  content: '';
  position: absolute;
  left: -10px;
  top: 0.4rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: linear-gradient(135deg, #5a8bff, #56d6ff);
}

.timeline__role {
  margin: 0.4rem 0 0.8rem;
  color: rgba(244, 246, 251, 0.7);
}

/* Accent section in teal */
.section--accent {
  background: linear-gradient(130deg, rgba(25, 35, 54, 0.95), rgba(7, 10, 16, 0.95));
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.education {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

/* Footer */
.footer {
  padding: 3rem clamp(1.5rem, 4vw, 5rem);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: #04060a;
}

.footer__content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: flex-start;
}

.footer__links {
  display: flex;
  gap: 1.2rem;
  flex-wrap: wrap;
}

.footer__note {
  margin-top: 1.5rem;
  color: rgba(244, 246, 251, 0.55);
}

/* Responsive adjustments */
@media (max-width: 900px) {
  .hero {
    padding-top: 4rem;
  }
  .hero__badge-stack {
    flex-direction: row;
    flex-wrap: wrap;
  }
}

@media (max-width: 600px) {
  .hero {
    padding: 3.5rem 1.5rem 3rem;
  }
  .hero__cta {
    flex-direction: column;
    align-items: flex-start;
  }
  .card {
    padding: 1.4rem;
  }
}
