/* Global Styles */
html {
  font-size: 14px;
  scroll-behavior: smooth;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

body {
  font-family: 'Poppins', sans-serif;
  margin: 0;
  padding: 0;
  padding-top: 76px;
  background-color: #f5f5f0;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #c41e3a;
}

/* Dark Mode Styles */
body.dark-mode {
  background-color: #1a1a1a;
  color: #e0e0e0;
}

body.dark-mode .service-card,
body.dark-mode .contact-card {
  background: linear-gradient(145deg, #2a2a2a 0%, #1f1f1f 100%);
  border-color: #3a3a3a;
  color: #e0e0e0;
}

body.dark-mode .service-card:hover,
body.dark-mode .contact-card:hover {
  background: linear-gradient(145deg, #2f2f2f 0%, #242424 100%);
  box-shadow: 0 10px 30px rgba(220, 20, 60, 0.3);
}

body.dark-mode .text-muted {
  color: #b0b0b0 !important;
}

body.dark-mode section:nth-child(even) {
  background-color: #1f1f1f;
}

body.dark-mode section:nth-child(odd) {
  background-color: #1a1a1a;
}

body.dark-mode .bg-light {
  background-color: #1f1f1f !important;
}

body.dark-mode .alert-info {
  background-color: #2a1a1a;
  border-color: #dc143c;
  color: #e0e0e0;
}

body.dark-mode .carousel-caption {
  background: rgba(220, 20, 60, 0.8) !important;
}

/* Navbar Styles */
.navbar {
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  padding: 1rem 0;
}

.navbar-brand {
  font-size: 1.5rem;
  color: #dc143c !important;
}

.navbar-brand:hover {
  color: #ff1744 !important;
}

.navbar-brand span {
  color: white !important;
  transition: color 0.3s ease;
}

.navbar-brand:hover span {
  color: #dc143c !important;
}

/* Logo Styles */
.navbar-logo {
  height: 40px;
  width: 40px;
  min-width: 40px;
  max-width: 40px;
  object-fit: contain;
  border-radius: 8px;
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.navbar-brand:hover .navbar-logo {
  transform: scale(1.05);
}

.footer-logo {
  height: 35px;
  width: 35px;
  min-width: 35px;
  max-width: 35px;
  object-fit: contain;
  border-radius: 6px;
  flex-shrink: 0;
}

.navbar-dark .navbar-nav .nav-link {
  color: rgba(255, 255, 255, 0.85);
  font-weight: 500;
  padding: 0.5rem 1rem;
  transition: color 0.3s ease;
}

.navbar-dark .navbar-nav .nav-link:hover {
  color: #dc143c;
}

/* Theme Toggle Button */
.theme-toggle {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.85) !important;
  text-decoration: none !important;
  cursor: pointer;
  border: none;
  background: transparent;
  transition: color 0.3s ease, transform 0.3s ease;
  padding: 0.5rem 1rem;
}

.theme-toggle:hover {
  color: #dc143c !important;
  transform: rotate(20deg);
}

.theme-toggle:focus {
  outline: none;
  box-shadow: none;
}

/* Hero Section */
.hero-section {
  background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.4)), 
              url('../images/Yukarisi.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  background-repeat: no-repeat;
  min-height: 500px;
  display: flex;
  align-items: center;
  position: relative;
  background-color: #1a1a2e;
}

.hero-overlay {
  width: 100%;
  padding: 100px 0;
}

.hero-section h1 {
  text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
  animation: fadeInUp 1s ease;
}

.hero-section p {
  text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
  animation: fadeInUp 1.2s ease;
}

.hero-section .btn {
  animation: fadeInUp 1.4s ease;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero-section .btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.4);
}

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

/* Carousel Styles */
#vehicleCarousel {
  border: 4px solid #c41e3a;
  overflow: hidden;
  border-radius: 15px;
}

#vehicleCarousel .carousel-inner {
  border-radius: 12px;
}

#vehicleCarousel .carousel-item img {
  height: 450px;
  object-fit: cover;
  width: 100%;
}

#vehicleCarousel .carousel-caption {
  background: rgba(139, 0, 0, 0.7);
  padding: 10px 20px;
  border-radius: 8px;
  backdrop-filter: blur(5px);
}

#vehicleCarousel .carousel-caption h5 {
  font-weight: 600;
  margin: 0;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

#vehicleCarousel .carousel-indicators button {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: #dc143c;
  opacity: 0.5;
  transition: opacity 0.3s ease;
}

#vehicleCarousel .carousel-indicators button.active {
  opacity: 1;
  background-color: #c41e3a;
}

#vehicleCarousel .carousel-control-prev-icon,
#vehicleCarousel .carousel-control-next-icon {
  background-color: rgba(196, 30, 58, 0.8);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  padding: 8px;
}

#vehicleCarousel .carousel-control-prev:hover .carousel-control-prev-icon,
#vehicleCarousel .carousel-control-next:hover .carousel-control-next-icon {
  background-color: rgba(196, 30, 58, 1);
}

/* Service Cards */
.service-card {
  background: linear-gradient(145deg, #ffffff 0%, #fafaf8 100%);
  border-radius: 15px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
  border: 1px solid #e8e8e3;
  padding: 1.5rem;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 30px rgba(196, 30, 58, 0.2);
  background: linear-gradient(145deg, #ffffff 0%, #f8f8f5 100%);
}

.service-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #c41e3a 0%, #8b0000 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}

.service-icon i {
  font-size: 2.5rem;
  color: white;
}

/* Contact Cards */
.contact-card {
  background: linear-gradient(145deg, #ffffff 0%, #fafaf8 100%);
  border-radius: 15px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
  border: 1px solid #e8e8e3;
  padding: 1.5rem;
}

.contact-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(196, 30, 58, 0.2);
  background: linear-gradient(145deg, #ffffff 0%, #f8f8f5 100%);
}

.contact-icon {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, #343a40 0%, #495057 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}

.contact-icon i {
  font-size: 2rem;
  color: #dc143c;
}

/* CTA Section */
.cta-section {
  background: linear-gradient(135deg, #8b0000 0%, #c41e3a 100%);
}

/* Map Container */
.map-container {
  overflow: hidden;
  border: 3px solid #c41e3a;
  border-radius: 15px;
}

.map-container iframe {
  display: block;
}

/* Feature List */
.feature-item {
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.feature-item i {
  font-size: 1.5rem;
}

.feature-item .text-success {
  color: #dc143c !important;
}

/* Images */
img {
  max-width: 100%;
  height: auto;
}

/* Buttons */
.btn-warning {
  background-color: #c41e3a;
  border-color: #c41e3a;
  color: white;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-warning:hover {
  background-color: #dc143c;
  border-color: #dc143c;
  color: white;
}

.btn-outline-warning {
  color: #c41e3a;
  border-color: #c41e3a;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-outline-warning:hover {
  background-color: #c41e3a;
  border-color: #c41e3a;
  color: white;
}

.btn-light {
  background-color: white;
  border-color: white;
  color: #8b0000;
  font-weight: 600;
}

.btn-light:hover {
  background-color: #f8f9fa;
  border-color: #f8f9fa;
  color: #c41e3a;
}

/* Footer */
.footer {
  margin-top: 0;
}

.footer a:hover {
  color: #dc143c !important;
}

/* Alert Info */
.alert-info {
  background-color: #fff5f5;
  border-color: #dc143c;
  color: #8b0000;
}

.alert-info i {
  color: #c41e3a;
}

/* Text Colors */
.text-warning {
  color: #dc143c !important;
}

/* Section Spacing */
section {
  padding: 80px 0;
}

section:nth-child(even) {
  background-color: #fafaf8;
}

section:nth-child(odd) {
  background-color: #f5f5f0;
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
  body {
    padding-top: 56px;
  }

  .navbar {
    padding: 0.5rem 0;
  }

  .navbar-brand {
    font-size: 1rem;
  }

  .navbar-brand span {
    font-size: 0.9rem;
  }

  .navbar-logo {
    height: 32px;
    width: 32px;
    min-width: 32px;
    max-width: 32px;
  }

  .navbar-dark .navbar-nav .nav-link {
    padding: 0.75rem 1rem;
    font-size: 1rem;
  }

  .theme-toggle {
    padding: 0.75rem 1rem;
  }

  .hero-section {
    min-height: 450px;
    background-attachment: scroll;
  }

  .hero-overlay {
    padding: 60px 0;
  }

  .hero-section h1 {
    font-size: 1.75rem !important;
    line-height: 1.3;
  }

  .hero-section p {
    font-size: 0.95rem;
  }

  .hero-section .btn {
    font-size: 0.9rem;
    padding: 0.75rem 2rem !important;
  }

  section {
    padding: 50px 0;
  }

  .service-card {
    margin-bottom: 1.5rem;
    padding: 1.25rem;
  }

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

  .service-icon {
    width: 70px;
    height: 70px;
  }

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

  .service-card h3 {
    font-size: 1.25rem;
  }

  .contact-card {
    margin-bottom: 1.5rem;
    padding: 1.25rem;
  }

  .contact-card:hover {
    transform: translateY(-3px);
  }

  .contact-icon {
    width: 60px;
    height: 60px;
  }

  .contact-icon i {
    font-size: 1.5rem;
  }

  #vehicleCarousel {
    border-width: 2px;
  }

  #vehicleCarousel .carousel-item img {
    height: 250px;
  }

  #vehicleCarousel .carousel-caption {
    display: none !important;
  }

  #vehicleCarousel .carousel-control-prev-icon,
  #vehicleCarousel .carousel-control-next-icon {
    width: 30px;
    height: 30px;
  }

  .feature-item {
    font-size: 0.95rem;
  }

  .feature-item i {
    font-size: 1.25rem;
  }

  .map-container {
    border-width: 2px;
  }

  .map-container iframe {
    height: 300px !important;
  }

  .footer-logo {
    height: 28px;
    width: 28px;
    min-width: 28px;
    max-width: 28px;
  }

  .footer h5 {
    font-size: 1rem;
  }

  .footer h6 {
    font-size: 0.95rem;
  }

  .footer p,
  .footer a {
    font-size: 0.85rem;
  }

  .cta-section h2 {
    font-size: 1.5rem !important;
  }

  .cta-section p {
    font-size: 0.95rem;
  }

  .cta-section .btn {
    font-size: 0.9rem;
    padding: 0.75rem 2rem !important;
  }

  h2.display-5 {
    font-size: 1.75rem !important;
  }

  .lead {
    font-size: 1rem !important;
  }
}

/* Tablet Responsive Styles */
@media (min-width: 769px) and (max-width: 1024px) {
  .navbar-brand {
    font-size: 1.25rem;
  }

  .hero-section h1 {
    font-size: 2.5rem;
  }

  section {
    padding: 70px 0;
  }

  .service-icon,
  .contact-icon {
    width: 75px;
    height: 75px;
  }

  #vehicleCarousel .carousel-item img {
    height: 350px;
  }
}

/* Extra Small Devices */
@media (max-width: 576px) {
  .hero-section h1 {
    font-size: 1.5rem !important;
  }

  .hero-section .btn {
    padding: 0.65rem 1.5rem !important;
    font-size: 0.85rem;
  }

  .service-card,
  .contact-card {
    padding: 1rem;
  }

  #vehicleCarousel .carousel-item img {
    height: 200px;
  }

  .map-container iframe {
    height: 250px !important;
  }
}

/* Smooth Transitions */
a, button {
  transition: all 0.3s ease !important;
}
