/* Mobile-First Responsive Design */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  background: #fff;
  color: #222;
  line-height: 1.6;
  font-size: 16px;
}

.container {
  width: 95%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 10px;
}

/* Header - Mobile First */
.header {
  background: linear-gradient(
      135deg,
      rgba(196, 28, 28, 0.9),
      rgba(231, 76, 60, 0.9)
    ),
    url("https://images.unsplash.com/photo-1558618047-3c8c76ca7d13?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: #fff;
  text-align: center;
  padding: 1rem 1rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: relative;
}

.header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.3);
  z-index: 1;
}

.header .container {
  position: relative;
  z-index: 2;
}

.header .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.header-logo {
  display: none; /* Hidden on mobile by default */
  justify-content: center;
  align-items: center;
}

.logo-image {
  max-width: 90px;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
  border: 2px solid rgba(255, 255, 255, 0.3);
  transition: all 0.3s ease;
}

.logo-image:hover {
  transform: scale(1.05);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.header-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.header h1 {
  font-size: 1.35rem;
  margin-bottom: 0.3rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  line-height: 1.2;
  letter-spacing: -0.5px;
}

.header-title-mobile {
  display: inline;
}

.header-title-desktop {
  display: none;
}

.header p {
  margin-top: 0.2rem;
  font-size: 0.9rem;
  opacity: 0.95;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

/* Navbar - Mobile Optimized */
.navbar {
  background: #222;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.navbar .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0;
}

.navbar a {
  color: #fff;
  padding: 0.8rem 0.6rem;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  border-bottom: 3px solid transparent;
  flex: 1;
  text-align: center;
  min-width: 60px;
}

.nav-desktop-only {
  display: none;
}

.navbar a:hover,
.navbar a.active {
  background: #c41c1c;
  border-bottom-color: #fff;
  transform: translateY(-1px);
}

/* Image Gallery Carousel */
.gallery-carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #000;
}

.carousel-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
}

.carousel-wrapper {
  position: relative;
  width: 100%;
  height: 400px;
  overflow: hidden;
}

.carousel-slide {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-slide.active {
  opacity: 1;
  z-index: 1;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.carousel-caption {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(196, 28, 28, 0.9);
  color: white;
  padding: 0.8rem 2rem;
  border-radius: 25px;
  font-weight: bold;
  font-size: 1rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(5px);
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(196, 28, 28, 0.8);
  color: white;
  border: none;
  font-size: 2rem;
  padding: 0.5rem 1rem;
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s ease;
  border-radius: 5px;
}

.carousel-btn:hover {
  background: rgba(196, 28, 28, 1);
  transform: translateY(-50%) scale(1.1);
}

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

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

.carousel-dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid rgba(255, 255, 255, 0.8);
}

.dot.active {
  background: #c41c1c;
  transform: scale(1.3);
  border-color: #fff;
}

.dot:hover {
  background: rgba(255, 255, 255, 0.8);
}

/* Hero Section - Mobile First */
.hero {
  background: linear-gradient(
      135deg,
      rgba(248, 249, 250, 0.95),
      rgba(233, 236, 239, 0.95)
    ),
    url("https://images.unsplash.com/photo-1449824913935-59a10b8d2000?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  text-align: center;
  padding: 2rem 1rem;
  border-bottom: 3px solid #c41c1c;
  position: relative;
  min-height: 400px;
  display: flex;
  align-items: center;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.1);
  z-index: 1;
}

.hero .container {
  position: relative;
  z-index: 2;
}

.hero h2,
.hero h3 {
  color: #111;
  margin-bottom: 1rem;
  line-height: 1.3;
  text-shadow: 0 1px 3px rgba(255, 255, 255, 0.8);
}

.hero-title-mobile {
  display: block;
  font-size: 1.2rem;
}

.hero-title-desktop {
  display: none;
  font-size: 1.8rem;
}

.hero p {
  color: #333;
  margin-bottom: 0.8rem;
  line-height: 1.8;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

.cta-buttons {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  align-items: center;
}

.btn {
  display: inline-block;
  padding: 1rem 1.5rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1rem;
  text-align: center;
  width: 100%;
  max-width: 300px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.5s;
}

.btn:hover::before {
  left: 100%;
}

.call-btn {
  background: linear-gradient(135deg, #c41c1c, #e74c3c);
  color: #fff;
  animation: pulse 2s infinite;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.call-btn:hover {
  background: linear-gradient(135deg, #a81616, #c0392b);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(196, 28, 28, 0.4);
}

.whatsapp-btn {
  background: linear-gradient(135deg, #25d366, #128c7e);
  color: #fff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.whatsapp-btn:hover {
  background: linear-gradient(135deg, #1da851, #075e54);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(37, 211, 102, 0.4);
}

/* Enhanced pulse animation for call button */
@keyframes pulse {
  0% {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 4px 25px rgba(196, 28, 28, 0.4);
    transform: scale(1.02);
  }
  100% {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transform: scale(1);
  }
}

/* Services - Mobile First */
.services {
  padding: 2rem 1rem;
  text-align: center;
  background: linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.95),
      rgba(248, 249, 250, 0.95)
    ),
    url("https://images.unsplash.com/photo-1486262715619-67b85e0b08d3?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  position: relative;
}

.services::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.2);
  z-index: 1;
}

.services .container {
  position: relative;
  z-index: 2;
}

.services h2 {
  color: #222;
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
  text-shadow: 0 1px 3px rgba(255, 255, 255, 0.8);
}

.service-list {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
  grid-template-columns: 1fr;
}

.service-item {
  background: rgba(255, 255, 255, 0.95);
  border: 2px solid #eee;
  padding: 1.5rem;
  border-radius: 12px;
  transition: all 0.3s ease;
  text-align: left;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.service-item:hover {
  border-color: #c41c1c;
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(196, 28, 28, 0.15);
  background: rgba(255, 255, 255, 1);
}

.service-item h3 {
  color: #c41c1c;
  margin-bottom: 0.8rem;
  font-size: 1.1rem;
}

.service-item p {
  color: #555;
  line-height: 1.6;
  font-size: 0.95rem;
}

/* About Section */
.about {
  background: linear-gradient(
      135deg,
      rgba(240, 240, 240, 0.95),
      rgba(232, 232, 232, 0.95)
    ),
    url("https://images.unsplash.com/photo-1552664730-d307ca884978?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  padding: 2rem 1rem;
  text-align: center;
  position: relative;
}

.about::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.1);
  z-index: 1;
}

.about .container {
  position: relative;
  z-index: 2;
}

.about h2 {
  color: #222;
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
  text-shadow: 0 1px 3px rgba(255, 255, 255, 0.8);
}

.about h3 {
  color: #c41c1c;
  margin: 1.5rem 0 1rem 0;
  font-size: 1.2rem;
  text-shadow: 0 1px 3px rgba(255, 255, 255, 0.8);
}

.about p {
  margin-bottom: 0.8rem;
  color: #333;
  line-height: 1.7;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.5);
}

/* Footer */
.footer {
  background: linear-gradient(
      135deg,
      rgba(34, 34, 34, 0.95),
      rgba(17, 17, 17, 0.95)
    ),
    url("https://images.unsplash.com/photo-1503736334956-4c8f8e92946d?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80");
  background-size: cover;
  background-position: center;
  color: #fff;
  text-align: center;
  padding: 2rem 1rem;
  font-size: 0.9rem;
  position: relative;
}

.footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1;
}

.footer .container {
  position: relative;
  z-index: 2;
}

.footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.footer-logo {
  display: flex;
  justify-content: center;
  align-items: center;
}

.footer-logo-image {
  max-width: 100px;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
  border: 2px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
  opacity: 0.95;
}

.footer-logo-image:hover {
  transform: scale(1.05);
  opacity: 1;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.footer p {
  margin-bottom: 0.5rem;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.footer a {
  color: #fff;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer a:hover {
  color: #c41c1c;
  text-shadow: 0 1px 3px rgba(196, 28, 28, 0.5);
}

/* Floating Buttons - Mobile Optimized */
.floating-btn {
  position: fixed;
  bottom: 20px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  color: #fff;
  text-align: center;
  font-size: 24px;
  line-height: 60px;
  z-index: 1000;
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
  text-decoration: none;
  animation: bounce 3s infinite;
  position: relative;
  overflow: hidden;
}

.floating-btn::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.3) 0%,
    transparent 70%
  );
  animation: ripple 2s infinite;
  pointer-events: none;
}

.floating-btn:hover {
  transform: scale(1.15);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
  animation-play-state: paused;
}

.whatsapp-floating {
  right: 20px;
  background: linear-gradient(135deg, #25d366, #128c7e);
}

.whatsapp-floating:hover {
  background: linear-gradient(135deg, #1da851, #0a7066);
}

.call-floating {
  right: 90px;
  background: linear-gradient(135deg, #c41c1c, #e74c3c);
}

.call-floating:hover {
  background: linear-gradient(135deg, #a81616, #c0392b);
}

/* Enhanced bounce animation for floating buttons */
@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0) scale(1);
  }
  40% {
    transform: translateY(-8px) scale(1.05);
  }
  60% {
    transform: translateY(-4px) scale(1.02);
  }
}

/* Ripple effect animation */
@keyframes ripple {
  0% {
    transform: scale(0);
    opacity: 1;
  }
  100% {
    transform: scale(1);
    opacity: 0;
  }
}

/* Mobile performance optimizations */
@media (max-width: 767px) {
  .header,
  .hero,
  .services,
  .about,
  .footer {
    background-attachment: scroll; /* Better mobile performance */
  }

  .header .container {
    flex-direction: column;
  }

  .header-logo {
    display: none; /* Hide logo on mobile */
  }

  .footer .container {
    flex-direction: column;
  }

  .footer-logo-image {
    max-width: 90px;
  }

  .floating-btn {
    width: 55px;
    height: 55px;
    line-height: 55px;
    font-size: 22px;
  }

  .call-floating {
    right: 75px;
  }

  .service-item div[style*="flex"] {
    flex-direction: column;
    text-align: center;
  }

  .service-item div[style*="flex"] div {
    margin: 0 0 0.5rem 0 !important;
  }

  .carousel-wrapper {
    height: 250px;
  }

  .carousel-caption {
    font-size: 0.85rem;
    padding: 0.6rem 1.5rem;
    bottom: 15px;
  }

  .carousel-btn {
    font-size: 1.5rem;
    padding: 0.3rem 0.7rem;
  }
}

/* Tablet Responsive */
@media (min-width: 768px) {
  .container {
    width: 90%;
    padding: 0 20px;
  }

  .header .container {
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    gap: 1.2rem;
  }

  .header-logo {
    display: flex; /* Show logo on tablet and desktop */
  }

  .header-content {
    align-items: flex-start;
    text-align: left;
    flex: 1;
  }

  .footer .container {
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    gap: 1.5rem;
  }

  .footer-content {
    align-items: flex-start;
    text-align: left;
    flex: 1;
  }

  .logo-image {
    max-width: 75px;
  }

  .footer-logo-image {
    max-width: 110px;
  }

  .header h1 {
    font-size: 1.8rem;
    margin-bottom: 0.2rem;
  }

  .header-title-mobile {
    display: none;
  }

  .header-title-desktop {
    display: inline;
  }

  .header p {
    font-size: 1rem;
    margin-top: 0;
  }

  .hero-title-mobile {
    display: none;
  }

  .hero-title-desktop {
    display: block;
    font-size: 1.8rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .cta-buttons {
    flex-direction: row;
    justify-content: center;
    gap: 1rem;
  }

  .btn {
    width: auto;
    min-width: 200px;
  }

  .navbar a {
    padding: 1rem 1.2rem;
    font-size: 1rem;
  }

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

  .services h2,
  .about h2 {
    font-size: 1.8rem;
  }

  .carousel-wrapper {
    height: 350px;
  }

  .carousel-caption {
    font-size: 1.1rem;
  }
}

/* Desktop Responsive */
@media (min-width: 1024px) {
  .nav-desktop-only {
    display: block;
  }

  .header .container {
    gap: 1.5rem;
  }

  .footer .container {
    gap: 2rem;
  }

  .logo-image {
    max-width: 85px;
  }

  .footer-logo-image {
    max-width: 120px;
  }

  .header h1 {
    font-size: 1.9rem;
  }

  .header p {
    font-size: 1.05rem;
  }

  .hero-title-desktop {
    font-size: 2.2rem;
  }

  .hero p {
    font-size: 1.1rem;
  }

  .service-list {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }

  .service-item {
    padding: 2rem;
  }

  .service-item h3 {
    font-size: 1.2rem;
  }

  .floating-btn {
    width: 65px;
    height: 65px;
    line-height: 65px;
    font-size: 26px;
  }

  .call-floating {
    right: 100px;
  }

  .services h2,
  .about h2 {
    font-size: 2rem;
  }

  .carousel-wrapper {
    height: 500px;
  }

  .carousel-caption {
    font-size: 1.2rem;
    padding: 1rem 2.5rem;
  }
}

/* High DPI Displays */
@media (min-width: 1200px) {
  .hero {
    padding: 3rem 1rem;
  }

  .services,
  .about {
    padding: 3rem 1rem;
  }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
  .floating-btn,
  .btn {
    animation: none;
  }

  * {
    transition: none !important;
  }
}
