:root {
  --bg-dark: #0f172a;
  --bg-light: #1e293b;
  --accent: #38bdf8;
  --accent-secondary: #f59e0b;
  --text-primary: #e2e8f0;
  --text-secondary: #94a3b8;
  --card-bg: rgba(15, 23, 42, 0.75);
  --max-width: 1100px;
  --border-radius: 18px;
  --shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.6);
  --font-family: 'Poppins', 'Segoe UI', sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font-family);
  background: radial-gradient(circle at top, #1f2937, #0f172a 55%);
  color: var(--text-primary);
  min-height: 100vh;
}

a {
  color: inherit;
}

header {
  position: sticky;
  top: 0;
  background: rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(18px);
  z-index: 10;
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}

.navbar {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
}

.nav-links a {
  font-size: 0.95rem;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.3s ease;
}

.nav-links a:hover,
.nav-links a:focus {
  color: var(--accent);
}

main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
}

.hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  align-items: center;
  margin-top: 2.5rem;
}

.hero-card {
  background: var(--card-bg);
  border-radius: var(--border-radius);
  padding: 2.5rem;
  box-shadow: var(--shadow);
  border: 1px solid rgba(148, 163, 184, 0.15);
  position: relative;
  overflow: hidden;
}

.hero-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(56, 189, 248, 0.18), transparent 65%);
  pointer-events: none;
}

.hero-title {
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  margin: 0 0 1rem;
  line-height: 1.2;
}

.hero-subtitle {
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 1.3rem;
}

.hero-summary {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 2rem;
}

.cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.8rem;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, border 0.25s ease;
}

.button-primary {
  background: var(--accent);
  color: #0f172a;
  box-shadow: 0 18px 40px -18px rgba(56, 189, 248, 0.9);
}

.button-primary:hover,
.button-primary:focus {
  transform: translateY(-2px);
  box-shadow: 0 22px 45px -18px rgba(56, 189, 248, 1);
}

.button-secondary {
  background: transparent;
  color: var(--text-primary);
  border-color: rgba(148, 163, 184, 0.4);
}

.button-secondary:hover,
.button-secondary:focus {
  border-color: var(--accent);
  color: var(--accent);
}

.profile {
  text-align: center;
  background: linear-gradient(160deg, rgba(15, 23, 42, 0.85), rgba(30, 41, 59, 0.6));
  border-radius: var(--border-radius);
  padding: 2.5rem 1.5rem;
  box-shadow: var(--shadow);
  border: 1px solid rgba(148, 163, 184, 0.15);
}

.profile img {
  width: min(280px, 70%);
  aspect-ratio: 1 / 1;
  border-radius: 32px;
  border: 3px solid rgba(56, 189, 248, 0.65);
  box-shadow: 0 30px 60px -25px rgba(15, 23, 42, 0.9);
}

.profile h2 {
  margin-top: 1.5rem;
  font-size: 1.5rem;
}

.profile p {
  color: var(--text-secondary);
  margin-bottom: 0;
}

.section {
  margin-top: 4.5rem;
}

.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.section-title {
  font-size: 1.7rem;
  margin: 0;
}

.section-subtitle {
  color: var(--accent-secondary);
  letter-spacing: 0.2em;
  font-size: 0.85rem;
  text-transform: uppercase;
}

.grid {
  display: grid;
  gap: 1.5rem;
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.card {
  background: var(--card-bg);
  border-radius: var(--border-radius);
  padding: 1.8rem;
  border: 1px solid rgba(148, 163, 184, 0.15);
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(56, 189, 248, 0.4);
}

.card h3 {
  margin-top: 0;
  margin-bottom: 0.8rem;
  font-size: 1.2rem;
}

.card p {
  color: var(--text-secondary);
  line-height: 1.6;
}

.timeline {
  border-left: 2px solid rgba(148, 163, 184, 0.2);
  margin-left: 0.5rem;
  padding-left: 1.5rem;
}

.timeline-item {
  position: relative;
  padding-bottom: 2rem;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -1.65rem;
  top: 0.3rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.18);
}

.timeline-role {
  font-weight: 600;
  margin: 0;
}

.timeline-meta {
  color: var(--text-secondary);
  margin: 0.2rem 0 0.8rem;
}

footer {
  text-align: center;
  padding: 2rem 1rem 3rem;
  color: var(--text-secondary);
}

.hero + .section {
  margin-top: 3.5rem;
}

@media (max-width: 768px) {
  .navbar {
    flex-direction: column;
    gap: 1rem;
  }

  header {
    position: static;
  }
}

.timeline ul {
  margin: 0 0 1.5rem;
  padding-left: 1.2rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.timeline li + li {
  margin-top: 0.4rem;
}
