/* ==========================================================================
   1. Base & Root Variables - Premium Typography Setup
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&family=Plus+Jakarta+Sans:wght@400;500;600&display=swap');

:root {
  /* Brand Colors */
  --primary-color: #50708F; /* Slate/Steel Blue */
  --primary-dark: #3a536b;
  --black: #050505;
  --bg-dark: #0a0a0c; 
  --white: #ffffff;
  --gray-light: #f4f4f5;
  --gray-text: #a1a1aa;
  
  /* Premium Typography */
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
  
  /* Layout & Spacing */
  --transition-speed: 0.3s;
}

/* Reset & Defaults */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-body);
  background-color: var(--white);
  color: var(--black);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.2;
}

/* ==========================================================================
   2. Header & Navigation - Dark Premium with Mega Menu
   ========================================================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 9999;
  background-color: transparent;
  padding: 28px 0;
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.header.scrolled {
  background-color: rgba(5, 5, 5, 0.85); 
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 18px 0;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.header-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Logo */
.brand-logo {
  display: flex;
  align-items: center;
  z-index: 10001;
  position: relative;
  text-decoration: none;
}

.logo-img {
  max-height: 36px;
  width: auto;
  transition: transform 0.3s ease;
}

.brand-logo:hover .logo-img {
  transform: scale(1.02);
}

/* Desktop Navigation */
.desktop-nav {
  display: flex;
  align-items: center;
  gap: 48px;
}

.nav-links {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 36px;
}

.nav-link {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--white); 
  text-decoration: none;
  position: relative;
  padding: 10px 0;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color 0.3s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 5px;
  left: 50%;
  background-color: var(--primary-color);
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  transform: translateX(-50%);
}

.nav-link:hover::after,
.has-mega-menu:hover .nav-link::after {
  width: 100%;
}

.nav-link:hover,
.has-mega-menu:hover .nav-link {
  color: var(--primary-color);
}

.chevron {
  transition: transform 0.3s ease;
}

.has-mega-menu:hover .chevron {
  transform: rotate(180deg);
}

/* Elegant Mega Menu */
.has-mega-menu {
  position: relative;
}

.mega-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(15px);
  width: 800px;
  background-color: #0c0c0e; 
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  pointer-events: none;
  z-index: 1000;
}

.mega-menu::before {
  content: '';
  position: absolute;
  top: -20px;
  left: 0;
  width: 100%;
  height: 20px;
}

.has-mega-menu:hover .mega-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

.mega-menu-inner {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  padding: 32px;
  gap: 32px;
}

.mega-title {
  font-family: var(--font-heading);
  color: var(--white);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 10px;
}

.mega-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mega-list a {
  font-family: var(--font-body);
  color: var(--gray-text);
  text-decoration: none;
  font-size: 0.95rem;
  transition: all 0.2s ease;
  display: inline-block;
}

.mega-list a:hover {
  color: var(--primary-color);
  transform: translateX(5px);
}

/* Mega Menu Featured Column */
.featured-col {
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  padding-left: 32px;
}

.mega-featured {
  background: linear-gradient(145deg, rgba(80, 112, 143, 0.15), rgba(0, 0, 0, 0));
  border: 1px solid rgba(80, 112, 143, 0.2);
  padding: 24px;
  border-radius: 6px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.mega-featured h6 {
  font-family: var(--font-heading);
  color: var(--white);
  font-size: 1.1rem;
  margin-bottom: 10px;
}

.mega-featured p {
  font-family: var(--font-body);
  color: var(--gray-text);
  font-size: 0.9rem;
  margin-bottom: 20px;
}

.btn-text {
  font-family: var(--font-body);
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

.btn-text:hover { color: var(--white); }

/* Mobile Menu Variables */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 6px;
  z-index: 10001;
}

.mobile-toggle .bar {
  display: block;
  width: 28px;
  height: 2px;
  background-color: var(--white);
  transition: all 0.3s ease;
}

.mobile-toggle.is-active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.mobile-toggle.is-active .bar:nth-child(2) { opacity: 0; }
.mobile-toggle.is-active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.mobile-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: var(--black);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.mobile-nav.is-active {
  opacity: 1;
  visibility: visible;
}

.mobile-nav-content {
  text-align: center;
  width: 100%;
  padding: 0 20px;
}

.mobile-nav-links { list-style: none; margin: 0 0 40px 0; }
.mobile-nav-links > li { margin-bottom: 24px; }

.mobile-link {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 600;
  color: var(--white);
  text-decoration: none;
  transition: color 0.3s ease;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
}

.mobile-link:hover, .mobile-dropdown-menu a:hover { color: var(--primary-color); }

.mobile-dropdown-menu {
  display: none;
  flex-direction: column;
  gap: 16px;
  margin-top: 20px;
}

.mobile-dropdown-menu.is-open { display: flex; }
.mobile-dropdown-menu a {
  font-family: var(--font-body);
  color: var(--gray-text);
  text-decoration: none;
  font-size: 1.2rem;
}

@media (max-width: 992px) {
  .header-container { padding: 0 24px; }
  .desktop-nav { display: none; }
  .mobile-toggle { display: flex; }
}

/* ==========================================================================
   3. WebGL Hero Slider Section (Shaders + Text Layer)
   ========================================================================== */
.hero-section {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 700px;
  background-color: var(--black);
  overflow: hidden;
}

/* WebGL Container */
.webgl-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.webgl-container canvas {
  display: block;
  outline: none;
}

/* Canvas Dark Overlay */
.canvas-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(0,0,0,0) 40%, rgba(0,0,0,0.6) 100%),
              linear-gradient(0deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0) 40%);
  z-index: 2;
  pointer-events: none;
}

/* Text Content Container */
.slider-content-wrapper {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  max-width: 1000px;
  text-align: center;
  z-index: 10;
  pointer-events: none; 
}

/* Slide Text Groups */
.slide-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  display: none;
}

.slide-text.active {
  display: block;
  pointer-events: auto; 
}

.reveal-wrap {
  overflow: hidden;
  margin-bottom: 20px;
}

.reveal-wrap:last-child {
  margin-bottom: 0;
  margin-top: 40px;
}

.subtitle {
  display: block;
  font-family: 'Georgia', serif; 
  font-style: italic;
  font-size: 1.2rem;
  color: #d4d4d8;
}

.title {
  font-family: var(--font-heading);
  font-size: 5.5rem; 
  font-weight: 700;
  color: var(--white);
  line-height: 1.1;
  letter-spacing: -1px;
}

/* Shared Buttons */
.btn-hero, .btn-header, .btn-mobile-cta {
  display: inline-block;
  font-family: var(--font-body);
  background-color: var(--primary-color);
  color: var(--white);
  text-decoration: none;
  font-weight: 600;
  border-radius: 4px;
  transition: all 0.3s ease;
  border: 1px solid transparent;
}

.btn-hero {
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.9rem;
  padding: 18px 40px;
}

.btn-header {
  padding: 12px 28px;
  font-size: 0.95rem;
  font-weight: 500;
}

.btn-mobile-cta {
  padding: 16px 40px;
  font-size: 1.1rem;
}

.btn-hero:hover, .btn-header:hover, .btn-mobile-cta:hover {
  background-color: transparent;
  border-color: var(--primary-color);
  color: var(--white);
  box-shadow: 0 4px 15px rgba(80, 112, 143, 0.3);
}

/* --- Hero Left Side Navigation --- */
.hero-nav-left {
  position: absolute;
  left: 60px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 30px;
  z-index: 20;
}

.nav-item {
  background: none;
  border: none;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  opacity: 0.4;
  transition: all 0.4s ease;
  text-align: left;
}

.nav-item:hover { opacity: 0.8; }
.nav-item.active { opacity: 1; }

.nav-item .num {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  color: var(--white);
}

.nav-item .text {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--white);
  position: relative;
}

.nav-item.active .text::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--white);
}

/* --- Hero Bottom Social Bar --- */
.hero-bottom-bar {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 20px;
  z-index: 20;
}

.follow-label {
  font-family: var(--font-heading);
  color: var(--white);
  font-size: 0.9rem;
  font-weight: 600;
  opacity: 0.6;
}

.hero-socials { display: flex; gap: 16px; }
.hero-socials a {
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.3s ease;
}

.hero-socials a:hover { color: var(--primary-color); }

@media (max-width: 1200px) {
  .title { font-size: 4rem; }
  .hero-nav-left { left: 40px; }
}

@media (max-width: 768px) {
  .title { font-size: 2.5rem; line-height: 1.2; }
  .subtitle { font-size: 1rem; }
  
  .hero-nav-left {
    top: auto;
    bottom: 120px;
    left: 50%;
    transform: translateX(-50%);
    flex-direction: row;
    gap: 15px;
    width: 100%;
    justify-content: center;
  }
  
  .nav-item .text { display: none; }
  .nav-item { gap: 0; }
  
  .nav-item .num {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 4px;
    background-color: rgba(255, 255, 255, 0.3);
    color: transparent;
    border-radius: 2px;
    transition: background-color 0.3s;
  }
  
  .nav-item.active .num { background-color: var(--primary-color); }
  .btn-hero { padding: 14px 28px; font-size: 0.85rem; }
}

/* ==========================================================================
   4. Premium Footer
   ========================================================================== */
.premium-footer {
  background-color: var(--black);
  color: var(--white);
  padding: 80px 0 40px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  position: relative;
  overflow: hidden;
}

.premium-footer::before {
  content: '';
  position: absolute;
  top: -150px;
  right: -150px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(80, 112, 143, 0.15) 0%, rgba(5, 5, 5, 0) 70%);
  border-radius: 50%;
  pointer-events: none;
}

.footer-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
  position: relative;
  z-index: 2;
}

/* --- Top CTA Bar --- */
.footer-cta-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 60px;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-cta-text {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 500;
  color: var(--white);
  max-width: 600px;
  line-height: 1.2;
}

.btn-footer-cta {
  font-family: var(--font-body);
  background-color: var(--primary-color);
  color: var(--white);
  text-decoration: none;
  padding: 16px 36px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 1.05rem;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.btn-footer-cta:hover {
  background-color: var(--primary-dark);
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(80, 112, 143, 0.25);
}

/* --- Main Grid --- */
.footer-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 40px;
  margin-bottom: 60px;
}

.col-title {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 24px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

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

.footer-links a {
  font-family: var(--font-body);
  color: var(--gray-text);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.3s ease, transform 0.3s ease;
  display: inline-block;
}

.footer-links a:hover {
  color: var(--primary-color);
  transform: translateX(4px);
}

/* --- Newsletter Section --- */
.newsletter-col { grid-column: span 1; }

.newsletter-desc {
  font-family: var(--font-body);
  color: var(--gray-text);
  font-size: 0.9rem;
  margin-bottom: 20px;
  line-height: 1.6;
}

.premium-newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.premium-newsletter-form input {
  font-family: var(--font-body);
  background-color: transparent;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--white);
  padding: 12px 0;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.3s ease;
}

.premium-newsletter-form input:focus {
  border-bottom-color: var(--primary-color);
}

.premium-newsletter-form input::placeholder { color: #52525b; }

.premium-newsletter-form button {
  font-family: var(--font-body);
  background-color: transparent;
  color: var(--primary-color);
  border: 1px solid var(--primary-color);
  padding: 12px 24px;
  border-radius: 4px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  margin-top: 8px;
}

.premium-newsletter-form button:hover {
  background-color: var(--primary-color);
  color: var(--white);
}

/* --- Bottom Bar --- */
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  flex-wrap: wrap;
  gap: 20px;
}

.bottom-logo { display: inline-block; }
.footer-logo-img {
  max-height: 40px;
  width: auto;
  opacity: 0.9;
  transition: opacity 0.3s ease;
}
.bottom-logo:hover .footer-logo-img { opacity: 1; }

.footer-legal p {
  font-family: var(--font-body);
  color: #71717a;
  font-size: 0.85rem;
}

/* --- Footer Responsive --- */
@media (max-width: 1200px) {
  .footer-grid { grid-template-columns: repeat(3, 1fr); }
  .newsletter-col {
    grid-column: span 3;
    max-width: 400px;
    margin-top: 20px;
  }
}

@media (max-width: 768px) {
  .footer-container { padding: 0 24px; }
  .footer-cta-text { font-size: 2rem; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .newsletter-col { grid-column: span 2; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 576px) {
  .footer-grid { grid-template-columns: 1fr; }
  .newsletter-col { grid-column: span 1; }
}

/* ==========================================================================
   Surrounding 3D Arc Gallery
   ========================================================================== */
.surround-gallery-section {
  position: relative;
  width: 100%;
  min-height: 100vh;
  background-color: #000000;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding: 50px 0 20px 0;
  overflow: hidden;
  box-sizing: border-box;
}

/* --- Top Text Header --- */
.surround-header {
  text-align: center;
  max-width: 820px;
  padding: 0 24px;
  z-index: 10;
  user-select: none;
}

.header-main {
  font-family: var(--font-body, 'Plus Jakarta Sans', sans-serif);
  font-size: 0.92rem;
  color: #d1d1d6;
  line-height: 1.6;
  margin-bottom: 20px;
  font-weight: 400;
}

.header-sub {
  font-family: var(--font-body, 'Plus Jakarta Sans', sans-serif);
  font-size: 0.85rem;
  color: #8e8e93;
  line-height: 1.5;
  margin-bottom: 24px;
}

.header-tagline {
  font-family: var(--font-body, 'Plus Jakarta Sans', sans-serif);
  font-size: 0.8rem;
  color: #8e8e93;
  letter-spacing: 1px;
}

.header-tagline span {
  color: #ffffff;
  font-weight: 600;
  letter-spacing: 1.5px;
}

/* --- 3D Surround Viewport --- */
.surround-viewport {
  width: 100%;
  height: 65vh;
  perspective: 900px; /* Strong perspective depth for surround wrap effect */
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
}

.surround-viewport:active {
  cursor: grabbing;
}

.surround-track {
  position: relative;
  width: 280px;
  height: 380px;
  transform-style: preserve-3d;
  will-change: transform;
}

/* --- Individual Cards --- */
.surround-card {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 22px;
  overflow: hidden;
  backface-visibility: visible;
  will-change: transform;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.9);
}

.card-inner {
  width: 100%;
  height: 100%;
  border-radius: 22px;
  overflow: hidden;
  background-color: #111113;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.card-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}

/* Responsive Scaling */
@media (max-width: 1024px) {
  .surround-track { width: 220px; height: 300px; }
  .surround-viewport { perspective: 750px; height: 55vh; }
  .header-main { font-size: 0.85rem; }
}

@media (max-width: 768px) {
  .surround-track { width: 170px; height: 240px; }
  .surround-viewport { perspective: 550px; height: 50vh; }
  .header-main { font-size: 0.8rem; line-height: 1.4; }
  .header-sub { font-size: 0.75rem; }
}