/* =====================================================
   COMPONENTS.CSS
===================================================== */

/* -------------------------
   Header
------------------------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-h);
  z-index: 1200;
  display: flex;
  align-items: center;
  transition: background .35s ease, box-shadow .35s ease, backdrop-filter .35s ease;
}

.site-header.scrolled {
  background: rgba(7, 14, 28, 0.92);
  backdrop-filter: blur(14px);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.25);
}

.header-inner {
  width: min(var(--container), calc(100% - 56px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
}

.logo {
  height: 44px;
  width: auto;
  transition: all .35s ease;
}

.site-header.scrolled .logo {
  height: 36px;
}

/* -------------------------
   Menu Button
------------------------- */
.menu-btn {
  width: 40px;
  height: 28px;
  position: relative;
  z-index: 1600;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.menu-btn span {
  display: block;
  width: 100%;
  height: 2.5px;
  background: #fff;
  border-radius: 999px;
  transition: all .35s ease;
}

.menu-btn.active span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.menu-btn.active span:nth-child(2) {
  opacity: 0;
}

.menu-btn.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

/* -------------------------
   Overlay Menu
------------------------- */
.overlay-menu {
  position: fixed;
  inset: 0;
  z-index: 1500;
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s ease, visibility .3s ease;
}

.overlay-menu.open {
  opacity: 1;
  visibility: visible;
}

.overlay-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.42);
  opacity: 0;
  transition: opacity .35s ease;
}

.overlay-menu.open .overlay-backdrop {
  opacity: 1;
}

.overlay-panel,
.overlay-menu-inner {
  position: absolute;
  top: 0;
  right: 0;
  width: min(44vw, 720px);
  height: 100%;
  background: linear-gradient(180deg, rgba(12, 16, 24, 0.98) 0%, rgba(10, 14, 21, 0.98) 100%);
  color: #fff;
  padding: 60px 58px;
  transform: translateX(100%);
  transition: transform .4s cubic-bezier(0.77, 0, 0.18, 1);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.overlay-menu.open .overlay-panel,
.overlay-menu.open .overlay-menu-inner {
  transform: translateX(0);
}

.menu-close {
  position: absolute;
  top: 16px;
  right: 24px;
  font-size: 50px;
  line-height: 1;
  color: #fff;
  font-weight: 200;
}

.overlay-nav {
  margin-top: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.overlay-nav a {
  width: fit-content;
  font-size: clamp(40px, 4.1vw, 68px);
  line-height: 1.06;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.overlay-nav a.active,
.overlay-nav a:hover {
  color: var(--primary);
  transform: translateX(6px);
}

.overlay-meta {
  position: absolute;
  left: 58px;
  bottom: 24px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.68);
}

/* -------------------------
   Buttons
------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 180px;
  padding: 15px 28px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
  transition: .3s;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-hover));
  color: #fff;
  box-shadow: 0 12px 28px rgba(32, 104, 178, 0.25);
}

.btn-ghost {
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}

.btn-ghost-light {
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  background: transparent;
}

/* -------------------------
   Hero / Sub Hero Common
------------------------- */
.hero,
.sub-hero {
  position: relative;
  overflow: hidden;
  padding-top: var(--header-h);
}

.hero {
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  padding-bottom: 42px;
}

.sub-hero {
  min-height: 68vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-bottom: 28px;
}

.hero-video,
.sub-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-video {
  object-fit: cover;
}

.sub-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(4, 9, 18, 0.18) 0%, rgba(4, 9, 18, 0.36) 26%, rgba(4, 9, 18, 0.68) 62%, rgba(5, 11, 22, 0.94) 100%),
    linear-gradient(90deg, rgba(5, 11, 22, 0.72) 0%, rgba(5, 11, 22, 0.22) 46%, rgba(5, 11, 22, 0.08) 100%),
    radial-gradient(circle at 78% 20%, rgba(32, 104, 178, 0.28), transparent 18%);
}

.sub-hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(4, 9, 18, 0.40) 0%, rgba(4, 9, 18, 0.56) 38%, rgba(5, 11, 22, 0.90) 100%),
    radial-gradient(circle at 72% 22%, rgba(32, 104, 178, 0.22), transparent 20%);
}

.hero-content {
  position: relative;
  z-index: 3;
  width: min(1320px, calc(100% - 48px));
  margin: 0 auto;
  padding-right: 400px;
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.sub-hero-content {
  position: relative;
  z-index: 2;
  width: min(980px, calc(100% - 48px));
  text-align: center;
  padding-top: 18px;
  padding-bottom: 24px;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.88);
}

.hero-kicker::after {
  content: "";
  width: 54px;
  height: 1px;
  background: rgba(255, 255, 255, 0.42);
}

.hero h1 {
  max-width: 820px;
  margin-bottom: 18px;
  font-size: clamp(64px, 9vw, 142px);
  line-height: 0.96;
  font-weight: 900;
  letter-spacing: -0.065em;
  text-shadow: 0 12px 36px rgba(0, 0, 0, 0.2);
}

.sub-hero-content h1 {
  margin-bottom: 18px;
  font-size: clamp(44px, 6vw, 82px);
  line-height: 1.03;
  font-weight: 900;
  letter-spacing: -0.055em;
}

.hero-desc {
  max-width: 700px;
  margin-top: 0;
  margin-bottom: 24px;
  font-size: clamp(17px, 1.35vw, 24px);
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.84);
  text-shadow: 0 6px 24px rgba(0, 0, 0, 0.18);
}

.sub-hero-content .hero-desc {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
  text-shadow: none;
}

.hero-actions {
  margin-top: 0;
  margin-bottom: 20px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-start;
}

.hero-meta {
  margin-top: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 13px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.82);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  backdrop-filter: blur(10px);
}

.hero-side-card {
  position: absolute;
  right: 24px;
  bottom: 64px;
  z-index: 3;
  width: min(330px, calc(100% - 48px));
  padding: 24px 22px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(16px);
}

.hero-side-card strong {
  display: block;
  margin-bottom: 10px;
  font-size: 20px;
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.hero-side-card p {
  margin-bottom: 14px;
  font-size: 14px;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.76);
}

.hero-side-card ul {
  display: grid;
  gap: 8px;
  padding-left: 18px;
  list-style: disc;
}

.hero-side-card li {
  font-size: 14px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.82);
}

.hero-scroll {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero-scroll::after {
  content: "";
  display: block;
  width: 1px;
  height: 34px;
  background: rgba(255, 255, 255, 0.5);
  margin: 10px auto 0;
}

/* -------------------------
   Common Contact Panel
------------------------- */
.contact-panel {
  text-align: center;
  padding: 70px 34px;
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow);
}

.contact-email {
  margin: 24px 0 32px;
  font-size: clamp(24px, 2vw, 38px);
  font-weight: 800;
  color: var(--primary);
}

/* -------------------------
   Modal
------------------------- */
.image-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 40px;
  background: rgba(0, 0, 0, 0.92);
}

.image-modal.open {
  display: flex;
}

.image-modal img {
  max-width: min(1200px, 100%);
  max-height: 90vh;
  border-radius: 16px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
}

.image-modal-close {
  position: absolute;
  top: 18px;
  right: 28px;
  font-size: 56px;
  line-height: 1;
  color: #fff;
  font-weight: 300;
}

/* -------------------------
   Forms
------------------------- */
.contact-form {
  display: grid;
  gap: 16px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.form-field label {
  display: block;
  margin-bottom: 8px;
  font-size: 15px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
}

.form-field input,
.form-field textarea {
  width: 100%;
  padding: 14px 16px;
  font-size: 15px;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  outline: none;
  transition: .25s ease;
}

.form-field input:focus,
.form-field textarea:focus {
  border-color: rgba(32, 104, 178, 0.7);
  background: rgba(255, 255, 255, 0.07);
}

.form-field textarea {
  min-height: 180px;
  resize: vertical;
}

.form-note {
  font-size: 14px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.58);
}

/* =====================================================
   HERO INTERACTION
===================================================== */
.hero-animated .hero-video {
  transform: scale(1.06);
  animation: heroVideoZoomOut 2.2s ease forwards;
}

.hero-animated .hero-overlay {
  opacity: 0;
  animation: heroOverlayFade 1.2s ease forwards;
}

.hero-intro-header {
  opacity: 0;
  transform: translateY(-18px);
}

body.hero-ready .hero-intro-header {
  animation: heroHeaderReveal 0.8s ease 0.2s forwards;
}

.hero-reveal {
  opacity: 0;
  transform: translateY(32px);
  filter: blur(6px);
  will-change: transform, opacity, filter;
}

body.hero-ready .hero-reveal {
  animation: heroRevealUp 0.9s cubic-bezier(.22,1,.36,1) forwards;
}

body.hero-ready .hero-reveal-1 { animation-delay: 0.20s; }
body.hero-ready .hero-reveal-2 { animation-delay: 0.35s; }
body.hero-ready .hero-reveal-3 { animation-delay: 0.48s; }
body.hero-ready .hero-reveal-4 { animation-delay: 0.62s; }
body.hero-ready .hero-reveal-5 { animation-delay: 0.78s; }
body.hero-ready .hero-reveal-6 { animation-delay: 0.94s; }
body.hero-ready .hero-reveal-7 { animation-delay: 1.08s; }

.hero-title {
  display: flex;
  flex-direction: column;
}

.hero-line {
  display: block;
}

.hero-kicker::after {
  transform-origin: left center;
  transform: scaleX(0);
}

body.hero-ready .hero-kicker::after {
  animation: heroLineGrow 0.7s ease 0.45s forwards;
}

body.hero-ready .hero-side-card.hero-reveal {
  animation-name: heroRevealCard;
}

.overlay-menu {
  pointer-events: none;
}

.overlay-menu.open {
  pointer-events: auto;
}

.overlay-backdrop {
  backdrop-filter: blur(0px);
}

.overlay-menu.open .overlay-backdrop {
  animation: overlayBackdropIn 0.35s ease forwards;
}

.overlay-panel,
.overlay-menu-inner {
  box-shadow: -24px 0 60px rgba(0,0,0,0.28);
}

.overlay-nav a,
.overlay-meta,
.menu-close {
  opacity: 0;
  transform: translateY(18px);
}

.overlay-menu.open .menu-close {
  animation: overlayItemIn 0.45s ease 0.10s forwards;
}

.overlay-menu.open .overlay-nav a:nth-child(1) {
  animation: overlayItemIn 0.5s ease 0.18s forwards;
}
.overlay-menu.open .overlay-nav a:nth-child(2) {
  animation: overlayItemIn 0.5s ease 0.26s forwards;
}
.overlay-menu.open .overlay-nav a:nth-child(3) {
  animation: overlayItemIn 0.5s ease 0.34s forwards;
}
.overlay-menu.open .overlay-nav a:nth-child(4) {
  animation: overlayItemIn 0.5s ease 0.42s forwards;
}

.overlay-menu.open .overlay-meta {
  animation: overlayItemIn 0.55s ease 0.50s forwards;
}

@keyframes heroVideoZoomOut {
  from { transform: scale(1.06); }
  to { transform: scale(1); }
}

@keyframes heroOverlayFade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes heroHeaderReveal {
  from {
    opacity: 0;
    transform: translateY(-18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroRevealUp {
  from {
    opacity: 0;
    transform: translateY(32px);
    filter: blur(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

@keyframes heroRevealCard {
  from {
    opacity: 0;
    transform: translateY(28px);
    filter: blur(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

@keyframes heroLineGrow {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

@keyframes overlayBackdropIn {
  from {
    opacity: 0;
    backdrop-filter: blur(0px);
  }
  to {
    opacity: 1;
    backdrop-filter: blur(3px);
  }
}

@keyframes overlayItemIn {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}