/* ============================================
   RESET & BASE STYLES
   ============================================ */

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

:root {
  /* Updated to modern color palette */
  --primary-color: #0f172a;
  --primary-light: #1e293b;
  --secondary-color: #ff6b35;
  --accent-color: #00d4ff;
  --text-dark: #0f172a;
  --text-light: #475569;
  --bg-light: #f8fafc;
  --bg-white: #ffffff;
  --border-color: #e2e8f0;
  --shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.12);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--bg-white);
}

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

/* ============================================
   TYPOGRAPHY
   ============================================ */

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

h1 {
  font-size: 3rem;
}

h2 {
  font-size: 2.5rem;
}

h3 {
  font-size: 1.8rem;
}

h4 {
  font-size: 1.3rem;
}

p {
  margin-bottom: 1rem;
  color: var(--text-light);
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--secondary-color);
}

/* ============================================
   BUTTONS
   ============================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 12px 28px;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--secondary-color);
  color: white;
  font-weight: 700;
}

.btn-primary:hover {
  background-color: #ff5722;
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-secondary {
  background-color: var(--accent-color);
  color: var(--primary-color);
  font-weight: 700;
}

.btn-secondary:hover {
  background-color: #00c4e0;
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* ============================================
   HEADER & NAVIGATION
   ============================================ */

.header {
  background-color: var(--bg-white);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
}

.logo svg {
  width: 40px;
  height: 40px;
  color: var(--primary-color);
}

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

.nav-link {
  color: var(--text-dark);
  font-weight: 500;
  transition: color 0.3s ease;
  position: relative;
}

.nav-link:hover {
  color: var(--primary-color);
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--secondary-color);
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

.hamburger {
  display: none;
  flex-direction: column;
  background: none;
  border: none;
  cursor: pointer;
  gap: 5px;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background-color: var(--text-dark);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

/* ============================================
   HERO SLIDER
   ============================================ */

.hero-slider {
  position: relative;
  height: 100vh;
  overflow: hidden;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
}

.slider-container {
  position: relative;
  width: 100%;
  height: 100%;
}

.slider-wrapper {
  display: flex;
  height: 100%;
  transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.slide {
  min-width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background-size: contain !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
  background-color: #0f172a;
  border: 10px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.6);
}

.slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(15, 23, 42, 0.55) 0%,
    rgba(30, 41, 59, 0.45) 50%,
    rgba(255, 107, 53, 0.08) 100%
  );
  z-index: 1;
  pointer-events: none;
}

.slide-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: white;
  max-width: 800px;
  padding: 3rem 2rem;
  animation: slideInUp 0.8s ease-out;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.slide-title {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  font-weight: 800;
  text-shadow: 3px 3px 12px rgba(0, 0, 0, 0.6);
  letter-spacing: -1px;
  line-height: 1.1;
  background: linear-gradient(135deg, #ffffff 0%, #00d4ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.slide-subtitle {
  font-size: 1.6rem;
  margin-bottom: 1.5rem;
  font-weight: 600;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
  color: #00d4ff;
  letter-spacing: 0.5px;
}

.slide-description {
  font-size: 1.15rem;
  margin-bottom: 2.5rem;
  line-height: 1.8;
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.5);
  color: rgba(255, 255, 255, 0.95);
  max-width: 600px;
}

.slide-buttons {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeIn 1s ease-out 0.3s both;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(255, 255, 255, 0.2);
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.4);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  font-size: 1.8rem;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
}

.slider-btn:hover {
  background-color: rgba(255, 107, 53, 0.8);
  border-color: rgba(255, 107, 53, 1);
  transform: translateY(-50%) scale(1.15);
  box-shadow: 0 0 30px rgba(255, 107, 53, 0.6);
}

.slider-btn.prev {
  left: 30px;
}

.slider-btn.next {
  right: 30px;
}

.slider-indicators {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  z-index: 10;
}

.indicator {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.4);
  border: 2px solid rgba(255, 255, 255, 0.6);
  cursor: pointer;
  transition: all 0.3s ease;
}

.indicator:hover {
  background-color: rgba(255, 255, 255, 0.6);
}

.indicator.active {
  background-color: #ff6b35;
  border-color: #ff6b35;
  width: 40px;
  border-radius: 8px;
  box-shadow: 0 0 20px rgba(255, 107, 53, 0.6);
}

/* ============================================
   SECTIONS
   ============================================ */

section {
  padding: 80px 0;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
  color: var(--primary-color);
  position: relative;
  padding-bottom: 1rem;
  font-weight: 800;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 5px;
  background: linear-gradient(90deg, var(--secondary-color), var(--accent-color));
  border-radius: 3px;
}

/* ============================================
   ABOUT SECTION
   ============================================ */

.about {
  background-color: var(--bg-light);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
  align-items: center;
}

.about-content h3 {
  color: var(--primary-color);
  margin-bottom: 1.5rem;
}

.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.stat {
  background-color: white;
  padding: 2rem;
  border-radius: 12px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease;
}

.stat:hover {
  transform: translateY(-5px);
}

.stat h4 {
  font-size: 2.5rem;
  color: var(--secondary-color);
  margin-bottom: 0.5rem;
}

.stat p {
  color: var(--text-light);
  margin: 0;
}

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

.feature {
  background-color: white;
  padding: 2rem;
  border-radius: 12px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
}

.feature:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.feature-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.feature h4 {
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

/* ============================================
   SERVICES SECTION
   ============================================ */

.services {
  background-color: var(--bg-white);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.service-card {
  background-color: var(--bg-light);
  padding: 2rem;
  border-radius: 12px;
  border-left: 4px solid var(--secondary-color);
  transition: all 0.3s ease;
  box-shadow: var(--shadow);
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-left-color: var(--primary-color);
}

.service-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.service-card h3 {
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.service-list {
  list-style: none;
  margin-top: 1rem;
}

.service-list li {
  padding: 0.5rem 0;
  color: var(--text-light);
}

/* ============================================
   GALLERY SECTION
   ============================================ */

.gallery {
  background-color: var(--bg-light);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  height: 300px;
  box-shadow: var(--shadow);
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.gallery-item:hover img {
  transform: scale(1.1);
}

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(30, 60, 114, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-overlay p {
  color: white;
  font-size: 1.3rem;
  font-weight: 600;
  margin: 0;
}

/* ============================================
   FAQ SECTION
   ============================================ */

.faq {
  background-color: var(--bg-white);
}

.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  margin-bottom: 1rem;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.faq-question {
  width: 100%;
  padding: 1.5rem;
  background-color: var(--bg-light);
  border: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--primary-color);
  transition: all 0.3s ease;
}

.faq-question:hover {
  background-color: var(--primary-color);
  color: white;
}

.faq-icon {
  font-size: 1.5rem;
  transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  background-color: white;
}

.faq-item.active .faq-answer {
  max-height: 500px;
}

.faq-answer p {
  padding: 1.5rem;
  margin: 0;
}

/* ============================================
   CONTACT SECTION
   ============================================ */

.contact {
  background-color: var(--bg-light);
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.contact-info h3 {
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.contact-methods {
  margin: 2rem 0;
}

.contact-method {
  margin-bottom: 1.5rem;
}

.contact-method h4 {
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.contact-method a,
.contact-method p {
  color: var(--text-light);
  margin: 0;
}

.contact-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.contact-map {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
  background-color: var(--primary-color);
  color: white;
  padding: 3rem 0 1rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h4 {
  color: white;
  margin-bottom: 1rem;
}

.footer-section p {
  color: rgba(255, 255, 255, 0.8);
  margin: 0;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 0.5rem;
}

.footer-section a {
  color: rgba(255, 255, 255, 0.8);
  transition: color 0.3s ease;
}

.footer-section a:hover {
  color: white;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 1rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.8);
}

/* ============================================
   COOKIE BANNER
   ============================================ */

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
  color: white;
  padding: 1.5rem;
  z-index: 1000;
  display: flex;
  justify-content: center;
  transform: translateY(100%);
  transition: transform 0.3s ease;
  box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.15);
}

.cookie-banner.show {
  transform: translateY(0);
}

.cookie-content {
  max-width: 1200px;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

.cookie-content p {
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
}

.cookie-buttons {
  display: flex;
  gap: 1rem;
  white-space: nowrap;
}

/* ============================================
   FLOATING CONTACT BUTTONS
   ============================================ */

.floating-contact-left,
.floating-contact-right {
  position: fixed;
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.floating-contact-left {
  left: 20px;
  top: 90%;
  transform: translateY(-50%);
}

.floating-contact-right {
  right: 20px;
  top: 90%;
  transform: translateY(-50%);
}

.floating-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  font-size: 1.5rem;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.3);
  position: relative;
  overflow: hidden;
}

.floating-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: inherit;
  border-radius: 50%;
  animation: pulse 2s infinite;
  opacity: 0.5;
  z-index: -1;
}

@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 0.5;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.3;
  }
  100% {
    transform: scale(1);
    opacity: 0.5;
  }
}

.floating-call {
  background: linear-gradient(135deg, #ff6b35 0%, #ff5722 100%);
  color: white;
}

.floating-call:hover {
  transform: scale(1.15);
  box-shadow: 0 8px 25px rgba(255, 107, 53, 0.6);
  background: linear-gradient(135deg, #ff5722 0%, #ff4500 100%);
}

.floating-whatsapp {
  background: linear-gradient(135deg, #25d366 0%, #20ba5a 100%);
  color: white;
}

.floating-whatsapp:hover {
  transform: scale(1.15);
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.6);
  background: linear-gradient(135deg, #20ba5a 100%, #1aa34a 100%);
}

.floating-icon {
  font-size: 1.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.floating-label {
  position: absolute;
  background-color: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
  bottom: -40px;
}

.floating-btn:hover .floating-label {
  opacity: 1;
  bottom: -50px;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .nav {
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    flex-direction: column;
    background-color: var(--bg-white);
    padding: 1rem;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    box-shadow: var(--shadow);
  }

  .nav.active {
    max-height: 400px;
  }

  .nav-link {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
  }

  .nav-link::after {
    display: none;
  }

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.8rem;
  }

  .slide-title {
    font-size: 2.2rem;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.5);
    margin-bottom: 1rem;
  }

  .slide-subtitle {
    font-size: 1.3rem;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.4);
    margin-bottom: 1rem;
  }

  .slide-description {
    font-size: 1rem;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
    margin-bottom: 1.5rem;
  }

  .slide-buttons {
    gap: 1rem;
  }

  .btn {
    width: 100%;
  }

  .about-grid {
    grid-template-columns: 1fr;
  }

  .about-stats {
    grid-template-columns: 1fr 1fr;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .contact-content {
    grid-template-columns: 1fr;
  }

  .contact-map {
    height: 300px;
  }

  .footer-content {
    grid-template-columns: 1fr;
  }

  .cookie-content {
    flex-direction: column;
    align-items: flex-start;
  }

  .cookie-buttons {
    width: 100%;
    flex-direction: column;
  }

  .cookie-buttons .btn {
    width: 100%;
  }

  .slider-btn {
    width: 50px;
    height: 50px;
    font-size: 1.4rem;
  }

  .slider-btn.prev {
    left: 15px;
  }

  .slider-btn.next {
    right: 15px;
  }

  .slider-indicators {
    bottom: 30px;
    gap: 8px;
  }

  .indicator {
    width: 10px;
    height: 10px;
  }

  .indicator.active {
    width: 30px;
  }

  section {
    padding: 50px 0;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .floating-contact-left,
  .floating-contact-right {
    position: fixed;
    flex-direction: row;
    gap: 0.5rem;
  }

  .floating-contact-left {
    left: 10px;
    top: auto;
    bottom: 20px;
    transform: none;
  }

  .floating-contact-right {
    right: 10px;
    top: auto;
    bottom: 20px;
    transform: none;
  }

  .floating-btn {
    width: 55px;
    height: 55px;
    font-size: 1.3rem;
  }

  .floating-icon {
    font-size: 1.5rem;
  }

  .floating-label {
    display: none;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 15px;
  }

  h1 {
    font-size: 1.5rem;
  }

  h2 {
    font-size: 1.3rem;
  }

  h3 {
    font-size: 1.2rem;
  }

  .slide-title {
    font-size: 1.6rem;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
    margin-bottom: 0.8rem;
  }

  .slide-subtitle {
    font-size: 1.1rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.4);
    margin-bottom: 0.8rem;
  }

  .slide-description {
    font-size: 0.95rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    margin-bottom: 1.2rem;
  }

  .slide-buttons {
    flex-direction: column;
    gap: 0.8rem;
  }

  .btn {
    width: 100%;
  }

  .slider-btn {
    width: 45px;
    height: 45px;
    font-size: 1.2rem;
  }

  .slider-btn.prev {
    left: 10px;
  }

  .slider-btn.next {
    right: 10px;
  }

  .slider-indicators {
    bottom: 20px;
    gap: 6px;
  }

  .indicator {
    width: 8px;
    height: 8px;
  }

  .indicator.active {
    width: 24px;
  }

  .stat h4 {
    font-size: 2rem;
  }

  .feature-icon {
    font-size: 2rem;
  }

  .service-icon {
    font-size: 2rem;
  }

  .gallery-item {
    height: 250px;
  }

  .contact-map {
    height: 250px;
  }

  .footer-content {
    gap: 1rem;
  }

  .cookie-content {
    gap: 1rem;
  }

  .cookie-content p {
    font-size: 0.9rem;
  }

  .btn {
    padding: 10px 20px;
    font-size: 0.9rem;
  }

  section {
    padding: 40px 0;
  }

  .section-title {
    font-size: 1.5rem;
    margin-bottom: 2rem;
  }

  .floating-btn {
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
  }

  .floating-icon {
    font-size: 1.4rem;
  }
}

/* === Slider IMG version fix === */
.slide {
  position: relative;
  min-width: 100%;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 10px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  background-color: #0f172a;
}

.slide-bg {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  background-color: #0f172a;
}

.slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(15, 23, 42, 0.55) 0%,
    rgba(30, 41, 59, 0.45) 50%,
    rgba(255, 107, 53, 0.08) 100%
  );
  z-index: 1;
  pointer-events: none;
}

/* === Slider IMG layering & legibility fix v2 === */
.hero-slider { height: 100vh; }

.slide {
  position: relative;
  min-width: 100%;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-color: #0f172a;
}

/* The image is a background-like layer */
.slide-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  z-index: 0;
  pointer-events: none;
}

/* Decorative inner frame that does NOT consume layout space */
.slide::before {
  content: "";
  position: absolute;
  inset: 20px;
  border: 8px solid rgba(255, 255, 255, 0.3);
  border-radius: 12px;
  z-index: 2;
  pointer-events: none;
}

/* Overlay kept subtle and below the frame */
.slide-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(0,0,0,0.25) 0%, rgba(0,0,0,0.45) 60%, rgba(0,0,0,0.65) 100%);
  z-index: 1;
  pointer-events: none;
}

/* Content is always above image & overlay */
.slide-content {
  position: relative;
  z-index: 3;
  text-align: center;
  color: #fff;
  max-width: 900px;
  padding: 2rem;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.35);
  backdrop-filter: blur(4px);
}

/* Titles readable */
.slide-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  margin-bottom: 1rem;
}

.slide-subtitle {
  font-size: clamp(1.1rem, 2.2vw, 1.6rem);
}

.slide-description {
  font-size: clamp(1rem, 1.6vw, 1.15rem);
}

/* Controls stay above everything */
.slider-btn, .slider-indicators { z-index: 4; }

@media (max-width: 768px) {
  .slide::before { inset: 12px; border-width: 6px; }
  .slide-content { margin: 0 1rem; padding: 1.25rem; }
}

/* === Slider IMG Full Background Fix (Final) === */
.hero-slider {
  height: 100vh;
  position: relative;
  overflow: hidden;
}

.slide {
  position: relative;
  min-width: 100%;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-color: #0f172a;
}

.slide-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.02);
  z-index: 0;
  pointer-events: none;
  filter: brightness(0.95);
}

.slide::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 10px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  z-index: 2;
  pointer-events: none;
}

.slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(15, 23, 42, 0.45) 0%,
    rgba(30, 41, 59, 0.55) 50%,
    rgba(255, 107, 53, 0.1) 100%
  );
  z-index: 1;
}

.slide-content {
  position: relative;
  z-index: 3;
  text-align: center;
  color: white;
  max-width: 900px;
  padding: 2rem;
  background: rgba(15, 23, 42, 0.35);
  backdrop-filter: blur(6px);
  border-radius: 12px;
}

.slide-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  margin-bottom: 1rem;
}

.slide-subtitle {
  font-size: clamp(1.1rem, 2.2vw, 1.6rem);
}

.slide-description {
  font-size: clamp(1rem, 1.6vw, 1.15rem);
}

.slider-btn, .slider-indicators { z-index: 4; }

/* === Anti-pixelation pass (final) === */
.slide-bg {
  image-rendering: auto;
  -ms-interpolation-mode: bicubic; /* legacy hint */
  transform: none !important;
  filter: none;
  backface-visibility: hidden;
  will-change: opacity;
}