:root {
  --primary: #133985;
  --secondary: #e22437;
  --dark: #111827;
  --text: #374151;
  --muted: #6b7280;
  --light: #f5f7fb;
  --white: #ffffff;
  --border: #e5e7eb;
  --shadow: 0 20px 50px rgba(17, 24, 39, 0.08);
  --radius: 24px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", Arial, sans-serif;
  color: var(--text);
  line-height: 1.7;
  background: var(--white);
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul {
  padding-left: 20px;
}

.container {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.section-padding {
  padding: 96px 0;
}

.bg-light {
  background: var(--light);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.navbar {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-size: 22px;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: -0.04em;
}

.logo span {
  color: var(--secondary);
}

.nav-menu {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 28px;
  padding-left: 0;
}

.nav-menu a {
  font-size: 15px;
  font-weight: 600;
  color: var(--dark);
  transition: color 0.2s ease;
}

.nav-menu a:hover {
  color: var(--primary);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--white);
  cursor: pointer;
}

.menu-toggle span {
  width: 18px;
  height: 2px;
  background: var(--dark);
  display: block;
  margin: 4px auto;
}

.hero {
  min-height: calc(100vh - 76px);
  display: flex;
  align-items: center;
  background:
    radial-gradient(circle at 15% 20%, rgba(19, 57, 133, 0.12), transparent 34%),
    radial-gradient(circle at 85% 10%, rgba(226, 36, 55, 0.10), transparent 30%),
    linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 56px;
  align-items: center;
}

.eyebrow {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--secondary);
  margin-bottom: 12px;
}

h1,
h2,
h3 {
  color: var(--dark);
  line-height: 1.18;
  letter-spacing: -0.04em;
}

h1 {
  font-size: clamp(42px, 6vw, 72px);
  margin-bottom: 24px;
}

h1 span {
  color: var(--primary);
}

h2 {
  font-size: clamp(32px, 4vw, 44px);
  margin-bottom: 18px;
}

h3 {
  font-size: 22px;
  margin-bottom: 10px;
}

.hero-desc {
  max-width: 680px;
  font-size: 18px;
  color: var(--muted);
  margin-bottom: 32px;
}

.hero-actions,
.contact-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.btn.primary {
  color: var(--white);
  background: var(--primary);
  box-shadow: 0 14px 30px rgba(19, 57, 133, 0.24);
}

.btn.secondary {
  color: var(--primary);
  background: var(--white);
  border: 1px solid var(--border);
}

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

.profile-card {
  width: min(100%, 380px);
  padding: 34px;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.profile-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 7px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
}

.avatar {
  width: 116px;
  height: 116px;
  margin: 12px auto 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 30px;
  font-weight: 700;
  color: var(--white);
  background: linear-gradient(135deg, var(--primary), #315fbd);
  box-shadow: inset 0 0 0 8px rgba(255, 255, 255, 0.18);
}

.profile-card p {
  color: var(--muted);
  margin-bottom: 22px;
}

.profile-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.profile-list span,
.project-top span {
  padding: 7px 12px;
  border-radius: 999px;
  background: #eef2ff;
  color: var(--primary);
  font-size: 13px;
  font-weight: 700;
}

.two-column {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 56px;
  align-items: start;
}

.content-box {
  padding: 34px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.content-box p + p {
  margin-top: 16px;
}

.section-heading.center {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 44px;
}

.skills-grid,
.projects-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.skill-card,
.project-card,
.timeline-content {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.skill-card {
  padding: 28px;
}

.skill-card h3 {
  color: var(--primary);
}

.skill-card p {
  color: var(--muted);
}

.timeline {
  position: relative;
  display: grid;
  gap: 24px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 28px;
  align-items: start;
}

.time {
  padding-top: 24px;
  font-weight: 700;
  color: var(--primary);
}

.timeline-content {
  padding: 28px;
}

.role {
  font-weight: 700;
  color: var(--secondary);
  margin-bottom: 12px;
}

.timeline-content li,
.project-card li {
  margin-bottom: 6px;
  color: var(--muted);
}

.projects-grid {
  grid-template-columns: repeat(3, 1fr);
}

.project-card {
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.project-top {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.project-card p {
  color: var(--muted);
}

.project-card a {
  margin-top: auto;
  font-weight: 700;
  color: var(--primary);
}

.contact {
  background: linear-gradient(135deg, var(--primary), #0f2d68);
}

.contact-box {
  text-align: center;
  padding: 56px;
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.contact-box h2,
.contact-box p {
  color: var(--white);
}

.contact-box > p:not(.eyebrow) {
  max-width: 720px;
  margin: 0 auto 28px;
  opacity: 0.86;
}

.contact-actions {
  justify-content: center;
  margin-bottom: 28px;
}

.contact-actions .btn.primary {
  background: var(--white);
  color: var(--primary);
  box-shadow: none;
}

.contact-actions .btn.secondary {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.35);
}

.contact-info {
  display: flex;
  gap: 18px;
  justify-content: center;
  flex-wrap: wrap;
  font-size: 14px;
  opacity: 0.88;
}

.footer {
  padding: 26px 0;
  background: #0b1220;
  color: rgba(255, 255, 255, 0.74);
}

.footer .container {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.footer a {
  font-weight: 700;
  color: var(--white);
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 960px) {
  .hero-grid,
  .two-column,
  .timeline-item {
    grid-template-columns: 1fr;
  }

  .skills-grid,
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .time {
    padding-top: 0;
  }
}

@media (max-width: 720px) {
  .section-padding {
    padding: 72px 0;
  }

  .menu-toggle {
    display: block;
  }

  .nav-menu {
    position: absolute;
    left: 20px;
    right: 20px;
    top: 84px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 18px;
    box-shadow: var(--shadow);
  }

  .nav-menu.active {
    display: flex;
  }

  .nav-menu a {
    display: block;
    padding: 12px 14px;
  }

  .hero {
    min-height: auto;
  }

  .skills-grid,
  .projects-grid {
    grid-template-columns: 1fr;
  }

  .content-box,
  .contact-box,
  .profile-card,
  .skill-card,
  .project-card,
  .timeline-content {
    border-radius: 20px;
  }

  .contact-box {
    padding: 36px 22px;
  }
}
