/* Durriy Case Study Series - ÆON Acoustics Luxury Design System */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Space+Grotesk:wght@300;400;500;600;700&display=swap');

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg-color: #000201; /* Matches frame background color sampled from ezgif-frame assets */
  --panel-bg: rgba(10, 12, 18, 0.85);
  --panel-border: rgba(255, 255, 255, 0.08);
  --accent-color: #00ffff;
  --accent-glow: rgba(0, 255, 255, 0.35);
  --gold-accent: #d4af37;
  --gold-glow: rgba(212, 175, 55, 0.35);
  --gold-border: rgba(212, 175, 55, 0.3);
  --gold-gradient: linear-gradient(135deg, #f39c12 0%, #d4af37 50%, #f1c40f 100%);
  --text-main: #f5f7fa;
  --text-muted: rgba(245, 247, 250, 0.6);
  --font-main: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-heading: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
}

html {
  background-color: var(--bg-color);
  color: var(--text-main);
  font-family: var(--font-main);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body {
  background-color: var(--bg-color);
  color: var(--text-main);
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  touch-action: pan-y;
  -webkit-overflow-scrolling: touch;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: var(--bg-color);
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-color);
}

/* Luxury Top Navigation Bar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 4%;
  background: rgba(0, 2, 1, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: background 0.3s ease;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.brand-symbol {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--accent-color);
  text-shadow: 0 0 12px var(--accent-glow);
}

.brand-name {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--text-main);
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.2rem;
}

.nav-links a {
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  text-transform: uppercase;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: var(--accent-color);
}

.nav-cta {
  text-decoration: none;
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #000000;
  background: var(--accent-color);
  padding: 0.65rem 1.4rem;
  border-radius: 50px;
  box-shadow: 0 0 20px var(--accent-glow);
  transition: all 0.3s ease;
}

.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 30px var(--accent-glow);
}

/* Scroll Container - Height determines total scroll distance */
.scroll-container {
  height: 500vh;
  width: 100%;
  position: relative;
}

/* Stationary Fixed Canvas Viewport with Edge Vignette Mask */
.canvas-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--bg-color);
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

/* Feathered Radial Vignette Mask - Eliminates all image edge box borders on desktop */
.canvas-wrapper::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, transparent 55%, var(--bg-color) 98%);
  pointer-events: none;
  z-index: 2;
}

canvas#animation-canvas {
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
}

/* Preloader Screen */
.preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  background-color: var(--bg-color);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.8s;
  pointer-events: auto;
}

.preloader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-spinner {
  width: 52px;
  height: 52px;
  border: 3px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  border-top-color: var(--accent-color);
  animation: spin 1s linear infinite;
  box-shadow: 0 0 20px var(--accent-glow);
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.progress-container {
  width: 260px;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  overflow: hidden;
  position: relative;
}

.progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #4facfe 0%, #00ffff 100%);
  box-shadow: 0 0 12px var(--accent-glow);
  transition: width 0.15s ease-out;
}

.progress-text {
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
  text-transform: uppercase;
}

/* UI Overlay Layer */
.ui-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  z-index: 10;
  pointer-events: none;
}

/* Ultra-Clean Minimal Hero Content Section */
.hero-content {
  position: absolute;
  top: 50%;
  left: 6%;
  transform: translateY(-50%);
  max-width: 500px;
  opacity: 1;
  transition: opacity 0.5s ease, transform 0.5s ease;
  pointer-events: auto;
}

.hero-tag {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--accent-color);
  background: rgba(0, 255, 255, 0.08);
  border: 1px solid rgba(0, 255, 255, 0.2);
  padding: 0.35rem 0.9rem;
  border-radius: 50px;
  margin-bottom: 1rem;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: 3.2rem;
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.accent-text {
  background: linear-gradient(135deg, #ffffff 0%, var(--accent-color) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.05rem;
  font-weight: 300;
  letter-spacing: 0.02em;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Glassmorphism Specification Cards */
.spec-card {
  position: absolute;
  top: 50%;
  max-width: 440px;
  width: 90%;
  background: var(--panel-bg);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border: 1px solid var(--panel-border);
  border-radius: 20px;
  padding: 2.2rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.65);
  opacity: 0;
  transform: translateY(-45%) scale(0.95);
  transition: opacity 0.5s ease, transform 0.5s ease, border-color 0.3s ease;
  pointer-events: auto;
}

.spec-card:hover {
  border-color: rgba(0, 255, 255, 0.35);
}

.spec-card.right-aligned {
  right: 6%;
}

.spec-card.left-aligned {
  left: 6%;
}

.spec-card.active {
  opacity: 1;
  transform: translateY(-50%) scale(1);
}

.spec-tag {
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--accent-color);
  margin-bottom: 0.75rem;
  display: block;
}

.spec-title {
  font-family: var(--font-heading);
  font-size: 1.65rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 0.9rem;
}

.spec-desc {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text-muted);
  margin-bottom: 1.4rem;
}

.spec-pills {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.spec-pill {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.35rem 0.85rem;
  border-radius: 8px;
}

/* Durriy Studio Luxury Floating Credit Seal & Interactive Badge */
.durriy-seal-card {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1500;
  width: 310px;
  background: rgba(10, 12, 18, 0.92);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--gold-border);
  border-radius: 18px;
  padding: 1.2rem 1.3rem;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.75), 0 0 25px var(--gold-glow);
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.4s;
  pointer-events: auto;
}

.durriy-seal-card.minimized {
  opacity: 0;
  transform: translateY(20px) scale(0.9);
  visibility: hidden;
  pointer-events: none;
}

.seal-close-btn {
  position: absolute;
  top: 10px;
  right: 12px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  padding: 4px;
  transition: color 0.2s ease;
}

.seal-close-btn:hover {
  color: #ffffff;
}

.seal-badge-tag {
  font-family: var(--font-heading);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--gold-accent);
  text-transform: uppercase;
}

.seal-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0.3rem 0 0.4rem 0;
}

.seal-desc {
  font-size: 0.8rem;
  line-height: 1.4;
  color: var(--text-muted);
  margin-bottom: 0.9rem;
}

.seal-cta-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  color: #000000;
  background: var(--gold-gradient);
  border: none;
  padding: 0.65rem 1rem;
  border-radius: 50px;
  box-shadow: 0 0 18px var(--gold-glow);
  transition: all 0.3s ease;
}

.seal-cta-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 28px var(--gold-glow);
}

/* Minimized Floating Gold Pill */
.durriy-seal-pill {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1500;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-accent);
  background: rgba(10, 12, 18, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--gold-border);
  padding: 0.55rem 1.1rem;
  border-radius: 50px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.6), 0 0 15px var(--gold-glow);
  cursor: pointer;
  transition: all 0.3s ease;
}

.durriy-seal-pill:hover {
  transform: scale(1.05);
  border-color: var(--gold-accent);
}

.durriy-seal-pill.hidden {
  opacity: 0;
  transform: translateY(20px) scale(0.9);
  visibility: hidden;
  pointer-events: none;
}

.pill-gold-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold-accent);
  box-shadow: 0 0 8px var(--gold-accent);
  animation: pulseGoldDot 2s infinite;
}

@keyframes pulseGoldDot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.5; }
}

/* High-End Glassmorphism Agency Footer - Only reveals in final scroll phase (0.88 - 1.0) */
.footer-wrapper {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 200;
  padding: 0 4% 1.5rem 4%;
  opacity: 0;
  pointer-events: none;
  transform: translateY(30px);
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.footer-wrapper.active {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.footer-card {
  max-width: 1200px;
  margin: 0 auto;
  background: rgba(10, 12, 18, 0.94);
  backdrop-filter: blur(32px);
  -webkit-backdrop-filter: blur(32px);
  border: 1px solid rgba(0, 255, 255, 0.18);
  border-radius: 24px;
  padding: 2.5rem 3rem 1.8rem 3rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.85), 0 0 30px rgba(0, 255, 255, 0.1);
}

.footer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 1.6rem;
  margin-bottom: 1.8rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-tag {
  font-family: var(--font-heading);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--accent-color);
  background: rgba(0, 255, 255, 0.08);
  border: 1px solid rgba(0, 255, 255, 0.2);
  padding: 0.35rem 0.9rem;
  border-radius: 50px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1.5fr;
  gap: 2.5rem;
  margin-bottom: 2rem;
}

.footer-heading {
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-main);
  margin-bottom: 1.2rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.footer-links a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.85rem;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--accent-color);
}

.footer-newsletter-desc {
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

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

.newsletter-input-group {
  display: flex;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--panel-border);
  border-radius: 50px;
  padding: 0.25rem 0.25rem 0.25rem 1rem;
  transition: border-color 0.3s ease;
}

.newsletter-input-group:focus-within {
  border-color: var(--accent-color);
}

.newsletter-input {
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-main);
  font-size: 0.82rem;
  width: 100%;
}

.newsletter-input::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

.newsletter-submit {
  background: var(--accent-color);
  color: #000000;
  border: none;
  border-radius: 50px;
  padding: 0.55rem 1.2rem;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: opacity 0.3s ease;
}

.newsletter-submit:hover {
  opacity: 0.9;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.4rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.4);
}

.durriy-credit {
  color: var(--gold-accent);
  font-weight: 700;
  letter-spacing: 0.12em;
}

/* Responsive Media Queries - Mobile Pixel Perfect Layout */
@media (max-width: 1024px) {
  .navbar {
    padding: 1rem 2rem;
  }
  .hero-content {
    left: 6%;
    right: 6%;
    max-width: 480px;
  }
  .hero-title {
    font-size: 2.8rem;
  }
}

@media (max-width: 768px) {
  .canvas-wrapper::after {
    display: none; /* Disable radial vignette on mobile portrait for maximum image clarity */
  }

  .navbar {
    padding: 0.85rem 1.25rem;
  }
  .nav-links {
    display: none;
  }
  .brand-name {
    font-size: 0.82rem;
    letter-spacing: 0.12em;
  }
  .nav-cta {
    font-size: 0.7rem;
    padding: 0.45rem 0.9rem;
  }

  /* Durriy Seal Card & Pill for Mobile */
  .durriy-seal-card {
    right: 12px;
    bottom: 12px;
    width: calc(100% - 24px);
    max-width: 290px;
    padding: 1rem 1.1rem;
  }
  .seal-title {
    font-size: 0.95rem;
  }
  .seal-desc {
    font-size: 0.75rem;
    margin-bottom: 0.7rem;
  }
  .seal-cta-btn {
    font-size: 0.7rem;
    padding: 0.55rem 0.8rem;
  }
  .durriy-seal-pill {
    right: 12px;
    bottom: 12px;
    font-size: 0.7rem;
    padding: 0.45rem 0.9rem;
  }

  /* 1st Text (Hero Content): Positioned at Bottom on Mobile */
  .hero-content {
    top: auto !important;
    bottom: 60px !important;
    left: 4% !important;
    right: 4% !important;
    width: 92% !important;
    max-width: 100% !important;
    transform: none !important;
    background: rgba(10, 12, 18, 0.9);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.1rem 1.25rem;
    border-radius: 16px;
  }
  .hero-title {
    font-size: 1.8rem;
    margin-bottom: 0.4rem;
  }
  .hero-subtitle {
    font-size: 0.82rem;
  }

  /* 2nd Text (Spec Card 1): Positioned at Top on Mobile */
  #spec-card-1 {
    top: 72px !important;
    bottom: auto !important;
    left: 4% !important;
    right: 4% !important;
    width: 92% !important;
    max-width: 100% !important;
    padding: 1.1rem 1.25rem !important;
    border-radius: 16px !important;
    background: rgba(10, 12, 18, 0.94) !important;
    transform: translateY(-10px) scale(0.96) !important;
  }
  #spec-card-1.active {
    transform: translateY(0) scale(1) !important;
  }

  /* 3rd Text (Spec Card 2): Positioned at Top with Reduced Size on Mobile */
  #spec-card-2 {
    top: 72px !important;
    bottom: auto !important;
    left: 4% !important;
    right: 4% !important;
    width: 92% !important;
    max-width: 100% !important;
    padding: 0.85rem 1.1rem !important; /* Reduced padding */
    border-radius: 16px !important;
    background: rgba(10, 12, 18, 0.94) !important;
    transform: translateY(-10px) scale(0.96) !important;
  }
  #spec-card-2.active {
    transform: translateY(0) scale(1) !important;
  }
  #spec-card-2 .spec-tag {
    font-size: 0.6rem !important;
    margin-bottom: 0.3rem !important;
  }
  #spec-card-2 .spec-title {
    font-size: 1.05rem !important; /* Reduced title size */
    margin-bottom: 0.35rem !important;
  }
  #spec-card-2 .spec-desc {
    font-size: 0.76rem !important; /* Reduced description size */
    line-height: 1.4 !important;
    margin-bottom: 0.6rem !important;
  }
  #spec-card-2 .spec-pill {
    font-size: 0.65rem !important;
    padding: 0.2rem 0.55rem !important;
  }

  /* 4th Text (Spec Card 3): Maintained at Bottom on Mobile */
  #spec-card-3 {
    top: auto !important;
    bottom: 60px !important;
    left: 4% !important;
    right: 4% !important;
    width: 92% !important;
    max-width: 100% !important;
    padding: 1.1rem 1.25rem !important;
    border-radius: 16px !important;
    background: rgba(10, 12, 18, 0.94) !important;
    transform: translateY(10px) scale(0.96) !important;
  }
  #spec-card-3.active {
    transform: translateY(0) scale(1) !important;
  }

  /* Spec Cards Tag & Title Defaults for Mobile 1 & 3 */
  .spec-tag {
    font-size: 0.65rem;
    margin-bottom: 0.4rem;
  }
  .spec-title {
    font-size: 1.15rem;
    margin-bottom: 0.4rem;
  }
  .spec-desc {
    font-size: 0.8rem;
    line-height: 1.45;
    margin-bottom: 0.8rem;
  }
  .spec-pills {
    gap: 0.4rem;
  }
  .spec-pill {
    font-size: 0.68rem;
    padding: 0.25rem 0.6rem;
  }

  /* Footer: Occupy at most half the screen height (max 50vh) or below */
  .footer-wrapper {
    padding: 0 0 0 0;
  }

  .footer-card {
    border-radius: 20px 20px 0 0;
    padding: 1.2rem 1.2rem 4.5rem 1.2rem;
    max-height: 50vh; /* Max 50% screen height */
    overflow-y: auto;
    border-bottom: none;
    background: rgba(10, 12, 18, 0.96);
  }

  .footer-header {
    padding-bottom: 0.8rem;
    margin-bottom: 1rem;
  }

  .footer-tag {
    font-size: 0.58rem;
    padding: 0.25rem 0.6rem;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.2rem 1rem;
    margin-bottom: 1rem;
  }

  .newsletter-col {
    grid-column: span 2;
  }

  .footer-heading {
    font-size: 0.72rem;
    margin-bottom: 0.5rem;
    letter-spacing: 0.14em;
  }

  .footer-links {
    gap: 0.4rem;
  }

  .footer-links a {
    font-size: 0.76rem;
  }

  .footer-newsletter-desc {
    font-size: 0.76rem;
    margin-bottom: 0.6rem;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
    padding-top: 0.9rem;
    font-size: 0.7rem;
  }
}
