/* ==========================================================================
   MALLURI POLA RAJU — AWARD-WINNING 3D WEBSITE DESIGN SYSTEM
   Palette: Royal Blue, Sovereign Gold & Sterile Clinical White
   ========================================================================== */

:root {
  /* Royal Blue Palette */
  --royal-dark: #0a1128;
  --royal-navy: #001f54;
  --royal-blue: #1e3a8a;
  --royal-bright: #2563eb;

  /* Sovereign Gold Palette */
  --gold-main: #f59e0b;
  --gold-bright: #fbbf24;
  --gold-accent: #d97706;

  /* Sterile Clinical White Palette */
  --white-pure: #ffffff;
  --white-clinical: #f8fafc;
  --text-muted: #cbd5e1;
  --text-dim: #94a3b8;

  /* Glassmorphism Surfaces & Borders */
  --bg-surface: rgba(0, 31, 84, 0.82);
  --bg-surface-hover: rgba(30, 58, 138, 0.95);
  --border-gold: rgba(245, 158, 11, 0.45);
  --border-royal: rgba(37, 99, 235, 0.35);

  --radius-lg: 24px;
  --radius-md: 18px;
}

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

html, body {
  width: 100%;
  height: 100%;
  background-color: var(--royal-dark);
  color: var(--white-pure);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  overflow-x: hidden;
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

h1, h2, h3, h4 {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-weight: 900;
  letter-spacing: -0.02em;
}

/* Background Video & WebGL Canvas Overlay (DentCity Reference Style) */
.bg-video-wrap {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -2;
  overflow: hidden;
  pointer-events: none;
}

.bg-video-element {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
  filter: saturate(1.2) contrast(1.15);
}

.bg-video-canvas {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.35;
  filter: saturate(1.2) contrast(1.1);
}

.bg-video-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: radial-gradient(circle at center, rgba(10, 17, 40, 0.3) 0%, rgba(10, 17, 40, 0.85) 100%);
  z-index: -1;
  pointer-events: none;
}

#webgl-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  pointer-events: none;
}

.container {
  width: min(1200px, 92%);
  margin-inline: auto;
  padding-inline: 15px;
}

/* Navigation Header */
.nav-wrap {
  position: sticky;
  top: 16px;
  z-index: 100;
  padding-inline: 15px;
}

.nav {
  max-width: 1200px;
  margin-inline: auto;
  background: rgba(10, 17, 40, 0.92);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--border-gold);
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  padding-inline: 20px;
}

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

.brand-logo {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--gold-main), var(--royal-blue));
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: 17px;
  color: var(--royal-dark);
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.4);
  animation: logoPulse 4s infinite ease-in-out;
}

@keyframes logoPulse {
  0%, 100% { box-shadow: 0 0 20px rgba(245, 158, 11, 0.4); }
  50% { box-shadow: 0 0 32px rgba(245, 158, 11, 0.8); }
}

.brand-name {
  font-size: 15px;
  font-weight: 900;
  color: var(--white-pure);
}

.brand-tag {
  font-size: 11px;
  color: var(--gold-bright);
  font-weight: 800;
}

.menu {
  display: flex;
  gap: 4px;
}

.menu a {
  padding: 8px 14px;
  border-radius: 10px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.menu a:hover, .menu a.active {
  color: var(--gold-bright);
  background: rgba(245, 158, 11, 0.12);
  transform: translateY(-1px);
}

/* Shimmer Buttons */
.btn-main {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--gold-main), var(--gold-accent));
  color: var(--royal-dark);
  font-weight: 900;
  font-size: 14px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  box-shadow: 0 8px 25px rgba(245, 158, 11, 0.35);
  transition: background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.btn-main::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(60deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transform: rotate(30deg) translateX(-100%);
  transition: transform 0.6s ease;
}

.btn-main:hover::after {
  transform: rotate(30deg) translateX(100%);
}

.btn-main:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 30px rgba(245, 158, 11, 0.5);
}

.btn-secondary {
  background: rgba(30, 58, 138, 0.4);
  border: 1px solid var(--border-royal);
  color: var(--white-pure);
  box-shadow: none;
}

.btn-gold-outline {
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid var(--border-gold);
  color: var(--gold-bright);
}

.social-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
}

.social-icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-gold);
  display: grid;
  place-items: center;
  color: var(--gold-bright);
  text-decoration: none;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: 18px;
}

.social-icon-btn:hover {
  background: rgba(245, 158, 11, 0.25);
  transform: translateY(-4px) scale(1.1);
  box-shadow: 0 8px 20px rgba(245, 158, 11, 0.3);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 26px;
  cursor: pointer;
}

.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: #0a1128;
  z-index: 150;
  padding: 100px 24px;
}

.mobile-menu.active {
  display: block;
}

.mobile-menu a {
  display: block;
  padding: 18px;
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  border-bottom: 1px solid var(--border-gold);
}

/* Hero Section */
.hero {
  padding: 45px 0 30px;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 36px;
  align-items: center;
}

.badge-gold {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid var(--border-gold);
  color: var(--gold-bright);
  font-size: 13px;
  font-weight: 900;
  margin-bottom: 20px;
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.2);
  animation: badgeGlow 3s infinite alternate;
}

@keyframes badgeGlow {
  0% { box-shadow: 0 0 15px rgba(245, 158, 11, 0.2); }
  100% { box-shadow: 0 0 30px rgba(245, 158, 11, 0.5); }
}

.hero-title {
  font-size: clamp(34px, 4.5vw, 54px);
  line-height: 1.12;
  margin-bottom: 20px;
  color: var(--white-pure);
}

.hero-title span {
  background: linear-gradient(135deg, var(--gold-bright) 30%, var(--white-pure) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: clamp(15px, 1.8vw, 18px);
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 26px;
}

/* 3D Glass Tilt Card Effects */
.card-3d-tilt {
  transform-style: preserve-3d;
  perspective: 1000px;
  transition: transform 0.2s cubic-bezier(0.2, 0, 0.2, 1);
}

.profile-card-3d {
  background: var(--bg-surface);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);
  padding: 22px;
  text-align: center;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8);
  position: relative;
  transform-style: preserve-3d;
}

.profile-img {
  width: 100%;
  height: 350px;
  object-fit: cover;
  object-position: top center;
  border-radius: 16px;
  margin-bottom: 16px;
  transform: translateZ(20px);
}

.badge-3d-float {
  position: absolute;
  top: -15px;
  right: -15px;
  background: linear-gradient(135deg, var(--gold-main), var(--royal-blue));
  border: 2px solid var(--white-pure);
  border-radius: 999px;
  padding: 8px 18px;
  color: var(--white-pure);
  font-size: 12px;
  font-weight: 900;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
  transform: translateZ(40px);
  animation: float3d 4s ease-in-out infinite;
}

@keyframes float3d {
  0%, 100% { transform: translateZ(40px) translateY(0px) rotate(0deg); }
  50% { transform: translateZ(40px) translateY(-10px) rotate(2deg); }
}

section {
  padding: 50px 0;
}

.section-header {
  text-align: center;
  max-width: 780px;
  margin-inline: auto;
  margin-bottom: 40px;
}

.tag-gold {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid var(--border-gold);
  color: var(--gold-bright);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.section-title {
  font-size: clamp(28px, 3.4vw, 42px);
  color: var(--white-pure);
  margin-bottom: 14px;
}

.section-desc {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.6;
}

.grid-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  gap: 24px;
}

.card-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-md);
  padding: 28px;
  transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  transform-style: preserve-3d;
}

.card-item:hover {
  transform: translateY(-8px) rotateX(2deg);
  border-color: var(--gold-bright);
  box-shadow: 0 20px 40px rgba(245, 158, 11, 0.2);
}

.card-item:hover .card-icon {
  transform: scale(1.15) rotate(6deg);
  background: rgba(245, 158, 11, 0.3);
}

.card-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid var(--border-gold);
  display: grid;
  place-items: center;
  font-size: 24px;
  margin-bottom: 18px;
  color: var(--gold-bright);
  transition: transform 0.3s ease, background 0.3s ease;
}

.card-h {
  font-size: 20px;
  color: var(--white-pure);
  margin-bottom: 10px;
}

.card-p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 18px;
}

.list-check {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.list-check li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--white-pure);
}

.list-check li::before {
  content: '✓';
  display: inline-grid;
  place-items: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: rgba(245, 158, 11, 0.25);
  color: var(--gold-bright);
  font-weight: 800;
  font-size: 10px;
  flex-shrink: 0;
}

.countries-banner {
  background: linear-gradient(135deg, rgba(0, 31, 84, 0.95), rgba(10, 17, 40, 0.98));
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);
  padding: 40px;
  margin-bottom: 50px;
  text-align: center;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
}

.country-tags {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.c-tag {
  padding: 10px 20px;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid var(--border-gold);
  color: var(--white-pure);
  font-size: 13px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: transform 0.25s ease, background 0.25s ease;
}

.c-tag:hover {
  transform: translateY(-3px) scale(1.05);
  background: rgba(245, 158, 11, 0.3);
}

.floating-contact {
  position: fixed;
  right: 20px;
  bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 99;
}

.float-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  animation: floatPulse 3s infinite ease-in-out;
}

@keyframes floatPulse {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-5px); }
}

.float-btn:hover {
  transform: scale(1.15) translateY(-3px);
  box-shadow: 0 12px 25px rgba(245, 158, 11, 0.5);
}

.float-btn--wa {
  background: #25d366;
}

.float-btn--call {
  background: var(--royal-blue);
  border: 1px solid var(--border-gold);
}

/* Scroll-Driven Reveal Animations */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0px);
}

.footer {
  border-top: 1px solid var(--border-gold);
  padding: 40px 0 30px;
  color: var(--text-muted);
  font-size: 14px;
}

.footer-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

@media (max-width: 992px) {
  .hero-grid { grid-template-columns: 1fr; }
  .menu { display: none; }
  .menu-toggle { display: block; }
  .footer-flex { flex-direction: column; text-align: center; }
}


/* =====================================================
   IOS SAFARI & MULTI-DEVICE OPTIMIZATION RULES (100% PERFECT)
   ===================================================== */

/* iOS Safari Smooth Touch Scrolling & GPU Hardware Acceleration */
html, body {
  -webkit-overflow-scrolling: touch;
  -webkit-text-size-adjust: 100%;
  touch-action: manipulation;
}

/* Ensure all buttons meet iOS 44px Minimum Touch Target Guidelines */
.btn-main, .float-btn, .social-icon-btn, .menu-toggle, .tab-btn {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  -webkit-tap-highlight-color: transparent;
}

/* Mobile Devices & iOS iPhones (max-width: 576px) */
@media (max-width: 576px) {
  .video-hero__content {
    width: 98% !important;
    padding: 12px 14px !important;
    border-radius: 16px !important;
  }
  .video-hero__title {
    font-size: 20px !important;
  }
  .video-hero__sub {
    font-size: 11px !important;
    line-height: 1.35 !important;
  }
  .video-hero__buttons .btn-main {
    padding: 6px 12px !important;
    font-size: 11px !important;
    min-height: 38px !important;
  }
  .hero-title {
    font-size: 26px !important;
  }
  .section-title {
    font-size: 24px !important;
  }
  .floating-contact {
    right: 12px;
    bottom: 12px;
    gap: 8px;
  }
  .float-btn {
    width: 44px;
    height: 44px;
    font-size: 18px;
  }
}

/* Tablets & iPads (577px to 992px) */
@media (min-width: 577px) and (max-width: 992px) {
  .video-hero__content {
    width: 96% !important;
    padding: 14px 20px !important;
  }
  .video-hero__title {
    font-size: 26px !important;
  }
  .grid-cards {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

/* Laptops & Large Desktops (min-width: 993px) */
@media (min-width: 993px) {
  .hero-grid {
    grid-template-columns: 1.25fr 0.75fr;
  }
}
