/* Custom Font: Interphases */
@font-face {
  font-family: 'Interphases';
  src: url('./fonts/interphases_regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Interphases';
  src: url('./fonts/interphases_medium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Interphases';
  src: url('./fonts/interphases_demibold.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Interphases';
  src: url('./fonts/interphases_bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Interphases';
  src: url('./fonts/interphases_extrabold.ttf') format('truetype');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

*::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

html,
body {
  width: 100%;
  min-height: 100vh;
  background-color: #0c0d10;
  color: #ffffff;
  overflow-x: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
  font-family: 'Interphases', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Fixed Site Background Texture Layer */
.site-background {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  background-image: url('./new_bg.jpg');
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  z-index: 0;
  pointer-events: none;
  will-change: transform;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

/* Navigation Bar (Centered Frosted Glass Pill) */
.navbar {
  position: fixed;
  top: 32px;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 100;
  pointer-events: none;
}

.nav-pill-bar {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  border-radius: 9999px;
  border: none;
  outline: none;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
  pointer-events: auto;
  user-select: none;
}

/* Sliding active indicator with smooth spring transition */
.nav-pill-indicator {
  position: absolute;
  top: 6px;
  left: 0;
  height: calc(100% - 12px);
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 9999px;
  border: none;
  outline: none;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
  pointer-events: none;
  transform: translateX(0);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              width 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.2s ease;
  z-index: 1;
}

.nav-pill-btn {
  position: relative;
  z-index: 2;
  font-family: 'Interphases', -apple-system, sans-serif;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  padding: 10px 24px;
  border-radius: 9999px;
  border: none;
  outline: none;
  color: rgba(255, 255, 255, 0.6);
  background: transparent;
  transition: color 0.25s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.15s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  letter-spacing: -0.01em;
  line-height: 1;
  white-space: nowrap;
}

.nav-pill-btn:hover {
  color: #ffffff;
}

.nav-pill-btn.active {
  color: #ffffff;
}

.nav-pill-btn:active {
  transform: scale(0.96);
}

.hero-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100vw;
  min-height: 100vh;
  background-color: transparent;
  overflow-x: hidden;
  position: relative;
  z-index: 1;
  padding-bottom: 32px;
}

.hero-image-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 100vh;
  position: relative;
}

.hero-image {
  width: 100%;
  height: 100%;
  max-height: 100vh;
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
  display: block;
}

/* YouTube Client Marquee */
.marquee-section {
  width: 100%;
  position: relative;
  z-index: 10;
  padding: 52px 0 28px 0;
}

/* Gallery Section (3D Fanned Overlapping Cards from Reference) */
.gallery-section {
  width: 100%;
  position: relative;
  z-index: 10;
  padding: 40px 0 70px 0;
  overflow-x: clip;
  overflow-y: visible;
  perspective: 1200px;
}

.gallery-arch {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  width: 100%;
  max-width: 1360px;
  margin: 0 auto;
  padding: 24px 24px 70px 24px;
  position: relative;
}

.gallery-card {
  --card-w: 245px;
  --card-h: 330px;
  --card-hover-w: 620px;
  --card-hover-h: 348.75px; /* Exact 16:9 ratio: 620 * 9 / 16 */
  --card-margin: -20px;
  --card-hover-margin: 16px;
  --card-radius: 28px;
  --card-hover-radius: 20px;

  display: block;
  text-decoration: none;
  width: var(--card-w);
  height: var(--card-h);
  border-radius: var(--card-radius);
  overflow: hidden;
  background-color: #141414;
  border: none;
  outline: none;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), 0 6px 18px rgba(0, 0, 0, 0.5);
  position: relative;
  flex-shrink: 0;
  margin: 0 var(--card-margin);
  user-select: none;
  cursor: pointer;
  transform-origin: center bottom;
  will-change: width, height, transform, margin, box-shadow, border-radius;
  transition: width 0.55s cubic-bezier(0.16, 1, 0.3, 1),
              height 0.55s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.55s cubic-bezier(0.16, 1, 0.3, 1),
              margin 0.55s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.55s cubic-bezier(0.16, 1, 0.3, 1),
              border-radius 0.55s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.55s cubic-bezier(0.16, 1, 0.3, 1),
              filter 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}

/* 5-Card Fanned Stepped Arc Formation */
.gallery-card.card-far-left,
.gallery-card:nth-child(1) {
  transform: translateY(52px) rotate(-6deg) scale(0.92);
  z-index: 1;
  opacity: 0.58;
  filter: brightness(0.48) contrast(0.92);
}

.gallery-card.card-mid-left,
.gallery-card:nth-child(2) {
  transform: translateY(20px) rotate(-3deg) scale(0.97);
  z-index: 2;
  opacity: 0.88;
  filter: brightness(0.84);
}

.gallery-card.card-center,
.gallery-card:nth-child(3) {
  transform: translateY(0px) rotate(0deg) scale(1.03);
  z-index: 5;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.9), 0 8px 24px rgba(0, 0, 0, 0.6);
  opacity: 1;
  filter: brightness(1);
}

.gallery-card.card-mid-right,
.gallery-card:nth-child(4) {
  transform: translateY(20px) rotate(3deg) scale(0.97);
  z-index: 2;
  opacity: 0.88;
  filter: brightness(0.84);
}

.gallery-card.card-far-right,
.gallery-card:nth-child(5) {
  transform: translateY(52px) rotate(6deg) scale(0.92);
  z-index: 1;
  opacity: 0.58;
  filter: brightness(0.48) contrast(0.92);
}

/* Smooth Morph Expansion to Full-Width 16:9 Original on Hover or Active Touch */
.gallery-card:hover,
.gallery-card.expanded {
  width: var(--card-hover-w);
  height: var(--card-hover-h);
  border-radius: var(--card-hover-radius);
  margin: 0 var(--card-hover-margin);
  transform: translateY(-24px) rotate(0deg) scale(1) !important;
  z-index: 100 !important;
  border: none !important;
  outline: none !important;
  box-shadow: 0 36px 95px rgba(0, 0, 0, 0.95), 0 10px 30px rgba(0, 0, 0, 0.6) !important;
  opacity: 1 !important;
  filter: none !important;
}

/* Non-hovered sibling cards step back and dim smoothly to highlight the expanded card */
.gallery-arch:has(.gallery-card:hover) .gallery-card:not(:hover),
.gallery-arch:has(.gallery-card.expanded) .gallery-card:not(.expanded) {
  opacity: 0.42;
  filter: brightness(0.68) saturate(0.85);
}

.gallery-arch:has(.gallery-card:hover) .gallery-card.card-far-left:not(:hover),
.gallery-arch:has(.gallery-arch:hover) .gallery-card.card-far-right:not(:hover),
.gallery-arch:has(.gallery-card.expanded) .gallery-card.card-far-left:not(.expanded),
.gallery-arch:has(.gallery-card.expanded) .gallery-card.card-far-right:not(.expanded) {
  opacity: 0.3;
  filter: brightness(0.38) saturate(0.8);
}

.gallery-arch:has(.gallery-card:hover) .gallery-card.card-far-left:not(:hover),
.gallery-arch:has(.gallery-card.expanded) .gallery-card.card-far-left:not(.expanded) {
  transform: translateY(64px) rotate(-8deg) scale(0.88);
}

.gallery-arch:has(.gallery-card:hover) .gallery-card.card-mid-left:not(:hover),
.gallery-arch:has(.gallery-card.expanded) .gallery-card.card-mid-left:not(.expanded) {
  transform: translateY(30px) rotate(-4deg) scale(0.92);
}

.gallery-arch:has(.gallery-card:hover) .gallery-card.card-center:not(:hover),
.gallery-arch:has(.gallery-card.expanded) .gallery-card.card-center:not(.expanded) {
  transform: translateY(12px) rotate(0deg) scale(0.95);
}

.gallery-arch:has(.gallery-card:hover) .gallery-card.card-mid-right:not(:hover),
.gallery-arch:has(.gallery-card.expanded) .gallery-card.card-mid-right:not(.expanded) {
  transform: translateY(30px) rotate(4deg) scale(0.92);
}

.gallery-arch:has(.gallery-card:hover) .gallery-card.card-far-right:not(:hover),
.gallery-arch:has(.gallery-card.expanded) .gallery-card.card-far-right:not(.expanded) {
  transform: translateY(64px) rotate(8deg) scale(0.88);
}

.gallery-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
  border: none;
  outline: none;
  transition: transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-card:hover .gallery-thumb,
.gallery-card.expanded .gallery-thumb {
  transform: scale(1.015);
}

.marquee-wrapper {
  display: flex;
  overflow: hidden;
  user-select: none;
  width: 100%;
  mask-image: linear-gradient(to right, transparent, black 6%, black 94%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 6%, black 94%, transparent);
}

.marquee-track {
  display: flex;
  align-items: center;
  gap: 20px;
  padding-right: 20px;
  flex-shrink: 0;
  animation: marquee-scroll 48s linear infinite;
  will-change: transform;
}

@keyframes marquee-scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-100%);
  }
}

/* Card Design Matching Website Accent (#0f0f0f Frosted Glass) */
.client-card {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 10px 22px 10px 10px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  border-radius: 18px;
  border: none;
  outline: none;
  text-decoration: none;
  color: #ffffff;
  white-space: nowrap;
  flex-shrink: 0;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
  transition: none;
}

.client-card:hover {
  transform: none;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
}

.client-avatar {
  width: 58px;
  height: 58px;
  border-radius: 14px;
  object-fit: cover;
  flex-shrink: 0;
  background-color: #1a1a1a;
  display: block;
}

.client-details {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
}

.client-name {
  font-family: 'Interphases', -apple-system, sans-serif;
  font-size: 16.5px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.client-subs {
  font-family: 'Interphases', -apple-system, sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.2;
}

/* Tablet & Mid-size screens */
@media (max-width: 1024px) {
  .gallery-card {
    --card-w: 195px;
    --card-h: 270px;
    --card-hover-w: 520px;
    --card-hover-h: 292.5px; /* Exact 16:9: 520 * 9 / 16 */
    --card-margin: -16px;
    --card-hover-margin: 12px;
    --card-radius: 24px;
    --card-hover-radius: 18px;
  }
}

@media (max-width: 640px) {
  .navbar {
    top: 20px;
    padding: 0 16px;
  }
  .nav-pill-bar {
    padding: 5px;
    gap: 4px;
  }
  .nav-pill-indicator {
    top: 5px;
    height: calc(100% - 10px);
  }
  .nav-pill-btn {
    font-size: 13px;
    padding: 8px 18px;
  }
  .client-card {
    padding: 8px 18px 8px 8px;
    gap: 12px;
    border-radius: 16px;
  }
  .client-avatar {
    width: 48px;
    height: 48px;
    border-radius: 12px;
  }
  .client-name {
    font-size: 15px;
  }
  .client-subs {
    font-size: 12px;
  }
  .gallery-section {
    padding: 20px 0 60px 0;
  }
  .gallery-arch {
    padding: 10px 12px 50px 12px;
  }
  .gallery-card {
    --card-w: 110px;
    --card-h: 155px;
    --card-hover-w: 320px;
    --card-hover-h: 180px; /* Exact 16:9: 320 * 9 / 16 */
    --card-margin: -10px;
    --card-hover-margin: 8px;
    --card-radius: 16px;
    --card-hover-radius: 14px;
  }
  .gallery-card:nth-child(1) {
    transform: translateY(24px) rotate(-5deg) scale(0.9);
  }
  .gallery-card:nth-child(2) {
    transform: translateY(10px) rotate(-2.5deg) scale(0.95);
  }
  .gallery-card:nth-child(3) {
    transform: translateY(0px) rotate(0deg) scale(1.03);
  }
  .gallery-card:nth-child(4) {
    transform: translateY(10px) rotate(2.5deg) scale(0.95);
  }
  .gallery-card:nth-child(5) {
    transform: translateY(24px) rotate(5deg) scale(0.9);
  }

  /* Mobile Stats Section */
  .stats-section {
    padding: 10px 14px 20px 14px;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .stat-card {
    padding: 24px 10px 22px 10px;
    border-radius: 18px;
  }
  .stat-number {
    font-size: 28px;
    margin-bottom: 8px;
  }
  .stat-label {
    font-size: 10.5px;
    letter-spacing: 0.06em;
  }

  /* Mobile Contact Section */
  .contact-section {
    padding: 14px 14px 28px 14px;
  }
  .contact-card {
    border-radius: 20px;
    padding: 46px 18px 42px 18px;
  }
  .contact-title {
    margin-bottom: 14px;
  }
  .contact-subtitle {
    font-size: 13px;
    margin-bottom: 22px;
  }
  .contact-work-btn {
    padding: 12px 24px;
    font-size: 11px;
  }
}

@media (max-width: 900px) and (min-width: 641px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }
  .stat-card {
    padding: 28px 16px 26px 16px;
    border-radius: 20px;
  }
}

/* ==========================================================================
   Key Stats Section
   ========================================================================== */
.stats-section {
  width: 100%;
  position: relative;
  z-index: 10;
  padding: 10px 24px 26px 24px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.stats-container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.stat-card {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  border-radius: 24px;
  padding: 34px 18px 30px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
  border: none;
  outline: none;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), background 0.3s ease, box-shadow 0.3s ease;
  user-select: none;
}

.stat-card:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.11);
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.6);
}

.stat-number {
  font-family: 'Interphases', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: clamp(34px, 4.2vw, 48px);
  font-weight: 800;
  line-height: 1;
  color: #ffffff;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
  display: flex;
  align-items: baseline;
  justify-content: center;
}

.stat-plus {
  color: rgba(255, 255, 255, 0.65);
  font-weight: 700;
  margin-left: 2px;
}

.stat-label {
  font-family: 'Interphases', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: clamp(11px, 1.1vw, 12.5px);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.62);
  line-height: 1.35;
}

/* ==========================================================================
   Contact Section (Faithfully matching Reference Design)
   ========================================================================== */
.contact-section {
  width: 100%;
  position: relative;
  z-index: 10;
  padding: 20px 24px 40px 24px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.contact-card-wrapper {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
}

.contact-card {
  width: 100%;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  color: #ffffff;
  border-radius: 28px;
  border: none;
  outline: none;
  padding: 72px 32px 68px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55), 0 8px 24px rgba(0, 0, 0, 0.35);
  position: relative;
  overflow: hidden;
}

.contact-title {
  font-family: 'Interphases', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: clamp(54px, 9.5vw, 136px);
  font-weight: 900;
  color: #ffffff;
  letter-spacing: -0.035em;
  line-height: 0.92;
  margin: 0 0 20px 0;
  text-transform: uppercase;
  user-select: none;
}

.contact-subtitle {
  font-family: 'Interphases', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: clamp(13.5px, 1.4vw, 16px);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.55;
  max-width: 440px;
  margin: 0 auto 28px auto;
  text-align: center;
}

.subtitle-break {
  display: block;
}

.contact-work-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  color: #ffffff;
  font-family: 'Interphases', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 12px 30px;
  border-radius: 9999px;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.22);
  outline: none;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.28);
  transition: background-color 0.25s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.25s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.contact-work-btn:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.45);
  transform: translateY(-1.5px);
}

.contact-work-btn:active {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(0);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

/* ==========================================================================
   Contact Popup Modal (Liquid Glass Style from Reference)
   ========================================================================== */
.contact-modal-backdrop {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.76);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              visibility 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              backdrop-filter 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.contact-modal-backdrop.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.contact-modal-dialog {
  position: relative;
  width: 100%;
  max-width: 480px;
  background: radial-gradient(130% 120% at 50% 0%, rgba(255, 255, 255, 0.08) 0%, rgba(16, 18, 24, 0.82) 42%, rgba(7, 8, 11, 0.94) 100%);
  backdrop-filter: blur(48px) saturate(200%);
  -webkit-backdrop-filter: blur(48px) saturate(200%);
  border: none;
  outline: none;
  border-radius: 38px;
  padding: 38px 34px 36px 34px;
  /* Multi-layered refraction caustics without outline stroke */
  box-shadow:
    0 35px 80px -10px rgba(0, 0, 0, 0.88),
    0 12px 32px rgba(0, 0, 0, 0.5),
    inset 0 1.5px 1.5px 0 rgba(255, 255, 255, 0.55),
    inset 0 -16px 32px -8px rgba(255, 255, 255, 0.28),
    inset 0 -1.5px 2px 0 rgba(255, 255, 255, 0.65),
    inset 0 0 40px rgba(255, 255, 255, 0.04);
  color: #ffffff;
  transform: scale(0.92) translateY(20px);
  opacity: 0;
  transition: transform 0.38s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, opacity;
  max-height: 92vh;
  overflow-y: auto;
  scrollbar-width: none;
}

/* Specular ambient liquid glow */
.contact-modal-dialog::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    radial-gradient(ellipse 90% 40% at 50% 0%, rgba(255, 255, 255, 0.2) 0%, transparent 70%),
    radial-gradient(ellipse 85% 35% at 50% 100%, rgba(255, 255, 255, 0.22) 0%, transparent 65%);
  pointer-events: none;
  z-index: 1;
}

.contact-modal-dialog > * {
  position: relative;
  z-index: 2;
}

.contact-modal-dialog::-webkit-scrollbar {
  display: none;
}

.contact-modal-backdrop.active .contact-modal-dialog {
  transform: scale(1) translateY(0);
  opacity: 1;
}

.contact-modal-backdrop.closing {
  opacity: 0;
  visibility: visible;
  pointer-events: none;
}

.contact-modal-backdrop.closing .contact-modal-dialog {
  transform: scale(0.93) translateY(14px);
  opacity: 0;
}

.modal-close-btn {
  position: absolute;
  top: 22px;
  right: 22px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: none;
  outline: none;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.35), 0 4px 12px rgba(0, 0, 0, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.75);
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 3;
}

.modal-close-btn:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  transform: scale(1.08);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.5), 0 6px 18px rgba(0, 0, 0, 0.35);
}

.modal-header {
  margin-bottom: 22px;
  padding-right: 40px;
}

.modal-title {
  font-family: 'Interphases', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: clamp(24px, 3.4vw, 28px);
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.03em;
  margin: 0 0 8px 0;
  line-height: 1.15;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.modal-subtitle {
  font-family: 'Interphases', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.5;
  margin: 0;
}

.discord-fast-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: none;
  outline: none;
  border-radius: 18px;
  padding: 14px 20px;
  text-decoration: none;
  color: #ffffff;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 6px 20px rgba(0, 0, 0, 0.25);
  transition: all 0.24s cubic-bezier(0.16, 1, 0.3, 1);
}

.discord-fast-card:hover {
  background: rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.38), 0 10px 28px rgba(0, 0, 0, 0.35);
  transform: translateY(-1.5px);
}

.discord-card-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.discord-icon {
  color: #ffffff;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.discord-card-title {
  font-family: 'Interphases', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 14px;
  font-weight: 650;
  color: #ffffff;
}

.discord-badge {
  font-family: 'Interphases', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
  background: rgba(255, 255, 255, 0.14);
  border: none;
  outline: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.95);
  padding: 3.5px 8.5px;
  border-radius: 7px;
}

.discord-arrow {
  color: rgba(255, 255, 255, 0.5);
  transition: transform 0.22s ease, color 0.22s ease;
}

.discord-fast-card:hover .discord-arrow {
  transform: translateX(3px);
  color: #ffffff;
}

.modal-divider {
  display: flex;
  align-items: center;
  margin: 22px 0 20px 0;
  gap: 14px;
}

.modal-divider::before,
.modal-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.12), transparent);
}

.modal-divider span {
  font-family: 'Interphases', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.45);
  text-transform: uppercase;
}

.contact-form {
  display: flex;
  flex-direction: column;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 16px;
}

.form-label {
  font-family: 'Interphases', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 12.5px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
  display: flex;
  align-items: center;
  gap: 4px;
}

.required-star {
  color: #ff5252;
}

.form-input,
.form-textarea {
  width: 100%;
  background: rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.13);
  outline: none;
  border-radius: 14px;
  padding: 13px 16px;
  font-family: 'Interphases', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 13.5px;
  color: #ffffff;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.form-input:focus,
.form-textarea:focus {
  border-color: rgba(255, 255, 255, 0.48);
  outline: 2px solid rgba(255, 255, 255, 0.12);
  outline-offset: 1px;
  box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.5);
  background: rgba(0, 0, 0, 0.5);
}

.form-honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contact-form-status {
  margin: 12px 0 0;
  padding: 11px 14px;
  border: 1px solid rgba(255, 115, 115, 0.3);
  border-radius: 12px;
  background: rgba(140, 25, 25, 0.18);
  color: #ffd1d1;
  font-size: 13px;
  line-height: 1.5;
}

.form-textarea {
  resize: vertical;
  min-height: 88px;
  max-height: 180px;
  line-height: 1.5;
}

.form-submit-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  background: #ffffff;
  color: #0b0c10;
  border: none;
  outline: none;
  border-radius: 9999px;
  padding: 14px 24px;
  font-family: 'Interphases', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  margin-top: 6px;
  box-shadow:
    0 8px 24px rgba(0, 0, 0, 0.4),
    inset 0 1px 1px #ffffff,
    inset 0 -1.5px 2px rgba(0, 0, 0, 0.18);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.form-submit-btn:hover {
  background: #ffffff;
  transform: translateY(-1.5px);
  box-shadow:
    0 12px 32px rgba(255, 255, 255, 0.22),
    0 6px 16px rgba(0, 0, 0, 0.4),
    inset 0 1px 1px #ffffff;
}

.form-submit-btn:active {
  transform: translateY(0);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}

.form-submit-btn:disabled {
  cursor: wait;
  opacity: 0.72;
  transform: none;
}

.form-submit-btn:hover .send-icon {
  transform: translate(2px, -2px);
}

.send-icon {
  transition: transform 0.2s ease;
}

.form-success-state {
  text-align: center;
  padding: 24px 12px 12px 12px;
}

.success-icon-wrap {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(34, 197, 94, 0.16);
  border: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 8px 20px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px auto;
}

.form-success-state h4 {
  font-size: 21px;
  font-weight: 750;
  color: #ffffff;
  margin: 0 0 8px 0;
}

.form-success-state p {
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.55;
  margin: 0 0 20px 0;
}

.success-done-btn {
  background: #ffffff;
  color: #0b0c10;
  font-family: 'Interphases', sans-serif;
  font-size: 13px;
  font-weight: 700;
  padding: 11px 26px;
  border-radius: 9999px;
  border: none;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
  transition: background 0.2s ease, transform 0.2s ease;
}

.success-done-btn:hover {
  background: #f0f0f0;
  transform: translateY(-1px);
}

@media (max-width: 540px) {
  .contact-modal-dialog {
    padding: 30px 22px 26px 22px;
    border-radius: 28px;
  }
  .modal-title {
    font-size: 22px;
  }
  .modal-subtitle {
    font-size: 12.5px;
  }
}

/* ==========================================================================
   Minimal Footer
   ========================================================================== */
.site-footer {
  width: 100%;
  position: relative;
  z-index: 10;
  padding: 36px 24px 48px 24px;
  display: flex;
  justify-content: center;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  margin-top: 20px;
}

.footer-container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 18px;
}

.footer-copyright {
  font-family: 'Interphases', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 13.5px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.45);
  letter-spacing: -0.01em;
  line-height: 1.4;
  user-select: none;
  text-align: center;
}

.footer-socials {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.footer-social-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.6);
  font-family: 'Interphases', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
  border-radius: 9999px;
  border: none;
  outline: none;
  transition: color 0.25s ease, background 0.25s ease, transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease;
}

.footer-social-link:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-1.5px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.footer-social-link:active {
  transform: scale(0.96);
}

.footer-social-link svg {
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.footer-social-link:hover svg {
  transform: scale(1.05);
}

@media (max-width: 640px) {
  .site-footer {
    padding: 28px 16px 40px 16px;
    margin-top: 10px;
  }
  .footer-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 18px;
  }
  .footer-socials {
    justify-content: center;
    gap: 8px;
  }
  .footer-social-link {
    padding: 7px 12px;
    font-size: 12px;
    gap: 6px;
  }
  .footer-copyright {
    font-size: 12.5px;
  }
}

/* ==========================================================================
   Subtle Reveal-on-Scroll Animations (Gallery & Stats)
   ========================================================================== */
.gallery-section.scroll-reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.gallery-section.scroll-reveal.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Stats Section Reveal Container */
.stats-section.scroll-reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.stats-section.scroll-reveal.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered subtle reveal for individual stat cards */
.stats-section.scroll-reveal .stat-card {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              background 0.3s ease,
              box-shadow 0.3s ease;
}

.stats-section.scroll-reveal.is-revealed .stat-card {
  opacity: 1;
  transform: translateY(0);
}

.stats-section.scroll-reveal.is-revealed .stat-card:nth-child(1) {
  transition-delay: 0.05s;
}

.stats-section.scroll-reveal.is-revealed .stat-card:nth-child(2) {
  transition-delay: 0.14s;
}

.stats-section.scroll-reveal.is-revealed .stat-card:nth-child(3) {
  transition-delay: 0.23s;
}

.stats-section.scroll-reveal.is-revealed .stat-card:nth-child(4) {
  transition-delay: 0.32s;
}

/* Respect user's motion preference */
@media (prefers-reduced-motion: reduce) {
  .gallery-section.scroll-reveal,
  .stats-section.scroll-reveal,
  .stats-section.scroll-reveal .stat-card {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}


