/* Ultimate PPF — European Glass Look */

/* ===== GOOGLE TRANSLATE BAR HIDE ===== */
/* Hide the Google Translate toolbar completely */
.goog-te-banner-frame,
.goog-te-balloon-frame,
#goog-gt-tt,
.goog-te-balloon,
.goog-tooltip,
.goog-tooltip:hover,
.goog-text-highlight,
.goog-te-gadget,
.skiptranslate,
.goog-te-spinner-pos,
.goog-te-banner-frame.skiptranslate {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  opacity: 0 !important;
}

body {
  top: 0 !important;
  position: static !important;
}

.goog-logo-link {
  display: none !important;
}

.goog-te-gadget {
  color: transparent !important;
}

/* Fix body shift caused by Google Translate */
html.translated-ltr,
html.translated-rtl {
  margin-top: 0 !important;
}

body.translated-ltr,
body.translated-rtl {
  margin-top: 0 !important;
  top: 0 !important;
}

iframe.goog-te-banner-frame {
  display: none !important;
  height: 0 !important;
  visibility: hidden !important;
}

/* Prevent translation text from wrapping in navigation */
.notranslate {
  translate: none !important;
}

/* Block Google Translate from modifying notranslate elements */
.notranslate,
.notranslate *,
[translate='no'],
[translate='no'] * {
  font: inherit !important;
}

/* Allow full text display - no ellipsis */
nav a,
header a,
button {
  overflow: visible;
  text-overflow: clip;
}

/* Base nav link styling */
header nav a.nav-link {
  font-size: 0.85rem;
  letter-spacing: 0;
}

/* Dynamic font sizing for different languages */
/* Turkish - default, comfortable size */
html[lang='tr'] header nav a.nav-link,
html:not([lang]) header nav a.nav-link {
  font-size: 0.85rem !important;
}

/* English */
html[lang='en'] header nav a.nav-link {
  font-size: 0.78rem !important;
}

/* German - long compound words */
html[lang='de'] header nav a.nav-link {
  font-size: 0.68rem !important;
  letter-spacing: -0.01em;
}

/* Spanish */
html[lang='es'] header nav a.nav-link {
  font-size: 0.72rem !important;
}

/* French */
html[lang='fr'] header nav a.nav-link {
  font-size: 0.72rem !important;
}

/* Russian - Cyrillic is wider */
html[lang='ru'] header nav a.nav-link {
  font-size: 0.62rem !important;
  letter-spacing: -0.02em;
}

/* Chinese - compact characters */
html[lang='zh-CN'] header nav a.nav-link {
  font-size: 0.9rem !important;
}

/* Japanese */
html[lang='ja'] header nav a.nav-link {
  font-size: 0.82rem !important;
}

/* Korean */
html[lang='ko'] header nav a.nav-link {
  font-size: 0.82rem !important;
}

/* Arabic */
html[lang='ar'] header nav a.nav-link {
  font-size: 0.72rem !important;
}

/* Fix for translated dropdown menus */
.group-hover\:visible {
  min-width: max-content;
}

/* Ensure header allows dropdown overflow */
header {
  overflow: visible !important;
}

header .max-w-7xl {
  overflow: visible;
}

/* Header glass container must allow overflow for dropdowns */
header > div,
header .ug-glass {
  overflow: visible !important;
}
/* ===== END GOOGLE TRANSLATE BAR HIDE ===== */

:root {
  /* 4 renk paleti: parlak siyah + platinyum gri + (mavi→mor) accent */
  --ug-black: #07090d;
  --ug-black-2: #0b0f16;
  --ug-platinum: #e5e7eb;
  --ug-platinum-2: #cbd5e1;
  --ug-platinum-rgb: 229, 231, 235;

  --ug-bg: var(--ug-black);
  /* Platinyum “cam kenarı” biraz daha belirgin */
  --ug-surface: rgba(var(--ug-platinum-rgb), 0.065);
  --ug-surface-strong: rgba(var(--ug-platinum-rgb), 0.105);
  --ug-border: rgba(var(--ug-platinum-rgb), 0.17);
  --ug-border-strong: rgba(var(--ug-platinum-rgb), 0.28);
  --ug-shadow: 0 18px 70px rgba(0, 0, 0, 0.55);
  --ug-shadow-soft: 0 10px 40px rgba(0, 0, 0, 0.45);
  /* Logo tonuna yakın mavi→mor (cam parlaklığı için cyan highlight) */
  --ug-accent: #4f46e5; /* indigo */
  --ug-accent-2: #a855f7; /* purple */
  --ug-accent-3: #22d3ee; /* cyan highlight */
  --ug-accent-rgb: 79, 70, 229;
  --ug-accent-2-rgb: 168, 85, 247;
}

html,
body {
  background-color: var(--ug-black); /* Fallback for rubber-banding */
  min-height: 100vh;
  overflow-x: hidden; /* Prevent horizontal scroll */
  background: radial-gradient(
      900px 520px at 18% 12%,
      rgba(var(--ug-accent-rgb), 0.18),
      transparent 62%
    ),
    radial-gradient(
      760px 520px at 82% 18%,
      rgba(var(--ug-accent-2-rgb), 0.15),
      transparent 64%
    ),
    radial-gradient(
      820px 560px at 50% 92%,
      rgba(34, 211, 238, 0.09),
      transparent 58%
    ),
    linear-gradient(
      180deg,
      rgba(var(--ug-platinum-rgb), 0.06),
      rgba(var(--ug-platinum-rgb), 0) 28%
    ),
    linear-gradient(180deg, var(--ug-black-2), var(--ug-bg));
  background-attachment: fixed; /* Fix background during scroll */
}

/* Prevent common flex overflow issues on mobile */
*,
*::before,
*::after {
  min-width: 0;
  box-sizing: border-box;
}

/* Prevent horizontal scroll globally */
html,
body {
  overflow-x: hidden;
  max-width: 100vw;
}

/* Fix any overflowing sections */
section {
  max-width: 100%;
  overflow-x: hidden;
}

body {
  text-align: start;
}

/* iOS safe-area support (notch) */
.ug-safe-top {
  padding-top: env(safe-area-inset-top);
}

/* RTL polish (Arabic) */
[dir='rtl'] .ug-tracking-wide {
  letter-spacing: 0;
}

/* Glass primitives */
.ug-glass {
  background: var(--ug-surface);
  border: 1px solid var(--ug-border);
  box-shadow: var(--ug-shadow-soft),
    inset 0 1px 0 rgba(var(--ug-platinum-rgb), 0.18),
    inset 0 -1px 0 rgba(0, 0, 0, 0.32);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  background-image: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.09),
    rgba(255, 255, 255, 0.03)
  );
}

.ug-glass-strong {
  background: rgba(10, 10, 10, 0.3); /* Darker, more transparent base */
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--ug-shadow), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
  /* Removed the milky linear-gradient */
}

/* NEW: Ultra-Clean Glass (2025 Style) */
.ug-glass-pure {
  background: rgba(255, 255, 255, 0.01); /* Crystal clear */
  border: 1px solid rgba(255, 255, 255, 0.08); /* Barely there border */
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px); /* Lighter blur for inner items */
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.ug-glass-pure:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2), 0 0 20px rgba(255, 255, 255, 0.05);
  transform: translateY(-2px);
}

.ug-hairline {
  border-color: rgba(var(--ug-platinum-rgb), 0.12);
}

.ug-noise::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.06;
  background-image: radial-gradient(
      circle at 10% 10%,
      rgba(255, 255, 255, 0.6),
      transparent 28%
    ),
    radial-gradient(
      circle at 80% 30%,
      rgba(255, 255, 255, 0.35),
      transparent 34%
    ),
    radial-gradient(
      circle at 30% 90%,
      rgba(255, 255, 255, 0.45),
      transparent 36%
    );
  mix-blend-mode: overlay;
}

/* Accent utilities (kept sparse) */
.ug-accent {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: linear-gradient(
    135deg,
    var(--ug-accent-3) 0%,
    var(--ug-accent) 45%,
    var(--ug-accent-2) 100%
  );
  box-shadow: inset 0 1px 0 rgba(var(--ug-platinum-rgb), 0.28),
    inset 0 -1px 0 rgba(0, 0, 0, 0.3);
}

/* Cam gibi parlak “sheen” (buton/rozet üstünde) */
.ug-accent::before {
  content: '';
  position: absolute;
  inset: -60% -40% auto -40%;
  height: 160%;
  transform: rotate(18deg);
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.26) 40%,
    rgba(255, 255, 255, 0) 78%
  );
  filter: blur(0.2px);
  opacity: 0.9;
  pointer-events: none;
  z-index: 0;
}

.ug-accent::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid rgba(var(--ug-platinum-rgb), 0.3);
  pointer-events: none;
  z-index: 1;
}

.ug-accent-ring {
  box-shadow: 0 0 0 1px rgba(var(--ug-accent-rgb), 0.32),
    0 0 26px rgba(var(--ug-accent-2-rgb), 0.22), 0 18px 70px rgba(0, 0, 0, 0.55);
}

/* Typography feel */
.ug-tracking-wide {
  letter-spacing: 0.14em;
}

/* Smooth focus */
.ug-focus:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(var(--ug-accent-rgb), 0.32);
}

/* Subtle divider line */
.ug-divider {
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.18),
    transparent
  );
}

/* Language switcher */
.ug-lang-strip {
  /* show all flags on wide screens */
  max-width: none;
  overflow: visible;
}

.ug-lang-btn {
  width: 34px;
  height: 26px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 140ms ease, background 140ms ease;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.ug-lang-btn:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.1);
}

.ug-lang-active {
  box-shadow: 0 0 0 1px rgba(var(--ug-accent-rgb), 0.32), var(--ug-shadow-soft);
}

/* Logo tonuna yakın degrade yazı (başlık, CTA, vurgular) */
.ug-text-gradient {
  background: linear-gradient(
    135deg,
    var(--ug-accent-3),
    var(--ug-accent),
    var(--ug-accent-2)
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

/* Platinyum kurumsal yazı (etiketler/alt başlıklar) */
.ug-platinum-text {
  background: linear-gradient(
    180deg,
    rgba(var(--ug-platinum-rgb), 0.98),
    rgba(var(--ug-platinum-rgb), 0.74)
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.08),
    0 14px 34px rgba(0, 0, 0, 0.45);
}

/* Platinyum cam “pill” (kurumsal etiket) */
.ug-platinum-pill {
  background: linear-gradient(
    180deg,
    rgba(var(--ug-platinum-rgb), 0.1),
    rgba(var(--ug-platinum-rgb), 0.04)
  );
  border: 1px solid rgba(var(--ug-platinum-rgb), 0.2);
  box-shadow: inset 0 1px 0 rgba(var(--ug-platinum-rgb), 0.2),
    inset 0 -1px 0 rgba(0, 0, 0, 0.38), var(--ug-shadow-soft);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

/* UG monogram: daha okunur, “imza” hissi */
.ug-monogram {
  text-shadow: 0 0 18px rgba(var(--ug-accent-rgb), 0.38),
    0 0 30px rgba(var(--ug-accent-2-rgb), 0.24), 0 12px 28px rgba(0, 0, 0, 0.55);
  -webkit-text-stroke: 0.35px rgba(var(--ug-platinum-rgb), 0.22);
}

/* Yeni Logo Stili için Eklemeler */
.ug-logo-text {
  font-family: 'Montserrat', sans-serif;
  letter-spacing: -0.05em;
}

/* Slider caption: tüm ekranlarda cam arka plan/blur kaldırılsın, görsel net kalsın */
.ug-slider-caption {
  background: transparent !important;
  background-image: none !important;
  border-color: transparent !important;
  box-shadow: none !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}

.ug-slider-caption * {
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.75);
}

/* Google Translate: prevent injected banner from breaking layout */
.goog-te-banner-frame {
  display: none !important;
}

body {
  top: 0 !important;
}

/* --- Premium Map Background (Cyber/Tech Grid) --- */
.ug-premium-map-bg {
  position: relative;
  background-color: #030407; /* Deepest black/blue */
  border-radius: 2rem; /* Modern rounded corners */
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 1), 0 20px 50px -10px rgba(0, 0, 0, 0.8),
    inset 0 0 60px rgba(0, 0, 0, 0.7);
  overflow: hidden;
}

/* The Grid Pattern */
.ug-premium-map-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: linear-gradient(
      rgba(255, 255, 255, 0.03) 1px,
      transparent 1px
    ),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  -webkit-mask-image: radial-gradient(
    circle at 50% 50%,
    black 40%,
    transparent 100%
  );
  mask-image: radial-gradient(circle at 50% 50%, black 40%, transparent 100%);
  pointer-events: none;
  z-index: 0;
}

/* The Glow Spot */
.ug-premium-map-bg::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 140%;
  height: 140%;
  background: radial-gradient(
    circle,
    rgba(79, 70, 229, 0.08) 0%,
    rgba(34, 211, 238, 0.03) 30%,
    transparent 70%
  );
  pointer-events: none;
  z-index: 0;
  filter: blur(60px);
}

/* Scanline Effect (Subtle Animation) */
@keyframes scanline {
  0% {
    transform: translateY(-100%);
    opacity: 0;
  }
  50% {
    opacity: 0.5;
  }
  100% {
    transform: translateY(100%);
    opacity: 0;
  }
}

.ug-scanline {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    transparent,
    rgba(34, 211, 238, 0.1),
    transparent
  );
  height: 100%;
  width: 100%;
  pointer-events: none;
  z-index: 1;
  animation: scanline 8s linear infinite;
  opacity: 0.3;
}

/* Map Container Fixes for Mobile */
#turkeyMap,
#worldMap {
  width: 100% !important;
  /* display: flex; */
  /* justify-content: center; */
  /* align-items: center; */
  display: block;
}

#turkeyMap > div,
#worldMap > div {
  margin: 0 auto !important;
  width: 100% !important;
}

/* Platinum Text Gradient - Dark/Glassy/Shiny */
.ug-text-platinum {
  background: linear-gradient(135deg, #f3f4f6 0%, #9ca3af 50%, #d1d5db 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.5));
}

/* ============================================ */
/* RESPONSIVE & MOBILE IMPROVEMENTS */
/* ============================================ */

/* Fix overflow issues on all elements */
img,
video,
iframe,
embed,
object {
  max-width: 100%;
  height: auto;
}

/* Mobile Navigation Improvements */
@media (max-width: 1023px) {
  /* Better touch targets for mobile menu */
  #ugMobileMenu a {
    min-height: 48px;
    display: flex;
    align-items: center;
  }

  /* Language buttons touch area */
  #ugMobileMenu button[data-lang] {
    min-height: 44px;
  }
}

/* Slider Controls Mobile Fix */
@media (max-width: 640px) {
  [data-ug-slider] .absolute.bottom-10 {
    bottom: 1rem;
  }

  [data-ug-slider] button[data-ug-prev],
  [data-ug-slider] button[data-ug-next] {
    width: 2.5rem;
    height: 2.5rem;
  }

  [data-ug-dots] button {
    width: 1.5rem !important;
  }
}

/* Compass Section Mobile */
@media (max-width: 640px) {
  .relative.w-72.h-72 {
    width: 16rem;
    height: 16rem;
  }
}

/* Map Container Mobile Improvements */
@media (max-width: 640px) {
  .ug-premium-map-bg {
    border-radius: 1rem;
    margin-left: -0.5rem;
    margin-right: -0.5rem;
    width: calc(100% + 1rem);
  }

  .ug-premium-map-bg h2 {
    font-size: 1.125rem;
    line-height: 1.4;
    padding: 0 0.75rem;
    word-break: keep-all;
  }

  .ug-premium-map-bg p {
    font-size: 0.8125rem;
    padding: 0 0.75rem;
    line-height: 1.6;
  }

  /* Watermark below maps */
  .ug-premium-map-bg .pb-10 {
    padding-bottom: 1.5rem;
  }
}

/* Footer Mobile Grid */
@media (max-width: 768px) {
  footer .grid.md\:grid-cols-3 {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* Card Hover Effects - Disable on Touch */
@media (hover: none) {
  .ug-glass-pure:hover {
    transform: none;
  }

  .group:hover .group-hover\:scale-105 {
    transform: none;
  }
}

/* Prevent text overflow */
.truncate-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Form Elements Mobile */
@media (max-width: 640px) {
  input,
  textarea,
  select {
    font-size: 16px !important; /* Prevents iOS zoom on focus */
  }
}

/* Video Section Mobile */
@media (max-width: 640px) {
  .aspect-video {
    aspect-ratio: 16 / 9;
  }

  /* Video placeholder height fix */
  .relative.w-full.h-\[250px\] {
    height: 200px;
  }

  /* Video play button size */
  .w-20.h-20 {
    width: 3.5rem;
    height: 3.5rem;
  }

  .w-20.h-20 svg {
    width: 1.5rem;
    height: 1.5rem;
  }
}

/* Prose/Article Content Mobile */
.prose {
  word-wrap: break-word;
  overflow-wrap: break-word;
}

@media (max-width: 640px) {
  .prose {
    font-size: 0.9375rem;
    line-height: 1.7;
  }
}

/* Custom Scrollbar for language dropdown */
.custom-scrollbar::-webkit-scrollbar {
  width: 4px;
}

.custom-scrollbar::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 2px;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 2px;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* Safe area padding for modern devices */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
  footer {
    padding-bottom: calc(3rem + env(safe-area-inset-bottom));
  }
}

/* Fix for color selector buttons on mobile */
@media (max-width: 640px) {
  .bg-black\/60.backdrop-blur-xl {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem;
    max-width: 100%;
  }

  .bg-black\/60.backdrop-blur-xl button {
    width: 2.25rem;
    height: 2.25rem;
    flex-shrink: 0;
  }

  .bg-black\/60.backdrop-blur-xl .px-3 {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
    font-size: 8px;
  }
}

/* PPF Toggle Button Mobile Fix */
@media (max-width: 640px) {
  #ppf-toggle {
    padding: 0.5rem 0.75rem;
    gap: 0.5rem;
  }

  #ppf-toggle .w-10 {
    width: 2rem;
    height: 2rem;
  }

  #ppf-toggle .text-sm {
    font-size: 0.75rem;
  }
}

/* Hero slider text mobile optimization */
@media (max-width: 640px) {
  [data-ug-slider] h2 {
    font-size: 1.5rem !important;
    line-height: 1.3;
  }

  [data-ug-slider] p {
    font-size: 0.875rem !important;
  }
}

/* Contact form mobile improvements */
@media (max-width: 640px) {
  .lg\:col-span-5 form {
    padding: 0.5rem;
  }

  .lg\:col-span-5 form input,
  .lg\:col-span-5 form textarea {
    padding: 0.75rem;
  }
}

/* ============================================ */
/* ADDITIONAL MOBILE & UX IMPROVEMENTS 2025 */
/* ============================================ */

/* Modal Mobile Optimization */
@media (max-width: 640px) {
  #certificateModal #modalContent {
    max-height: 95vh;
    max-height: 95dvh;
    border-radius: 1.5rem;
    margin: 0.5rem;
  }

  #certificateModal #modalLogoContainer {
    top: 0.75rem;
    left: 0.75rem;
    gap: 0.5rem;
  }

  #certificateModal #modalLogoContainer .w-12 {
    width: 2.5rem;
    height: 2.5rem;
  }

  #certificateModal #modalLogoContainer img {
    width: 1.25rem;
    height: 1.25rem;
  }

  #certificateModal .lg\:w-80 {
    padding: 1rem;
  }

  #certificateModal #modalFeatures > div {
    padding: 0.625rem;
  }

  #certificateModal #modalTitle {
    font-size: 1.125rem;
  }

  #certificateModal #modalDescription {
    font-size: 0.8125rem;
  }

  /* Order Modal Mobile */
  #orderModal > div > div,
  #vehicleWarningModal > div {
    max-height: 95vh;
    max-height: 95dvh;
    overflow-y: auto;
    margin: 0.5rem;
    border-radius: 1.5rem;
  }

  /* Modal backdrop - prevent body scroll */
  #orderModal,
  #vehicleWarningModal,
  #certificateModal {
    overscroll-behavior: contain;
  }
}

/* Kurumsal Page Cards Mobile */
@media (max-width: 640px) {
  .md\:grid-cols-3 {
    grid-template-columns: 1fr;
  }

  .aspect-\[4\/3\] {
    aspect-ratio: 16 / 10;
  }
}

/* Stats Section Mobile */
@media (max-width: 640px) {
  .grid-cols-2.lg\:grid-cols-4 .text-3xl {
    font-size: 1.75rem;
  }
}

/* Floating Buttons Mobile Position */
@media (max-width: 640px) {
  .fixed.bottom-6.right-6 {
    bottom: 1rem;
    right: 1rem;
  }

  .fixed.bottom-6.right-6 a {
    width: 3rem;
    height: 3rem;
  }

  .fixed.bottom-6.right-6 a svg {
    width: 1.25rem;
    height: 1.25rem;
  }
}

/* Better Typography for Mobile */
@media (max-width: 640px) {
  h1 {
    font-size: 1.75rem !important;
    line-height: 1.2;
  }

  h2 {
    font-size: 1.375rem !important;
    line-height: 1.3;
  }

  h3 {
    font-size: 1.125rem !important;
  }
}

/* ===== ENHANCED MOBILE RESPONSIVENESS ===== */

/* Mobile Menu Full Screen */
@media (max-width: 1279px) {
  #ugMobileMenu {
    position: fixed;
    top: 64px; /* Height of header on mobile */
    left: 0;
    right: 0;
    max-height: calc(100vh - 64px);
    max-height: calc(100dvh - 64px); /* Dynamic viewport height for iOS */
    overflow-y: auto;
    z-index: 9998;
    background-color: #07090d;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
  }

  /* Larger screens have taller header */
  @media (min-width: 640px) {
    #ugMobileMenu {
      top: 80px; /* Height of header on sm+ screens */
      max-height: calc(100vh - 80px);
      max-height: calc(100dvh - 80px);
    }
  }
}

/* Touch-friendly tap targets */
@media (max-width: 768px) {
  a,
  button,
  input,
  select,
  textarea {
    min-height: 44px;
  }

  /* Make form inputs larger on mobile */
  input[type='text'],
  input[type='email'],
  input[type='tel'],
  input[type='url'],
  input[type='number'],
  textarea,
  select {
    font-size: 16px !important; /* Prevents iOS zoom on focus */
    padding: 0.875rem 1rem;
  }

  /* Better spacing for mobile forms */
  form .space-y-4 > * + * {
    margin-top: 1.25rem;
  }
}

/* Prevent text from being too small on mobile */
@media (max-width: 640px) {
  .text-xs {
    font-size: 0.8rem;
  }

  .text-\[10px\] {
    font-size: 0.7rem;
  }

  .text-\[8px\] {
    font-size: 0.625rem;
  }

  /* Hero section mobile adjustments */
  .text-3xl.sm\:text-6xl {
    font-size: 1.75rem;
    line-height: 1.15;
  }

  /* Better button sizing on mobile */
  .rounded-full.px-5.py-2\.5 {
    padding: 0.75rem 1.25rem;
    font-size: 0.875rem;
  }
}

/* Video sections mobile */
@media (max-width: 640px) {
  /* MacBook video container */
  .aspect-\[16\/10\] {
    aspect-ratio: 16/9;
  }

  /* Short videos grid */
  .aspect-\[9\/16\] {
    min-height: 280px;
  }

  /* Volume slider hide on very small screens */
  #macVolumeSlider {
    display: none;
  }

  /* Video controls larger touch targets */
  #macVideoControls button,
  #phoneVideoControls button {
    min-width: 44px;
    min-height: 44px;
  }

  /* Progress bar easier to tap */
  #macProgressBar,
  #phoneProgressBar {
    height: 8px;
    cursor: pointer;
  }

  /* Video overlay button larger on mobile */
  #macVideoOverlay .w-20,
  #phoneVideoOverlay .w-16 {
    width: 4rem;
    height: 4rem;
  }
}

/* Card grids mobile optimization */
@media (max-width: 640px) {
  /* Product cards */
  .lg\:grid-cols-3 {
    gap: 1rem;
  }

  /* Certificate cards */
  .md\:grid-cols-3 > div {
    padding: 1rem;
  }
}

/* Footer mobile adjustments */
@media (max-width: 640px) {
  footer .grid.gap-10 {
    gap: 2rem;
  }

  footer .text-sm {
    font-size: 0.8125rem;
  }
}

/* Map/Globe section mobile */
@media (max-width: 640px) {
  .ug-premium-map-bg {
    border-radius: 1rem;
  }

  /* Country/City cards grid */
  .grid.grid-cols-1.sm\:grid-cols-2 {
    gap: 0.75rem;
  }
}

/* Contact form mobile */
@media (max-width: 640px) {
  /* Stack columns on mobile */
  .grid.grid-cols-2.gap-4 {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  /* PPF type selection - single row with scroll */
  .grid.grid-cols-3.gap-2 {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
  }

  .grid.grid-cols-3.gap-2 .p-3 {
    padding: 0.5rem;
  }

  .grid.grid-cols-3.gap-2 .text-lg {
    font-size: 1rem;
  }
}

/* Smooth scrolling on mobile */
@media (max-width: 768px) {
  html {
    scroll-behavior: smooth;
  }

  /* Prevent rubber banding issues */
  body {
    overscroll-behavior-y: none;
  }
}

/* Image lazy loading placeholder */
img[loading='lazy'] {
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.03) 25%,
    rgba(255, 255, 255, 0.08) 50%,
    rgba(255, 255, 255, 0.03) 75%
  );
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

img[loading='lazy'][src]:not([src='']) {
  animation: none;
  background: transparent;
}

/* Better touch feedback */
@media (hover: none) {
  .hover\:scale-\[1\.02\]:active {
    transform: scale(0.98);
  }

  .group:active {
    transform: scale(0.98);
  }

  a:active,
  button:active {
    opacity: 0.8;
  }

  /* Video controls show on touch devices */
  #macVideoControls,
  #phoneVideoControls {
    opacity: 1 !important;
    pointer-events: auto !important;
  }
}

/* Landscape mobile optimization */
@media (max-height: 500px) and (orientation: landscape) {
  /* Reduce hero height */
  .h-\[60vh\] {
    height: 80vh;
  }

  /* Hide some decorative elements */
  .absolute.pointer-events-none {
    display: none;
  }
}

/* ===== END ENHANCED MOBILE RESPONSIVENESS ===== */

/* Navigation Menu Animation */
#ugMobileMenu {
  transition: all 0.3s ease-in-out;
}

/* Smooth Card Interactions */
.group {
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Accessibility - Focus States */
a:focus-visible,
button:focus-visible {
  outline: 2px solid rgba(79, 70, 229, 0.5);
  outline-offset: 2px;
}

/* Better Select Styling */
select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%239ca3af' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
  background-position: right 0.75rem center;
  background-repeat: no-repeat;
  background-size: 1.25em 1.25em;
  padding-right: 2.5rem;
}

/* Loading Skeleton Animation */
@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

.skeleton {
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.05) 25%,
    rgba(255, 255, 255, 0.1) 50%,
    rgba(255, 255, 255, 0.05) 75%
  );
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}
