/* -------------------------------------------------------------
 * DR. SZÁSZ REHAB CENTER FIZIOTERAPIE - DESIGN SYSTEM & STYLES
 * ------------------------------------------------------------- */

/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

/* CSS Variables */
:root {
  /* Colors */
  --primary-hsl: 172, 66%, 25%;
  --primary: hsl(var(--primary-hsl));
  --primary-light: hsl(172, 66%, 42%);
  --primary-dark: hsl(172, 70%, 15%);
  --accent-hsl: 343, 82%, 41%;
  --accent: hsl(var(--accent-hsl));
  --accent-light: hsl(343, 90%, 55%);
  --accent-dark: hsl(343, 80%, 25%);
  
  /* Gradients */
  --grad-hero: linear-gradient(135deg, #090d16 0%, #0e1726 100%);
  --grad-primary: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
  --grad-accent: linear-gradient(135deg, var(--accent-light) 0%, var(--accent) 100%);
  --grad-card-glow: radial-gradient(circle at 50% 50%, rgba(45, 212, 191, 0.15) 0%, transparent 70%);

  /* Neutrals */
  --bg-dark: #070a12;
  --bg-darker: #04060b;
  --bg-light: #ffffff;
  --text-main: #f3f4f6;
  --text-muted: #9ca3af;
  --text-dark: #1f2937;
  
  /* Glassmorphism */
  --glass-bg: rgba(255, 255, 255, 0.03);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  --glass-blur: blur(12px);
  
  /* Fonts */
  --font-title: 'Plus Jakarta Sans', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  max-width: 100%;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-fast);
}

button, input, textarea, select {
  font-family: inherit;
  outline: none;
  border: none;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg-darker);
}

::-webkit-scrollbar-thumb {
  background: var(--primary-dark);
  border-radius: 5px;
  border: 2px solid var(--bg-darker);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-light);
}

/* Typography Utilities */
.section-title {
  font-family: var(--font-title);
  font-size: 2.5rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #ffffff 30%, var(--primary-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  position: relative;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  text-align: center;
  max-width: 700px;
  margin: 0 auto 4rem auto;
}

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

/* Layout Utilities */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section-padding {
  padding: 8rem 0;
}

/* Decorative Background Glows */
.glow-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  min-height: 100vh;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.glow-bubble {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  z-index: 0;
  pointer-events: none;
  opacity: 0.3;
}

.glow-primary {
  background-color: var(--primary-light);
  width: 400px;
  height: 400px;
}

.glow-accent {
  background-color: var(--accent);
  width: 300px;
  height: 300px;
}

/* Button Styles */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 2rem;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-primary {
  background: var(--grad-primary);
  color: white;
}

.btn-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 25px rgba(45, 212, 191, 0.4);
}

.btn-accent {
  background: var(--grad-accent);
  color: white;
}

.btn-accent:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 25px rgba(225, 29, 72, 0.4);
}

.btn-outline {
  background: transparent;
  color: white;
  border: 2px solid var(--glass-border);
  backdrop-filter: var(--glass-blur);
}

.btn-outline:hover {
  border-color: var(--primary-light);
  background: rgba(45, 212, 191, 0.05);
  transform: translateY(-3px);
}

/* Glass Card */
.glass-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  backdrop-filter: var(--glass-blur);
  box-shadow: var(--glass-shadow);
  transition: var(--transition-normal);
}

/* ==========================================
 * HEADER / NAVIGATION
 * ========================================== */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: var(--transition-normal);
  padding: 1.5rem 0;
}

header.scrolled {
  background: rgba(7, 10, 18, 0.8);
  backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid var(--glass-border);
  padding: 0.8rem 0;
}

.nav-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem; /* Guarantees a minimum safety gap between logo and navigation links */
}

.logo a {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 1.3rem;
  letter-spacing: -0.5px;
}

.logo img {
  height: 50px;
  width: auto;
  transition: var(--transition-normal);
}

header.scrolled .logo img {
  height: 40px;
}

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

.logo-text span {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-muted);
  -webkit-text-fill-color: var(--text-muted);
  margin-top: -2px;
}

nav {
  display: flex;
  align-items: center;
  gap: 3rem;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
}

.nav-links a {
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-muted);
  position: relative;
  padding: 0.5rem 0;
  white-space: nowrap;
}

.nav-cta {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
}

/* Hungarian-Specific Header Adjustments to prevent overlaps with normal logo */
html[lang="hu"] nav {
  gap: 1.5rem; /* Tighter gap than Romanian 3rem */
}
html[lang="hu"] .nav-links {
  gap: 1.6rem; /* Tighter gap than Romanian 2.5rem */
}
html[lang="hu"] .nav-links a {
  font-size: 0.9rem; /* Slightly smaller than Romanian 0.95rem */
}
html[lang="hu"] .nav-cta .btn {
  padding: 0.7rem 1.25rem; /* More compact padding for the long 'Időpontfoglalás' button */
  font-size: 0.9rem;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--grad-primary);
  transition: var(--transition-fast);
}

.nav-links a:hover,
.nav-links a.active {
  color: white;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.burger-menu {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  z-index: 1001;
}

.burger-menu span {
  display: block;
  width: 28px;
  height: 3px;
  background-color: white;
  border-radius: 3px;
  transition: var(--transition-normal);
}

/* ==========================================
 * HERO SECTION
 * ========================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--bg-dark);
  padding-top: 100px;
  overflow: hidden;
}

.hero-slideshow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.02);
  animation: fadeSlideshow 24s infinite ease-in-out;
  pointer-events: none;
}

.hero-slide:nth-child(1) { animation-delay: 0s; }
.hero-slide:nth-child(2) { animation-delay: 6s; }
.hero-slide:nth-child(3) { animation-delay: 12s; }
.hero-slide:nth-child(4) { animation-delay: 18s; }

@keyframes fadeSlideshow {
  0% {
    opacity: 0;
    transform: scale(1.02);
  }
  4% {
    opacity: 1;
    transform: scale(1.05);
  }
  25% {
    opacity: 1;
  }
  29% {
    opacity: 0;
    transform: scale(1.09);
  }
  100% {
    opacity: 0;
  }
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(6, 9, 16, 0.94) 0%, rgba(10, 18, 30, 0.84) 60%, rgba(4, 6, 11, 0.96) 100%);
  z-index: 2;
  pointer-events: none;
}

.hero-grid-mesh {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 50px 50px;
  pointer-events: none;
  z-index: 3;
}

.hero .glow-1 {
  top: 10%;
  left: -10%;
  z-index: 4;
}

.hero .glow-2 {
  bottom: 10%;
  right: -10%;
  z-index: 4;
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 750px;
  animation: fadeInUp 1s ease-out;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 1.2rem;
  background: rgba(45, 212, 191, 0.08);
  border: 1px solid rgba(45, 212, 191, 0.2);
  border-radius: 50px;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--primary-light);
  margin-bottom: 2rem;
}

.hero-badge i {
  animation: pulseGreen 2s infinite;
}

.hero-title {
  font-family: var(--font-title);
  font-size: 4.5rem;
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -2px;
  margin-bottom: 1.5rem;
}

.hero-title span {
  display: block;
}

.hero-description {
  font-size: 1.2rem;
  color: var(--text-muted);
  margin-bottom: 3rem;
  max-width: 600px;
}

.hero-btns {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

/* Hero Title Keyframes / Text effect */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==========================================
 * CAS MUREȘ BANNER
 * ========================================== */
.cas-banner-section {
  position: relative;
  z-index: 20;
  margin-top: -80px;
}

.cas-banner-card {
  padding: 3rem;
  border-radius: 24px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 3rem;
  position: relative;
  overflow: hidden;
  background: rgba(13, 148, 136, 0.05);
  border: 1.5px solid rgba(45, 212, 191, 0.25);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.cas-banner-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--grad-card-glow);
  opacity: 0.5;
  pointer-events: none;
}

.cas-icon-container {
  width: 80px;
  height: 80px;
  border-radius: 20px;
  background: var(--grad-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  color: white;
  box-shadow: 0 10px 25px rgba(13, 148, 136, 0.4);
}

.cas-info h3 {
  font-family: var(--font-title);
  font-size: 1.8rem;
  font-weight: 800;
  color: white;
  margin-bottom: 0.5rem;
}

.cas-info p {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 650px;
}

.cas-info-list {
  display: flex;
  gap: 2rem;
  margin-top: 1rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary-light);
}

.cas-info-list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.cas-info-list li i {
  font-size: 1rem;
}

/* ==========================================
 * ABOUT / DESPRE NOI
 * ========================================== */
.about {
  position: relative;
  overflow: hidden;
}

.about .glow-1 {
  top: 30%;
  right: -5%;
}

.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 5rem;
  align-items: center;
}

.about-text h3 {
  font-family: var(--font-title);
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  line-height: 1.3;
}

.about-text p {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 2rem;
}

.about-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.about-feature-card {
  padding: 2rem;
  transition: all 0.3s ease;
}

.about-feature-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary-light);
  background: rgba(255, 255, 255, 0.05);
}

.feat-icon {
  font-size: 2rem;
  color: var(--primary-light);
  margin-bottom: 1.2rem;
}

.about-feature-card h4 {
  font-family: var(--font-title);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
}

.about-feature-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 0;
  line-height: 1.5;
}

/* ==========================================
 * STATS / CIFRE
 * ========================================== */
.stats {
  position: relative;
  background: #04060b;
  border-top: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
  padding: 6rem 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2.5rem;
}

.stat-card {
  text-align: center;
  padding: 3rem 2rem;
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--grad-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: var(--transition-normal);
}

.stat-card:hover::before {
  transform: scaleX(1);
}

.stat-card:hover {
  background: rgba(255, 255, 255, 0.05);
  transform: translateY(-8px);
}

.stat-number {
  font-family: var(--font-title);
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1;
  color: white;
  margin-bottom: 0.8rem;
  background: linear-gradient(135deg, white 40%, var(--primary-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat-title {
  font-family: var(--font-title);
  font-size: 1.1rem;
  font-weight: 700;
  color: white;
  margin-bottom: 0.5rem;
}

.stat-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ==========================================
 * SERVICES / SERVICII
 * ========================================== */
.services {
  position: relative;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}

.service-card {
  padding: 3rem 2.5rem;
  position: relative;
  overflow: hidden;
}

.service-card.span-2 {
  grid-column: span 2;
}

.service-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 60px;
  height: 60px;
  background: var(--primary-dark);
  opacity: 0.1;
  border-radius: 100px 0 0 0;
  transition: var(--transition-normal);
  z-index: 1;
}

.service-card:hover::after {
  width: 120px;
  height: 120px;
  background: var(--primary-light);
  opacity: 0.15;
}

.service-card:hover {
  transform: translateY(-10px);
  border-color: rgba(45, 212, 191, 0.3);
  box-shadow: 0 15px 40px rgba(13, 148, 136, 0.15);
}

.service-icon {
  width: 65px;
  height: 65px;
  border-radius: 16px;
  background: rgba(13, 148, 136, 0.08);
  border: 1px solid rgba(45, 212, 191, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: var(--primary-light);
  margin-bottom: 2rem;
  transition: var(--transition-normal);
}

.service-card:hover .service-icon {
  background: var(--grad-primary);
  color: white;
  box-shadow: 0 8px 20px rgba(13, 148, 136, 0.3);
  transform: scale(1.05);
}

.service-card h3 {
  font-family: var(--font-title);
  font-size: 1.4rem;
  font-weight: 700;
  color: white;
  margin-bottom: 1rem;
}

.service-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.service-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 1.5rem;
}

.service-list.two-col {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.6rem 1.5rem;
}

@media (max-width: 600px) {
  .service-list.two-col {
    grid-template-columns: 1fr;
    gap: 0.6rem 0;
  }
}

.service-list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.service-list li i {
  color: var(--primary-light);
  font-size: 0.8rem;
}

/* ==========================================
 * TEAM / ECHIPA
 * ========================================== */
.team {
  position: relative;
  background: #04060b;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
}

.team-card {
  overflow: hidden;
  perspective: 1000px;
}

.team-image-container {
  width: 100%;
  height: 340px;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--glass-border);
}

.team-image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-slow);
}

.team-card:hover .team-image-container img {
  transform: scale(1.08);
}

.team-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(7, 10, 18, 0.9) 0%, rgba(7, 10, 18, 0.2) 60%, transparent 100%);
  opacity: 0;
  transition: var(--transition-normal);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 2rem;
}

.team-card:hover .team-overlay {
  opacity: 1;
}

.social-icons-team {
  display: flex;
  gap: 1rem;
}

.social-icons-team a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: white;
  border: 1px solid var(--glass-border);
}

.social-icons-team a:hover {
  background: var(--grad-primary);
  border-color: var(--primary-light);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(13, 148, 136, 0.3);
}

.team-info {
  padding: 2rem;
  text-align: center;
}

.team-info h3 {
  font-family: var(--font-title);
  font-size: 1.35rem;
  font-weight: 700;
  color: white;
  margin-bottom: 0.3rem;
}

.team-role {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary-light);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1rem;
}

.team-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ==========================================
 * VIRTUAL TOUR 360 - COMING SOON (WOW ANIMATION)
 * ========================================== */
.virtual-tour {
  position: relative;
  overflow: hidden;
}

.virtual-tour .glow-1 {
  bottom: -10%;
  left: 20%;
}

.tour-card-viewport {
  width: 100%;
  height: 450px;
  border-radius: 24px;
  position: relative;
  overflow: hidden;
  border: 1.5px solid var(--glass-border);
  background: #020408;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4);
  cursor: pointer;
  transform-style: preserve-3d;
  perspective: 1000px;
}

.tour-background-pan {
  position: absolute;
  top: 0;
  left: -20%;
  width: 140%;
  height: 100%;
  background-image: linear-gradient(rgba(7, 10, 18, 0.75), rgba(7, 10, 18, 0.75)), url('../assets/virtual_tour_bg.png');
  background-size: cover;
  background-position: center;
  transition: transform 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  z-index: 1;
}

.tour-hud-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 1.75rem 2rem;
}

/* Radar scanner HUD */
.tour-radar-container {
  position: relative;
  width: 140px;
  height: 140px;
  margin-bottom: 1.25rem;
  transform: translateZ(50px);
}

.tour-radar-circle {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 1.5px solid rgba(45, 212, 191, 0.2);
  border-radius: 50%;
}

.tour-radar-circle:nth-child(2) {
  top: 15px;
  left: 15px;
  width: 110px;
  height: 110px;
  border-style: dashed;
  border-color: rgba(45, 212, 191, 0.3);
  animation: rotateCW 15s linear infinite;
}

.tour-radar-circle:nth-child(3) {
  top: 35px;
  left: 35px;
  width: 70px;
  height: 70px;
  border-color: rgba(225, 29, 72, 0.3);
}

.tour-radar-scanner {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: conic-gradient(from 0deg, rgba(45, 212, 191, 0.25) 0deg, transparent 90deg, transparent 360deg);
  animation: rotateCW 4s linear infinite;
}

.tour-radar-center {
  position: absolute;
  top: 55px;
  left: 55px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--grad-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 0.8rem;
  box-shadow: 0 0 20px rgba(225, 29, 72, 0.6);
  animation: pulseAccent 2s infinite;
}

.tour-radar-center i {
  animation: spinIcon 6s linear infinite;
}

/* Glassmorphic coming soon label */
.tour-text-content {
  text-align: center;
  transform: translateZ(40px);
}

.tour-badge {
  display: inline-block;
  padding: 0.5rem 1.5rem;
  background: rgba(225, 29, 72, 0.15);
  border: 1px solid rgba(225, 29, 72, 0.3);
  border-radius: 50px;
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 0.85rem;
  color: var(--accent-light);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 1rem;
  animation: pulseBorderRed 2.5s infinite;
}

.tour-text-content h3 {
  font-family: var(--font-title);
  font-size: 2.5rem;
  font-weight: 800;
  color: white;
  margin-bottom: 0.5rem;
  text-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
  letter-spacing: -0.5px;
}

.tour-text-content p {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 500px;
  margin: 0 auto;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}

/* Cybernetic decorative grid corner borders */
.tour-viewport-corner {
  position: absolute;
  width: 25px;
  height: 25px;
  border: 3px solid rgba(45, 212, 191, 0.4);
  z-index: 5;
  pointer-events: none;
}

.tour-corner-tl { top: 20px; left: 20px; border-right: none; border-bottom: none; }
.tour-corner-tr { top: 20px; right: 20px; border-left: none; border-bottom: none; }
.tour-corner-bl { bottom: 20px; left: 20px; border-right: none; border-top: none; }
.tour-corner-br { bottom: 20px; right: 20px; border-left: none; border-top: none; }

/* Interactive Hotspots */
.tour-hotspot {
  position: absolute;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(45, 212, 191, 0.6);
  border: 2px solid white;
  z-index: 3;
  cursor: pointer;
  box-shadow: 0 0 15px rgba(45, 212, 191, 0.8);
  animation: pulseHotspot 2s infinite;
}

.hotspot-1 { top: 25%; left: 12%; }
.hotspot-2 { top: 70%; right: 12%; left: auto; }

.tour-hotspot-label {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: rgba(7, 10, 18, 0.85);
  border: 1px solid var(--glass-border);
  padding: 0.4rem 0.8rem;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition-normal);
  color: white;
}

.tour-hotspot:hover .tour-hotspot-label {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Animations for 360 section */
@keyframes rotateCW {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes spinIcon {
  0% { transform: rotateY(0deg); }
  100% { transform: rotateY(360deg); }
}

@keyframes pulseGreen {
  0% { box-shadow: 0 0 0 0 rgba(45, 212, 191, 0.4); }
  70% { box-shadow: 0 0 0 10px rgba(45, 212, 191, 0); }
  100% { box-shadow: 0 0 0 0 rgba(45, 212, 191, 0); }
}

@keyframes pulseAccent {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(225, 29, 72, 0.4); }
  50% { transform: scale(1.1); box-shadow: 0 0 0 8px rgba(225, 29, 72, 0.2); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(225, 29, 72, 0); }
}

@keyframes pulseBorderRed {
  0% { border-color: rgba(225, 29, 72, 0.3); box-shadow: 0 0 0 0 rgba(225, 29, 72, 0.15); }
  50% { border-color: rgba(225, 29, 72, 0.8); box-shadow: 0 0 15px rgba(225, 29, 72, 0.3); }
  100% { border-color: rgba(225, 29, 72, 0.3); box-shadow: 0 0 0 0 rgba(225, 29, 72, 0.15); }
}

@keyframes pulseHotspot {
  0% { box-shadow: 0 0 0 0 rgba(45, 212, 191, 0.7); transform: scale(0.9); }
  50% { box-shadow: 0 0 0 12px rgba(45, 212, 191, 0); transform: scale(1.1); }
  100% { box-shadow: 0 0 0 0 rgba(45, 212, 191, 0); transform: scale(0.9); }
}

/* ==========================================
 * CONTACT & APPOINTMENT FORM
 * ========================================== */
.contact {
  position: relative;
  overflow: hidden;
}

.contact .glow-1 {
  top: 20%;
  left: -10%;
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 5rem;
}

.contact-info-wrapper {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.contact-item {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}

.contact-item-icon {
  width: 55px;
  height: 55px;
  border-radius: 14px;
  background: rgba(13, 148, 136, 0.08);
  border: 1px solid rgba(45, 212, 191, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--primary-light);
  flex-shrink: 0;
}

.contact-item-details h4 {
  font-family: var(--font-title);
  font-size: 1.15rem;
  font-weight: 700;
  color: white;
  margin-bottom: 0.4rem;
}

.contact-item-details p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

.contact-item-details a:hover {
  color: var(--primary-light);
}

.appointment-form-card {
  padding: 3rem;
}

.appointment-form-card h3 {
  font-family: var(--font-title);
  font-size: 1.8rem;
  font-weight: 800;
  color: white;
  margin-bottom: 0.5rem;
}

.appointment-form-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 2rem;
}

.form-group-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.form-group {
  margin-bottom: 1.5rem;
  position: relative;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.form-control {
  width: 100%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  padding: 0.9rem 1.2rem;
  color: white;
  font-size: 0.95rem;
  transition: var(--transition-fast);
}

/* Select dropdown: needs explicit dark background so the text is visible on all browsers/OS */
select.form-control {
  background-color: #0d1420;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%232dd4bf' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1.2rem center;
  padding-right: 2.8rem;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  cursor: pointer;
}

select.form-control:focus {
  background-color: #0d1420;
}

/* Option elements inside the dropdown: dark bg, light text */
select.form-control option {
  background-color: #0d1420;
  color: #f3f4f6;
}

/* The disabled placeholder option ("Selectează serviciul") */
select.form-control option[disabled] {
  color: #9ca3af;
}

.form-control:focus {
  border-color: var(--primary-light);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 0 15px rgba(45, 212, 191, 0.15);
}

textarea.form-control {
  resize: vertical;
  min-height: 110px;
}

.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  margin-bottom: 2rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  cursor: pointer;
}

.form-checkbox input {
  margin-top: 3px;
  cursor: pointer;
}

.form-checkbox a {
  color: var(--primary-light);
  text-decoration: underline;
}

/* Styled Map Container */
.map-section {
  position: relative;
  background: #04060b;
  border-top: 1px solid var(--glass-border);
}

.map-card-wrapper {
  margin-top: -60px;
  margin-bottom: 60px;
  height: 400px;
  border-radius: 20px;
  overflow: hidden;
  border: 1.5px solid var(--glass-border);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.map-card-wrapper iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* ==========================================
 * FOOTER
 * ========================================== */
footer {
  background: #020408;
  border-top: 1px solid var(--glass-border);
  padding: 5rem 0 2rem 0;
  position: relative;
}

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

.footer-brand h4 {
  font-family: var(--font-title);
  font-size: 1.4rem;
  font-weight: 800;
  color: white;
  margin-bottom: 1rem;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-links a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--text-muted);
  transition: var(--transition-fast);
}

.social-links a:hover {
  color: white;
  background: var(--grad-primary);
  border-color: var(--primary-light);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(13, 148, 136, 0.3);
}

.footer-links h4,
.footer-contact h4 {
  font-family: var(--font-title);
  font-size: 1.15rem;
  font-weight: 700;
  color: white;
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.footer-links h4::after,
.footer-contact h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background: var(--primary-light);
}

.footer-links ul {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: white;
  padding-left: 5px;
}

.footer-contact ul {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-contact li {
  display: flex;
  gap: 1rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.footer-contact li i {
  color: var(--primary-light);
  font-size: 1rem;
  margin-top: 3px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-bottom-links {
  display: flex;
  gap: 2rem;
}

.footer-bottom-links a:hover {
  color: white;
}

/* ==========================================
 * RESPONSIVENESS & MEDIA QUERIES
 * ========================================== */

/* Intermediate Desktop Navigation Scaling to prevent Hungarian overlaps */
@media (min-width: 1201px) and (max-width: 1440px) {
  .nav-wrapper {
    gap: 1.25rem; /* Compact but safe space between header sections */
  }
  nav {
    gap: 1.5rem;
  }
  .nav-links {
    gap: 1.25rem;
  }
  .nav-links a {
    font-size: 0.85rem;
  }
  .lang-selector {
    margin-right: 12px;
  }
  .nav-cta .btn {
    padding: 0.6rem 1.2rem;
    font-size: 0.85rem;
  }

  /* Hungarian-specific intermediate scaling to fit normal-sized logo */
  html[lang="hu"] nav {
    gap: 1rem;
  }
  html[lang="hu"] .nav-links {
    gap: 1rem;
  }
  html[lang="hu"] .nav-links a {
    font-size: 0.82rem;
  }
  html[lang="hu"] .nav-cta .btn {
    padding: 0.6rem 1rem;
    font-size: 0.82rem;
  }
}

/* Tablet & Mobile Navigation Collapse Breakpoint */
@media (max-width: 1200px) {
  header {
    padding: 0.6rem 0 !important; /* Compact header on tablets/mobile */
  }
  
  header.scrolled {
    padding: 0.6rem 0 !important;
  }
  
  .logo img {
    height: 38px !important; /* Compact logo height */
  }
  
  nav:not(.mobile-nav) {
    display: none !important; /* Hide desktop horizontal menu */
  }
  
  .burger-menu {
    display: flex !important; /* Show premium drawer toggle */
  }

  .nav-cta .btn {
    display: none !important; /* Hide reservation button when mobile drawer is active to prevent overlaps */
  }
}

@media (max-width: 1024px) {
  .hero-title {
    font-size: 3.5rem;
  }
  
  .cas-banner-card {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    gap: 1.5rem;
  }
  
  .cas-info-list {
    justify-content: center;
  }
  
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 4rem;
  }
  
  .services-grid,
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
  
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .section-padding {
    padding: 4.5rem 0 !important;
  }
  
  .section-title {
    font-size: 2.1rem !important;
  }
  
  .section-subtitle {
    font-size: 0.95rem !important;
    margin-bottom: 2.5rem !important;
  }
  
  .nav-cta .btn {
    display: none !important; /* Hide programari button on mobile to prevent header overflow */
  }
  
  .hero {
    padding-top: 160px !important; /* Spacious spacing between the header and hero content badge */
    text-align: center;
    min-height: auto;
    padding-bottom: 5rem;
  }
  
  .hero-badge {
    margin-bottom: 1.5rem;
  }
  
  .hero-title {
    font-size: 2.8rem;
    line-height: 1.2;
    letter-spacing: -1px;
  }
  
  .hero-title span {
    display: inline;
  }
  
  .hero-description {
    font-size: 1.05rem;
    margin: 0 auto 2.5rem auto;
  }
  
  .hero-btns {
    flex-direction: column;
    width: 100%;
    gap: 1rem;
  }
  
  .hero-btns .btn {
    width: 100%;
  }
  
  .cas-banner-section {
    margin-top: 2.5rem !important; /* Premium spacious gap between hero and CAS card on mobile */
  }
  
  .cas-banner-card {
    padding: 2rem;
  }
  
  .cas-info-list {
    flex-direction: column;
    gap: 0.5rem;
    align-items: center;
  }
  
  .about-features {
    grid-template-columns: 1fr !important;
  }
  
  /* Prevent 'span 2' on mobile/tablet from causing grid-track viewport overflow bugs in WebKit/Safari */
  .about-features .about-feature-card {
    grid-column: auto !important;
  }
  
  /* Disable 3D tilt effects on mobile viewport to prevent iOS Safari clipping bugs */
  .tour-card-viewport {
    transform-style: flat !important;
    perspective: none !important;
    height: auto !important; /* Flexible height on mobile */
    min-height: 500px !important; /* Minimum to accommodate all text */
    width: 100% !important;
    max-width: 100% !important;
  }

  .tour-hotspot {
    display: none !important;
  }

  /* Remove translateZ from inner 3D elements that cause clipping on mobile */
  /* Consolidated radar container sizing + remove 3D shift */
  .tour-radar-container {
    transform: none !important; /* Remove translateZ(50px) on mobile */
    width: 90px !important;
    height: 90px !important;
    margin-bottom: 1.2rem !important;
  }

  .tour-text-content {
    transform: none !important; /* Remove translateZ(40px) on mobile */
    padding: 0 0.5rem !important;
  }

  .tour-hud-overlay {
    padding: 1.5rem !important; /* Compact padding for smaller screens */
    overflow: visible !important; /* Ensure text not clipped by HUD container */
    justify-content: flex-start !important;
    padding-top: 2rem !important;
  }

  .tour-radar-center {
    width: 24px !important;
    height: 24px !important;
    top: 33px !important;
    left: 33px !important;
    font-size: 0.75rem !important;
  }

  .tour-radar-circle:nth-child(2) {
    top: 10px !important;
    left: 10px !important;
    width: 70px !important;
    height: 70px !important;
  }

  .tour-radar-circle:nth-child(3) {
    top: 25px !important;
    left: 25px !important;
    width: 40px !important;
    height: 40px !important;
  }

  .tour-text-content h3 {
    font-size: 1.6rem !important;
    margin-bottom: 0.6rem !important;
  }

  .tour-text-content p {
    font-size: 0.9rem !important;
    line-height: 1.4 !important;
  }

  .tour-badge {
    padding: 0.35rem 1rem !important;
    font-size: 0.75rem !important;
    margin-bottom: 1rem !important;
  }
  
  .services-grid,
  .team-grid,
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .service-card.span-2 {
    grid-column: span 1;
  }
  
  /* Stack form group row vertically on mobile to prevent squishing inputs */
  .form-group-row {
    grid-template-columns: 1fr !important;
    gap: 0 !important;
    margin-bottom: 0 !important;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 1.25rem !important; /* Optimizes padding for maximum horizontal space on small iPhones */
  }
  
  /* Extra hero top padding for iPhone SE and smaller phones */
  .hero {
    padding-top: 120px !important;
    padding-bottom: 3rem !important;
  }

  .hero-title {
    font-size: 2.1rem !important;
  }
  
  .section-padding {
    padding: 3.5rem 0 !important;
  }

  /* Compact stats section to avoid massive scrolling */
  .stats-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 1rem !important;
  }
  
  .stat-card {
    padding: 1.2rem !important;
  }
  
  .stat-number {
    font-size: 1.8rem !important;
  }
  
  .stat-title {
    font-size: 0.85rem !important;
  }
  
  .stat-desc {
    display: none !important; /* Hide stat descriptions on small devices */
  }

  /* Compact virtual tour card on smallest phones */
  .tour-card-viewport {
    min-height: 460px !important;
  }

  .tour-text-content h3 {
    font-size: 1.35rem !important;
  }

  /* Compact map on small phone screens */
  .map-card-wrapper {
    height: 280px !important;
    margin-top: 0 !important;
    border-radius: 12px !important;
  }

  /* CAS banner compact padding */
  .cas-banner-card {
    padding: 1.5rem !important;
  }

  /* Appointment form: full-width button on small phones */
  .appointment-form-card {
    padding: 1.5rem !important;
  }

  /* 360 Viewport auto-pan animation on mobile touch screens since hover isn't possible */
  .tour-background-pan {
    animation: autoPanMobile 24s infinite ease-in-out;
  }
  
  @keyframes autoPanMobile {
    0% { transform: translate3d(0, 0, 0) scale(1.1); }
    50% { transform: translate3d(-40px, -15px, 0) scale(1.1); }
    100% { transform: translate3d(0, 0, 0) scale(1.1); }
  }
}

/* Premium Glassmorphic Side Drawer Menu */
.nav-mobile-active {
  overflow: hidden;
}

/* Background Backdrop Overlay for mobile drawer */
.mobile-menu-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 998;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.mobile-menu-backdrop.show {
  opacity: 1;
  pointer-events: auto;
}

nav.mobile-nav {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  padding: 6rem 3rem;
  position: fixed;
  top: 0;
  right: 0;
  width: 320px;
  height: 100vh;
  background: rgba(6, 9, 16, 0.96);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border-left: 1.5px solid rgba(45, 212, 191, 0.15);
  z-index: 999;
  gap: 2.5rem;
  box-shadow: -10px 0 45px rgba(0, 0, 0, 0.6);
  transform: translateX(100%);
  /* visibility:hidden prevents the off-screen drawer from adding to scroll width */
  visibility: hidden;
  /* transition: transform smoothly; visibility goes hidden after 0.4s (after slide out finishes) */
  transition: transform 0.4s cubic-bezier(0.1, 0.9, 0.2, 1),
              visibility 0s linear 0.4s;
}

nav.mobile-nav.open {
  transform: translateX(0);
  /* Become visible immediately when opening, no delay */
  visibility: visible;
  transition: transform 0.4s cubic-bezier(0.1, 0.9, 0.2, 1),
              visibility 0s linear 0s;
}

nav.mobile-nav .nav-links {
  flex-direction: column;
  align-items: flex-start;
  gap: 1.8rem;
  width: 100%;
}

nav.mobile-nav .nav-links a {
  font-size: 1.25rem;
  width: 100%;
  display: block;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  padding-bottom: 0.8rem;
}

nav.mobile-nav .nav-links a::after {
  display: none; /* Disable standard hover underline in mobile layout */
}

nav.mobile-nav .nav-links a.active {
  color: var(--primary-light);
  border-bottom-color: rgba(45, 212, 191, 0.3);
}

.burger-menu.open span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.burger-menu.open span:nth-child(2) {
  opacity: 0;
}

.burger-menu.open span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -7px);
}

/* ==========================================
 * PREMIUM GLASSMORPHIC LEGAL MODALS
 * ========================================== */
.legal-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 2100;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.legal-modal.show {
  opacity: 1;
  pointer-events: all;
}

.legal-modal-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(4, 6, 11, 0.85);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
}

.legal-modal-content {
  position: relative;
  width: 90%;
  max-width: 800px;
  max-height: 80vh;
  background: rgba(10, 18, 30, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
  display: flex;
  flex-direction: column;
  z-index: 2200;
  transform: scale(0.9) translateY(20px);
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  overflow: hidden;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.legal-modal.show .legal-modal-content {
  transform: scale(1) translateY(0);
}

.legal-modal-header {
  padding: 1.5rem 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.legal-modal-header h3 {
  font-family: var(--font-title);
  font-size: 1.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, #ffffff 40%, var(--primary-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin: 0;
}

.legal-modal-close {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: white;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.legal-modal-close:hover {
  background: var(--accent-light);
  border-color: var(--accent-light);
  transform: rotate(90deg);
}

.legal-modal-body {
  padding: 2rem;
  overflow-y: auto;
  color: var(--text-main);
  font-size: 0.95rem;
  line-height: 1.7;
}

.legal-modal-body::-webkit-scrollbar {
  width: 8px;
}

.legal-modal-body::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.02);
}

.legal-modal-body::-webkit-scrollbar-thumb {
  background: var(--primary-light);
  border-radius: 4px;
}

.legal-modal-body h4 {
  font-family: var(--font-title);
  font-size: 1.15rem;
  color: white;
  margin-top: 1.8rem;
  margin-bottom: 0.6rem;
  font-weight: 700;
  border-left: 3px solid var(--primary-light);
  padding-left: 10px;
}

.legal-modal-body h4:first-of-type {
  margin-top: 0;
}

.legal-modal-body p {
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.legal-modal-body ul {
  list-style-type: none;
  margin-left: 0;
  margin-bottom: 1.2rem;
  color: var(--text-muted);
}

.legal-modal-body ul li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 0.5rem;
}

.legal-modal-body ul li::before {
  content: "✦";
  position: absolute;
  left: 0;
  color: var(--primary-light);
  font-size: 0.8rem;
}

.legal-modal-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.85rem;
}

.legal-modal-body th, .legal-modal-body td {
  padding: 0.75rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  text-align: left;
}

.legal-modal-body th {
  background: rgba(45, 212, 191, 0.08);
  color: white;
  font-weight: 700;
}

.legal-modal-body td {
  color: var(--text-muted);
}

/* ==========================================
 * POWERED BY BLUE STRATEGY AI STYLE
 * ========================================== */
.powered-by-bluestrategy {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.75rem;
  border-radius: 50px;
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid rgba(255, 255, 255, 0.02);
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  text-decoration: none;
  width: fit-content;
}

.powered-by-bluestrategy:hover {
  transform: scale(1.03);
  background: rgba(59, 130, 246, 0.03);
  border-color: rgba(96, 165, 250, 0.15);
  box-shadow: 0 8px 20px -12px rgba(59, 130, 246, 0.25);
}

.powered-by-text {
  font-family: var(--font-title);
  font-size: 9px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: #52525b; /* highly discrete dark gray */
  transition: color 0.5s ease;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.powered-by-bluestrategy:hover .powered-by-text {
  color: #93c5fd;
}

.powered-by-brand {
  position: relative;
  font-weight: 700;
  background: linear-gradient(90deg, #60a5fa, #8b5cf6, #ec4899, #60a5fa);
  background-size: 300% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradient-shift-brand 4s linear infinite;
  display: inline-block;
  overflow: hidden;
}

@keyframes gradient-shift-brand {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.powered-by-brand::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(96, 165, 250, 0.3), transparent);
  background-size: 200% 100%;
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

.powered-by-bluestrategy:hover .powered-by-brand::after {
  opacity: 1;
  animation: wave-sweep-brand 2s linear infinite;
}

@keyframes wave-sweep-brand {
  0% { background-position: 200% 0%; }
  100% { background-position: -200% 0%; }
}

.powered-by-logo-container {
  position: relative;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.powered-by-logo-glow {
  position: absolute;
  width: 100%;
  height: 100%;
  background: rgba(59, 130, 246, 0.2);
  filter: blur(4px);
  border-radius: 50%;
  transform: scale(0);
  opacity: 0;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1;
}

.powered-by-bluestrategy:hover .powered-by-logo-glow {
  transform: scale(1.3);
  opacity: 1;
}

.powered-by-logo-img {
  width: 15px;
  height: 15px;
  object-fit: contain;
  position: relative;
  z-index: 2;
  transition: all 0.7s cubic-bezier(0.34, 1.56, 0.64, 1);
  filter: grayscale(1) opacity(0.5); /* discrete integration */
}

.powered-by-bluestrategy:hover .powered-by-logo-img {
  filter: grayscale(0) opacity(1);
  transform: rotate(360deg) scale(1.05);
}

/* ==========================================
 * RESPONSIVE DISPLAY LAYOUT CONTROLS
 * ========================================== */
.powered-by-desktop {
  display: inline-flex;
  margin-top: 1.25rem;
}

.powered-by-mobile {
  display: none;
}

@media (max-width: 1024px) {
  .powered-by-desktop {
    display: none;
  }
  
  .powered-by-mobile {
    display: inline-flex;
    margin-top: 1.5rem;
    align-self: center;
    width: fit-content;
  }
}

/* ==========================================
 * LANGUAGE SELECTOR
 * ========================================== */
.lang-selector {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-right: 20px;
}

.lang-btn {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  transition: var(--transition-fast);
  padding: 4px 8px;
  border-radius: 6px;
  border: 1px solid transparent;
}

.lang-btn:hover {
  color: var(--primary-light);
  background: rgba(45, 212, 191, 0.05);
}

.lang-btn.active {
  color: var(--primary-light);
  background: rgba(45, 212, 191, 0.12);
  border-color: rgba(45, 212, 191, 0.2);
  text-shadow: 0 0 10px rgba(45, 212, 191, 0.3);
}

.lang-divider {
  color: rgba(255, 255, 255, 0.2);
  font-size: 0.8rem;
  user-select: none;
}

/* Responsiveness for Language Selector */
@media (max-width: 991px) {
  .nav-wrapper .nav-cta {
    display: flex;
    align-items: center;
  }
  .lang-selector {
    margin-right: 15px;
  }
}

@media (max-width: 480px) {
  .lang-selector {
    margin-right: 10px;
  }
  .lang-btn {
    font-size: 0.75rem;
    padding: 3px 6px;
  }
}

/* Mobile Landscape Orientation Optimization */
@media (max-height: 600px) and (orientation: landscape) {
  .hero {
    padding-top: 80px !important;
    padding-bottom: 2rem !important;
    min-height: auto !important;
    height: auto !important;
  }
  
  .hero-title {
    font-size: 2rem !important;
    margin-bottom: 1rem !important;
  }
  
  .hero-description {
    font-size: 0.95rem !important;
    margin-bottom: 1.5rem !important;
  }
  
  .hero-badge {
    margin-bottom: 1rem !important;
    padding: 0.35rem 0.8rem !important;
    font-size: 0.75rem !important;
  }
  
  header {
    padding: 0.4rem 0 !important;
  }
  
  .logo img {
    height: 30px !important;
  }
  
  .logo-text {
    font-size: 1rem !important;
  }
  
  .logo-text span {
    font-size: 0.6rem !important;
  }
}

/* ==========================================
 * VIRTUAL TOUR MODAL & RESPONSIVE WEBFRAME
 * ========================================== */
.tour-badge.tour-badge-active {
  background: rgba(45, 212, 191, 0.12);
  border: 1px solid rgba(45, 212, 191, 0.3);
  color: var(--primary-light);
  animation: pulseBorderGreen 2.5s infinite;
}
.tour-badge.tour-badge-active i {
  margin-right: 6px;
  font-size: 0.75rem;
  vertical-align: middle;
}

@keyframes pulseBorderGreen {
  0% { border-color: rgba(45, 212, 191, 0.3); box-shadow: 0 0 0 0 rgba(45, 212, 191, 0.15); }
  50% { border-color: rgba(45, 212, 191, 0.8); box-shadow: 0 0 15px rgba(45, 212, 191, 0.3); }
  100% { border-color: rgba(45, 212, 191, 0.3); box-shadow: 0 0 0 0 rgba(45, 212, 191, 0.15); }
}

.tour-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.4s;
}

.tour-modal.show {
  opacity: 1;
  visibility: visible;
}

.tour-modal-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(4, 6, 11, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.tour-modal-wrapper {
  position: relative;
  width: 92vw;
  height: 86vh;
  max-width: 1400px;
  max-height: 900px;
  background: rgba(13, 20, 32, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.6);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 10;
  transform: scale(0.95) translateY(15px);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.tour-modal.show .tour-modal-wrapper {
  transform: scale(1) translateY(0);
}

/* Modal Header */
.tour-modal-header {
  padding: 1.25rem 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(9, 14, 23, 0.5);
}

.tour-modal-header h3 {
  font-family: var(--font-title);
  font-size: 1.3rem;
  font-weight: 700;
  color: white;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.tour-modal-header h3 i {
  color: var(--primary-light);
  text-shadow: 0 0 10px rgba(45, 212, 191, 0.4);
}

.tour-modal-close {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition-fast);
}

.tour-modal-close:hover {
  background: var(--grad-accent);
  color: white;
  border-color: var(--accent-light);
  transform: scale(1.05) rotate(90deg);
  box-shadow: 0 0 15px rgba(225, 29, 72, 0.4);
}

/* Modal Content Layout (Desktop) */
.tour-modal-content-layout {
  flex: 1;
  display: flex;
  flex-direction: row;
  overflow: hidden;
  height: calc(100% - 70px);
}

/* Sidebar with room navigation */
.tour-modal-sidebar {
  width: 280px;
  background: rgba(7, 10, 18, 0.4);
  border-right: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  overflow-y: auto;
  flex-shrink: 0;
}

.tour-modal-sidebar h4 {
  font-family: var(--font-title);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 1.25rem;
}

.tour-nav-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.tour-nav-btn {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1.25rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 12px;
  color: var(--text-muted);
  text-align: left;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition-fast);
}

.tour-nav-btn i {
  font-size: 1rem;
  width: 20px;
  text-align: center;
  color: var(--text-muted);
  transition: var(--transition-fast);
}

.tour-nav-btn:hover {
  background: rgba(45, 212, 191, 0.05);
  border-color: rgba(45, 212, 191, 0.2);
  color: white;
  transform: translateX(4px);
}

.tour-nav-btn:hover i {
  color: var(--primary-light);
}

.tour-nav-btn.active {
  background: var(--grad-primary);
  border-color: var(--primary-light);
  color: white;
  font-weight: 600;
  box-shadow: 0 5px 15px rgba(13, 148, 136, 0.3), inset 0 0 5px rgba(255, 255, 255, 0.2);
}

.tour-nav-btn.active i {
  color: white;
  transform: scale(1.1);
}

/* Iframe Container & Viewport */
.tour-iframe-container {
  flex: 1;
  position: relative;
  background: #020408;
  height: 100%;
}

.tour-iframe-container iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

/* Loader Animation */
.tour-iframe-loader {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #070a12;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

.tour-iframe-loader.hidden {
  opacity: 0;
}

.tour-loader-spinner {
  width: 50px;
  height: 50px;
  border: 3px solid rgba(45, 212, 191, 0.1);
  border-radius: 50%;
  border-top-color: var(--primary-light);
  animation: rotateCW 1s linear infinite;
  box-shadow: 0 0 20px rgba(45, 212, 191, 0.15);
}

.tour-iframe-loader span {
  color: var(--text-muted);
  font-family: var(--font-title);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  animation: pulseOpacity 1.5s ease-in-out infinite;
}

/* Responsive Overrides (max-width: 768px) */
@media (max-width: 768px) {
  .tour-modal-wrapper {
    width: 95vw !important;
    height: 90vh !important;
    border-radius: 16px !important;
  }
  
  .tour-modal-header {
    padding: 1rem 1.5rem !important;
  }
  
  .tour-modal-header h3 {
    font-size: 1.1rem !important;
  }
  
  .tour-modal-content-layout {
    flex-direction: column !important;
  }
  
  .tour-modal-sidebar {
    width: 100% !important;
    height: auto !important;
    border-right: none !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
    padding: 0.75rem 1rem !important;
    background: rgba(9, 14, 23, 0.8) !important;
    overflow-y: visible !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
  }
  
  .tour-modal-sidebar h4 {
    display: none !important;
  }
  
  .tour-nav-buttons {
    flex-direction: row !important;
    gap: 0.5rem !important;
    padding-bottom: 0.25rem !important;
  }
  
  .tour-nav-btn {
    padding: 0.6rem 1rem !important;
    font-size: 0.8rem !important;
    border-radius: 8px !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
  }

  .tour-nav-btn:hover {
    transform: none !important;
  }
  
  .tour-nav-btn i {
    font-size: 0.9rem !important;
    width: auto !important;
  }
  
  .tour-iframe-container {
    height: calc(100% - 55px) !important;
  }
}

/* ==========================================
 * CONTACT LAYOUT MODIFICATION
 * ========================================== */
.contact-grid {
  display: block;
  max-width: 1000px;
  margin: 0 auto;
}

.contact-info-wrapper {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3rem 4rem;
}

@media (max-width: 768px) {
  .contact-info-wrapper {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

/* ==========================================
 * REVIEWS SLIDESHOW SECTION
 * ========================================== */
.reviews-section {
  position: relative;
  background: rgba(255, 255, 255, 0.01);
  border-top: 1px solid rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.reviews-slideshow-card {
  padding: 3.5rem;
}

.reviews-header-layout {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 3rem;
  margin-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 2rem;
}

.reviews-header-layout h3 {
  font-family: var(--font-title);
  font-size: 2rem;
  font-weight: 800;
  color: white;
  margin-bottom: 0.5rem;
}

.reviews-header-layout p.reviews-intro {
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 0;
  max-width: 600px;
}

.reviews-rating-summary {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 0.8rem 1.2rem;
  flex-shrink: 0;
}

.reviews-rating-value {
  font-size: 2.2rem;
  font-weight: 800;
  color: white;
  line-height: 1;
}

.reviews-rating-stars {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.reviews-rating-stars .stars {
  color: #ffb300; /* Amber/gold */
  font-size: 1.1rem;
}

.reviews-rating-count {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.google-maps-link-btn {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary-light);
  background: rgba(20, 184, 166, 0.1);
  border: 1px solid rgba(20, 184, 166, 0.2);
  padding: 0.5rem 1rem;
  border-radius: 8px;
  transition: var(--transition-fast);
  text-decoration: none;
}

.google-maps-link-btn:hover {
  background: rgba(20, 184, 166, 0.2);
  color: white;
  transform: translateY(-2px);
}

.reviews-slider-container {
  position: relative;
  min-height: 180px;
}

.reviews-slides {
  position: relative;
  overflow: hidden;
  min-height: 140px;
}

.review-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  visibility: hidden;
  transform: translateY(15px);
  transition: opacity 0.5s ease, transform 0.5s ease, visibility 0.5s;
}

.review-slide.active {
  position: relative;
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.review-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.8rem;
}

.reviewer-name {
  font-weight: 700;
  color: white;
  font-size: 1.05rem;
}

.review-stars {
  color: #ffb300;
  font-size: 0.95rem;
}

.review-text {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.7;
  font-style: italic;
}

.reviews-slider-dots {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  margin-top: 2rem;
}

.reviews-slider-dots .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transition: var(--transition-fast);
}

.reviews-slider-dots .dot.active {
  background: var(--primary-light);
  transform: scale(1.2);
}

@media (max-width: 992px) {
  .reviews-header-layout {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
  }
  .reviews-rating-summary {
    width: 100%;
  }
}

@media (max-width: 576px) {
  .reviews-slideshow-card {
    padding: 2rem 1.5rem;
  }
  .reviews-rating-summary {
    flex-direction: column;
    align-items: flex-start;
  }
  .google-maps-link-btn {
    margin-left: 0;
    width: 100%;
    justify-content: center;
  }
}
