:root {
  --primary: #194b9c;
  --primary-deep: #211f55;
  --primary-mid: #2b3383;
  --primary-bright: #2150a2;
  --primary-soft: #e5ebf7;
  --secondary: #52627e;
  --soft-gray: #e5ebf7;
  --mist-gray: #c7d3ea;
  --gray: #9fb2d7;
  --black: #211f55;
  --white: #ffffff;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  font-family: "Avenir Next", Avenir, "Helvetica Neue", Helvetica, Arial,
    sans-serif;
  color: var(--black);
  background: var(--white);
}

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

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

.container {
  width: 100%;
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 1.25rem;
}

h1 {
  font-size: clamp(2rem, 4.8vw, 5.3rem);
  line-height: 1.1;
  margin: 0;
}

h2 {
  font-size: clamp(2rem, 4.5vw, 4rem);
  margin: 0;
}

h3 {
  font-size: clamp(1.6rem, 3vw, 3rem);
  margin: 0;
}

h4,
h5,
h6,
p {
  margin: 0;
}

h5 {
  font-size: clamp(1.125rem, 2.4vw, 1.5rem);
  font-weight: 600;
}

p {
  color: var(--secondary);
  font-size: 1rem;
  line-height: 1.6;
}

.text-muted {
  color: var(--secondary);
}

.text-dark {
  color: var(--primary-deep);
}

.navbar {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 999;
}

.nav-wrap {
  padding: 1.75rem 0;
}

.logo-button-wrap {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.logo {
  width: min(16rem, 58vw);
  height: auto;
  filter: drop-shadow(0 10px 15px rgba(33, 31, 85, 0.22));
}
.btn-outline {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  width: fit-content;
  padding: 0.6rem 1rem;
  border: 1px solid var(--primary);
  border-radius: 999px;
  background: transparent;
}

.btn-outline::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 0%;
  background-color: var(--primary);
  transition: height 0.3s ease;
  z-index: 0;
}

.btn-outline:hover::before {
  height: 100%;
}

.btn-outline span {
  position: relative;
  z-index: 1;
  font-size: 1rem;
  color: var(--primary-deep);
  font-weight: 500;
  transition: color 0.3s ease;
}

#contactForm .btn-outline span {
  color: var(--primary);
}

.btn-outline:hover span {
  color: var(--white);
}

.hero-section {
  position: relative;
  overflow: hidden;
  padding: 8.8rem 0 3rem;
  background:
    linear-gradient(
      135deg,
      rgba(229, 235, 247, 0.88),
      rgba(255, 255, 255, 0.72) 44%,
      rgba(229, 235, 247, 0.8)
    ),
    var(--primary-soft);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  max-width: 42rem;
}

.hero-title-row {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.hero-banner {
  width: min(100%, 43rem);
  justify-self: end;
}

.max-text {
  max-width: 36rem;
}

.wave {
  animation: wave-animation 2.5s infinite;
  transform-origin: 70% 70%;
  display: inline-block;
}

@keyframes wave-animation {
  0% {
    transform: rotate(0deg);
  }
  10% {
    transform: rotate(14deg);
  }
  20% {
    transform: rotate(-8deg);
  }
  30% {
    transform: rotate(14deg);
  }
  40% {
    transform: rotate(-4deg);
  }
  50% {
    transform: rotate(10deg);
  }
  60% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(0deg);
  }
}

.contact-bar-border,
.edu-border {
  border-top: 1px solid var(--soft-gray);
}

.contact-bar {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 0;
}

.contact-items,
.social-items {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
}

.contact-items {
  gap: 1rem;
}

.social-items {
  gap: 0.75rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.contact-item h6 {
  font-size: 1rem;
  font-weight: 500;
}

.contact-item:hover h6,
.link-primary:hover,
.social-link:hover,
.info-link:hover {
  color: var(--primary);
}

.about-wrap,
.works-bg {
  background: var(--soft-gray);
}

.about-wrap {
  position: relative;
  padding: 2.5rem 0 4rem;
}

.about-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  padding: 0 2.25rem;
}

.section-top,
.edu-wrap {
  position: relative;
  z-index: 10;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  border-bottom: 1px solid var(--primary-deep);
  padding-bottom: 1.75rem;
}

.section-header-mb {
  margin-bottom: 2.25rem;
}

.section-num {
  color: var(--primary);
  font-size: 1.25rem;
}

.about-content {
  padding-top: 2.5rem;
  display: flex;
  gap: 2rem;
  align-items: center;
  justify-content: space-between;
}

.about-banner-box {
  width: 303px;
  height: 440px;
  display: none;
}

.about-text-col {
  width: 100%;
  flex: 1;
  max-width: 42rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--mist-gray);
}

.lang-row {
  padding-top: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.lang-title {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.lang-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
}

.lang-pills p {
  background: var(--white);
  padding: 0.55rem 1rem;
  border-radius: 999px;
  color: var(--primary-deep);
  box-shadow: 0 8px 18px rgba(33, 31, 85, 0.06);
}

.section-spaced {
  padding: 4rem 0;
}

.experience-list {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.exp-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

.exp-year {
  font-weight: 700;
  color: var(--primary-deep);
  margin-bottom: 0.4rem;
}

.exp-title {
  font-size: 1.1rem;
  color: var(--primary-deep);
}

.exp-middle {
  position: relative;
}

.exp-line {
  position: absolute;
  left: 0;
  top: 0.7rem;
  width: 1px;
  height: 7.5rem;
  background: var(--soft-gray);
}

.exp-dot {
  position: absolute;
  left: 0;
  top: 0;
  transform: translateX(-50%);
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1px solid var(--primary-deep);
  background: var(--white);
}

.exp-dot.active {
  border-color: var(--primary);
}

.exp-dot.active::after {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.exp-company-wrap {
  padding-left: 1.25rem;
}

.exp-company {
  font-size: 1.2rem;
  color: var(--primary-mid);
}

.edu-wrap {
  overflow: hidden;
}

.edu-vector {
  position: absolute;
  top: 0;
  left: 0;
  transform: translateY(-50%);
}

.edu-grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.education-col {
  width: 100%;
  max-width: 34rem;
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}

.edu-item {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
}

.edu-dot {
  margin-top: 0.65rem;
  width: 14px;
  min-width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1px solid var(--primary-deep);
  background: var(--white);
  position: relative;
}

.edu-dot::after {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary-deep);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.skills-grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.skill-card {
  padding: 1rem;
  border: 1px solid var(--soft-gray);
  border-radius: 0.5rem;
  background: rgba(255, 255, 255, 0.72);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
}

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

.skill-main p {
  color: var(--primary-deep);
}

.skill-dots {
  display: flex;
  gap: 0.3rem;
}

.skill-dots span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  display: inline-block;
  background: var(--gray);
}

.skill-dots span.active {
  background: var(--primary);
}

.works-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.work-card {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  padding: 1rem;
  border: 1px solid rgba(33, 31, 85, 0.08);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 14px 30px rgba(33, 31, 85, 0.08);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease;
}

.work-card:hover {
  transform: translateY(-4px);
  border-color: rgba(25, 75, 156, 0.2);
  box-shadow: 0 20px 40px rgba(33, 31, 85, 0.12);
}

.work-thumb {
  position: relative;
  border-radius: 0.5rem;
  overflow: hidden;
}

.work-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.work-overlay {
  position: absolute;
  inset: 0;
  backdrop-filter: blur(2px);
  background: rgba(25, 75, 156, 0.18);
  display: none;
  align-items: center;
  justify-content: center;
}

.work-card:hover .work-overlay {
  display: flex;
}

.work-info-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.contact-section {
  padding: 4rem 0 5rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}

.form-col {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.two-col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.label {
  color: var(--secondary);
  font-size: 0.875rem;
}

.input {
  width: 100%;
  border: none;
  border-bottom: 1px solid var(--gray);
  outline: none;
  padding: 0.5rem 0;
  font-family: inherit;
  font-size: 1rem;
}

.input:focus {
  border-bottom-color: var(--primary);
}

.success-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.form-status {
  min-height: 1.5rem;
  color: var(--secondary);
  font-size: 0.95rem;
}

.contact-side {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.social-list {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.social-link {
  color: var(--secondary);
  font-size: 1.05rem;
}

.info-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.2rem;
}

.info-link {
  color: var(--primary-deep);
  border-bottom: 1px solid var(--primary-deep);
  padding-bottom: 0.75rem;
}

footer {
  padding: 1.5rem 0 3.5rem;
  display: flex;
  justify-content: center;
}

.footer-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
}

.footer-logo-line {
  display: flex;
  align-items: center;
  width: 100%;
}

.line {
  flex-grow: 1;
  height: 1px;
  background: var(--primary-deep);
}

.logo-center {
  margin: 0 1rem;
}

.footer-logo {
  width: min(13rem, 52vw);
  height: auto;
}

.link-primary {
  color: var(--primary);
}

.link-primary:hover {
  text-decoration: underline;
}

@media (min-width: 640px) {
  .container {
    padding: 0 1.75rem;
  }

  .btn-outline {
    padding: 0.75rem 1.25rem;
  }

  .btn-outline span {
    font-size: 1.125rem;
  }

  .contact-bar {
    flex-direction: row;
  }

  .contact-items {
    justify-content: flex-start;
    gap: 1.4rem;
  }

  .social-items {
    justify-content: flex-end;
  }

  .section-spaced,
  .contact-section {
    padding: 5rem 0;
  }

  .works-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 1.5rem;
    row-gap: 2rem;
  }

  .footer-col {
    align-items: flex-start;
  }
}

@media (min-width: 768px) {
  .hero-section {
    padding-top: 10rem;
    padding-bottom: 6rem;
  }

  .about-wrap {
    padding-top: 8rem;
    padding-bottom: 8rem;
  }

  .exp-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
  }

  .contact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-side {
    align-items: flex-end;
    gap: 5rem;
  }

  .social-list {
    flex-direction: column;
    align-items: flex-end;
  }
}

@media (min-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr 1fr;
  }

  .about-banner-box {
    display: flex;
  }

  .lang-row {
    flex-direction: row;
  }

  .section-spaced,
  .contact-section {
    padding: 8rem 0;
  }

  .edu-grid {
    flex-direction: row;
    gap: 3rem;
    align-items: flex-start;
  }

  .skills-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.3rem;
  }
}

@media print {
  body {
    background: white !important;
    color: black !important;
  }

  header,
  footer,
  .navbar,
  .no-print {
    display: none !important;
  }

  main {
    padding: 0;
    margin: 0;
    width: 100%;
  }

  * {
    box-shadow: none !important;
    background: transparent !important;
  }

  html,
  body {
    height: auto;
    overflow: visible;
  }

  .hero-section {
    padding-top: 35px;
  }

  .break-page {
    break-before: page;
    page-break-before: always;
  }
}
