/* ============================================================
   SHUBH AGENCY — 3D Styles Overlay (styles-3d.css)
   Layered on top of existing styles.css
   ============================================================ */

/* ── CSS Custom Properties (3D Theme) ── */
:root {
  --dark-bg: #0A0A0C; /* Deeper, more professional dark background */
  --dark-surface: #111116;
  --dark-card: #16161F;
  --dark-border: rgba(255, 255, 255, 0.05);
  --gold: #C5A059; /* More elegant metallic gold */
  --gold-glow: rgba(197, 160, 89, 0.2);
  --gold-subtle: rgba(197, 160, 89, 0.06);
  --blue-glow: rgba(79, 195, 247, 0.12);
  --glass-bg: rgba(255, 255, 255, 0.03);
  --glass-border: rgba(255, 255, 255, 0.08);
  --text-primary: #F8F8FA;
  --text-secondary: rgba(248, 248, 250, 0.6);
  --3d-transition: 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  --radius-3d: 24px; /* More modern, larger border-radius */
  --shadow-3d: 0 20px 50px rgba(0, 0, 0, 0.5);
}

/* ════════════════════════════════════
   GLOBAL DARK THEME OVERRIDE
════════════════════════════════════ */
body.theme-3d {
  background: var(--dark-bg);
  color: var(--text-primary);
}

body.theme-3d .feature-section,
body.theme-3d .faq-section {
  background: var(--dark-bg);
}

body.theme-3d .feature-section:nth-child(even) {
  background: var(--dark-surface);
}

body.theme-3d .feature-title,
body.theme-3d .stats-title,
body.theme-3d .section-title,
body.theme-3d .cta-title {
  color: var(--text-primary);
}

body.theme-3d .feature-desc,
body.theme-3d .stats-subtitle,
body.theme-3d .section-subtitle,
body.theme-3d .cta-subtitle {
  color: var(--text-secondary);
}

/* ════════════════════════════════════
   HEADER — DARK GLASSMORPHISM
════════════════════════════════════ */
.header-3d {
  background: rgba(10, 10, 12, 0.8) !important;
  backdrop-filter: blur(24px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(24px) saturate(180%) !important;
  border-bottom: 1px solid var(--dark-border) !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3) !important;
}

.header-3d .nav-link,
.header-3d .logo-text,
.header-3d .phone-link {
  color: var(--text-primary) !important;
}

.header-3d .nav-link:hover,
.header-3d .nav-link.active {
  color: var(--gold) !important;
  background: var(--gold-subtle) !important;
}

.header-3d .icon-btn {
  background: rgba(255,255,255,0.06) !important;
  color: var(--text-primary) !important;
  border: 1px solid var(--dark-border) !important;
}

.header-3d .icon-btn:hover {
  background: var(--gold-subtle) !important;
  color: var(--gold) !important;
}

.header-3d .btn-outline {
  background: transparent !important;
  color: var(--text-primary) !important;
  border-color: var(--dark-border) !important;
}

.header-3d .btn-outline:hover {
  background: var(--dark-card) !important;
  color: var(--gold) !important;
  border-color: var(--gold) !important;
}

.header-3d .dropdown-menu {
  background: var(--dark-card) !important;
  border: 1px solid var(--dark-border) !important;
  box-shadow: 0 24px 48px rgba(0,0,0,0.6) !important;
}

.header-3d .dropdown-menu a {
  color: var(--text-primary) !important;
}

.header-3d .dropdown-menu a:hover {
  background: var(--gold-subtle) !important;
  color: var(--gold) !important;
}

/* ════════════════════════════════════
   HERO — FULL 3D IMMERSIVE
════════════════════════════════════ */
.hero-3d {
  position: relative;
  background: var(--dark-bg) !important;
  overflow: hidden;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

/* Three.js canvas fills entire hero */
.hero-canvas {
  position: absolute;
  right: 0;
  top: 0;
  width: 55%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

/* Background orbs */
.hero-bg-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}

.orb-1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(216,166,62,0.12) 0%, transparent 70%);
  top: -100px;
  right: 100px;
  animation: orbFloat 8s ease-in-out infinite;
}

.orb-2 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(79,195,247,0.08) 0%, transparent 70%);
  bottom: 50px;
  right: 350px;
  animation: orbFloat 12s ease-in-out infinite reverse;
}

.orb-3 {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(216,166,62,0.06) 0%, transparent 70%);
  top: 200px;
  left: -50px;
  animation: orbFloat 10s ease-in-out infinite 3s;
}

@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(20px, -30px) scale(1.05); }
  66% { transform: translate(-15px, 15px) scale(0.97); }
}

/* Hero content side */
.hero-3d .hero-content {
  position: relative;
  z-index: 2;
}

.hero-3d .hero-grid {
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

/* Hero badge */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--gold-subtle);
  border: 1px solid rgba(216,166,62,0.3);
  border-radius: 100px;
  padding: 6px 16px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 24px;
  backdrop-filter: blur(10px);
}

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 0 rgba(216,166,62,0.6); }
  50% { box-shadow: 0 0 0 5px rgba(216,166,62,0); }
}

/* Hero title */
.hero-3d .hero-title {
  font-size: clamp(2.8rem, 5.5vw, 4.5rem);
  font-weight: 800;
  line-height: 1.1;
  color: var(--text-primary);
  margin-bottom: 24px;
  letter-spacing: -1px;
}

.hero-title-accent {
  color: var(--gold);
  background: linear-gradient(135deg, #C5A059 0%, #E8D3A9 50%, #C5A059 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 200% auto;
  animation: shimmer 4s linear infinite;
  display: inline-block;
  min-width: 200px;
  position: relative;
}

.hero-title-accent::after {
  content: '|';
  -webkit-text-fill-color: var(--gold);
  animation: blink 0.8s step-end infinite;
  margin-left: 2px;
}

@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

@keyframes shimmer {
  0% { background-position: 0% center; }
  100% { background-position: 200% center; }
}

.hero-title-light {
  font-weight: 300;
  color: var(--text-secondary);
  -webkit-text-fill-color: var(--text-secondary);
}

/* Hero subtitle */
.hero-3d .hero-subtitle {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.75;
  margin-bottom: 36px;
  max-width: 480px;
}

/* Hero CTA row */
.hero-cta-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

/* Glassmorphism button */
.btn-glass {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.95rem;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: var(--text-primary);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all var(--3d-transition);
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.btn-glass:hover {
  background: rgba(255,255,255,0.09);
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}

/* 3D button */
.btn-3d {
  position: relative;
  transform-style: preserve-3d;
  transition: all var(--3d-transition) !important;
}

.btn-3d::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.3s;
}

.btn-3d:hover::before { opacity: 1; }

.btn-3d:active {
  transform: translateY(1px) scale(0.98) !important;
}

/* Trust row */
.hero-trust-row {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.trust-item i {
  color: var(--gold);
  font-size: 0.9rem;
}

/* Hero 3D scene side */
.hero-3d-scene {
  position: relative;
  z-index: 2;
  min-height: 500px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-bottom: 32px;
  pointer-events: none;
}

.hero-scene-label {
  margin-bottom: auto;
  padding-top: 60px;
}

.scene-badge {
  display: inline-block;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  padding: 8px 16px;
  border-radius: 100px;
  font-size: 0.82rem;
  color: var(--gold);
  font-weight: 600;
  backdrop-filter: blur(10px);
}

.hero-scene-info {
  display: flex;
  gap: 32px;
  padding: 24px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.scene-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.scene-num {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
}

.scene-text {
  font-size: 0.8rem;
  color: var(--text-secondary);
  font-weight: 500;
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 3;
  color: var(--text-secondary);
  font-size: 0.75rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  animation: scrollBounce 2.5s ease-in-out infinite;
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--gold), transparent);
}

@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* ════════════════════════════════════
   INTRO SECTION
════════════════════════════════════ */
.intro-3d {
  background: linear-gradient(135deg, #b8860b 0%, #D8A63E 50%, #f4c842 100%) !important;
  position: relative;
  overflow: hidden;
}

.intro-3d::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  pointer-events: none;
}

.intro-chips {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.chip {
  padding: 6px 16px;
  border-radius: 100px;
  background: rgba(255,255,255,0.18);
  border: 1px solid rgba(255,255,255,0.3);
  color: white;
  font-size: 0.85rem;
  font-weight: 600;
  backdrop-filter: blur(8px);
  transition: all 0.3s;
}

.chip:hover {
  background: rgba(255,255,255,0.28);
  transform: translateY(-2px);
}

/* ════════════════════════════════════
   TAGLINE BAR
════════════════════════════════════ */
.tagline-3d {
  background: var(--dark-surface) !important;
  border-top: 1px solid var(--dark-border);
  border-bottom: 1px solid var(--dark-border);
}

.tagline-3d .tagline {
  color: var(--text-primary);
  background: linear-gradient(135deg, #fff 0%, var(--gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ════════════════════════════════════
   FEATURE SECTIONS
════════════════════════════════════ */
.feature-3d {
  position: relative;
}

.feature-tag {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 100px;
  background: var(--gold-subtle);
  border: 1px solid rgba(216,166,62,0.3);
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.feature-tag-blue {
  background: var(--blue-glow);
  border-color: rgba(79,195,247,0.3);
  color: #4fc3f7;
}

/* 3D Image wrapper */
.img-3d-wrapper {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  transform-style: preserve-3d;
}

.img-3d-wrapper img {
  border-radius: 20px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.5) !important;
  transition: transform var(--3d-transition);
  width: 100%;
  max-height: 420px;
  object-fit: cover;
}

.img-3d-wrapper:hover img {
  transform: scale(1.02);
}

.img-glow {
  position: absolute;
  inset: -2px;
  border-radius: 22px;
  background: linear-gradient(135deg, transparent 40%, var(--gold-glow) 100%);
  pointer-events: none;
  z-index: 1;
}

.img-glow-blue {
  background: linear-gradient(135deg, transparent 40%, var(--blue-glow) 100%);
}

/* ════════════════════════════════════
   STATS SECTION
════════════════════════════════════ */
.stats-3d {
  background: linear-gradient(135deg, #c49128 0%, #D8A63E 60%, #e8c16a 100%) !important;
  position: relative;
  overflow: hidden;
}

.stats-3d::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23fff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.stat-card {
  position: relative;
  transform-style: preserve-3d;
  transition: transform var(--3d-transition), box-shadow var(--3d-transition), border-color var(--3d-transition) !important;
  will-change: transform;
  border-radius: var(--radius-3d) !important;
  border: 1px solid var(--dark-border) !important;
}

.stat-card:hover {
  transform: translateY(-8px) rotateX(4deg) !important;
  box-shadow: var(--shadow-3d) !important;
  border-color: rgba(197, 160, 89, 0.3) !important;
}

/* Generic 3D Box class */
.box-3d {
  background: var(--dark-card);
  border: 1px solid var(--dark-border);
  border-radius: var(--radius-3d);
  padding: 32px;
  transition: all var(--3d-transition);
  transform-style: preserve-3d;
  will-change: transform;
}

.box-3d:hover {
  border-color: rgba(197, 160, 89, 0.3);
  box-shadow: 0 0 40px var(--gold-glow), var(--shadow-3d);
  transform: translateY(-5px) scale(1.01);
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  border-radius: 16px 16px 0 0;
  background: linear-gradient(90deg, var(--gold), #ffe08a, var(--gold));
  background-size: 200% auto;
  animation: shimmer 3s linear infinite;
  opacity: 0;
  transition: opacity 0.3s;
}

.stat-card:hover::before { opacity: 1; }

.stat-icon {
  font-size: 1.8rem;
  margin-bottom: 12px;
  color: var(--gold);
  opacity: 0.8;
}

.stat-icon-gold { color: #ffe08a; }
.stat-icon-blue { color: #4fc3f7; }

.stat-card-light {
  background: rgba(255,255,255,0.95) !important;
  box-shadow: 0 8px 32px rgba(0,0,0,0.15) !important;
}

.stat-card-dark {
  background: #0d0d0f !important;
  box-shadow: 0 8px 32px rgba(0,0,0,0.3) !important;
  border: 1px solid var(--dark-border) !important;
}

.stat-card-muted {
  background: rgba(255,255,255,0.15) !important;
  backdrop-filter: blur(10px) !important;
  border: 1px solid rgba(255,255,255,0.25) !important;
  color: white !important;
}

.stat-card-muted .stat-label,
.stat-card-muted .stat-desc {
  color: rgba(255,255,255,0.8) !important;
}

/* ════════════════════════════════════
   TEAM SECTION
════════════════════════════════════ */
.team-3d {
  background: var(--dark-bg) !important;
}

.team-card-3d {
  background: var(--dark-card);
  border: 1px solid var(--dark-border);
  border-radius: var(--radius-3d);
  padding: 28px;
  transition: all var(--3d-transition);
  transform-style: preserve-3d;
  will-change: transform;
}

.team-card-3d:hover {
  border-color: rgba(216,166,62,0.3);
  box-shadow: 0 0 40px var(--gold-glow), 0 20px 60px rgba(0,0,0,0.4);
}

.team-card-3d .team-info h3 {
  color: var(--text-primary) !important;
}

.team-card-3d .team-info p,
.team-card-3d .team-role {
  color: var(--text-secondary) !important;
}

.team-card-3d .team-role {
  background: var(--gold-subtle);
  border: 1px solid rgba(216,166,62,0.25);
  padding: 2px 10px;
  border-radius: 100px;
  font-size: 0.75rem;
  color: var(--gold) !important;
}

.team-avatar {
  position: relative;
}

.avatar-ring {
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 2px solid transparent;
  background: linear-gradient(135deg, var(--gold), transparent 60%) border-box;
  -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: destination-out;
  mask-composite: exclude;
  animation: spin 8s linear infinite;
}

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

/* ════════════════════════════════════
   FAQ SECTION
════════════════════════════════════ */
.faq-3d {
  background: var(--dark-surface) !important;
}

.faq-3d .faq-item {
  border-top-color: var(--dark-border) !important;
}

.faq-3d .faq-item:last-child {
  border-bottom-color: var(--dark-border) !important;
}

.faq-3d .faq-question {
  color: var(--text-primary) !important;
}

.faq-3d .faq-question:hover {
  color: var(--gold) !important;
}

.faq-3d .faq-answer p {
  color: var(--text-secondary) !important;
}

/* 3D FAQ illustration card */
.faq-3d-card {
  width: 100%;
  max-width: 380px;
  aspect-ratio: 1;
  border-radius: 24px;
  background: linear-gradient(135deg, #1a1a2e, #16213e, #0f3460);
  border: 1px solid rgba(79,195,247,0.2);
  box-shadow: 0 0 60px rgba(79,195,247,0.1), inset 0 1px 0 rgba(255,255,255,0.1);
  transform-style: preserve-3d;
  transition: all var(--3d-transition);
  cursor: default;
  will-change: transform;
  overflow: hidden;
  position: relative;
}

.faq-3d-inner {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  color: white;
  font-size: 1.4rem;
  font-weight: 700;
  z-index: 2;
}

.faq-3d-inner i {
  font-size: 3rem;
  background: linear-gradient(135deg, #D8A63E, #4fc3f7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.faq-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  pointer-events: none;
}

.faq-orb-1 {
  width: 200px;
  height: 200px;
  background: rgba(216,166,62,0.2);
  top: -50px;
  right: -50px;
  animation: orbFloat 6s ease-in-out infinite;
}

.faq-orb-2 {
  width: 150px;
  height: 150px;
  background: rgba(79,195,247,0.2);
  bottom: -30px;
  left: -30px;
  animation: orbFloat 9s ease-in-out infinite reverse;
}

/* ════════════════════════════════════
   CTA SECTION
════════════════════════════════════ */
.cta-3d {
  background: var(--dark-bg) !important;
  position: relative;
  overflow: hidden;
}

.cta-3d::before {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(216,166,62,0.06) 0%, transparent 70%);
  top: -200px;
  left: -100px;
  pointer-events: none;
}

.cta-card-3d {
  background: var(--dark-card) !important;
  border: 1px solid var(--dark-border) !important;
  backdrop-filter: blur(12px);
  transform-style: preserve-3d;
  will-change: transform;
  transition: all var(--3d-transition);
}

.cta-card-3d:hover {
  border-color: rgba(216,166,62,0.3) !important;
  box-shadow: 0 0 60px var(--gold-glow) !important;
}

.cta-card-3d h3 {
  color: var(--text-primary) !important;
}

.cta-card-3d .cta-list li {
  color: var(--text-secondary) !important;
  border-bottom-color: var(--dark-border) !important;
}

/* ════════════════════════════════════
   FOOTER CONTACT
════════════════════════════════════ */
.footer-contact-3d {
  background: var(--dark-surface) !important;
  border-top: 1px solid var(--dark-border);
}

.contact-card-3d {
  background: var(--dark-card) !important;
  border: 1px solid var(--dark-border) !important;
  transform-style: preserve-3d;
  will-change: transform;
  transition: all var(--3d-transition);
}

.contact-card-3d:hover {
  border-color: rgba(216,166,62,0.3) !important;
  box-shadow: 0 0 40px var(--gold-glow) !important;
}

.contact-card-3d h4,
.contact-card-3d .contact-value {
  color: var(--text-primary) !important;
}

.contact-card-gold.contact-card-3d {
  background: linear-gradient(135deg, #b8860b, #D8A63E) !important;
  border-color: var(--gold) !important;
}

.contact-card-gold.contact-card-3d .contact-link,
.contact-card-gold.contact-card-3d h4 {
  color: var(--dark-bg) !important;
}

.contact-card-3d .social-links a {
  background: rgba(255,255,255,0.06) !important;
  color: var(--text-secondary) !important;
  border: 1px solid var(--dark-border);
  transition: all 0.3s;
}

.contact-card-3d .social-links a:hover {
  background: var(--gold-subtle) !important;
  color: var(--gold) !important;
  border-color: var(--gold);
  transform: translateY(-3px) scale(1.1);
}

/* ════════════════════════════════════
   FOOTER
════════════════════════════════════ */
.footer-3d {
  background: var(--dark-bg) !important;
  border-top-color: var(--dark-border) !important;
}

.footer-3d .footer-links a {
  color: var(--text-secondary) !important;
}

.footer-3d .footer-links a:hover {
  color: var(--gold) !important;
}

.footer-3d .footer-links .dot {
  color: var(--dark-border);
}

.footer-3d .footer-bottom p {
  color: var(--text-secondary);
}

/* ════════════════════════════════════
   TILT GLARE OVERLAY
════════════════════════════════════ */
.tilt-glare {
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  opacity: 0;
  transition: opacity 0.4s;
  z-index: 10;
}

/* ════════════════════════════════════
   SCROLL REVEAL ANIMATIONS
════════════════════════════════════ */
[data-reveal] {
  opacity: 0;
  transform: translateY(40px) translateZ(-30px);
  transition: opacity 0.8s cubic-bezier(0.23,1,0.32,1),
              transform 0.8s cubic-bezier(0.23,1,0.32,1);
  will-change: transform, opacity;
}

[data-reveal].revealed {
  opacity: 1;
  transform: translateY(0) translateZ(0);
}

/* Staggered children */
[data-reveal]:nth-child(2) { transition-delay: 0.1s; }
[data-reveal]:nth-child(3) { transition-delay: 0.2s; }
[data-reveal]:nth-child(4) { transition-delay: 0.3s; }

/* Hero content doesn't hide on load */
.hero-content[data-reveal] {
  opacity: 0;
  transform: translateX(-40px);
  transition-delay: 0.3s;
}
.hero-content[data-reveal].revealed {
  opacity: 1;
  transform: translateX(0);
}

/* ════════════════════════════════════
   STAT NUMBER (animated)
════════════════════════════════════ */
.stat-number {
  background: linear-gradient(135deg, #D8A63E 0%, #ffe08a 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 800 !important;
}

.stat-card-dark .stat-number {
  background: linear-gradient(135deg, #D8A63E 0%, #ffe08a 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

.stat-card-light .stat-number {
  background: linear-gradient(135deg, #1a1a1a 0%, #444 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

/* ════════════════════════════════════
   MOBILE ADJUSTMENTS
════════════════════════════════════ */
@media (max-width: 768px) {
  .hero-canvas {
    width: 100%;
    height: 50%;
    top: auto;
    bottom: 0;
    opacity: 0.5;
  }

  .hero-3d .hero-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .hero-3d-scene {
    display: none;
  }

  .hero-trust-row {
    gap: 16px;
  }

  .hero-cta-row {
    flex-direction: column;
  }

  .hero-cta-row .btn {
    justify-content: center;
  }

  .intro-chips {
    gap: 8px;
  }

  .header-3d .phone-link span {
    display: none;
  }

  [data-tilt] {
    transform: none !important;
  }
}

/* ════════════════════════════════════
   MINI CART — DARK THEME
════════════════════════════════════ */
body.theme-3d .mini-cart-panel {
  background: var(--dark-card) !important;
  border-left: 1px solid var(--dark-border);
}

body.theme-3d .mini-cart-header h3 {
  color: var(--text-primary);
}

body.theme-3d .mobile-nav-panel {
  background: var(--dark-surface) !important;
}

body.theme-3d .mobile-nav-links a {
  color: var(--text-primary);
  border-bottom-color: var(--dark-border);
}

body.theme-3d .mobile-nav-links a:hover {
  color: var(--gold);
}

/* ════════════════════════════════════
   PERSPECTIVE WRAPPERS
════════════════════════════════════ */
.stats-cards,
.team-grid,
.contact-grid {
  perspective: 1200px;
}

.stat-card,
.team-card-3d,
.contact-card-3d,
.cta-card-3d,
.faq-3d-card,
.img-3d-wrapper {
  transform-style: preserve-3d;
}

/* ════════════════════════════════════
   GLOW TEXT FOR HEADERS
════════════════════════════════════ */
.stats-3d .stats-title,
.stats-3d .stats-subtitle {
  color: white;
  text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

/* ════════════════════════════════════
   DARK SCROLLBAR
════════════════════════════════════ */
body.theme-3d ::-webkit-scrollbar {
  width: 6px;
}

body.theme-3d ::-webkit-scrollbar-track {
  background: var(--dark-bg);
}

body.theme-3d ::-webkit-scrollbar-thumb {
  background: var(--dark-border);
  border-radius: 3px;
}

body.theme-3d ::-webkit-scrollbar-thumb:hover {
  background: var(--gold);
}

/* ════════════════════════════════════
   SELECTION COLOR
════════════════════════════════════ */
body.theme-3d ::selection {
  background: var(--gold-glow);
  color: var(--gold);
}

/* ════════════════════════════════════
   COMPREHENSIVE READABILITY OVERRIDES
   Fixes all dark-text-on-dark-bg issues
   caused by the base styles.css colors
════════════════════════════════════ */

/* ── Global text reset for dark theme ── */
body.theme-3d {
  --text: #F8F8FA;
  --text-light: rgba(248, 248, 250, 0.55);
  --dark: #F8F8FA;
  --bg-light: var(--dark-bg);
  --bg-cream: var(--dark-bg);
  --bg-muted: rgba(255,255,255,0.08);
  --white: var(--dark-card);
}

/* ── Product Cards ── */
body.theme-3d .product-card {
  background: var(--dark-card) !important;
  border: 1px solid var(--dark-border) !important;
  color: var(--text-primary) !important;
}

body.theme-3d .product-card .product-name,
body.theme-3d .product-card h3,
body.theme-3d .product-card .product-title {
  color: var(--text-primary) !important;
}

body.theme-3d .product-card .product-cat,
body.theme-3d .product-card .product-category,
body.theme-3d .product-card .product-count,
body.theme-3d .product-review-count,
body.theme-3d .product-card p {
  color: var(--text-secondary) !important;
}

body.theme-3d .product-card .product-price,
body.theme-3d .product-card .price {
  color: var(--gold) !important;
}

body.theme-3d .star-empty {
  color: rgba(255,255,255,0.2) !important;
}

/* ── Cart & Shop page text ── */
body.theme-3d .cart-section {
  background: var(--dark-bg) !important;
}

body.theme-3d .cart-table {
  background: var(--dark-card) !important;
  color: var(--text-primary) !important;
}

body.theme-3d .cart-table th {
  background: var(--dark-surface) !important;
  color: var(--text-secondary) !important;
  border-color: var(--dark-border) !important;
}

body.theme-3d .cart-table td {
  border-color: var(--dark-border) !important;
  color: var(--text-primary) !important;
}

body.theme-3d .cart-product-name {
  color: var(--text-primary) !important;
}

body.theme-3d .cart-product-cat {
  color: var(--text-secondary) !important;
}

body.theme-3d .cart-summary-card {
  background: var(--dark-card) !important;
  border: 1px solid var(--dark-border) !important;
  color: var(--text-primary) !important;
}

body.theme-3d .summary-row span,
body.theme-3d .summary-row strong {
  color: var(--text-primary) !important;
}

body.theme-3d .summary-total span {
  color: var(--text-primary) !important;
}

body.theme-3d .cart-empty h2,
body.theme-3d .cart-empty p {
  color: var(--text-secondary) !important;
}

body.theme-3d .secure-badge {
  color: var(--text-secondary) !important;
}

/* ── Forms & Inputs ── */
body.theme-3d .form-group label,
body.theme-3d label {
  color: var(--text-primary) !important;
}

body.theme-3d input,
body.theme-3d textarea,
body.theme-3d select {
  background: var(--dark-surface) !important;
  border-color: var(--dark-border) !important;
  color: var(--text-primary) !important;
}

body.theme-3d input::placeholder,
body.theme-3d textarea::placeholder {
  color: var(--text-secondary) !important;
}

body.theme-3d input:focus,
body.theme-3d textarea:focus,
body.theme-3d select:focus {
  border-color: var(--gold) !important;
  outline: none;
  box-shadow: 0 0 0 3px var(--gold-glow) !important;
}

/* ── Checkout & Orders ── */
body.theme-3d .checkout-section {
  background: var(--dark-bg) !important;
}

body.theme-3d .checkout-steps .step {
  color: var(--text-secondary) !important;
}

body.theme-3d .checkout-steps .step.active,
body.theme-3d .checkout-steps .step.done {
  color: var(--gold) !important;
}

body.theme-3d .checkout-step-panel h2 {
  color: var(--text-primary) !important;
}

body.theme-3d .payment-option-inner strong,
body.theme-3d .payment-option-inner p {
  color: var(--text-primary) !important;
}

body.theme-3d .review-line {
  color: var(--text-primary) !important;
  border-bottom-color: var(--dark-border) !important;
}

body.theme-3d .review-shipping p,
body.theme-3d .review-payment p {
  color: var(--text-secondary) !important;
}

body.theme-3d .checkout-mini-item p,
body.theme-3d .checkout-mini-item span {
  color: var(--text-secondary) !important;
}

body.theme-3d .checkout-mini-item strong {
  color: var(--text-primary) !important;
}

/* ── Page Hero ── */
body.theme-3d .page-hero {
  background: var(--dark-surface) !important;
}

body.theme-3d .page-hero-title {
  color: var(--text-primary) !important;
}

body.theme-3d .page-hero-subtitle {
  color: var(--text-secondary) !important;
}

/* ── Visit Cards ── */
body.theme-3d .visit-card {
  background: var(--dark-card) !important;
  border: 1px solid var(--dark-border) !important;
}

body.theme-3d .visit-card h4 {
  color: var(--text-primary) !important;
}

body.theme-3d .visit-card p {
  color: var(--text-secondary) !important;
}

/* ── FAQ ── */
body.theme-3d .faq-item .faq-question {
  color: var(--text-primary) !important;
}

body.theme-3d .faq-item .faq-answer p {
  color: var(--text-secondary) !important;
}

body.theme-3d .faq-item {
  border-color: var(--dark-border) !important;
}

/* ── Contact cards ── */
body.theme-3d .contact-card {
  background: var(--dark-card) !important;
  border: 1px solid var(--dark-border) !important;
  color: var(--text-primary) !important;
}

body.theme-3d .contact-card h4 {
  color: var(--text-primary) !important;
}

body.theme-3d .contact-card p,
body.theme-3d .contact-value {
  color: var(--text-secondary) !important;
}

body.theme-3d .contact-card-gold {
  background: linear-gradient(135deg, #b8860b, #D8A63E) !important;
}

body.theme-3d .contact-card-gold h4,
body.theme-3d .contact-card-gold .contact-link {
  color: #0a0a0c !important;
}

/* ── Contact info side ── */
body.theme-3d .contact-info-card {
  background: var(--dark-card) !important;
  border: 1px solid var(--dark-border) !important;
  color: var(--text-primary) !important;
}

body.theme-3d .contact-info-card h4 {
  color: var(--text-primary) !important;
}

body.theme-3d .contact-info-card p {
  color: var(--text-secondary) !important;
}

/* ── Contact form ── */
body.theme-3d .contact-form-section {
  background: var(--dark-bg) !important;
}

/* ── Team section ── */
body.theme-3d .team-section {
  background: var(--dark-bg) !important;
}

body.theme-3d .team-card {
  background: var(--dark-card) !important;
  border: 1px solid var(--dark-border) !important;
}

body.theme-3d .team-card h3,
body.theme-3d .team-info h3 {
  color: var(--text-primary) !important;
}

body.theme-3d .team-card p,
body.theme-3d .team-info p {
  color: var(--text-secondary) !important;
}

body.theme-3d .team-role {
  color: var(--gold) !important;
  background: var(--gold-subtle) !important;
}

/* ── Job cards ── */
body.theme-3d .job-card {
  background: var(--dark-card) !important;
  border: 1px solid var(--dark-border) !important;
}

body.theme-3d .job-title {
  color: var(--text-primary) !important;
}

body.theme-3d .job-dept,
body.theme-3d .job-location,
body.theme-3d .job-meta,
body.theme-3d .job-desc {
  color: var(--text-secondary) !important;
}

/* ── Services & Pricing ── */
body.theme-3d .service-card {
  background: var(--dark-card) !important;
  border: 1px solid var(--dark-border) !important;
}

body.theme-3d .service-card h3,
body.theme-3d .service-title {
  color: var(--text-primary) !important;
}

body.theme-3d .service-card p,
body.theme-3d .service-desc {
  color: var(--text-secondary) !important;
}

body.theme-3d .pricing-card {
  background: var(--dark-card) !important;
  border: 1px solid var(--dark-border) !important;
}

body.theme-3d .pricing-card h3 {
  color: var(--text-primary) !important;
}

body.theme-3d .pricing-card-desc,
body.theme-3d .pricing-features li {
  color: var(--text-secondary) !important;
}

body.theme-3d .pricing-card-featured {
  background: linear-gradient(135deg, #1a1612, #1f1a0e) !important;
  border-color: rgba(197,160,89,0.4) !important;
}

/* ── Order summary & success ── */
body.theme-3d .order-success {
  background: var(--dark-card) !important;
  color: var(--text-primary) !important;
}

body.theme-3d .order-success h2 {
  color: var(--text-primary) !important;
}

body.theme-3d .order-success p {
  color: var(--text-secondary) !important;
}

/* ── Footer ── */
body.theme-3d .footer {
  background: var(--dark-bg) !important;
  border-top: 1px solid var(--dark-border) !important;
}

body.theme-3d .footer-links a {
  color: var(--text-secondary) !important;
}

body.theme-3d .footer-links a:hover {
  color: var(--gold) !important;
}

body.theme-3d .footer-bottom p {
  color: var(--text-secondary) !important;
}

/* ── Mobile nav ── */
body.theme-3d .header {
  background: rgba(10, 10, 12, 0.9) !important;
  backdrop-filter: blur(20px) !important;
  border-bottom: 1px solid var(--dark-border) !important;
}

body.theme-3d .nav-link {
  color: var(--text-primary) !important;
}

body.theme-3d .nav-link:hover,
body.theme-3d .nav-link.active {
  color: var(--gold) !important;
}

body.theme-3d .dropdown-menu {
  background: var(--dark-card) !important;
  border: 1px solid var(--dark-border) !important;
}

body.theme-3d .dropdown-menu a {
  color: var(--text-primary) !important;
}

body.theme-3d .dropdown-menu a:hover {
  color: var(--gold) !important;
}

body.theme-3d .icon-btn {
  color: var(--text-primary) !important;
}

/* ── Qty controls on dark ── */
body.theme-3d .qty-btn {
  background: rgba(255,255,255,0.06) !important;
  color: var(--text-primary) !important;
  border-color: var(--dark-border) !important;
}

body.theme-3d .qty-btn:hover {
  background: rgba(255,255,255,0.12) !important;
}

body.theme-3d .qty-value {
  color: var(--text-primary) !important;
}

/* ── Shop filter bar ── */
body.theme-3d .shop-controls,
body.theme-3d .shop-section,
body.theme-3d .shop-hero {
  background: var(--dark-bg) !important;
}

body.theme-3d .filter-btn {
  background: var(--dark-card) !important;
  border-color: var(--dark-border) !important;
  color: var(--text-secondary) !important;
}

body.theme-3d .filter-btn.active,
body.theme-3d .filter-btn:hover {
  background: var(--gold-subtle) !important;
  border-color: var(--gold) !important;
  color: var(--gold) !important;
}

/* ── Profile page ── */
body.theme-3d .profile-section,
body.theme-3d .profile-container {
  background: var(--dark-bg) !important;
}

body.theme-3d .profile-card,
body.theme-3d .profile-sidebar {
  background: var(--dark-card) !important;
  border: 1px solid var(--dark-border) !important;
}

body.theme-3d .profile-name,
body.theme-3d .profile-email,
body.theme-3d .section-heading {
  color: var(--text-primary) !important;
}

/* ── Breadcrumb & tags ── */
body.theme-3d .breadcrumb,
body.theme-3d .breadcrumb a {
  color: var(--text-secondary) !important;
}

/* ── Section backgrounds ── */
body.theme-3d .pricing-intro,
body.theme-3d .pricing-section,
body.theme-3d .services-section,
body.theme-3d .about-section,
body.theme-3d section {
  background: var(--dark-bg) !important;
}

/* ── hr dividers ── */
body.theme-3d hr {
  border-color: var(--dark-border) !important;
}

/* ── Checkout quiz controls ── */
body.theme-3d .payment-option {
  border-color: var(--dark-border) !important;
  background: var(--dark-surface) !important;
}

body.theme-3d .payment-option:has(input:checked) {
  border-color: var(--gold) !important;
  background: var(--gold-subtle) !important;
}
