html {
  scroll-behavior: smooth;
}

/* 
 * Desktop CSS
 * Note: No custom CSS was provided for the header, all styling is done via Tailwind utility classes.
 * Any future CSS added here should be scoped to prevent affecting other sections.
 */

/* Custom Typography (Scoped to prevent affecting other sections) */
[data-purpose="hero-banner"] {
  font-family: 'Manrope', sans-serif;
  color: #1a1a1a;
}

.heading-large {
  font-weight: 800;
  line-height: 1.1;
}

/* Layout Adjustments */
/* Custom shadow for the floating profit card */
.profit-card-shadow {
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
}

/* Button hover transition */
.btn-transition {
  transition: all 0.3s ease;
}

/* Image corner rounding */
.hero-image-clip {
  border-radius: 20px;
}

/* Feature Grid Adjustments */
[data-purpose="feature-grid"] {
  font-family: 'Inter', sans-serif;
}

.custom-shadow {
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.1);
}

.rounded-main {
  border-radius: 1rem;
}

.grid-container {
  max-width: 1200px;
  margin: 0 auto;
}

/* Online Tour Adjustments */
.feature-card-shadow {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.image-overlay-gradient {
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.4) 30%, transparent 60%);
}

/* Statistics Section Adjustments */
.dark-card-gradient {
  background: linear-gradient(135deg, #222222 0%, #111111 100%);
}

.noise-overlay {
  position: relative;
}

.noise-overlay::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.05;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* Financial Projections Adjustments */
.floating-card {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

/* Boutique Advantages Adjustments */
.card-shadow {
  box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.1);
}

.number-circle {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 184, 0, 0.5);
  border-radius: 50%;
  color: #ffb800;
  font-weight: 600;
  font-size: 0.875rem;
  flex-shrink: 0;
}

/* Carousel Adjustments */
.hide-scrollbar::-webkit-scrollbar {
  display: none;
}

.hide-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

#carousel-container {
  scroll-behavior: smooth;
}

/* Perfume Factories Adjustments */
.no-scrollbar::-webkit-scrollbar {
  display: none;
}

.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.carousel-container {
  scroll-behavior: smooth;
}

.nav-button {
  transition: all 0.2s ease-in-out;
  box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
}

.nav-button:hover {
  background-color: #f3f4f6;
  transform: scale(1.05);
}

/* Reviews Section Scoped Styles */
.reviews-prev-btn {
  background-color: rgba(255, 184, 0, 0.2);
  color: #ffb800;
}

.reviews-prev-btn:hover {
  background-color: #ffb800;
  color: #fff;
}

.reviews-next-btn {
  background-color: #ffb800;
  color: #fff;
  box-shadow: 0 4px 14px rgba(255, 184, 0, 0.4);
}

.reviews-next-btn:hover {
  background-color: rgba(255, 184, 0, 0.85);
}

.reviews-play-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background-color: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #fff;
  padding: 10px 20px;
  border-radius: 9999px;
  transition: background-color 0.3s ease;
  margin: 0 auto;
}

.reviews-play-btn:hover {
  background-color: #ffb800;
}

.reviews-play-icon {
  width: 32px;
  height: 32px;
  background-color: #ffb800;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ---- About Company Section Scoped Styles ---- */
.about-abstract-line {
  position: absolute;
  opacity: 0.1;
  z-index: -1;
  pointer-events: none;
}

.about-stat-card {
  cursor: default;
}

.about-stat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px -10px rgba(124, 88, 0, 0.15);
}

.about-video-overlay {
  background: linear-gradient(to top, rgba(0, 0, 0, 0.80) 0%, rgba(0, 0, 0, 0.20) 60%, rgba(0, 0, 0, 0) 100%);
}

.about-glass-btn {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.about-cta-btn {
  background-color: #ffb800;
  color: #1a1b1f;
  box-shadow: 0 12px 32px -8px rgba(255, 184, 0, 0.35);
  transform: scale(1);
}

.about-cta-btn:hover {
  background-color: #7c5800;
  color: #ffffff;
  box-shadow: 0 12px 32px -8px rgba(124, 88, 0, 0.30);
  transform: scale(1.02);
}

/* ---- Case Studies Section Scoped Styles ---- */
.cases-card {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.cases-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}

.cases-card-image {
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
  height: 260px;
  width: 100%;
  object-fit: cover;
  display: block;
}

/* ---- Format Selection Section Scoped Styles ---- */
.text-brand-yellow {
  color: #ffb800;
}

.bg-brand-yellow {
  background-color: #ffb800;
}

.border-brand-yellow {
  border-color: #ffb800;
}

.bg-dark-accent {
  background-color: #222222;
}

.ribbon-badge {
  position: absolute;
  top: 0;
  right: 0;
  background: #ffffff;
  color: #ffb800;
  font-size: 10px;
  font-weight: 800;
  padding: 8px 40px;
  transform: rotate(45deg) translate(30%, -50%);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  text-transform: uppercase;
  text-align: center;
  line-height: 1.2;
}

/* ---- 5 Steps Section Scoped Styles ---- */
.steps-card-shadow {
  box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.12);
}

.steps-tab-btn {
  padding: 4px 16px;
  font-size: 0.875rem;
  font-weight: 700;
  border-radius: 9999px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  color: #64748b;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.steps-tab-btn:hover {
  background: #f8fafc;
}

.steps-tab-btn.active {
  background-color: #ffb800;
  color: #ffffff;
  border-color: #ffb800;
}

.steps-arrow-btn {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid #e2e8f0;
  color: #475569;
  background: #ffffff;
  cursor: pointer;
  transition: background 0.2s, opacity 0.2s;
}

.steps-arrow-btn:hover:not(:disabled) {
  background: #f8fafc;
}

.steps-arrow-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.steps-arrow-next {
  background-color: #ffb800;
  color: #ffffff;
  border-color: #ffb800;
}

.steps-arrow-next:hover:not(:disabled) {
  filter: brightness(1.05);
}

/* ---- Registration Form Section Scoped Styles ---- */
.reg-form-input:focus {
  border-color: #ffb800;
  box-shadow: 0 0 0 4px rgba(255, 184, 0, 0.15);
}

.reg-custom-checkbox {
  accent-color: #ffb800;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 0.25rem;
  border: 1px solid #d1d5db;
  cursor: pointer;
}

.reg-submit-btn {
  transition: all 0.3s ease;
}

.reg-submit-btn:hover {
  box-shadow: 0 10px 20px -5px rgba(255, 184, 0, 0.4);
}

/* ---- Footer Scoped Styles ---- */
.brand-title {
  letter-spacing: -0.01em;
}

.footer-vertical-divider {
  width: 1px;
  height: 40px;
  background-color: #d1d5db;
  margin: 0 1.5rem;
}

/* ---- Dark Mode Global Overrides ---- */
html.dark body {
  background-color: #121212 !important;
  color: #f3f4f6 !important;
}

html.dark .bg-surface,
html.dark [class*="bg-surface"] {
  background-color: #121212 !important;
}

html.dark header.bg-surface\/80 {
  background-color: rgba(18, 18, 18, 0.8) !important;
  border-bottom-color: #27272a !important;
}

html.dark .bg-white,
html.dark [class*="bg-white"],
html.dark [class*="bg-gray-50"],
html.dark [class*="bg-gray-100"],
html.dark [class*="bg-slate-50"],
html.dark .bg-surface-container-lowest,
html.dark .bg-mrk-card-bg {
  background-color: #1e1e1e !important;
}

html.dark .bg-surface-container-high,
html.dark .bg-surface-container,
html.dark .bg-\[\#ececec\] {
  background-color: #27272a !important;
}

/* Comprehensive Text Colors */
html.dark [class*="text-gray-"],
html.dark [class*="text-slate-"],
html.dark [class*="text-zinc-"],
html.dark [class*="text-neutral-"],
html.dark [class*="text-stone-"],
html.dark .text-on-surface,
html.dark .text-on-surface-variant,
html.dark .text-black,
html.dark .text-mrk-text-main,
html.dark .text-mrk-text-muted,
html.dark .text-secondary {
  color: #f3f4f6 !important;
}

/* Ensure headings and paragraphs default to light text */
html.dark h1,
html.dark h2,
html.dark h3,
html.dark h4,
html.dark h5,
html.dark h6,
html.dark p,
html.dark span,
html.dark li {
  color: #f3f4f6 !important;
}

/* Exception for texts that should remain dark (e.g., text over yellow backgrounds) */
html.dark .text-on-primary-fixed,
html.dark .bg-brand-yellow *,
html.dark .bg-primary-container *,
html.dark .formats-btn-primary,
html.dark .reg-submit-btn,
html.dark .about-cta-btn {
  color: #111827 !important;
}

/* Exceptional text colors that should stay colored */
html.dark .text-brand-yellow,
html.dark .text-\[\#ffb800\],
html.dark [class*="text-yellow-"] {
  color: #ffb800 !important;
}

html.dark .text-white {
  color: #ffffff !important;
}

/* Comprehensive Border Colors */
html.dark [class*="border-gray-"],
html.dark [class*="border-slate-"],
html.dark .border-outline-variant\/30,
html.dark .border-black\/5 {
  border-color: #3f3f46 !important;
}

/* Specific background exceptions */
html.dark .bg-\[\#fffbeb\],
html.dark .bg-yellow-50,
html.dark .bg-orange-50 {
  background-color: rgba(255, 184, 0, 0.15) !important;
}

html.dark .about-stat-card,
html.dark .ribbon-badge,
html.dark .steps-tab-btn,
html.dark .steps-arrow-btn {
  background-color: #27272a !important;
  border-color: #3f3f46 !important;
}

html.dark .cases-card,
html.dark .steps-card-shadow,
html.dark .formats-card,
html.dark [data-purpose="format-card-1"],
html.dark [data-purpose="format-card-3"] {
  background-color: #1e1e1e !important;
  border-color: #3f3f46 !important;
}

/* Buttons active states */
html.dark .steps-tab-btn.active,
html.dark .steps-arrow-next {
  background-color: #ffb800 !important;
  color: #111827 !important;
  border-color: #ffb800 !important;
}

html.dark #langDropdown {
  background-color: #1e1e1e !important;
  border-color: #3f3f46 !important;
}

html.dark #langDropdown a {
  color: #f3f4f6 !important;
}

html.dark #langDropdown a:hover {
  background-color: #27272a !important;
}

/* Telegram Floating Button */
.telegram-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 999;
  width: 60px;
  height: 60px;
  background-color: #ffb800;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(255, 184, 0, 0.4);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  cursor: pointer;
  text-decoration: none;
}

.telegram-float:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 25px rgba(255, 184, 0, 0.6);
}

.telegram-float svg {
  width: 30px;
  height: 30px;
  fill: #fff;
}

.telegram-pulse {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #ffb800;
  border-radius: 50%;
  z-index: -1;
  animation: telegram-pulse 2s infinite;
}

@keyframes telegram-pulse {
  0% {
    transform: scale(1);
    opacity: 0.5;
  }

  100% {
    transform: scale(1.6);
    opacity: 0;
  }
}

.telegram-tooltip {
  position: absolute;
  right: 80px;
  background-color: #333;
  color: white;
  padding: 8px 15px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.telegram-float:hover .telegram-tooltip {
  opacity: 1;
  visibility: visible;
  right: 75px;
}

/* Floating Video Player */
.floating-video-container {
  position: fixed;
  bottom: 30px;
  left: 30px;
  z-index: 998;
  width: 200px;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  background: #000;
  border: 2px solid #ffb800;
}

.floating-video-container.expanded {
  width: 300px;
  bottom: 30px;
}

.floating-video-container.minimized {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  bottom: 30px;
}

.floating-video-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 40px;
  background: linear-gradient(to bottom, rgba(0,0,0,0.8), transparent);
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 0 10px;
  z-index: 10;
  opacity: 0;
  transition: opacity 0.3s;
}

.floating-video-container:hover .floating-video-header {
  opacity: 1;
}

.floating-video-btn {
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  padding: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s;
}

.floating-video-btn:hover {
  transform: scale(1.2);
  color: #ffb800;
}

.floating-video-content {
  width: 100%;
  aspect-ratio: 9/16;
  position: relative;
}

.floating-video-container.expanded .floating-video-content {
  aspect-ratio: 9/16;
}

.floating-video-container.minimized .floating-video-content {
  aspect-ratio: 1/1;
  height: 100%;
}

.floating-video-minimized-preview {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  display: none;
  cursor: pointer;
}

.floating-video-container.minimized .floating-video-minimized-preview {
  display: block;
}

.floating-video-container.minimized iframe,
.floating-video-container.minimized .floating-video-element {
  opacity: 0;
  pointer-events: none;
}

.floating-video-element {
  width: 100%;
  height: 100%;
  object-fit: cover;
}