/* Base Styles */
:root {
  --primary: #0d6efd;
  --secondary: #6c757d;
  --dark: #212529;
  --light: #f8f9fa;
  --success: #198754;
  --danger: #dc3545;
  --warning: #ffc107;
  --info: #0dcaf0;
}

* {
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  padding-top: 72px;
  color: #333;
  line-height: 1.6;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  line-height: 1.2;
}

/* Layout */
.container {
  padding-left: 15px;
  padding-right: 15px;
}

/* Hero Section */
.hero-section {
  background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../images/Hero-bg.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  padding: 120px 0;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4);
}

.hero-section .display-4 {
  font-weight: 700;
  margin-bottom: 20px;
}

.hero-section .lead {
  font-size: 1.25rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Navigation */
.navbar {
  transition: all 0.3s ease;
  padding: 15px 0;
}

.navbar.scrolled {
  padding: 10px 0;
  background-color: rgba(33, 37, 41, 0.98) !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-brand img {
  transition: all 0.3s ease;
  height: 40px;
}

.navbar.scrolled .navbar-brand img {
  height: 35px;
}

.navbar-toggler {
  border: none;
  padding: 0.5rem;
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 0.15rem rgba(13, 110, 253, 0.25);
}

.nav-link {
  font-weight: 500;
  padding: 0.5rem 1rem !important;
  position: relative;
  transition: color 0.3s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: var(--primary);
  transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* WhatsApp Float */
.whatsapp-float {
  position: fixed;
  width: 60px;
  height: 60px;
  bottom: 40px;
  right: 40px;
  background-color: #25d366;
  color: #FFF;
  border-radius: 50px;
  text-align: center;
  font-size: 30px;
  box-shadow: 2px 2px 3px rgba(0, 0, 0, 0.3);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}
.whatsapp-float {
  text-decoration: none;
}

.whatsapp-icon {
  margin-top: 4px;
}

.whatsapp-float:hover {
  background-color: #128C7E;
  transform: scale(1.1);
  text-decoration: none;
  color: #FFF;
}

/* Section Header */
.section-header {
  margin-bottom: 50px;
}

.section-header h2 {
  position: relative;
  padding-bottom: 15px;
  margin-bottom: 15px;
}

.section-header h2::after {
  content: '';
  position: absolute;
  width: 80px;
  height: 3px;
  background-color: var(--primary);
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
}

/* Cards */
.card {
  border: none;
  transition: all 0.3s ease;
}

/* Product Card */
.product-card {
  transition: all 0.3s ease;
  border-radius: 10px;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1) !important;
}

.product-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 5px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  z-index: 1;
}

.card-img-top {
  height: 220px;
  object-fit: contain;
  background-color: #f8f9fa;
  padding: 15px;
  transition: transform 0.3s ease;
}

.product-card:hover .card-img-top {
  transform: scale(1.05);
}

.card-body {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card-title {
  font-weight: 600;
  margin-bottom: 10px;
}

.card-text {
  flex-grow: 1;
  margin-bottom: 15px;
}

/* Feature Card */
.feature-card {
  background-color: white;
  border-radius: 10px;
  transition: all 0.3s ease;
  height: 100%;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.feature-icon {
  color: var(--primary);
  margin-bottom: 15px;
}

/* Brand Card */
.brand-card {
  background: white;
  border-radius: 8px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.brand-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.brand-card img {
  max-height: 60px;
  width: auto;
  object-fit: contain;
  margin-bottom: 10px;
}

/* Carousel */
.carousel-control-prev, 
.carousel-control-next {
  width: 5%;
  color: var(--primary);
  opacity: 1;
}

.carousel-control-prev-icon, 
.carousel-control-next-icon {
  filter: drop-shadow(0 0 2px rgba(0,0,0,0.5));
}

.carousel-indicators {
  margin-bottom: 0;
  padding: 15px 0;
}

.carousel-indicators button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: #ccc;
  border: none;
  margin: 0 5px;
}

.carousel-indicators .active {
  background-color: var(--primary);
}

/* Testimonial Card */
.testimonial-card {
  background-color: white;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  height: 100%;
  padding: 25px;
}

.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.testimonial-card img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 50%;
}

/* Gallery */
.gallery-img {
  height: 200px;
  width: 100%;
  object-fit: cover;
  transition: all 0.3s ease;
  border-radius: 8px;
}

.gallery-img:hover {
  opacity: 0.8;
}

/* Contact Section */
.contact-info .fas,
.contact-info .fab {
  font-size: 1.5rem;
  margin-top: 5px;
}

/* Forms */
.form-floating label {
  color: #6c757d;
}

.form-control, 
.form-select {
  padding: 12px 15px;
  border-radius: 8px;
}

.btn {
  border-radius: 8px;
  font-weight: 500;
  padding: 12px 24px;
  transition: all 0.3s ease;
}

.btn-lg {
  padding: 15px 30px;
}

.btn-primary {
  background-color: var(--primary);
  border-color: var(--primary);
}

.btn-primary:hover {
  background-color: #0b5ed7;
  border-color: #0a58ca;
}

/* Map */
.map-container {
  width: 100%;
  overflow: hidden;
}

.map-container iframe {
  display: block;
  width: 100%;
  height: 450px;
  border: none;
}

/* Footer */
footer {
  background-color: var(--dark);
  color: white;
  padding: 50px 0 20px;
}

footer a {
  color: white;
  text-decoration: none;
  transition: color 0.3s ease;
}

footer a:hover {
  color: var(--primary) !important;
}

footer ul {
  padding-left: 0;
  list-style: none;
}

footer ul li {
  margin-bottom: 10px;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
  margin-right: 10px;
}

.social-links a:hover {
  background-color: var(--primary);
  transform: translateY(-3px);
}

/* Modal */
.modal-content {
  border-radius: 10px;
  overflow: hidden;
}

.modal-header {
  border-bottom: none;
  padding-bottom: 0;
}

.modal-footer {
  border-top: none;
}

/* Utility Classes */
.rounded-lg {
  border-radius: 15px;
}

.shadow-lg {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1) !important;
}

/* Responsive Adjustments */
@media (max-width: 1199.98px) {
  .hero-section .display-4 {
    font-size: 2.5rem;
  }
}

@media (max-width: 991.98px) {
  /* Tablet styles */
  body {
    padding-top: 66px;
  }
  
  .navbar-collapse {
    background-color: var(--dark);
    padding: 15px;
    margin-top: 10px;
    border-radius: 5px;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
  }
  
  .nav-link {
    padding: 8px 0 !important;
  }
  
  .hero-section {
    padding: 100px 0;
  }
  
  .hero-section .display-4 {
    font-size: 2.2rem;
  }
  
  .card-img-top {
    height: 200px;
  }
  
  .brand-card img {
    max-height: 50px;
  }
}

@media (max-width: 767.98px) {
  /* Small tablet styles */
  .hero-section {
    padding: 80px 0;
    text-align: center;
  }
  
  .hero-section .display-4 {
    font-size: 2rem;
  }
  
  .hero-section .lead {
    font-size: 1.1rem;
  }
  
  .hero-section .btn {
    display: block;
    width: 80%;
    margin: 0 auto 10px;
  }
  
  .section-header h2 {
    font-size: 1.8rem;
  }
  
  .card-img-top {
    height: 180px;
  }
  
  .testimonial-card {
    margin-bottom: 20px;
  }
  
  .whatsapp-float {
    width: 50px;
    height: 50px;
    font-size: 25px;
    bottom: 20px;
    right: 20px;
  }
  
  .gallery-img {
    height: 180px;
  }
}

@media (max-width: 575.98px) {
  /* Mobile styles */
  body {
    padding-top: 62px;
  }
  
  .hero-section {
    padding: 70px 0 60px;
  }
  
  .hero-section .display-4 {
    font-size: 1.8rem;
  }
  
  .hero-section .btn {
    width: 100%;
  }
  
  .navbar-brand img {
    height: 30px;
  }
  
  .card-img-top {
    height: 160px;
  }
  
  .gallery-img {
    height: 150px;
  }
  
  .contact-info div {
    margin-bottom: 15px;
  }
  
  footer .col-md-4, 
  footer .col-md-2,
  footer .col-md-3 {
    margin-bottom: 20px;
  }
  
  .map-container iframe {
    height: 350px;
  }
}

/* Print Styles */
@media print {
  body {
    padding-top: 0;
    color: #000;
    background: #fff;
  }
  
  .navbar,
  .whatsapp-float,
  footer {
    display: none !important;
  }
  
  a[href^="http"]::after {
    content: " (" attr(href) ")";
    font-size: 0.8em;
    font-weight: normal;
  }
}