/* css/styles.css */

html { overflow-x: hidden; }

/* ===================== ANIMATED BACKGROUND ===================== */
.bg-animated {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.bg-depth {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #000833 0%, #002266 30%, #0044bb 60%, #002266 80%, #000833 100%);
  mix-blend-mode: multiply;
  opacity: 0.85;
}

@keyframes move-stripes {
  0%   { transform: translate(0, 0); }
  100% { transform: translate(59px, 59px); }
}

.bg-stripes {
  position: absolute;
  inset: -100px;
  background-image: repeating-linear-gradient(
    -45deg,
    transparent           0px,
    transparent           14px,
    rgba(0, 51, 180, 0.50) 14px,
    rgba(0, 51, 180, 0.50) 20px,
    transparent           20px,
    transparent           34px,
    rgba(0, 34, 130, 0.30) 34px,
    rgba(0, 34, 130, 0.30) 40px,
    transparent           40px,
    transparent           56px,
    rgba(0, 40, 153, 0.18) 56px,
    rgba(0, 40, 153, 0.18) 62px,
    transparent           62px,
    transparent           76px,
    rgba(0, 51, 180, 0.40) 76px,
    rgba(0, 51, 180, 0.40) 83px
  );
  animation: move-stripes 12s linear infinite;
}

.bg-fade {
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg,
    rgba(0,0,22,0.65) 0%,
    rgba(0,0,22,0.10) 35%,
    rgba(0,0,22,0.00) 55%,
    rgba(0,0,22,0.55) 100%
  );
}

.bg-vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 120% 120% at 55% 50%, transparent 30%, rgba(0,0,17,0.75) 100%);
}

/* ===================== CUSTOM SCROLLBAR ===================== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #000022; }
::-webkit-scrollbar-thumb {
  background: #4488ff;
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover { background: #6699ff; }

/* ===================== BUTTONS ===================== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #4488ff;
  color: #fff;
  font-weight: 600;
  padding: 14px 32px;
  border-radius: 50px;
  border: 2px solid rgba(255,255,255,0.7);
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}
.btn-primary:hover {
  box-shadow: 0 0 20px rgba(68,136,255,0.6), 0 8px 24px rgba(0,0,0,0.4);
  transform: translateY(-2px);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  background: transparent;
  color: #fff;
  font-weight: 600;
  padding: 13px 31px;
  border-radius: 50px;
  border: 2px solid rgba(255,255,255,0.8);
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}
.btn-outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: #fff;
  transform: translateY(-2px);
}

/* ===================== SECTION DIVIDERS ===================== */
.section-divider {
  height: 3px;
  background: linear-gradient(to right, transparent, rgba(68,136,255,0.95) 30%, rgba(68,136,255,0.95) 70%, transparent);
}

/* ===================== CARDS ===================== */
.glass-card {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle 180px at var(--mouse-x, -200%) var(--mouse-y, -200%), rgba(68,136,255,0.10), transparent 70%),
    rgba(0,10,40,0.75);
  border: 1.5px solid rgba(255,255,255,0.38);
  border-radius: 12px;
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.15);
  transition: all 0.3s ease;
}
.glass-card:hover {
  border-color: rgba(255,255,255,0.72);
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.6), inset 0 1px 0 rgba(255,255,255,0.2);
}
.glass-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,0.06) 50%, transparent 60%);
  transition: left 0.6s ease;
  pointer-events: none;
  z-index: 1;
}
.glass-card:hover::after {
  left: 160%;
}
.card-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.30;
  z-index: 0;
  transition: opacity 0.3s ease, transform 0.6s ease;
  border-radius: 10px;
}
.glass-card:hover .card-bg-img {
  opacity: 0.40;
  transform: scale(1.05);
}
.card-content {
  position: relative;
  z-index: 2;
}

/* ===================== SECTION TITLES ===================== */
.section-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  line-height: 1.2;
}
.section-subtitle {
  color: rgba(255,255,255,0.6);
  font-size: 1.05rem;
  margin-top: 12px;
}
.accent-line {
  width: 56px;
  height: 3px;
  background: #4488ff;
  border-radius: 2px;
  margin: 16px 0;
}

/* ===================== HERO PHOTOS ===================== */
.hero-photos > div {
  border: 1.5px solid rgba(255,255,255,0.38);
  box-shadow: 0 8px 32px rgba(0,0,0,0.5);
}

/* ===================== NAVBAR ===================== */
.navbar {
  background: rgba(0, 0, 34, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(68,136,255,0.15);
}

/* ===================== NAVBAR SCROLLED ===================== */
.navbar.scrolled {
  background: rgba(0, 0, 34, 0.97);
  border-bottom-color: rgba(68,136,255,0.3);
  box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}


/* ===================== FORM ===================== */
.form-input {
  background: rgba(0,34,102,0.3);
  border: 1px solid rgba(68,136,255,0.2);
  border-radius: 8px;
  padding: 12px 16px;
  color: #fff;
  font-size: 15px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  font-family: inherit;
}
.form-input::placeholder { color: rgba(255,255,255,0.3); }
.form-input:focus {
  border-color: #4488ff;
  box-shadow: 0 0 0 3px rgba(68,136,255,0.15);
}

/* ===================== MOBILE MENU ===================== */
.mobile-menu {
  display: none;
  position: fixed;
  top: 73px;
  left: 0;
  right: 0;
  background: rgba(0, 0, 34, 0.97);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(68,136,255,0.2);
  padding: 20px 24px 24px;
  z-index: 49;
}
.mobile-menu.open {
  display: block;
}
.mobile-menu-link {
  display: block;
  padding: 12px 0;
  color: rgba(255,255,255,0.75);
  font-size: 1rem;
  font-weight: 500;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  transition: color 0.2s;
}
.mobile-menu-link:hover { color: #fff; }

/* Hamburger → X animation */
.mobile-menu-btn-open .hamburger-line:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.mobile-menu-btn-open .hamburger-line:nth-child(2) {
  opacity: 0;
}
.mobile-menu-btn-open .hamburger-line:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* ===================== FAQ ===================== */
.faq-item {
  overflow: hidden;
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  -webkit-appearance: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  font-weight: 600;
  font-size: 1rem;
  color: #fff;
  user-select: none;
}
.faq-question:hover { color: #4488ff; }
.faq-icon {
  transition: transform 0.3s ease;
}
.faq-item[open] .faq-icon {
  transform: rotate(180deg);
}
.faq-answer {
  padding: 0 24px 20px;
  color: rgba(255,255,255,0.65);
  font-size: 0.95rem;
  line-height: 1.7;
  margin: 0;
}

/* ===================== HERO SWIPER BUTTONS ===================== */
.hero-prev,
.hero-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s;
}
.hero-prev { left: 16px; }
.hero-next { right: 16px; }
.hero-prev:hover,
.hero-next:hover { background: rgba(68,136,255,0.7); }
.hero-prev svg,
.hero-next svg { width: 20px; height: 20px; }

/* ===================== PROJECT SWIPERS ===================== */
.proj-prev,
.proj-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(0,0,0,0.45);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: background 0.2s;
}
.proj-prev { left: 10px; }
.proj-next { right: 10px; }
.proj-prev:hover,
.proj-next:hover { background: rgba(68,136,255,0.7); }
.proj-prev svg,
.proj-next svg { width: 16px; height: 16px; }
[class*="project-swiper-"] { height: 300px; padding-bottom: 0 !important; }
[class*="project-swiper-"] .swiper-slide { height: 300px !important; }
[class*="project-swiper-"] .swiper-slide a {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: #0a0f1e;
  width: 100% !important;
  height: 100% !important;
}
[class*="project-swiper-"] .swiper-slide a img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}
.proj-pagination { bottom: 10px !important; }
.proj-pagination .swiper-pagination-bullet {
  background: rgba(255,255,255,0.45);
  width: 8px;
  height: 8px;
}
.proj-pagination .swiper-pagination-bullet-active {
  background: #4488ff;
  width: 22px;
  border-radius: 4px;
}


/* ===================== REDUCED MOTION ===================== */
@media (prefers-reduced-motion: reduce) {
  .bg-stripes { animation: none; }
  .glass-card:hover { transform: none; }
  .glass-card::after { display: none; }
  .glass-card { background: rgba(0,10,40,0.75) !important; }
  .btn-primary:hover, .btn-outline:hover { transform: none; }
  .faq-icon { transition: none; }
}

/* ===================== PROMO DASHED CARD ===================== */
.promo-dashed { border: 2px dashed rgba(68,136,255,0.4) !important; }

/* ===================== PRIVACY LINK ===================== */
#privacy-link { text-decoration: underline; cursor: pointer; }

/* ===================== PRIVACY MODAL ===================== */
#privacy-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(0,0,0,0.7);
}

#privacy-overlay {
  position: absolute;
  inset: 0;
}

.privacy-content {
  position: relative;
  max-width: 640px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  padding: 32px;
  z-index: 10000;
}
