:root {
  --fusion-primary: #1a8fe3;
  --fusion-deep: #123a6f;
  --fusion-bg: #f4f7fb;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background-color: var(--fusion-bg);
  color: #243241;
  padding-top: 64px;
}

html {
  scroll-behavior: smooth;
}

section[id],
header[id] {
  scroll-margin-top: 96px;
}

h1,
h2,
h3,
.navbar-brand {
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

.brand-wrap {
  display: inline-flex;
  align-items: center;
  padding: 0.1rem 0;
}

.brand-logo {
  width: 220px;
  max-width: 36vw;
  height: auto;
  display: block;
}

.app-navbar {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(18, 58, 111, 0.08);
  padding-top: 0.4rem;
  padding-bottom: 0.4rem;
}

.navbar-nav {
  gap: 0.35rem;
}

.navbar-nav .nav-link {
  color: #334155;
  font-weight: 700;
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  transition: all 0.2s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus-visible {
  color: var(--fusion-primary);
  background: rgba(26, 143, 227, 0.12);
  transform: translateY(-1px);
}

.navbar-nav .nav-link.active {
  color: #fff;
  background: linear-gradient(135deg, var(--fusion-primary), #1578c1);
  box-shadow: 0 8px 18px rgba(21, 120, 193, 0.28);
}

.hero-section {
  min-height: 76vh;
  background: linear-gradient(135deg, rgba(26, 143, 227, 0.15), rgba(18, 58, 111, 0.22));
}

.hero-web-visual {
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 18px 32px rgba(12, 24, 40, 0.35);
}

.hero-web-image {
  width: 100%;
  height: 360px;
  object-fit: cover;
  display: block;
}

.btn-primary {
  --bs-btn-bg: var(--fusion-primary);
  --bs-btn-border-color: var(--fusion-primary);
  --bs-btn-hover-bg: #1578c1;
  --bs-btn-hover-border-color: #1578c1;
}

.service-card,
.portfolio-card,
.contact-card {
  border-radius: 1rem;
}

.deep-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.deep-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 26px rgba(15, 23, 42, 0.12);
}

.deep-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.deep-link {
  display: inline-flex;
  align-items: center;
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  color: var(--fusion-primary);
  white-space: nowrap;
}

.deep-link::after {
  content: "→";
  margin-left: 0.28rem;
  transition: transform 0.2s ease;
}

.deep-link:hover::after {
  transform: translateX(2px);
}

.mockup-section {
  background: linear-gradient(180deg, rgba(248, 251, 255, 0.95), rgba(235, 244, 255, 0.82));
}

.mockup-showcase {
  background: #fff;
}

.mockup-live {
  height: 320px;
  border-bottom: 1px solid rgba(18, 58, 111, 0.12);
  background: #f7fbff;
}

.mockup-preview {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

.portfolio-section {
  background: linear-gradient(180deg, rgba(244, 247, 251, 0.96), rgba(234, 242, 252, 0.86));
}

.portfolio-icon-dot {
  width: 0.9rem;
  height: 0.9rem;
  display: inline-block;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--fusion-primary), #1578c1);
  box-shadow: 0 0 0 5px rgba(26, 143, 227, 0.13);
  margin-bottom: 0.7rem;
}

.portfolio-tag {
  display: inline-block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
  color: var(--fusion-deep);
  background: rgba(26, 143, 227, 0.16);
  padding: 0.3rem 0.55rem;
  border-radius: 999px;
}

.contact-section {
  background: linear-gradient(180deg, rgba(26, 143, 227, 0.05), rgba(18, 58, 111, 0.03));
}

main > section {
  content-visibility: auto;
  contain-intrinsic-size: 700px;
}

@media (max-width: 991.98px) {
  .navbar-collapse {
    display: none;
  }

  .navbar-collapse.show {
    display: block;
  }

  body {
    padding-top: 72px;
  }

  .navbar-collapse {
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(18, 58, 111, 0.1);
    border-radius: 0.9rem;
    margin-top: 0.6rem;
    padding: 0.65rem;
    box-shadow: 0 12px 22px rgba(15, 23, 42, 0.12);
  }

  .navbar-nav {
    gap: 0.2rem;
  }

  .brand-logo {
    width: 160px;
    max-width: 48vw;
    height: auto;
  }

  .hero-section {
    min-height: auto;
    padding: 2.6rem 0 2.8rem;
  }

  .hero-web-image {
    height: 200px;
  }

  .hero-web-visual {
    box-shadow: 0 10px 22px rgba(12, 24, 40, 0.22);
  }

  .mockup-live {
    height: 240px;
  }
}
