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

html {
  scroll-behavior: smooth;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  background: #f3f5f8;
  color: #0f2742;
  line-height: 1.6;
}

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

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

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

.narrow {
  max-width: 820px;
}

.section {
  padding: 72px 0;
}

.section-light {
  background: #eef2f6;
}

h1,
h2,
h3 {
  line-height: 1.1;
}

h2 {
  font-size: 2.5rem;
  margin-bottom: 24px;
}

p {
  font-size: 1.1rem;
  color: #26435f;
}

.site-header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 10;
  padding: 22px 0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo img {
  height: 150px;
  width: auto;
}

.nav {
  display: flex;
  align-items: center;
  gap: 34px;
}

.nav a {
  color: #ffffff;
  font-size: 1.1rem;
  font-weight: 700;
  transition: opacity 0.2s ease;
}

.nav a:hover {
  opacity: 0.75;
}

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background:
    radial-gradient(circle at center, rgba(48, 110, 180, 0.18), transparent 34%),
    linear-gradient(90deg, #081828 0%, #0b2038 48%, #102b4c 100%);
  color: #ffffff;
  padding: 140px 0 72px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 72px;
}

.badge {
  display: inline-block;
  padding: 10px 18px;
  margin-bottom: 22px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  font-size: 1rem;
  font-weight: 700;
}

.intro {
  color: #cfe2ff;
  font-size: 1.1rem;
  margin-bottom: 10px;
}

.hero h1 {
  font-size: clamp(3rem, 7vw, 5.2rem);
  max-width: 620px;
  margin-bottom: 20px;
  letter-spacing: -2px;
}

.description {
  max-width: 620px;
  color: #d8e6f7;
  font-size: 1.2rem;
  margin-bottom: 30px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 22px;
  border-radius: 14px;
  font-size: 1rem;
  font-weight: 700;
  transition: transform 0.2s ease, opacity 0.2s ease, background 0.2s ease;
}

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

.btn-primary {
  background: #6ca8e0;
  color: #0c2138;
}

.btn-primary:hover {
  opacity: 0.92;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.14);
}

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

.hero-photo-card {
  width: min(100%, 430px);
  padding: 12px;
  border-radius: 30px;
  background: linear-gradient(180deg, rgba(119, 146, 180, 0.45), rgba(39, 66, 97, 0.6));
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
}

.hero-photo {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center top;
  border-radius: 24px;
}

#about p,
#contact p,
.skills-text {
  max-width: 760px;
}

#about p + p,
#contact p + p,
.skills-text {
  margin-top: 18px;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: 12px;
}

.project-card {
  background: #ffffff;
  border: 1px solid #dde6ef;
  border-radius: 24px;
  padding: 28px;
  box-shadow: 0 12px 28px rgba(18, 41, 66, 0.06);
}

.project-card h3 {
  font-size: 1.8rem;
  margin-bottom: 14px;
  color: #0e2845;
}

.project-card p {
  font-size: 1.06rem;
}

.skills-list {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 20px 0 22px;
}

.skills-list span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  background: #17385c;
  color: #ffffff;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 700;
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 22px;
}

.contact-links a {
  display: inline-block;
  width: fit-content;
  color: #0f4d85;
  font-weight: 700;
}

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

@media (max-width: 980px) {
  .logo img {
    height: 110px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero {
    min-height: auto;
    padding-top: 150px;
  }

  .hero-photo-wrap {
    justify-content: flex-start;
  }

  .hero-photo-card {
    max-width: 380px;
  }

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

@media (max-width: 760px) {
  .site-header {
    position: static;
    background: #0b2038;
    padding: 18px 0;
  }

  .header-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .logo img {
    height: 90px;
  }

  .nav {
    flex-wrap: wrap;
    gap: 16px 24px;
  }

  .hero {
    padding: 42px 0 54px;
  }

  h2 {
    font-size: 2rem;
  }

  .description,
  p {
    font-size: 1rem;
  }

  .section {
    padding: 56px 0;
  }

  .container {
    width: min(1120px, calc(100% - 32px));
  }
}