* {
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

html {
  scroll-behavior: smooth;
}

body.projects-page {
  margin: 0;
  background: #f8fafc;
  color: #0f172a;
  overflow-x: hidden;
}

:root {
  --primary: #262871;
  --secondary: #6c385e;
  --gradient: linear-gradient(135deg, #262871, #46307b, #6c385e);
}

.navbar-spacer {
  height: var(--navbar-height-desktop);
}

.projects-page .hero {
  position: relative;
  min-height: calc(100vh - var(--navbar-height-desktop));
  display: flex;
  align-items: center;
  padding: 80px 0;
  overflow: hidden;
  background: var(--gradient);
  color: #fff;
}

.projects-page .hero::before,
.projects-page .hero::after {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  content: "";
  pointer-events: none;
}

.projects-page .hero::before {
  top: -250px;
  right: -250px;
  width: 750px;
  height: 750px;
}

.projects-page .hero::after {
  bottom: -180px;
  left: -180px;
  width: 450px;
  height: 450px;
}

.projects-page .hero-title {
  max-width: 760px;
  font-size: clamp(3rem, 5.5vw, 4.6rem);
  font-weight: 800;
  line-height: 1.12;
  overflow-wrap: anywhere;
}

.projects-page .hero-text {
  max-width: 700px;
  font-size: clamp(1rem, 1.4vw, 1.25rem);
  line-height: 1.9;
  opacity: 0.93;
}

.projects-page .hero .btn {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.projects-page .glass {
  min-width: 0;
  padding: 30px;
  border: 1px solid rgba(38, 40, 113, 0.1);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 12px 35px rgba(15, 23, 42, 0.07);
  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease;
}

.projects-page .hero .glass {
  border-color: rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.02);
  box-shadow: none;
  backdrop-filter: blur(18px);
}

.projects-page .glass:hover {
  transform: translateY(-8px);
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
}

.projects-page .hero .glass:hover {
  box-shadow: none;
}

.projects-page .btn-primary-custom {
  border: 0;
  border-radius: 50px;
  background: var(--primary);
  color: #fff;
  font-weight: 600;
}

.projects-page .hero .btn-primary-custom {
  background: #fff;
  color: var(--primary);
}

.projects-page .btn-outline-custom {
  border: 0;
  border-radius: 50px;
  background: var(--primary);
  color: #fff;
  font-weight: 600;
}
.projects-page .hero .btn-outline-custom {
  background: #fff;
  color: var(--primary);
}

.projects-page img {
  max-width: 100%;
  height: auto;
}

.projects-page section {
  overflow: hidden;
}

.projects-page #topBtn {
  z-index: 1000;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition:
    opacity 0.25s ease,
    visibility 0.25s ease,
    transform 0.25s ease;
}

.projects-page #topBtn.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

@media (max-width: 1199px) {
  .projects-page .hero {
    min-height: auto;
    padding: 72px 0;
  }

  .projects-page section.py-32 {
    padding-top: 96px;
    padding-bottom: 96px;
  }
}

@media (max-width: 992px) {
  .navbar-spacer {
    height: var(--navbar-height-tablet);
  }

  .projects-page .hero {
    text-align: center;
  }

  .projects-page .hero-text {
    margin-right: auto;
    margin-left: auto;
  }

  .projects-page .hero .flex.flex-wrap {
    justify-content: center;
  }

  .projects-page .hero > div > .grid {
    gap: 56px;
  }
}

@media (max-width: 767px) {
  .projects-page .hero,
  .projects-page section.py-24,
  .projects-page section.py-32 {
    padding-top: 72px;
    padding-bottom: 72px;
  }

  .projects-page .hero {
    text-align: left;
  }

  .projects-page .hero-title,
  .projects-page section .text-6xl,
  .projects-page section .text-5xl {
    font-size: clamp(2.15rem, 10vw, 3rem);
    line-height: 1.15;
  }

  .projects-page section .text-4xl {
    font-size: clamp(1.85rem, 8vw, 2.4rem);
    line-height: 1.2;
  }

  .projects-page .hero-text {
    margin-left: 0;
  }

  .projects-page .hero .flex.flex-wrap {
    justify-content: flex-start;
  }

  .projects-page .hero .grid.grid-cols-2,
  .projects-page section .grid.grid-cols-2 {
    grid-template-columns: 1fr;
  }

  .projects-page .hero .glass.mt-12 {
    margin-top: 0;
  }

  .projects-page .glass {
    padding: 24px;
  }

  .projects-page .text-center.mb-20 {
    margin-bottom: 48px;
  }

  .projects-page .space-y-20 > :not([hidden]) ~ :not([hidden]) {
    margin-top: 64px;
  }

  .projects-page .mt-8.flex.gap-4,
  .projects-page section .flex.flex-wrap {
    flex-direction: column;
    align-items: stretch;
  }

  .projects-page .mt-8.flex.gap-4 .btn,
  .projects-page section .flex.flex-wrap .btn {
    width: 100%;
  }

  .projects-page footer .grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .navbar-spacer {
    height: var(--navbar-height-mobile);
  }

  .projects-page .hero,
  .projects-page section.py-24,
  .projects-page section.py-32 {
    padding-top: 60px;
    padding-bottom: 60px;
  }

  .projects-page .hero > div,
  .projects-page section > div,
  .projects-page footer > div {
    padding-right: 18px;
    padding-left: 18px;
  }

  .projects-page .uppercase.tracking-\[6px\],
  .projects-page .uppercase.tracking-\[5px\] {
    letter-spacing: 0.16em;
  }

  .projects-page #topBtn {
    right: 16px;
    bottom: 16px;
  }
}

@media (max-width: 380px) {
  .projects-page .hero > div,
  .projects-page section > div,
  .projects-page footer > div {
    padding-right: 14px;
    padding-left: 14px;
  }

  .projects-page .glass {
    padding: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .projects-page *,
  .projects-page *::before,
  .projects-page *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
