/* Premium Preloader Styles */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 0.8s ease-in-out, visibility 0.8s;
}

#preloader.fade-out {
  opacity: 0;
  visibility: hidden;
}

.loader-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.loader-circle {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  background: transparent;
}

.loader-circle::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  padding: 3px;
  background: conic-gradient(from 0deg, transparent 30%, var(--primary-color));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: rotateSpin 1.5s linear infinite;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.4);
}

.loader-logo-frame {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: var(--bg-dark);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.3);
  animation: rotate3DLoader 4s linear infinite;
  perspective: 1000px;
  transform-style: preserve-3d;
  box-shadow: inset 0 0 15px rgba(255, 255, 255, 0.2);
}

.loader-logo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.loader-text {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-top: 1rem;
}

.loader-text span {
  color: var(--primary-color);
  margin-left: 5px;
}

.loader-bar-container {
  width: 150px;
  height: 2px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  overflow: hidden;
  margin-top: 1rem;
}

.loader-bar {
  width: 0%;
  height: 100%;
  background: var(--primary-color);
  animation: loadProgress 2s ease-in-out forwards;
}

@keyframes rotateSpin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes rotate3DLoader {
  0% { transform: rotateY(0deg); }
  100% { transform: rotateY(360deg); }
}
:root {
  --primary-color: #ffffff; /* Gold */
  --primary-hover: #cccccc;
  --bg-dark: #000000;
  --bg-card: rgba(255, 255, 255, 0.05);
  --text-light: #f5f5f5;
  --text-muted: #a0a0a0;
  --white: #ffffff;
  --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --glass: rgba(0, 0, 0, 0.8);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Outfit", sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-light);
  line-height: 1.6;
  overflow-x: hidden;
}

h1,
h2,
h3,
.logo {
  font-family: "Syncopate", sans-serif;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Premium Reveal Animations */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 1s cubic-bezier(0.2, 0.8, 0.2, 1);
  will-change: transform, opacity;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Fallback for users with animations disabled or JS issues */
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* Stagger animation for children if needed */
.reveal-content > * {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal.active .reveal-content > * {
  opacity: 1;
  transform: translateY(0);
}

/* Delay for stagger (applied via JS or nth-child) */
.reveal.active .reveal-content > *:nth-child(2) { transition-delay: 0.2s; }
.reveal.active .reveal-content > *:nth-child(3) { transition-delay: 0.4s; }
.reveal.active .reveal-content > *:nth-child(4) { transition-delay: 0.6s; }

/* Scroll Smoothing */
html {
  scroll-behavior: smooth;
}

/* Refined Navbar */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  z-index: 1000;
  padding: 1.2rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: var(--transition);
}

.navbar.scrolled {
  padding: 0.8rem 0;
  background: rgba(0, 0, 0, 0.95);
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.nav-container {
  max-width: 1300px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 2rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.5rem;
  font-weight: 700;
  text-decoration: none;
  color: var(--white);
  letter-spacing: 1.5px;
  transition: var(--transition);
}

.logo:hover {
    transform: scale(1.02);
}

.logo-frame {
  width: 55px;
  height: 55px;
  border-radius: 50%;
  border: 2px solid var(--primary-color);
  padding: 2px;
  background: var(--bg-dark);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
  /* animation: rotate3D 6s linear infinite; */
  perspective: 1000px;
  transform-style: preserve-3d;
  transition: var(--transition);
}

.logo-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

@keyframes rotate3D {
  0% {
    transform: rotateY(0deg);
  }
  100% {
    transform: rotateY(360deg);
  }
}

.navbar.scrolled .logo-frame {
    width: 45px;
    height: 45px;
}

.logo span {
  color: var(--primary-color);
  font-weight: 300;
  margin-left: 2px;
}

.nav-links {
  display: flex;
  list-style: none;
  align-items: center;
  gap: 2rem;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-light);
  font-weight: 500;
  font-size: 0.95rem;
  transition: var(--transition);
  opacity: 0.8;
}

.nav-links a:hover {
  color: var(--primary-color);
  opacity: 1;
}

/* Premium Buttons in Nav */
.nav-btns {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-left: 1rem;
}

.btn-primary {
  background: var(--primary-color);
  color: var(--bg-dark) !important;
  padding: 0.7rem 1.5rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
  border: 1px solid transparent;
}

.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 255, 255, 0.4);
}

.nav-admin-link {
    font-size: 0.85rem;
    color: var(--primary-color) !important;
    text-decoration: none;
    padding: 0.6rem 1.2rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
    background: rgba(255, 255, 255, 0.05);
}

.nav-admin-link:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

/* Hero Section */
.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  padding: 0 1rem;
  overflow: hidden;
}

#hero-slider-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.slider-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.slider-img.active {
    opacity: 1;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 1vw;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.subtitle {
  font-family: 'Outfit', sans-serif !important;
  font-size: 1.2rem !important;
  font-weight: normal !important;
  letter-spacing: 0.5px !important;
  color: var(--primary-color);
  margin-bottom: 2rem;
}

@media (max-width: 768px) {
  .subtitle {
    font-size: 1rem !important;
  }
  .hero-content {
    padding: 0 1vw;
  }
}

.title {
  font-size: clamp(2.5rem, 8vw, 5rem);
  margin-bottom: 1.5rem;
  line-height: 1.1;
}

.title span {
  color: var(--primary-color);
  font-style: italic;
}

.description {
  font-size: 1.2rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
}

.hero-btns {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
}

.btn-secondary {
  border: 1px solid var(--primary-color);
  color: var(--primary-color);
  text-decoration: none;
  padding: 0.8rem 1.8rem;
  border-radius: 5px;
  font-weight: 600;
  transition: var(--transition);
}

.btn-secondary:hover {
  background: var(--primary-color);
  color: var(--bg-dark);
}

.social-sidebar {
  position: absolute;
  right: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  z-index: 10;
}

.social-sidebar a {
  color: var(--text-light);
  font-size: 1.2rem;
  transition: var(--transition);
}

.social-sidebar a:hover {
  color: var(--primary-color);
  transform: translateX(-5px);
}

/* Section Styling */
section {
  padding: 8rem 0;
}

.section-header {
  text-align: center;
  margin-bottom: 5rem;
}

.section-header h2 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.line {
  width: 80px;
  height: 3px;
  background: var(--primary-color);
  margin: 0 auto 1.5rem;
}

.section-header p {
  color: var(--text-muted);
  font-size: 1.1rem;
}

/* About Section */
.about-content p {
  text-align: center;
  max-width: 900px;
  margin: 0 auto 1.5rem;
  font-size: 1.15rem;
  line-height: 1.8;
  color: var(--text-muted);
}

.about-features {
  list-style: none;
  max-width: 600px;
  margin: 2rem auto;
  padding: 0;
  text-align: left;
}

.about-features li {
  margin-bottom: 0.8rem;
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: 1.05rem;
  color: var(--text-light);
  opacity: 0.9;
}

.about-features li i {
  color: var(--primary-color);
  font-size: 0.9rem;
}

/* Fleet Category UI */
.category-card {
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.category-card:hover {
    border-color: var(--primary-color);
}

/* --- Modal Vehicle Selection Card Grid: Professional, Scrollable, With Images --- */
#sub-fleet-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  padding: 2rem;
  align-items: stretch;
  max-height: 70vh;
  overflow-y: auto;
}

.sub-fleet-card {
  background: var(--bg-card);
  border-radius: 18px;
  box-shadow: 0 6px 24px rgba(0,0,0,0.15);
  padding: 1.5rem 1.2rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  min-height: 180px;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--white);
  text-align: center;
  margin-bottom: 0;
  transition: var(--transition);
  position: relative;
}

.sub-fleet-card img {
  width: 100%;
  max-width: 220px;
  height: 120px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 1rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.10);
}

.sub-fleet-card .vehicle-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--white);
}

.sub-fleet-card:hover {
  background: rgba(255,255,255,0.08);
  box-shadow: 0 12px 32px rgba(0,0,0,0.22);
  transform: translateY(-4px);
}

/* Scrollbar styling for modal grid */
#sub-fleet-grid::-webkit-scrollbar {
  width: 8px;
}
#sub-fleet-grid::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.15);
  border-radius: 8px;
}
#sub-fleet-grid {
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.15) transparent;
}

@media (max-width: 900px) {
  #sub-fleet-grid {
    grid-template-columns: 1fr;
    gap: 1.2rem;
    padding: 1rem;
    max-height: 60vh;
  }
  .sub-fleet-card {
    font-size: 1rem;
    padding: 1rem 0.5rem;
    min-height: 120px;
  }
  .sub-fleet-card img {
    height: 80px;
    max-width: 140px;
  }
}

/* Services */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.service-item {
  text-align: center;
  padding: 3rem 2rem;
  background: var(--bg-card);
  border-radius: 15px;
  transition: var(--transition);
}

.service-item:hover {
  background: rgba(255, 255, 255, 0.05);
}

.service-item i {
  font-size: 3rem;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
}

.service-item h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

/* Social Proof Section - Professional Grid */
.social-grid {
  display: flex;
  justify-content: center;
  gap: 2.5rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.social-card {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 15px;
  padding: 3rem 2rem;
  text-align: center;
  text-decoration: none;
  color: var(--text-light);
  width: 280px;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.social-card:hover {
  border-color: var(--primary-color);
  background: rgba(255, 255, 255, 0.05);
  transform: translateY(-8px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.social-card .icon-box {
  width: 70px;
  height: 70px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  transition: var(--transition);
}

.social-card i {
  font-size: 2.2rem;
  color: var(--primary-color);
  transition: var(--transition);
}

.social-card:hover .icon-box {
  background: var(--primary-color);
  transform: scale(1.1);
}

.social-card:hover i {
  color: var(--bg-dark);
}

.social-card h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--white);
  font-family: inherit;
  font-weight: 700;
  letter-spacing: 1px;
}

.social-card p {
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* Booking Section */
.booking-wrapper {
  max-width: 1920px;
  min-width: 1400px;
  width: 99vw;
  margin: 3rem auto;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 6rem;
  background: var(--bg-card);
  padding: 6rem 8rem;
  border-radius: 40px;
  border: 1.5px solid rgba(255, 255, 255, 0.08);
  box-sizing: border-box;
}

.booking-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
  min-height: 600px;
}

@media (max-width: 900px) {
  .booking-wrapper {
    min-width: 0 !important;
    width: 100vw !important;
    max-width: 100vw !important;
    padding: 1.5rem 0.5rem !important;
    gap: 1.5rem !important;
    border-radius: 18px !important;
  }
}

@media (max-width: 600px) {
  .booking-wrapper {
    padding: 0.5rem 0.2rem !important;
    gap: 0.5rem !important;
    border-radius: 10px !important;
  }
  .booking-info, .booking-form-container {
    min-width: 0 !important;
    width: 100% !important;
    padding: 0 !important;
  }
  .form-panel, .login-card {
    padding: 1rem !important;
    border-radius: 10px !important;
  }
  .modal-overlay {
    padding: 0.5rem !important;
  }
  .modal-card {
    border-radius: 8px !important;
    max-width: 99vw !important;
    width: 99vw !important;
    min-width: 0 !important;
  }
}

@media (max-width: 400px) {
  .admin-main, .form-panel, .login-card {
    padding: 0.5rem !important;
  }
  .booking-wrapper {
    padding: 0.2rem !important;
  }
}

.booking-info h2 {
  font-size: 3rem;
  margin-bottom: 2.5rem;
  margin-top: 1.5rem;
}

.booking-info > p {
  margin-bottom: 2.5rem;
  margin-top: 1.5rem;
  display: block;
}

.contact-details {
  margin-top: 3.5rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.contact-item i {
  font-size: 1.2rem;
  color: var(--primary-color);
}

/* Form Styles */
.booking-form-container form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 2rem 2.5rem 2.5rem 2.5rem;
  border-radius: 18px;
  background: transparent;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

label {
  font-size: 0.9rem;
  color: var(--text-muted);
}

input,
select,
textarea {
  padding: 1.1rem 1.2rem;
  border-radius: 8px;
  border: 1px solid #222;
  background: #111;
  color: #fff;
  font-size: 1rem;
  margin-bottom: 0;
  box-sizing: border-box;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  background: rgba(255, 255, 255, 0.06);
}

.btn-submit {
  margin-top: 2rem;
  margin-bottom: 0;
  border-radius: 10px;
  padding: 1.2rem 0;
  width: 100%;
  box-sizing: border-box;
  background: var(--primary-color);
  color: var(--bg-dark);
  padding: 1rem;
  border: none;
  border-radius: 5px;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}

.btn-submit:hover {
  background: var(--primary-hover);
  transform: scale(1.02);
}

/* Footer */
footer {
  padding: 5rem 0 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 4rem;
  margin-bottom: 4rem;
}

.footer-logo p {
  margin-top: 1.5rem;
  color: var(--text-muted);
}

.footer-links h3,
.footer-social h3 {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  color: var(--primary-color);
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.8rem;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--primary-color);
  padding-left: 5px;
}

.social-icons {
  display: flex;
  gap: 1rem;
}

.social-icons a {
  width: 40px;
  height: 40px;
  background: var(--bg-card);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--text-light);
  text-decoration: none;
  transition: var(--transition);
}

.social-icons a:hover {
  background: var(--primary-color);
  color: var(--bg-dark);
  transform: translateY(-5px);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Mobile Responsive Improvements */
.menu-toggle {
    display: none;
    font-size: 1.5rem;
    color: var(--white);
    cursor: pointer;
    z-index: 1001;
    transition: var(--transition);
}

@media (max-width: 1024px) {
    .nav-container {
        padding: 0 1.5rem;
    }
    
    .nav-links {
        gap: 1.2rem;
    }
    
    .nav-links a {
        font-size: 0.85rem;
    }
    
    .booking-wrapper {
        gap: 2rem;
        padding: 2.5rem;
    }
}

@media (max-width: 968px) {
    .navbar {
        padding: 1rem 0;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .nav-links {
        position: fixed;
        right: -100%;
        top: 0;
        width: 100%;
        height: 100vh;
        background: rgba(0, 0, 0, 0.98);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1000;
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .nav-links li {
        margin: 1.5rem 0;
    }
    
    .nav-links a {
        font-size: 1.5rem;
        font-weight: 700;
        letter-spacing: 2px;
    }
    
    .btn-primary {
        padding: 1rem 3rem;
        font-size: 1.1rem;
    }
    
    .booking-wrapper {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        text-align: center;
    }
    
    .social-icons {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .hero {
        padding-top: 80px;
    }
    
    .title {
        font-size: 3.2rem;
    }
    
    .hero-btns {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }
    
    .section-header h2 {
        font-size: 2.5rem;
    }
    
    .fleet-grid {
        grid-template-columns: 1fr;
    }
    
    .social-grid {
        gap: 1.5rem;
    }
    
    .social-card {
        width: 100%;
        max-width: 400px;
    }
    
    .booking-wrapper {
        padding: 2rem 1.5rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: 1.2rem;
    }
    
    .logo-frame {
        width: 45px;
        height: 45px;
    }
    
    .title {
        font-size: 2.5rem;
    }
    
    .description {
        font-size: 1rem;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .booking-info h2 {
        font-size: 2.22rem;
    }
    
    .form-panel {
        padding: 1.5rem;
    }
}

/* --- Responsive Improvements for Extreme Zoom --- */
html, body {
  width: 100%;
  min-width: 0;
  max-width: 100vw;
  overflow-x: hidden;
}

.container {
  max-width: 100vw;
  width: 100%;
  padding: 0 2vw;
}

img, .logo-frame img, .card-img img {
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

.hero, .navbar, .booking-wrapper, .section-header, .fleet-grid, .services-grid, .social-grid, .footer-content {
  width: 100%;
  max-width: 100vw;
}

.title, .section-header h2 {
  font-size: clamp(2rem, 6vw, 5rem);
}

.description, .about-content p, .card-info p, .service-item p, .social-card p {
  font-size: clamp(1rem, 2vw, 1.2rem);
}

@media (max-width: 1200px) {
  .container, .footer-content, .booking-wrapper {
    padding: 0 1vw;
  }
}

@media (max-width: 768px) {
  .container, .footer-content, .booking-wrapper {
    padding: 0 0.5vw;
  }
  .title, .section-header h2 {
    font-size: clamp(1.5rem, 8vw, 3rem);
  }
}

/* Ensure all sections scale and overflow is handled */
section, .hero, .navbar, .footer-content {
  min-width: 0;
  max-width: 100vw;
  box-sizing: border-box;
}

/* Admin Panel - Expert Mobile Optimization */
@media (max-width: 968px) {
    #admin-panel-container {
        flex-direction: column;
    }
    
    .admin-sidebar {
        width: 100% !important;
        height: auto;
        border-right: none;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        padding: 1.5rem 1rem !important;
        position: relative;
        overflow: visible;
    }
    
    .admin-nav {
        display: flex;
        overflow-x: auto;
        margin-top: 1.5rem;
        gap: 0.8rem;
        padding-bottom: 0.8rem;
        scroll-snap-type: x mandatory;
        scrollbar-width: none; /* Hide scrollbar Firefox */
    }
    
    .admin-nav::-webkit-scrollbar {
        display: none; /* Hide scrollbar Chrome/Safari */
    }
    
    .admin-nav li {
        margin-bottom: 0;
        white-space: nowrap;
        scroll-snap-align: start;
    }
    
    .admin-nav a {
        padding: 1rem 1.2rem !important;
        font-size: 0.85rem;
        background: rgba(255,255,255,0.03);
        border: 1px solid rgba(255,255,255,0.05);
    }
    
    .admin-main {
        padding: 1.5rem 1rem !important;
        width: 100% !important;
    }
    
    .sidebar-footer {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
        padding: 1rem 0;
        margin-top: 1rem;
    }
    
    .sidebar-footer button {
        margin-top: 0 !important;
        font-size: 0.8rem;
        padding: 0.8rem !important;
    }
    
    /* Login Overlay Mobile Fix */
    .login-card {
        width: 90% !important;
        padding: 2.5rem 1.5rem !important;
        margin: 1rem;
    }
}

@media (max-width: 640px) {
    .form-panel {
        padding: 1.5rem 1.2rem !important;
    }
    
    .fleet-item {
        padding: 1.2rem 1rem !important;
    }
    
    .form-group label {
        font-size: 0.8rem;
    }
    
    .form-group input, .form-group textarea, .form-group select {
        font-size: 0.9rem;
        padding: 0.8rem !important;
    }
    
    /* Better layout for vehicle upload in fleet items on mobile */
    .fleet-item .form-group div[style*="display: flex"] {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 1rem !important;
    }
    
    .btn-upload {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .admin-main h1 {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    #db-status-indicator {
        padding: 0.4rem 0.8rem !important;
        font-size: 0.75rem !important;
    }
    
    #db-status-text strong {
        display: none; /* Hide extra text to save space */
    }
}
/* Admin Panel Styles */
#admin-panel-container {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: var(--bg-dark);
    z-index: 10000;
    flex-direction: row;
}

#login-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: var(--bg-dark);
    align-items: center;
    justify-content: center;
    z-index: 10001;
}

.login-card {
    background: var(--bg-card);
    padding: 3rem;
    border-radius: 20px;
    text-align: center;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.login-card h2 {
    margin-bottom: 2rem;
    color: var(--primary-color);
}

.login-card input {
    width: 100%;
    padding: 1rem;
    margin-bottom: 1.5rem;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    color: white;
}

.btn-admin-login {
    width: 100%;
    padding: 1rem;
    background: var(--primary-color);
    border: none;
    border-radius: 10px;
    color: black;
    font-weight: 700;
    cursor: pointer;
}

.admin-sidebar {
    width: 280px;
    background: var(--bg-card);
    padding: 2rem;
    border-right: 1px solid rgba(255,255,255,0.05);
    display: flex;
    flex-direction: column;
}

.admin-nav {
    list-style: none;
    flex-grow: 1;
    margin-top: 2rem;
}

.admin-nav li { margin-bottom: 0.5rem; }

.admin-nav a {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    color: var(--text-muted);
    text-decoration: none;
    border-radius: 10px;
    transition: 0.3s;
}

.admin-nav a.active, .admin-nav a:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--primary-color);
}

.admin-main {
    flex-grow: 1;
    padding: 3rem;
    overflow-y: auto;
}

.admin-section {
    display: none;
}

/* Fleet Manager Grid Fix */
.fleet-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.fleet-item {
    background: rgba(255,255,255,0.03);
    padding: 1.5rem;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.05);
    position: relative;
}

.btn-delete {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: #ff4444;
    color: white;
    border: none;
    border-radius: 5px;
    padding: 0.5rem;
    cursor: pointer;
}

/* Image Picker & Gallery Styles */
.image-picker-wrapper {
    display: flex;
    gap: 10px;
}

.image-picker-wrapper input {
    flex-grow: 1;
}

.btn-picker {
    background: var(--primary-color);
    color: black;
    border: none;
    padding: 0 1rem;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    white-space: nowrap;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
    margin-top: 1rem;
}

.gallery-item {
    aspect-ratio: 1;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    border: 2px solid transparent;
    transition: 0.3s;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-item:hover {
    border-color: var(--primary-color);
}

.gallery-item.selected {
    border-color: var(--primary-color);
    box-shadow: 0 0 15px var(--primary-color);
}

.gallery-item .delete-img {
    position: absolute;
    top: 5px;
    right: 5px;
    background: rgba(255,0,0,0.8);
    color: white;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    border: none;
    cursor: pointer;
    opacity: 0;
    transition: 0.3s;
}

.gallery-item:hover .delete-img {
    opacity: 1;
}

/* Modal Overlay */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.9);
    z-index: 20000;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    animation: fadeInModal 0.3s ease-out;
}

@keyframes fadeInModal {
    from { opacity: 0; }
    to { opacity: 1; }
}

#preview-full-img {
    animation: zoomInImg 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes zoomInImg {
    from { transform: scale(0.85); opacity: 0; }
    to { transform: scale(0.98); opacity: 1; }
}

.modal-card {
    background: var(--bg-dark);
    width: 100%;
    max-width: 90%; 
    width: 1000px; /* Reduced from 95% to a more standard large size */
    max-height: 90vh;
    border-radius: 20px;
    border: 1px solid var(--primary-color);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 0 50px rgba(0,0,0,0.8);
}

@media (max-width: 768px) {
    .modal-header h2 {
        font-size: 0.9rem !important; /* Even smaller to save space */
        letter-spacing: 1px !important;
        max-width: 80%;
    }
    .modal-header {
        padding: 0.8rem !important;
    }
}

.modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  position: relative;
  padding: 1.2rem 1.5rem 0.5rem 1.5rem;
}

.modal-close-btn {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: transparent;
  border: none;
  color: #ff4444;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  z-index: 10;
  padding: 0.3rem 1rem;
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
}

.modal-close-btn:hover {
  color: #fff;
  background: #ff4444;
}

.btn-upload {
    background: var(--primary-color);
    color: black;
    padding: 0.8rem 1.5rem;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: 0.3s;
}

.btn-upload:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.4);
}

.sidebar-footer {
    padding: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.admin-section {
    display: none;
}

.admin-section.active {
    display: block;
    animation: fadeIn 0.4s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.form-panel {
    background: var(--bg-card);
    padding: 2.5rem;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.05);
}

.form-panel h3 {
    margin-bottom: 2rem;
    color: var(--primary-color);
}

.form-panel {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 20px;
    margin-bottom: 2rem;
    border: 1px solid rgba(255,255,255,0.05);
}

.fleet-item {
    background: rgba(0,0,0,0.3);
    padding: 1.5rem;
    border-radius: 15px;
    border: 1px dashed rgba(255,255,255,0.1);
    position: relative;
    margin-bottom: 1.5rem;
}

.btn-delete {
    background: #ff4444;
    color: white;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 5px;
    cursor: pointer;
    position: absolute;
    top: 1rem; right: 1rem;
}

.btn-add-vehicle {
    background: transparent;
    border: 2px dashed rgba(255, 255, 255, 0.3);
    color: var(--primary-color);
    width: 100%;
    padding: 2rem;
    border-radius: 15px;
    cursor: pointer;
    font-weight: 600;
}

.btn-save-admin {
    background: var(--primary-color);
    color: black;
    border: none;
    padding: 1rem 2rem;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* HYPER SQUAD THEME OVERRIDES */
.logo {
  text-transform: uppercase;
  letter-spacing: -1px;
}

.logo span {
  font-weight: 700;
}

.btn-primary, .btn-secondary, .btn-submit, .btn-book, .price, .nav-links a {
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

.title, .section-header h2 {
  text-transform: uppercase;
  letter-spacing: 4px;
}

.subtitle {
  letter-spacing: 5px;
  text-transform: uppercase;
}

.hero-content {
  text-transform: uppercase;
}

.hero-content .description {
  text-transform: none;
  letter-spacing: normal;
}

/* --- Additional Fixes for Elements Cut Off at 100% Zoom --- */
html, body {
  width: 100vw;
  min-width: 0;
  max-width: 100vw;
  overflow-x: hidden;
}

.hero, .container, .navbar, .booking-wrapper, .section-header, .fleet-grid, .services-grid, .social-grid, .footer-content {
  min-width: 0;
  max-width: 100vw;
  box-sizing: border-box;
}

.title, .section-header h2 {
  font-size: clamp(2rem, 5vw, 4rem);
}

.description, .about-content p, .card-info p, .service-item p, .social-card p {
  font-size: clamp(0.9rem, 1.5vw, 1.1rem);
}

.hero-content {
  padding: 0 1vw;
}

@media (min-width: 1400px) {
  .container, .footer-content, .booking-wrapper {
    padding: 0 10vw;
  }
  .title, .section-header h2 {
    font-size: clamp(2rem, 4vw, 3.5rem);
  }
}

@media (max-width: 1200px) {
  .container, .footer-content, .booking-wrapper {
    padding: 0 2vw;
  }
}

@media (max-width: 768px) {
  .container, .footer-content, .booking-wrapper {
    padding: 0 1vw;
  }
  .title, .section-header h2 {
    font-size: clamp(1.5rem, 8vw, 3rem);
  }
}

/* Ensure all sections scale and overflow is handled */
section, .hero, .navbar, .footer-content {
  min-width: 0;
  max-width: 100vw;
  box-sizing: border-box;
}

/* --- Professional Vehicle Card Layout --- */
.fleet-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 2.5rem;
  align-items: stretch;
}

.vehicle-card {
  background: var(--bg-card);
  border-radius: 18px;
  overflow: hidden;
  transition: var(--transition);
  border: 1.5px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 32px rgba(0,0,0,0.18);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.card-img {
  height: 240px;
  background: #222;
  overflow: hidden;
  border-top-left-radius: 18px;
  border-top-right-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
}

.price {
  position: absolute;
  top: 16px;
  left: 16px;
  background: var(--primary-color);
  color: var(--bg-dark);
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}

.card-info {
  flex: 1;
  padding: 2.2rem 1.8rem 1.8rem 1.8rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.card-info h3 {
  font-size: 1.35rem;
  margin-bottom: 1.2rem;
  font-weight: 700;
  letter-spacing: 1.5px;
}

.card-info p {
  color: var(--text-muted);
  margin-bottom: 1.2rem;
  font-size: 1rem;
}

.btn-book, .card-info button {
  background: var(--primary-color);
  color: var(--bg-dark);
  border: none;
  border-radius: 8px;
  padding: 1rem 0;
  font-weight: 700;
  font-size: 1rem;
  margin-top: 1.2rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.10);
  transition: var(--transition);
  width: 100%;
}

.btn-book:hover, .card-info button:hover {
  background: var(--primary-hover);
  color: var(--bg-dark);
  transform: translateY(-2px);
}
