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

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  background: radial-gradient(circle at top left, #e0f2ff 0, #f3f4f6 50%, #eef2ff 100%);
  color: #111827;
  line-height: 1.5;
}

/* Layout */

.page {
  max-width: 1120px;
  margin: 0 auto;
  padding: 96px 20px 40px; /* space for sticky header */
}

.section {
  margin-bottom: 40px;
}

/* Orange highlight on scroll */

.section-highlight {
  border-radius: 20px;
  box-shadow:
    0 0 0 1px rgba(249, 115, 22, 0.45),
    0 0 40px rgba(249, 115, 22, 0.4);
  background: radial-gradient(circle at top left, #fff7ed 0, #ffffff 60%);
  transition: box-shadow 0.25s ease, background 0.25s ease;
}

/* Header */

.main-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 24px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(148, 163, 184, 0.3);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-icon {
  width: 34px;
  height: 34px;
}

.logo-text {
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.86rem;
  color: #0f172a;
}

/* Top navigation */

.top-nav {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* buttons on main page */
.top-nav button {
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 0.82rem;
  cursor: pointer;
  background: transparent;
  color: #0f172a;
  border: 1px solid rgba(148, 163, 184, 0.7);
  transition: background 0.15s ease, transform 0.1s ease,
    box-shadow 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.top-nav button:hover {
  background: linear-gradient(135deg, #0369a1, #0ea5e9);
  color: #f9fafb;
  border-color: transparent;
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.25);
}

.top-nav button.active {
  background: linear-gradient(135deg, #2563eb, #0ea5e9);
  color: #f9fafb;
  border-color: transparent;
  box-shadow: 0 10px 22px rgba(37, 99, 235, 0.4);
}

/* links on other pages (project, blogs) */

.top-nav .nav-link {
  border-radius: 999px;
  padding: 7px 16px;
  font-size: 0.82rem;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.9);
  color: #0f172a;
  border: 1px solid rgba(148, 163, 184, 0.7);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: background 0.15s ease, transform 0.1s ease,
    box-shadow 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.top-nav .nav-link:hover {
  background: #eff6ff;
  color: #1d4ed8;
  border-color: rgba(96, 165, 250, 0.9);
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.18);
}

/* active page link pill */

.nav-link-active {
  background: #ffffff;
  color: #1d4ed8 !important;
  border-color: rgba(37, 99, 235, 0.9) !important;
  box-shadow:
    0 0 0 1px rgba(191, 219, 254, 0.9),
    0 14px 32px rgba(37, 99, 235, 0.35);
  font-weight: 600;
  transform: translateY(-1px);
  position: relative;
}

.nav-link-active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -4px;
  transform: translateX(-50%);
  width: 40%;
  height: 3px;
  border-radius: 999px;
  background: rgba(59, 130, 246, 0.95);
}

/* Typography */

.page-title {
  font-size: clamp(2.1rem, 3vw, 2.6rem);
  margin-bottom: 10px;
  color: #0f172a;
}

.page-subtitle {
  max-width: 680px;
  color: #4b5563;
  font-size: 0.98rem;
}

.section h2 {
  font-size: 1.6rem;
  margin-bottom: 6px;
  color: #0f172a;
}

.section-subtitle {
  color: #6b7280;
  font-size: 0.95rem;
  margin-bottom: 18px;
}

/* Overview cards */

.overview-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1.2fr);
  gap: 18px;
  margin-top: 22px;
}

.overview-card {
  padding: 20px 20px 22px;
  border-radius: 18px;
  border: 1px solid rgba(191, 219, 254, 0.9);
  background: radial-gradient(circle at top left, #e0f2fe 0, #ffffff 55%);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.06);
}

.overview-card h2 {
  font-size: 1.1rem;
  margin-bottom: 8px;
  color: #0f172a;
}

.overview-card p {
  font-size: 0.94rem;
  color: #4b5563;
}

.overview-card ul {
  padding-left: 18px;
  margin-top: 6px;
  font-size: 0.94rem;
  color: #4b5563;
}

.overview-card li {
  margin-bottom: 4px;
}

/* Service cards */

.service-card {
  margin-top: 18px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 18px;
  padding: 20px 22px;
  border-radius: 22px;
  background: #ffffff;
  border: 1px solid rgba(209, 213, 219, 0.9);
  cursor: pointer;
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.08);
  transition: transform 0.15s ease, box-shadow 0.15s ease,
    border-color 0.15s ease, background 0.15s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 26px 55px rgba(15, 23, 42, 0.15);
  border-color: rgba(59, 130, 246, 0.7);
  background: radial-gradient(circle at top left, #eff6ff 0, #ffffff 55%);
}

.service-icon {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  background: radial-gradient(circle at 20% 0, #0ea5e9 0, #0369a1 40%, #0f172a 100%);
  font-size: 1.9rem;
  color: #f9fafb;
}

.service-content h3 {
  font-size: 1.18rem;
  margin-bottom: 6px;
  color: #0f172a;
}

.service-content p {
  font-size: 0.95rem;
  color: #4b5563;
  margin-bottom: 10px;
}

.service-list {
  margin-bottom: 14px;
  padding-left: 18px;
  font-size: 0.9rem;
  color: #6b7280;
}

.service-list li {
  margin-bottom: 4px;
}

/* Buttons */

.primary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 20px;
  border-radius: 999px;
  border: none;
  background: linear-gradient(135deg, #0369a1, #0ea5e9);
  color: white;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 14px 30px rgba(59, 130, 246, 0.5);
  transition: transform 0.1s ease, box-shadow 0.15s ease,
    filter 0.1s ease, background 0.15s ease;
  text-decoration: none;
}

.primary-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 40px rgba(37, 99, 235, 0.65);
  filter: brightness(1.03);
}

.primary-btn:active {
  transform: translateY(0);
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.55);
  filter: brightness(0.98);
}

.open-site-btn {
  color: #ffffff;
}

/* Blog links section */

.blog-link-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.blog-link-card {
  display: block;
  padding: 16px 18px;
  border-radius: 16px;
  background: #ffffff;
  border: 1px solid rgba(209, 213, 219, 0.9);
  text-decoration: none;
  color: inherit;
  box-shadow: 0 16px 35px rgba(15, 23, 42, 0.06);
  transition: transform 0.15s ease, box-shadow 0.15s ease,
    border-color 0.15s ease, background 0.15s ease;
}

.blog-link-card h3 {
  font-size: 1rem;
  margin-bottom: 4px;
  color: #0f172a;
}

.blog-link-card p {
  font-size: 0.9rem;
  color: #4b5563;
}

.blog-link-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 48px rgba(15, 23, 42, 0.14);
  border-color: rgba(96, 165, 250, 0.9);
  background: radial-gradient(circle at top left, #eff6ff 0, #ffffff 55%);
}

/* Footer */

.page-footer {
  max-width: 1120px;
  margin: 0 auto 20px;
  padding: 12px 20px 0;
  text-align: left;
  font-size: 0.82rem;
  color: #6b7280;
}

/* MODAL MINI VIEW */

.hidden {
  display: none !important;
}

.overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  justify-content: center;
  align-items: center;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(4px);
}

.modal-window {
  position: relative;
  width: 80%;
  max-width: 1100px;
  height: 80%;
  background: #ffffff;
  border-radius: 18px;
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.25);
  overflow: hidden;
  animation: modalPop 0.25s ease-out;
}

@keyframes modalPop {
  from { transform: scale(0.92); opacity: 0; }
  to   { transform: scale(1);    opacity: 1; }
}

.close-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 20px;
  background: #ffffff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  padding: 5px 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  z-index: 5;
}

.modal-iframe {
  width: 100%;
  height: 100%;
  border: none;
  background: #f3f4f6;
}

/* Responsive */

@media (max-width: 900px) {
  .overview-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 700px) {
  .main-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding-bottom: 12px;
  }

  .top-nav {
    width: 100%;
  }

  .service-card {
    grid-template-columns: 1fr;
  }

  .service-icon {
    justify-content: flex-start;
  }

  .page {
    padding-top: 110px;
  }

  .modal-window {
    width: 94%;
    height: 80%;
  }
}
