body {
  font-family: "Inter", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.7;
  color: #102a43;
  background: linear-gradient(180deg, #f7f9ff 0%, #e8eff8 100%);
}

* {
  box-sizing: border-box;
}

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

header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(5, 22, 54, 0.96);
  backdrop-filter: blur(16px);
  box-shadow: 0 12px 30px rgba(5, 20, 45, 0.18);
  border-bottom: 1px solid rgba(164, 22, 36, 0.12);
}

.navbar-brand,
.navbar-nav .nav-link {
  color: #f8fafc !important;
}

.navbar-brand {
  flex-wrap: wrap;
  gap: 0.75rem;
}

.navbar-brand .brand-text {
  display: block;
  line-height: 1.1;
}

@media (max-width: 768px) {
  .navbar-brand {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
    max-width: 100%;
  }

  .navbar-brand img {
    height: 48px;
  }

  .navbar-brand .brand-text {
    width: 100%;
    font-size: 0.95rem;
    min-width: 0;
    white-space: normal;
    word-break: break-word;
    overflow-wrap: break-word;
    margin-top: 0.25rem;
  }
}

.navbar-nav .nav-link {
  font-weight: 500;
}

.navbar-nav .nav-link.active,
.navbar-nav .nav-link:hover {
  color: #d52c35 !important;
}

.navbar-toggler {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border-color: rgba(248, 250, 252, 0.75);
  background-color: rgba(248, 250, 252, 0.12);
  width: 3rem;
  height: 3rem;
  border-radius: 0.75rem;
  transition:
    background-color 0.2s ease,
    transform 0.2s ease;
}

.navbar-toggler:hover,
.navbar-toggler:focus {
  background-color: rgba(248, 250, 252, 0.24);
  transform: scale(1.05);
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23f8fafc' stroke-linecap='round' stroke-width='2.5' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
  background-size: 1.5rem 1.5rem;
  background-position: center;
  background-repeat: no-repeat;
}

.hero {
  background: linear-gradient(135deg, #f1f5ff 0%, #ffffff 100%);
  color: #0d1f3d;
  padding: 80px 0;
  border-radius: 28px;
  box-shadow: 0 20px 50px rgba(9, 28, 59, 0.08);
  margin-bottom: 40px;
  border: 1px solid rgba(16, 42, 67, 0.12);
}

.hero h2 {
  font-size: clamp(2rem, 3.2vw, 3rem);
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
  color: #0f2a4e;
}

.hero p {
  font-size: 1.05rem;
  max-width: 720px;
  margin: 0 auto;
  color: #2f4c75;
}

.hero-actions {
  margin-top: 2rem;
}

.btn-primary {
  background: linear-gradient(135deg, #0f2a4e 0%, #8d212f 100%);
  border: none;
  border-radius: 999px;
  padding: 0.95rem 2rem;
  font-weight: 600;
  color: #ffffff;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    background 0.25s ease;
  box-shadow: 0 14px 28px rgba(15, 32, 67, 0.14);
}

.btn-primary:hover,
.btn-primary:focus {
  transform: translateY(-2px);
  background: linear-gradient(135deg, #0b2042 0%, #7a1b2a 100%);
  box-shadow: 0 18px 32px rgba(15, 32, 67, 0.18);
}

.btn-outline-primary {
  color: #0f2a4e;
  border-color: rgba(141, 33, 47, 0.24);
  background: rgba(141, 33, 47, 0.08);
  border-width: 1.5px;
  border-radius: 999px;
  padding: 0.95rem 2rem;
  font-weight: 600;
  transition:
    background 0.25s ease,
    color 0.25s ease,
    transform 0.25s ease;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
  background: rgba(141, 33, 47, 0.18);
  color: #0d1f3d;
  transform: translateY(-1px);
}

.section-title {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: clamp(1.75rem, 2.1vw, 2.4rem);
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: #102a43;
}

.section-title span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 0.8rem;
  background: #a41624;
  color: #fff;
}

.card {
  border: 1px solid rgba(16, 42, 67, 0.12);
  border-radius: 28px;
  box-shadow: 0 18px 40px rgba(15, 32, 67, 0.08);
  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 24px 55px rgba(15, 32, 67, 0.12);
}

.card-img-top {
  height: 260px;
  object-fit: cover;
}

.card-body {
  padding: 1.75rem;
}

.card-body h5,
.card-body h4 {
  color: #102a43;
  font-weight: 700;
  margin-bottom: 1rem;
}

.card-body p {
  color: #475569;
}

section {
  padding: 80px 0;
}

section.bg-light {
  background: #e8eff8;
}

footer {
  background: #08172f;
  color: #cbd5e1;
  padding: 60px 0;
}

footer h5 {
  color: #ffffff;
  margin-bottom: 1rem;
}

footer a {
  color: #b0c1dc;
  text-decoration: none;
}

footer a:hover {
  color: #f8fafc;
}

footer p,
footer li,
footer .text-center {
  color: #cbd5e1;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
}

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

.icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.85rem;
  height: 1.85rem;
  min-width: 1.85rem;
  margin-right: 0.6rem;
  border-radius: 0.8rem;
  background: #a41624;
  color: #fff;
  font-size: 1rem;
  line-height: 1;
}

.icon.btn-icon {
  width: auto;
  min-width: auto;
  padding: 0 0.75rem;
  background: rgba(255, 255, 255, 0.1);
}

.hero .icon,
.section-title .icon {
  width: 2.4rem;
  height: 2.4rem;
}

@media (max-width: 992px) {
  .hero {
    padding: 60px 0;
  }

  .card-img-top {
    height: 200px;
  }
}

@media (max-width: 768px) {
  .hero h2 {
    font-size: 2rem;
  }

  .card-img-top {
    height: 180px;
  }

  .card {
    margin-bottom: 30px !important;
  }

  .hero-actions {
    display: grid;
    gap: 1rem;
    justify-content: center;
  }
}

.education-section img {
  height: 320px;
  object-fit: cover;
  border-radius: 28px;
}

.education-section .row .col-md-6.order-md-2 img {
  margin-left: 0;
}
