:root {
  --navy: #0b1b3b;
  --navy-2: #122a57;
  --orange: #f58220;
  --white: #ffffff;
  --slate: #d5dbe7;
  --ink: #0f172a;
}

* { box-sizing: border-box; }

body {
  font-family: "Sora", sans-serif;
  background: var(--navy);
  color: var(--white);
}

.page-bg {
  position: relative;
  overflow-x: hidden;
}

.page-bg::before,
.page-bg::after {
  content: "";
  position: fixed;
  inset: auto;
  width: 480px;
  height: 480px;
  border-radius: 999px;
  filter: blur(10px);
  opacity: 0.45;
  z-index: -1;
}

.page-bg::before {
  top: -120px;
  right: -140px;
  background: radial-gradient(circle, rgba(245, 130, 32, 0.6), transparent 70%);
}

.page-bg::after {
  bottom: -160px;
  left: -140px;
  background: radial-gradient(circle, rgba(60, 120, 255, 0.45), transparent 70%);
}

h1, h2, h3, h4 {
  font-family: "Space Grotesk", sans-serif;
  letter-spacing: -0.02em;
}

.container-max {
  max-width: 1200px;
}

.glass {
  background: rgba(10, 18, 38, 0.65);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.nav-link {
  position: relative;
  padding-bottom: 6px;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 0;
  background: linear-gradient(90deg, var(--orange), #ffb347);
  transition: width 0.25s ease;
}

.nav-link:hover::after,
.nav-link[aria-current="page"]::after {
  width: 100%;
}

.scroll-indicator {
  position: fixed;
  top: 0;
  left: 0;
  height: 4px;
  width: 100%;
  background: rgba(255, 255, 255, 0.1);
  z-index: 50;
}

.scroll-indicator > span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--orange), #ffb347);
}

.mobile-menu {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, opacity 0.3s ease;
}

.mobile-menu.open {
  max-height: 420px;
  opacity: 1;
}

.scroll-top {
  position: fixed;
  right: 20px;
  bottom: 24px;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: rgba(11, 27, 59, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  display: grid;
  place-items: center;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 60;
}

.scroll-top.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.hero {
  position: relative;
  min-height: 85vh;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top left, rgba(245, 130, 32, 0.35), transparent 45%),
    radial-gradient(circle at bottom right, rgba(74, 123, 255, 0.25), transparent 55%);
  z-index: 1;
}

.hero-slides {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: opacity 1s ease;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(6, 12, 28, 0.86), rgba(6, 12, 28, 0.55));
  z-index: 1;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.parallax {
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
  will-change: background-position;
}

@media (max-width: 768px) {
  .parallax {
    background-attachment: scroll;
  }
}

.section-divider {
  background: linear-gradient(90deg, rgba(245, 130, 32, 0.9), rgba(255, 255, 255, 0));
  height: 2px;
}

.card-glow {
  position: relative;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.card-glow::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top left, rgba(245, 130, 32, 0.25), transparent 60%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.card-glow:hover::after {
  opacity: 1;
}

.card-glow::before {
  content: "";
  position: absolute;
  inset: -40%;
  background: conic-gradient(from 180deg, transparent, rgba(255, 255, 255, 0.12), transparent 40%);
  transform: translateX(-60%);
  transition: transform 0.6s ease;
  opacity: 0;
}

.card-glow:hover::before {
  transform: translateX(20%);
  opacity: 1;
}

.card-glow:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 50px rgba(5, 8, 18, 0.45);
  border-color: rgba(245, 130, 32, 0.35);
}

.card-glow > * {
  position: relative;
  z-index: 1;
}

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(5, 8, 18, 0.85);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 80;
}

.lightbox.open {
  display: flex;
}

.lightbox img {
  max-width: min(1100px, 90vw);
  max-height: 80vh;
  border-radius: 16px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.45);
}

.gallery-thumb {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: 16px;
}

.lightbox-nav,
.lightbox-close {
  position: absolute;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(10, 18, 38, 0.7);
  color: #fff;
  font-size: 22px;
  line-height: 1;
  display: grid;
  place-items: center;
  transition: background 0.2s ease, transform 0.2s ease;
}

.lightbox-close {
  top: 20px;
  right: 20px;
}

.lightbox-counter {
  position: absolute;
  top: 22px;
  left: 22px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(10, 18, 38, 0.75);
  color: #fff;
  font-size: 13px;
  letter-spacing: 0.02em;
}

.lightbox-nav:hover,
.lightbox-close:hover {
  background: rgba(245, 130, 32, 0.85);
  transform: scale(1.05);
}

.lightbox-prev {
  left: 22px;
}

.lightbox-next {
  right: 22px;
}

@media (max-width: 640px) {
  .gallery-thumb {
    height: 220px;
  }

  .lightbox-nav {
    bottom: 22px;
    top: auto;
  }

  .lightbox-counter {
    top: 18px;
    left: 50%;
    transform: translateX(-50%);
  }

  .lightbox-prev {
    left: calc(50% - 58px);
  }

  .lightbox-next {
    right: calc(50% - 58px);
  }
}

.abstract-bg {
  position: relative;
}

.abstract-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(245, 130, 32, 0.25), transparent 40%),
    radial-gradient(circle at 80% 0%, rgba(0, 102, 255, 0.2), transparent 45%),
    radial-gradient(circle at 90% 80%, rgba(245, 130, 32, 0.18), transparent 45%);
  opacity: 0.8;
  pointer-events: none;
}

.abstract-bg > * {
  position: relative;
  z-index: 1;
}

.footer-grid {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.9), rgba(10, 18, 38, 0.9));
}

.footer-link {
  position: relative;
  display: inline-block;
  padding-bottom: 2px;
}

.footer-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 0;
  background: linear-gradient(90deg, var(--orange), #ffb347);
  transition: width 0.25s ease;
}

.footer-link:hover::after {
  width: 100%;
}

.button-primary {
  background: linear-gradient(90deg, var(--orange), #ffb347);
  color: var(--navy);
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 12px 24px rgba(245, 130, 32, 0.25);
}

.button-primary::after,
.btn-outline::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.35), transparent 55%);
  transform: translateX(-120%);
  transition: transform 0.35s ease;
}

.button-primary:hover,
.btn-outline:hover {
  transform: translateY(-2px) scale(1.01);
  box-shadow: 0 18px 34px rgba(245, 130, 32, 0.35);
}

.button-primary:hover::after,
.btn-outline:hover::after {
  transform: translateX(0);
}

.button-primary:active,
.btn-outline:active {
  transform: translateY(0);
  box-shadow: 0 10px 18px rgba(245, 130, 32, 0.25);
}

.btn-outline {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #fff;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.badge {
  background: rgba(245, 130, 32, 0.18);
  color: #ffd9b0;
  border: 1px solid rgba(245, 130, 32, 0.4);
}

.form-input {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--white);
}

.form-input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.contact-message {
  margin: 0;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 0.9rem;
  border: 1px solid transparent;
}

.contact-message.success {
  color: #bbf7d0;
  background: rgba(34, 197, 94, 0.15);
  border-color: rgba(134, 239, 172, 0.5);
}

.contact-message.error {
  color: #fecaca;
  background: rgba(239, 68, 68, 0.15);
  border-color: rgba(252, 165, 165, 0.5);
}

.hero-media-grid img {
  border-radius: 18px;
  box-shadow: 0 25px 45px rgba(0, 0, 0, 0.35);
}

.home-gallery-card {
  will-change: transform;
}

.home-gallery-image {
  background: #ffffff;
  padding: 10px;
}
