:root {
  --brand: #0d6efd;
  --dark: #0b1320;
}

html, body {
  height: 100%;
}

body {
  padding-top: 78px;
  background: #f7f9fc;
}

a {
  text-decoration: none;
}

.navbar .navbar-brand {
  letter-spacing: 0.4px;
}

.navbar .nav-link {
  font-weight: 500;
}

.navbar .nav-link.active {
  color: #fff !important;
  background: rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  padding-left: 14px;
  padding-right: 14px;
}

.hero {
  position: relative;
  min-height: 72vh;
  display: flex;
  align-items: center;
  color: #fff;
  overflow: hidden;
  border-radius: 0 0 22px 22px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(11,19,32,0.86), rgba(13,110,253,0.45));
  z-index: 0;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: url("../images/hero.jpg") center/cover no-repeat;
  transform: scale(1.02);
  filter: saturate(1.05);
  z-index: -1;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero h1 {
  letter-spacing: -0.6px;
}

.hero .lead {
  opacity: 0.92;
}

.section-title {
  letter-spacing: -0.3px;
}

.section-subtitle {
  color: #6c757d;
}

.feature-card {
  border: 1px solid rgba(13, 110, 253, 0.08);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  border-radius: 18px;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(13, 110, 253, 0.26);
  box-shadow: 0 14px 30px rgba(11, 19, 32, 0.12);
}

.icon-badge {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: rgba(13, 110, 253, 0.08);
  color: var(--brand);
}

.portfolio-card {
  border-radius: 18px;
  overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease;
  border: 1px solid rgba(11, 19, 32, 0.08);
}

.portfolio-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 34px rgba(11, 19, 32, 0.14);
}

.portfolio-thumb {
  height: 190px;
  object-fit: cover;
}

.badge-soft {
  background: rgba(13, 110, 253, 0.10);
  color: var(--brand);
  border: 1px solid rgba(13, 110, 253, 0.18);
}

.portfolio-item {
  transition: opacity .2s ease, transform .2s ease;
}
.portfolio-item.is-hidden {
  opacity: 0;
  transform: scale(0.98);
  pointer-events: none;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden;
  border: 0 !important;
}

.about-photo {
  border-radius: 22px;
  object-fit: cover;
  width: 100%;
  height: 360px;
}

.progress {
  height: 10px;
  border-radius: 999px;
}

footer {
  background: #0b1320;
  color: rgba(255,255,255,0.85);
}

footer a {
  color: rgba(255,255,255,0.80);
}

footer a:hover {
  color: #fff;
}

.footer-divider {
  border-color: rgba(255,255,255,0.12);
}

.modal-portfolio-img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  border-radius: 14px;
}

.required::after {
  content: " *";
  color: #dc3545;
  font-weight: 700;
}

.hero-photo {
  width: 60%;
  aspect-ratio: 9 / 16;
  object-fit: cover;

  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(8px);
}

@media (max-width: 991.98px) {
  body {
    padding-top: 66px !important;
  }
  
  .hero-photo {
    width: 80% !important;
    max-width: 300px;
    aspect-ratio: 3 / 4 !important;
  }
  
  .hero .display-5 {
    font-size: 2rem !important;
  }
}

.carousel-caption {
  position: static !important;
  background: rgba(0,0,0,0.6);
  padding: 1rem !important;
  border-radius: 12px;
  margin: 1rem;
}

@media (max-width: 576px) {
  footer .col-6 {
    width: 100% !important;
  }
  
  .modal-portfolio-img {
    height: 240px !important;
  }
}