/* style.css */

/* Color Variables */
:root {
  --accent-color: #ffc326;
  --bg-dark: #000;
  --text-white: #fff;
  --text-dark: #000;
  --shadow-gray: rgba(0, 0, 0, 0.3);
}

/* Reset and Base Styling */
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: var(--text-white);
  color: var(--bg-dark);
  line-height: 1.6;
  margin: 0;
  padding: 0;
}

/* Alternating Section Backgrounds - Intercalating White & Black */
section {
  padding: 2rem 0;
}

section:nth-of-type(odd) {
  background-color: var(--text-white);
  color: var(--bg-dark);
}

section:nth-of-type(even) {
  background-color: var(--bg-dark);
  color: var(--text-white);
}

/* Navbar Styling */
#mainNavbar {
  background-color: var(--bg-dark);
}

#mainNavbar .navbar-brand,
#mainNavbar .nav-link {
  color: var(--accent-color) !important;
}

#mainNavbar .nav-link:hover {
  color: var(--text-white) !important;
}

/* Custom Navbar Toggler (Burger) */
.navbar-toggler {
  border: 1px solid var(--accent-color);
  background: transparent;
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Cline x1='4' y1='7' x2='26' y2='7' stroke='%23ffc326' stroke-width='2' stroke-linecap='round'/%3E%3Cline x1='4' y1='15' x2='26' y2='15' stroke='%23fff' stroke-width='2' stroke-linecap='round'/%3E%3Cline x1='4' y1='23' x2='26' y2='23' stroke='%23ffc326' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}

/* Hero Section Styling with overlay SVG */
.hero-section {
  position: relative;
  background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)), url('images/truck-banner.webp');
  background-size: cover;
  background-position: center;
  min-height: 80vh;
  display: flex;
  align-items: center;
  color: var(--text-white);
}

.hero-section .container {
  z-index: 2;
}

.decorative-svg {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: auto;
  z-index: 1;
}

/* Modern Title and Subtitle Effects */
.modern-title {
  font-weight: bold;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.modern-subtitle {
  font-size: 1.25rem;
}

/* Card Styling for Modern Look */
.modern-card {
  border: none;
  border-radius: 8px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.modern-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

/* About Section SVG Graphic */
.modern-svg {
  border: 4px solid var(--accent-color);
  transition: transform 0.3s ease;
}

.modern-svg:hover {
  transform: scale(1.05);
}

/* Contact Info Modern Styling */
.modern-contact {
  background: var(--bg-dark);
  color: var(--text-white);
  border-left: 4px solid var(--accent-color);
}

/* Gallery Section Styling */
.gallery-item {
  position: relative;
  overflow: hidden;
}

.modern-gallery svg {
  transition: transform 0.3s ease, fill 0.3s ease;
}

.modern-gallery:hover svg {
  transform: scale(1.05);
}

.modern-gallery text {
  transition: fill 0.3s ease;
}

.modern-gallery:hover text {
  fill: var(--accent-color);
}

/* Footer Styling */
#mainFooter {
  background-color: var(--bg-dark);
  color: var(--text-white);
  text-align: center;
  padding: 2rem 0;
}

#mainFooter h6 {
  color: var(--accent-color);
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

#mainFooter a {
  color: var(--text-white);
  text-decoration: none;
  font-size: 1.25rem;
}

#mainFooter .social-icons a {
  margin: 0 0.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: #fff;
  border: 1px solid #fff;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 2px 5px lightgray;
}

#mainFooter .social-icons a:hover {
  transform: scale(1.1);
}

/* Contact Form Styling */
.default-form {
  background-color: var(--bg-dark) !important;
  color: var(--text-white);
}

.default-form input,
.default-form select,
.default-form textarea {
  border-radius: 0;
  border: 1px solid var(--accent-color);
  background-color: var(--text-white);
  color: var(--bg-dark);
  box-shadow: none;
  transition: border-color 0.3s ease;
}

.default-form input:focus,
.default-form select:focus,
.default-form textarea:focus {
  border-color: var(--accent-color);
  outline: none;
  box-shadow: 0 0 8px rgba(255, 195, 38, 0.5);
}

.default-form fieldset {
  border: none;
  padding: 0;
  margin: 0 0 1rem;
}

.default-form legend {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  color: var(--accent-color);
}

.default-form .form-control {
  margin-bottom: 0;
}

/* Button Styling */
.btn-black {
  background-color: var(--bg-dark);
  color: var(--accent-color);
  border: 1px solid var(--accent-color);
  transition: background-color 0.3s ease;
}

.btn-black:hover {
  background-color: var(--accent-color);
  color: var(--bg-dark);
}

/* Utility Classes */
.btn-primary {
  background-color: var(--accent-color);
  border: none;
  color: var(--bg-dark);
  transition: transform 0.2s ease-in-out, background-color 0.2s ease-in-out;
}

.btn-primary:hover {
  transform: scale(1.05);
}

/* Section Divider */
.section-divider {
  border: none;
  height: 4px;
  background-color: var(--accent-color);
  margin: 2rem 0;
}

/* Contact Us Floating Widget Styling */
.contact-widget {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: var(--accent-color);
  color: var(--bg-dark);
  border-radius: 8px;
  overflow: hidden;
  z-index: 1000;
  transition: transform 0.3s ease;
  box-shadow: 0 4px 8px var(--shadow-gray);
}

.contact-widget .widget-toggle {
  display: block;
  background: var(--accent-color);
  color: var(--bg-dark);
  border: none;
  padding: 0.75rem 1.5rem;
  width: 100%;
  text-align: center;
  font-size: 1rem;
  cursor: pointer;
  animation: flash 1.5s linear infinite;
}

.contact-widget .widget-options {
  display: none;
  flex-direction: column;
  background: var(--accent-color);
}

.contact-widget .widget-option {
  padding: 0.75rem 1.5rem;
  color: var(--bg-dark);
  text-decoration: none;
  border-top: 1px solid var(--bg-dark);
  text-align: center;
}

.contact-widget.open .widget-options {
  display: flex;
}

@keyframes flash {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.5;
  }
}

/* Mobile adjustments for navbar toggler icon */
@media (max-width: 767px) {
  .navbar-toggler-icon {
    filter: invert(1);
  }
}