/* Font Awesome loading moved to HTML for optimization */

:root {
  --dark: #111;
  --accent: #ff7a00;
  --light: #f5f5f5;

  /* Theme Variables */
  --bg-primary: #ffffff;
  --bg-secondary: #f5f5f5;
  --text-primary: #111111;
  --text-secondary: #666666;
  --card-bg: #ffffff;
  --border-color: #dddddd;
  --header-bg: #111111;
  --footer-bg: #111111;
}

[data-theme="dark"] {
  --bg-primary: #111111;
  --bg-secondary: #1a1a1a;
  --text-primary: #eeeeee;
  --text-secondary: #aaaaaa;
  --card-bg: #222222;
  --border-color: #333333;
  --header-bg: #000000;
  --footer-bg: #000000;
  --light: #1a1a1a;
  /* Override --light for dark mode usage */
}

* {
  margin: 0;
  box-sizing: border-box;
  font-family: 'Inter', sans-serif;
  transition: background-color 0.3s, color 0.3s;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
}

.container {
  width: 90%;
  margin: auto;
}

header {
  background: var(--header-bg);
  color: white;
  padding: 15px 0;
}

.header-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: white;
}

.logo img {
  height: 35px;
  width: auto;
}

nav a {
  color: white;
  margin-left: 15px;
  text-decoration: none;
}

.lang-switcher {
  display: inline-block;
  margin-left: 20px;
  color: #fff;
  font-size: 14px;
  font-weight: bold;
}

.lang-btn {
  cursor: pointer;
  padding: 2px 5px;
  transition: color 0.3s;
  opacity: 0.6;
}

.lang-btn:hover {
  color: var(--accent);
}

.lang-btn.active {
  opacity: 1;
  color: var(--accent);
  border-bottom: 2px solid var(--accent);
}

.premium-hero {
  background: linear-gradient(135deg, #111, #222);
  color: white;
  padding: 100px 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.hero h2 {
  font-size: 42px;
  margin-bottom: 20px;
}

.hero p {
  margin-bottom: 30px;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  gap: 15px;
  margin-bottom: 40px;
}

@media (max-width: 768px) {
  .hero-actions {
    justify-content: center;
    flex-wrap: wrap;
  }
}

.hero-benefits {
  list-style: none;
  margin-top: 30px;
}

.hero-benefits li {
  margin-bottom: 10px;
  font-size: 18px;
}

.btn {
  background: var(--accent);
  color: white;
  padding: 12px 25px;
  text-decoration: none;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-outline {
  border: 2px solid var(--accent);
  color: var(--accent);
  padding: 12px 25px;
  text-decoration: none;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.contact {
  padding: 80px 0;
  background: var(--bg-primary);
}

.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: start;
  text-align: left;
}

.contact-info h2 {
  margin-bottom: 20px;
  font-size: 36px;
}

.contact-info p {
  color: var(--text-secondary);
  margin-bottom: 30px;
}

.contact-form {
  background: var(--light);
  padding: 30px;
  border-radius: 12px;
}

.contact-form input {
  width: 100%;
  padding: 15px;
  margin-bottom: 15px;
  border: 1px solid var(--border-color);
  background: var(--bg-primary);
  color: var(--text-primary);
  border-radius: 8px;
  font-size: 16px;
}

.contact-form button {
  width: 100%;
  padding: 15px;
  background: var(--accent);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s;
}

.contact-form button:hover {
  background: #e66e00;
}

.contact-map {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  height: 100%;
  min-height: 400px;
}

@media (max-width: 992px) {
  .contact-wrapper {
    grid-template-columns: 1fr;
  }

  .contact-map {
    min-height: 300px;
  }
}

.call-fixed {
  position: fixed;
  left: 20px;
  bottom: 20px;
  background: var(--accent);
  color: white;
  padding: 15px;
  border-radius: 50%;
  text-decoration: none;
}

@media (max-width: 768px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-image {
    order: -1;
    margin-bottom: 30px;
  }

  .hero-image img {
    max-width: 80%;
    margin: 0 auto;
    display: block;
  }

  .hero h2 {
    font-size: 32px;
  }

  .hero-benefits {
    display: inline-block;
    text-align: left;
  }

  .container {
    width: 95%;
  }

  .premium-hero {
    padding: 60px 0;
  }

  .services,
  .contact {
    padding: 40px 0;
  }
}

header {
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-cta {
  background: var(--accent);
  padding: 8px 16px;
  border-radius: 6px;
  color: white;
  text-decoration: none;
  margin-left: 20px;
}

* {
  font-family: 'Inter', sans-serif;
}

.services {
  background: var(--light);
}

.animate {
  opacity: 0;
  transform: translateY(40px);
  transition: 0.8s ease;
}

.animate.show {
  opacity: 1;
  transform: translateY(0);
}

.burger {
  display: none;
  font-size: 26px;
  cursor: pointer;
}

@media (max-width: 768px) {
  nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    flex-direction: column;
    background: var(--header-bg);
    padding: 20px 0;
    text-align: center;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
  }

  nav a {
    display: block;
    margin: 15px 0;
    font-size: 18px;
  }

  .header-cta {
    display: inline-block;
    /* Keep button look */
    margin: 15px auto;
  }

  nav.show {
    display: flex;
    animation: slideDown 0.3s ease;
  }

  @keyframes slideDown {
    from {
      opacity: 0;
      transform: translateY(-10px);
    }

    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .burger {
    display: block;
    color: white;
  }
}

/* Carousel Styling */
.carousel-container {
  display: flex;
  overflow-x: auto;
  gap: 20px;
  padding: 20px 0;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  /* Firefox */
  -ms-overflow-style: none;
  /* IE 10+ */
}

.carousel-container::-webkit-scrollbar {
  display: none;
  /* Chrome/Safari */
}

.carousel-container .card {
  flex: 0 0 auto;
  width: 280px;
  scroll-snap-align: center;
  background: var(--card-bg);
  padding: 15px;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

/* Sponsors Marquee */
.marquee-container {
  overflow: hidden;
  white-space: nowrap;
  position: relative;
  padding: 40px 0;
}

.marquee-content {
  display: inline-flex;
  gap: 50px;
  animation: scroll 30s linear infinite;
}

.marquee-container:hover .marquee-content {
  animation-play-state: paused;
}

.marquee-content .card {
  width: 200px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: var(--card-bg);
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s;
}

.marquee-content .card:hover {
  transform: scale(1.1) rotate(2deg);
  border-color: var(--accent);
}

/* Micro-interactions & Tilt */
.card,
.service-item,
.why-card {
  transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.card:hover,
.service-item:hover {
  transform: translateY(-12px) scale(1.02);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.1);
}

.animate {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.animate.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Custom Scrollbar for modern look */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: #1557b0;
}

.marquee-content img {
  max-width: 80%;
  max-height: 60px;
  /* filter: grayscale(100%); removed to keep colored */
  transition: filter 0.3s;
  /* opacity: 0.7; removed */
}



@keyframes scroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}


#map-container iframe {
  filter: grayscale(0%);
  transition: all 0.5s ease;
}

#map-container:hover iframe {
  filter: grayscale(0%);
}

/* PRELOADER */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg-primary);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s;
}

.spinner {
  width: 50px;
  height: 50px;
  border: 5px solid #f3f3f3;
  border-top: 5px solid var(--accent);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}



/* CONFIGURATOR */
.configurator {
  padding: 100px 0;
  background: var(--bg-secondary);
}

.config-header {
  text-align: center;
  margin-bottom: 60px;
}

.control-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--text-secondary);
}

.config-input {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-primary);
  border: 2px solid var(--border-color);
  border-radius: 12px;
  color: var(--text-primary);
  font-size: 16px;
  font-weight: 600;
  transition: all 0.3s ease;
  outline: none;
}

.config-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 15px rgba(255, 122, 0, 0.1);
}

/* Chrome, Safari, Edge, Opera */
.config-input::-webkit-outer-spin-button,
.config-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  appearance: none;
  margin: 0;
}

/* Firefox */
.config-input[type=number] {
  -moz-appearance: textfield;
  appearance: textfield;
}

.config-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 60px;
  align-items: center;
  background: var(--card-bg);
  padding: 40px;
  border-radius: 30px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.08);
  border: 1px solid var(--border-color);
}

.config-preview-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  perspective: 1000px;
}

.door-visualizer {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #f0f2f5;
  background-size: cover;
  background-position: center;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-color);
}

.upload-box {
  border: 2px dashed var(--accent);
  padding: 15px;
  text-align: center;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s;
  background: rgba(255, 122, 0, 0.05);
  color: var(--accent);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}

.upload-box:hover {
  background: rgba(255, 122, 0, 0.1);
}

.upload-box i {
  font-size: 24px;
}

.upload-hint {
  font-size: 11px;
  color: var(--text-secondary);
  margin-top: 5px;
  text-align: center;
}


[data-theme="dark"] .door-visualizer {
  background: #1a1a1a;
}

.door-frame {
  width: 50%;
  /* Adjusted for mockup look */
  height: 60%;
  border: 4px solid #555;
  border-bottom: none;
  position: relative;
  display: flex;
  align-items: flex-end;
  background: rgba(0, 0, 0, 0.1);
  transition: all 0.5s ease;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  z-index: 2;
}

.door-leaf {
  width: 100%;
  height: 100%;
  background: #333;
  /* Default active color */
  position: relative;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.door-texture {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  opacity: 0.1;
  background-image: linear-gradient(0deg, transparent 49%, #000 50%, #000 51%, transparent 52%);
  background-size: 100% 40px;
}

.door-panels {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.door-panels span {
  flex: 1;
  border: 1px solid rgba(0, 0, 0, 0.2);
  border-bottom: 2px solid rgba(0, 0, 0, 0.4);
  box-shadow: inset 0 2px 5px rgba(255, 255, 255, 0.05);
}

.dimensions-display {
  font-family: 'Courier New', Courier, monospace;
  font-size: 18px;
  color: var(--accent);
  font-weight: bold;
  background: var(--bg-primary);
  padding: 8px 20px;
  border-radius: 50px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

/* Controls */
.config-controls {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.control-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.control-group label {
  font-weight: 600;
  color: var(--text-primary);
}

.type-selector {
  display: flex;
  gap: 10px;
}

.type-btn {
  flex: 1;
  padding: 12px;
  border: 1px solid var(--border-color);
  background: transparent;
  color: var(--text-primary);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s;
  font-weight: 600;
}

.type-btn.active {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}

/* Range Input Styling */
input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  background: #ddd;
  border-radius: 5px;
  outline: none;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  background: var(--accent);
  border-radius: 50%;
  cursor: pointer;
  transition: 0.3s;
}

.color-selector {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.color-swatch {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  cursor: pointer;
  border: 3px solid transparent;
  transition: transform 0.2s, border-color 0.2s;
}

.color-swatch.active {
  transform: scale(1.2);
  border-color: var(--accent);
}

.price-container {
  margin-top: 10px;
  padding: 20px;
  background: var(--bg-secondary);
  border-radius: 15px;
  text-align: center;
}

.price-label {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 5px;
}

.price-amount {
  font-size: 28px;
  font-weight: 800;
  color: var(--accent);
}

.config-order-btn {
  padding: 18px;
  font-size: 18px;
  box-shadow: 0 10px 20px rgba(255, 122, 0, 0.2);
}

@media (max-width: 992px) {
  .config-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 20px;
  }
}

/* WHY US SECTION */
.why-us {
  padding: 100px 0;
  background: var(--bg-primary);
  text-align: center;
}

.why-us h2 {
  font-size: 36px;
  margin-bottom: 50px;
  color: var(--text-primary);
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
}

.why-card {
  background: var(--card-bg);
  padding: 40px 20px;
  border-radius: 20px;
  border: 1px solid var(--border-color);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  cursor: default;
}

.why-card:hover {
  transform: translateY(-10px);
  background: white;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.06);
  border-color: var(--accent);
}

.why-icon {
  font-size: 48px;
  margin-bottom: 20px;
  filter: drop-shadow(0 5px 10px rgba(0, 0, 0, 0.1));
}

.why-text {
  font-weight: 700;
  font-size: 18px;
  color: var(--text-primary);
}

/* FAQ SECTION */
.faq-section {
  padding: 100px 0;
  background: var(--light);
}

.faq-section h2 {
  text-align: center;
  font-size: 36px;
  margin-bottom: 50px;
}

.faq-wrapper {
  max-width: 900px;
  margin: 0 auto;
}

.faq-item {
  background: var(--card-bg);
  margin-bottom: 15px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
  transition: all 0.3s ease;
}

.faq-item:hover {
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.faq-header {
  padding: 25px 30px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  font-size: 18px;
  color: var(--text-primary);
}

.faq-icon-box {
  width: 30px;
  height: 30px;
  position: relative;
  transition: transform 0.3s ease;
}

.faq-icon-box::before,
.faq-icon-box::after {
  content: '';
  position: absolute;
  background: var(--accent);
  transition: all 0.3s ease;
}

/* Horizontal line */
.faq-icon-box::before {
  width: 14px;
  height: 2px;
  top: 14px;
  left: 8px;
}

/* Vertical line */
.faq-icon-box::after {
  width: 2px;
  height: 14px;
  top: 8px;
  left: 14px;
}

.faq-item.active .faq-icon-box {
  transform: rotate(45deg);
}

.faq-item.active {
  border-left: 4px solid var(--accent);
}

.faq-body {
  padding: 0 30px;
  max-height: 0;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0, 1, 0, 1);
  color: var(--text-secondary);
  line-height: 1.7;
}

.faq-item.active .faq-body {
  max-height: 500px;
  padding: 0 30px 30px 30px;
  transition: all 0.4s cubic-bezier(1, 0, 1, 0);
}

/* BACK TO TOP */
#backToTop {
  display: none;
  position: fixed;
  bottom: 100px;
  /* Moved up for chat widget */
  right: 30px;
  width: 50px;
  height: 50px;
  background: var(--accent);
  color: white;
  border: none;
  border-radius: 50%;
  font-size: 24px;
  cursor: pointer;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  z-index: 2000;
  transition: background 0.3s, transform 0.3s;
}

/* AI CHAT WIDGET */
.ai-chat-widget {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 2100;
  font-family: 'Inter', sans-serif;
}

.ai-chat-button {
  width: 60px;
  height: 60px;
  background: var(--accent);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(255, 122, 0, 0.4);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  z-index: 2101;
}

.ai-chat-button:hover {
  transform: scale(1.1) rotate(10deg);
}

.ai-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  background: #ff0000;
  color: white;
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 10px;
  font-weight: 800;
}

.ai-chat-window {
  position: absolute;
  bottom: 80px;
  right: 0;
  width: 350px;
  height: 500px;
  background: var(--card-bg);
  border-radius: 20px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  transform: translateY(20px) scale(0.9);
  pointer-events: none;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid var(--border-color);
  backdrop-filter: blur(10px);
}

.ai-chat-window.active {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: all;
}

.ai-chat-header {
  padding: 20px;
  background: var(--accent);
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.ai-info {
  display: flex;
  gap: 12px;
  align-items: center;
}

.ai-avatar {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.ai-info h4 {
  margin: 0;
  font-size: 16px;
}

.ai-status {
  font-size: 12px;
  opacity: 0.8;
}

.close-chat {
  background: none;
  border: none;
  color: white;
  font-size: 28px;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.3s;
}

.close-chat:hover {
  opacity: 1;
}

.ai-chat-messages {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
  background: rgba(255, 255, 255, 0.02);
}

.message {
  max-width: 80%;
  padding: 12px 16px;
  border-radius: 15px;
  font-size: 14px;
  line-height: 1.5;
  animation: messageIn 0.3s ease forwards;
}

.message.ai {
  align-self: flex-start;
  background: var(--bg-secondary);
  color: var(--text-primary);
  border-bottom-left-radius: 2px;
}

.message.user {
  align-self: flex-end;
  background: var(--accent);
  color: white;
  border-bottom-right-radius: 2px;
}

@keyframes messageIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.ai-chat-input {
  padding: 15px;
  border-top: 1px solid var(--border-color);
  display: flex;
  gap: 10px;
  background: var(--bg-primary);
}

.ai-chat-input input {
  flex: 1;
  padding: 10px 15px;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  outline: none;
  background: var(--bg-secondary);
  color: var(--text-primary);
}

.ai-chat-input button {
  background: var(--accent);
  color: white;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  cursor: pointer;
  transition: transform 0.2s;
}

.ai-chat-input button:hover {
  transform: scale(1.05);
}

/* SMART OFFER BAR */
.smart-offer-bar {
  background: linear-gradient(90deg, #ff7a00, #ff0000);
  color: white;
  padding: 10px 0;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  position: sticky;
  top: 0;
  z-index: 5000;
}

.offer-content {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
}

.offer-badge {
  background: white;
  color: #ff0000;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 800;
}

.countdown {
  background: rgba(0, 0, 0, 0.2);
  padding: 4px 10px;
  border-radius: 4px;
  font-family: monospace;
  font-size: 16px;
}

/* EXIT INTENT MODAL */
.exit-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 6000;
  backdrop-filter: blur(5px);
}

.exit-modal-content {
  background: var(--card-bg);
  padding: 40px;
  border-radius: 30px;
  max-width: 450px;
  text-align: center;
  position: relative;
  border: 1px solid var(--accent);
  box-shadow: 0 0 50px rgba(255, 122, 0, 0.3);
}

.close-exit-modal {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  color: white;
  font-size: 30px;
  cursor: pointer;
}

.exit-icon {
  font-size: 60px;
  color: var(--accent);
  margin-bottom: 20px;
}

.exit-modal h2 {
  margin-bottom: 10px;
}

.exit-modal p {
  margin-bottom: 30px;
  color: #94a3b8;
}

/* SOCIAL NOTIFICATION */
.social-notification {
  position: fixed;
  bottom: 20px;
  left: 20px;
  background: var(--card-bg);
  border: 1px solid var(--accent);
  padding: 10px 15px;
  border-radius: 12px;
  transform: translateY(150%);
  transition: all 0.5s ease;
  z-index: 4000;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
}

.notif-content {
  display: flex;
  align-items: center;
  gap: 12px;
}

.notif-content img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: crop;
}

.notif-text {
  display: flex;
  flex-direction: column;
}

.notif-text strong {
  font-size: 13px;
  color: white;
}

.notif-text span {
  font-size: 12px;
  color: #94a3b8;
}

.notif-text small {
  font-size: 10px;
  color: var(--accent);
  font-weight: 600;
}

.social-notification.active {
  transform: translateY(0);
}

@media (max-width: 480px) {
  .social-notification {
    bottom: 10px;
    left: 10px;
    width: 280px;
  }

  .ai-chat-window {
    width: calc(100vw - 40px);
    height: 70vh;
    bottom: 70px;
    right: -10px;
  }
}

/* AI Chat Widget Updates */
.ai-chat-messages a.ai-wa-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #25d366;
  color: white;
  padding: 10px 18px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  margin-top: 10px;
  transition: all 0.3s;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.ai-chat-messages a.ai-wa-btn:hover {
  background: #128c7e;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

/* Referral Banner Styles */
.referral-banner {
  background: linear-gradient(90deg, #ff7a00, #ff9500);
  color: white;
  padding: 15px 0;
  text-align: center;
  font-weight: 700;
  position: relative;
  overflow: hidden;
  z-index: 1001;
}

.referral-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  animation: shine 3s infinite;
}

@keyframes shine {
  to {
    left: 100%;
  }
}

.referral-btn {
  background: white;
  color: #ff7a00;
  padding: 5px 15px;
  border-radius: 50px;
  margin-left: 15px;
  text-decoration: none;
  font-size: 14px;
}

@media (max-width: 768px) {
  #backToTop {
    bottom: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
    font-size: 20px;
  }
}

/* TESTIMONIALS */
.testimonials {
  padding: 100px 0;
  background: var(--bg-primary);
  text-align: center;
}

.testimonials h2 {
  font-size: 36px;
  margin-bottom: 50px;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.testi-card {
  background: var(--card-bg);
  padding: 40px 30px;
  border-radius: 24px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  border: 1px solid var(--border-color);
  position: relative;
  transition: all 0.3s ease;
}

.testi-card:hover {
  transform: translateY(-10px);
  border-color: var(--accent);
}

.testi-quote {
  font-size: 40px;
  color: var(--accent);
  opacity: 0.2;
  position: absolute;
  top: 20px;
  left: 20px;
}

.testi-text {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-secondary);
  font-style: italic;
  margin-bottom: 25px;
}

.testi-author {
  font-weight: 700;
  font-size: 18px;
  color: var(--text-primary);
}

@media (max-width: 768px) {
  .testimonials {
    padding: 60px 0;
  }
}

#backToTop:hover {
  background: #e66e00;
}

/* SERVICE PAGE GRID */
.services-list {
  padding: 80px 0;
  background: var(--light);
}

.service-page-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 30px;
}

.service-item {
  background: var(--card-bg);
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.service-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
}

.service-img {
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.service-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.service-item:hover .service-img img {
  transform: scale(1.1);
}

.service-info {
  padding: 25px;
  flex-grow: 1;
}

.btn-pdf {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 25px;
  border-radius: 50px;
  background: #f1f3f4;
  color: #3c4043;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  border: 1px solid #dadce0;
}

.btn-pdf:hover {
  background: #e8eaed;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.btn-pdf i {
  color: #d93025;
  /* PDF Red */
  font-size: 20px;
}

.service-info h3 {
  font-size: 20px;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.service-info p {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.6;
}

@media (max-width: 768px) {
  .service-page-grid {
    grid-template-columns: 1fr;
  }

  .service-img {
    height: 180px;
  }
}

/* FOOTER STYLES */
footer .lang-switcher {
  margin-top: 15px;
  display: block;
}

footer .lang-btn {
  color: #666;
}

footer .lang-btn.active {
  color: var(--accent);
}

/* VIDEO GALLERY */
.video-gallery {
  padding: 80px 0;
  background: var(--bg-primary);
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.video-card {
  background: black;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  aspect-ratio: 9/16;
  max-width: 350px;
  margin: 0 auto;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.video-card iframe,
.video-card video {
  width: 100%;
  height: 100%;
  border: none;
}

.video-card:hover {
  transform: scale(1.02);
  transition: transform 0.3s ease;
}

/* TOAST */
#toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 10000;
}

.toast {
  background: var(--card-bg);
  color: var(--text-primary);
  padding: 15px 25px;
  margin-bottom: 10px;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  animation: slideIn 0.3s ease;
  border-left: 5px solid #2ecc71;
}

.toast.error {
  border-left-color: #e74c3c;
}

@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }

  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* Social Icons */
.social-icons {
  display: flex;
  gap: 15px;
  justify-content: center;
  align-items: center;
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  color: white;
  text-decoration: none;
  font-size: 20px;
  transition: transform 0.3s, filter 0.3s;
}

.social-icon:hover {
  transform: scale(1.1);
  filter: brightness(1.1);
}

.social-icon.phone {
  background: #333;
}

.social-icon.whatsapp {
  background: #25D366;
}

.social-icon.telegram {
  background: #0088cc;
}

.social-icon.instagram {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

/* CALCULATOR STYLES */
.calc-input {
  width: 100%;
  padding: 12px;
  margin-bottom: 15px;
  border: 1px solid var(--border-color);
  background: var(--bg-primary);
  color: var(--text-primary);
  border-radius: 8px;
  font-size: 16px;
  display: block;
}

.calc-input:focus {
  border-color: var(--accent);
  outline: none;
}

/* FLOATING BUTTONS */
.floating-contact {
  position: fixed;
  right: 20px;
  bottom: 100px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  z-index: 2000;
}

.float-btn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-decoration: none;
  font-size: 28px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  animation: pulse 2s infinite;
}

.float-btn:hover {
  transform: scale(1.1) rotate(5deg);
}

.float-btn.tg {
  background: #0088cc;
}

.float-btn.wa {
  background: #25d366;
  animation-delay: 0.5s;
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.05);
  }

  100% {
    transform: scale(1);
  }
}

@media (max-width: 768px) {
  .float-btn {
    width: 50px;
    height: 50px;
    font-size: 24px;
  }
}

/* Lightbox Styles */
#lightbox-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  backdrop-filter: blur(5px);
}

#lightbox-overlay.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-img {
  max-width: 90%;
  max-height: 80%;
  border-radius: 8px;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

#lightbox-overlay.active .lightbox-img {
  transform: scale(1);
}

.lightbox-close {
  position: absolute;
  top: 30px;
  right: 40px;
  color: white;
  font-size: 50px;
  cursor: pointer;
  transition: color 0.3s;
}

.lightbox-close:hover {
  color: var(--accent);
}

.lightbox-caption {
  color: white;
  margin-top: 20px;
  font-size: 22px;
  font-weight: 600;
  text-align: center;
  padding: 0 20px;
}