:root {
    --primary: #d10024;
    --primary-dark: #b00020;
    --light: #ffffff;
    --dark: #15161d;
    --gray: #8d99ae;
    --light-bg: #f5f5f5;
    --transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Roboto", "Poppins", sans-serif;
    color: var(--dark);
    background: var(--light);
    overflow-x: hidden;
    line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5 {
    font-family: "Montserrat", sans-serif;
    font-weight: 800;
}

.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 8px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}

.whatsapp-float:hover {
    background-color: #128c7e;
    transform: scale(1.1);
    box-shadow: 3px 3px 12px rgba(0, 0, 0, 0.4);
}

.whatsapp-float i {
    margin-top: 5px;
}

@keyframes pulse {
    0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    70% {
    box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }
    100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

.container {
    width: 90%;
    max-width: 1400px;
    margin: 0 auto;
}

.btn {
    display: inline-block;
    padding: 14px 32px;
    background: var(--primary);
    color: var(--light);
    border: none;
    border-radius: 8px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    font-size: 15px;
}

.btn:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(209, 0, 36, 0.3);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: var(--light);
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
}

.section-title h2 {
    font-size: 2.8rem;
    margin-bottom: 15px;
    background: linear-gradient(
    90deg,
    var(--primary) 0%,
    var(--primary-dark) 100%
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.section-title p {
    color: var(--gray);
    max-width: 700px;
    margin: 0 auto;
    font-size: 1.1rem;
}

.section-title::after {
    content: "";
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--primary);
    border-radius: 2px;
}

/* Header Styles */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    padding: 20px 0;
    transition: var(--transition);
}

.header-container {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    color: var(--primary);
    font-size: 2rem;
}

.logo-text {
    font-family: "Montserrat", sans-serif;
    font-weight: 900;
    font-size: 1.8rem;
    color: var(--dark);
}

.logo-text span {
    color: var(--primary);
}

.logo img.logo-image {
    height: 60px; /* Make it more prominent */
    width: 60px;
    display: block;
    object-fit: contain; /* Ensures no distortion */
    filter: drop-shadow(
    0 1px 5px rgba(0, 0, 0, 0.2)
    ); /* Slight pop effect */
}

nav ul {
    display: flex;
    list-style: none;
    gap: 35px;
}

nav a {
    color: var(--dark);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.05rem;
    position: relative;
    padding: 8px 0;
    transition: var(--transition);
}

nav a:hover {
    color: var(--primary);
}

nav a::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--primary);
    transition: var(--transition);
}

nav a:hover::after {
    width: 100%;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.hamburger {

    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 10;
    position: absolute;
top: 50%; /* Center vertically */
right: 20px; /* Push to right corner */
transform: translateY(-50%); /
}

.hamburger span {
    display: block;
    height: 3px;
    width: 100%;
    background: var(--dark);
    border-radius: 10px;
    transition: var(--transition);
}

/* Modified Header Styles */
header {
    /* ... existing styles ... */
    padding: 10px 0; /* Reduced from 20px */
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    height: 80px; /* Fixed height for logo container */
}

.logo-icon {
    display: flex; /* Ensures proper image containment */
    align-items: center;
    height: 100%; /* Takes full height of .logo */
}

.logo img.logo-image {
    height: 100%; /* Takes full height of .logo-icon */
    width: auto; /* Maintains aspect ratio */
    max-height: 80px; /* Preents excessive growth */
    /* ... other styles remain ... */
}

.logo-text {
    /* ... existing styles ... */
    align-self: center; /* Ensures vertical centering */
}

/* Hero Section */
.hero {
    height: 100vh;
    min-height: 800px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 80px;
}

.hero::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: linear-gradient(
    45deg,
    var(--primary) 0%,
    var(--primary-dark) 100%
    );
    clip-path: polygon(25% 0%, 100% 0%, 100% 100%, 0% 100%);
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 45%;
    padding-right: 40px;
}

.hero-image {
    position: absolute;
    right: 5%;
    top: 50%;
    transform: translateY(-50%);
    width: 55%;
    max-width: 800px;
    z-index: 1;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.3));
}

.hero h1 {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 25px;
    color: var(--dark);
}

.hero h1 span {
    color: var(--primary);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    color: #444;
    max-width: 600px;
}

.hero-btns {
    display: flex;
    gap: 20px;
}

@media (max-width: 768px) {
    .container.hero-inner {
    flex-direction: column;
    text-align: center;
    }

    .hero-content {
    width: 100%;
    padding-right: 0;
    margin-bottom: 30px;
    }

    /* HIDE IMAGE ON SMALL SCREENS */
    .hero-image {
    display: none;
    }

    .hero-content h1 {
    font-size: 2.8rem;
    }

    .hero-content p {
    font-size: 1rem;
    margin-bottom: 30px;
    }

    .hero-btns {
    flex-direction: column;
    gap: 15px;
    }
}

/* Vehicles Section */
.vehicles {
    padding: 120px 0;
    background: var(--light-bg);
}

.vehicles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 40px;
}

.vehicle-card {
    background: var(--light);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.vehicle-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.vehicle-image {
    height: 240px;
    width: 100%;
    background-size: cover;
    background-position: center;
}

.vehicle-content {
    padding: 25px;
}

.vehicle-title {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.vehicle-price {
    color: var(--primary);
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.vehicle-features {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 25px;
}

.feature {
    background: rgba(209, 0, 36, 0.1);
    color: var(--primary);
    padding: 6px 15px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
}

.view-details {
    width: 100%;
    text-align: center;
}

/* Solar Panels Section */
.solar {
    padding: 120px 0;
    background: var(--light);
}

.solar-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 40px;
}

.solar-card {
    background: var(--light);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.solar-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.solar-image {
    height: 240px;
    width: 100%;
    background-size: cover;
    background-position: center;
}

.solar-content {
    padding: 25px;
}

.solar-title {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.solar-price {
    color: var(--primary);
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.solar-features {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 25px;
}

/* Contact us message */
.message {
display: none;
padding: 15px;
margin: 10px 0;
border-radius: 4px;
font-weight: bold;
}

.success {
background: #d4edda;
color: #155724;
border: 1px solid #c3e6cb;
}

.error {
background: #f8d7da;
color: #721c24;
border: 1px solid #f5c6cb;
}

/* Services Section */
.services {
    padding: 120px 0;
    background: var(--light-bg);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.service-card {
    text-align: center;
    padding: 50px 30px;
    background: var(--light);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    border-bottom: 4px solid var(--primary);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: rgba(209, 0, 36, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    font-size: 2rem;
    color: var(--primary);
}

.service-title {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

/* Featured Section */
.featured {
    padding: 120px 0;
    background: linear-gradient(rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0.85)),
    url("https://images.unsplash.com/photo-1503376780353-7e6692767b70?ixlib=rb-4.0.3&auto=format&fit=crop&w=1800&q=80");
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--light);
    text-align: center;
}

.featured-content {
    max-width: 800px;
    margin: 0 auto;
}

.featured h2 {
    font-size: 3.5rem;
    margin-bottom: 25px;
}

.featured p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    opacity: 0.9;
}

.timer {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 50px;
}

.timer-item {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    padding: 20px;
    min-width: 100px;
}

.timer-value {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.timer-label {
    text-transform: uppercase;
    font-size: 0.9rem;
    opacity: 0.7;
}

/* Newsletter */
.newsletter {
    padding: 100px 0;
    background: var(--light-bg);
    text-align: center;
}

.newsletter-content {
    max-width: 700px;
    margin: 0 auto;
}

.newsletter-form {
    display: flex;
    max-width: 600px;
    margin: 40px auto 0;
    gap: 10px;
}

.newsletter-form input {
    flex: 1;
    padding: 18px 25px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

/* Reviews */
.reviews {
    padding: 120px 0;
    background: var(--light);
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}

.review-card {
    background: var(--light);
    padding: 40px 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    position: relative;
}

.review-card::before {
    content: '"';
    position: absolute;
    top: 20px;
    left: 30px;
    font-size: 6rem;
    color: rgba(209, 0, 36, 0.1);
    font-family: serif;
    line-height: 1;
}

.review-content {
    position: relative;
    z-index: 2;
    margin-bottom: 30px;
}

.reviewer {
    display: flex;
    align-items: center;
    gap: 15px;
}

.reviewer-image {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
}

.reviewer-name {
    font-weight: 700;
    font-size: 1.1rem;
}

.reviewer-title {
    color: var(--primary);
    font-size: 0.9rem;
}

.stars {
    color: #ffc107;
    margin-top: 5px;
}

/* Contact */
.contact {
    padding: 120px 0;
    background: var(--light-bg);
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 60px;
}

.contact-info h3 {
    font-size: 1.8rem;
    margin-bottom: 30px;
    color: var(--dark);
}

.contact-item {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
}

.contact-icon {
    width: 60px;
    height: 60px;
    background: rgba(209, 0, 36, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary);
    flex-shrink: 0;
}

.contact-form .form-group {
    margin-bottom: 25px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 18px 25px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.contact-form textarea {
    min-height: 150px;
    resize: vertical;
}

/* Footer */
.newsletter-form {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    max-width: 100%;
}

.newsletter-form input {
    flex: 1 1 auto; /* grow and shrink as needed */
    min-width: 0; /* allow it to get really small */
    padding: 12px;
    box-sizing: border-box;
}

.newsletter-form .btn {
    flex: 0 0 auto; /* stay at its intrinsic width */
    white-space: nowrap; /* don’t wrap the text */
}

footer {
    background: var(--dark);
    color: var(--light);
    padding: 80px 0 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

.footer-col h4 {
    font-size: 1.3rem;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 15px;
}

.footer-col h4::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--primary);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 15px;
}

.footer-links a {
    color: var(--gray);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary);
    padding-left: 5px;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--light);
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary);
    transform: translateY(-5px);
}

.copyright {
    text-align: center;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--gray);
    font-size: 0.9rem;
}

/* Modal Overlay */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Modal Container */
.modal {
    background: var(--light);
    border-radius: 20px;
    width: 90%;
    max-width: 1000px;
    max-height: 90vh; /* limit height */
    overflow-y: auto; /* enable internal scrolling */
    transform: translateY(50px);
    opacity: 0;
    transition: all 0.4s ease;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.modal-overlay.active .modal {
    transform: translateY(0);
    opacity: 1;
}

/* Header */
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 30px;
    background: var(--dark);
    color: var(--light);
    position: sticky; /* stick to top */
    top: 0;
    z-index: 10;
}

.close-modal {
    background: transparent;
    border: none;
    color: var(--light);
    font-size: 1.8rem;
    cursor: pointer;
    transition: var(--transition);
}

.close-modal:hover {
    color: var(--primary);
}

/* Content Layout */
.modal-content {
    display: flex;
    padding: 0;
}

/* Image Panel */
.modal-image {
    flex: 1;
    min-height: 500px;
    background-size: cover;
    background-position: center;
}

.modal-image img,
.modal-image {
    /* if using img tag or background */
    width: 100%;
    display: block;
}

/* Details Panel */
.modal-details {
    flex: 1;
    padding: 40px;
}

.modal-title {
    font-size: 2.2rem;
    margin-bottom: 15px;
    color: var(--dark);
}

.modal-price {
    font-size: 2.2rem;
    color: var(--primary);
    margin-bottom: 25px;
    font-weight: 700;
}

.modal-description {
    color: var(--gray);
    line-height: 1.8;
    margin-bottom: 30px;
}

/* Specs Grid */
.specs-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 30px;
}

.spec {
    background: var(--light-bg);
    padding: 15px;
    border-radius: 10px;
}

.spec-title {
    color: var(--primary);
    font-size: 0.9rem;
    margin-bottom: 5px;
    font-weight: 600;
}

.spec-value {
    font-weight: 600;
}

/* Actions */
.modal-actions {
    display: flex;
    gap: 15px;
    position: sticky; /* stick to bottom */
    bottom: 0;
    padding: 20px;
    background: var(--light);
    z-index: 10;
}

.whatsapp-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: #25d366;
    color: white;
    border: none;
    padding: 18px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    transition: var(--transition);
}

.scroll-down-arrow {
display: none;
}

.carousel {
  flex: 1;
  position: relative;
  overflow: hidden;
  min-height: 500px;
  background: #000;
}

.carousel-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
  height: 100%;
}

.carousel-track img {
  min-width: 100%;
  height: 100%;
  object-fit: cover;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  color: white;
  font-size: 2rem;
  padding: 10px;
  cursor: pointer;
  border: none;
  z-index: 10;
}

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

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

@media (max-width: 768px) {
.scroll-down-arrow {
display: flex;
justify-content: center;
align-items: center;
padding: 10px 0;
font-size: 1.8rem;
color: var(--primary);
animation: bounceDown 1.5s infinite;
}
}

@keyframes bounceDown {
0%, 20%, 50%, 80%, 100% {
transform: translateY(0);
}
40% {
transform: translateY(6px);
}
60% {
transform: translateY(3px);
}
}


/* === Responsive Tweaks === */
@media (max-width: 768px) {
    /* Stack content vertically */
    .modal-content {
    flex-direction: column;
    }

    /* Flexible image height */
    .modal-image {
    min-height: 200px;
    height: 30vh;
    }

    /* Adjust padding */
    .modal-details {
    padding: 20px;
    }

    /* Buttons full width */
    .modal-actions {
    padding: 15px 20px;
    }

    .whatsapp-btn {
    width: 100%;
    justify-content: center;
    }
}

@media (max-width: 480px) {
    .modal-header .modal-title {
    font-size: 1.6rem;
    }
    .close-modal {
    font-size: 1.4rem;
    }
    .modal-price {
    font-size: 1.6rem;
    }
    .modal-description {
    font-size: 0.9rem;
    }
    .specs-grid {
    grid-template-columns: 1fr;
    }
}

.whatsapp-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(37, 211, 102, 0.3);
}

/* Responsive */
@media (max-width: 1200px) {
    .hero h1 {
    font-size: 4rem;
    }

    .hero-content {
    width: 50%;
    padding-right: 30px;
    }

    .hero-image {
    right: 3%;
    width: 50%;
    }
}

@media (max-width: 992px) {
    .hero::before {
    width: 70%;
    clip-path: polygon(15% 0%, 100% 0%, 100% 100%, 0% 100%);
    }

    .hero-content {
    width: 55%;
    padding-right: 20px;
    }

    .hero-image {
    width: 65%;
    }
}

@media (max-width: 768px) {
    nav ul {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    height: 100vh;
    background: var(--light);
    flex-direction: column;
    padding: 100px 40px;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    z-index: 5;
    }

    nav ul.active {
    right: 0;
    }

    .hamburger {
    display: flex;
    }

    .hamburger.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
    }

    .hamburger.active span:nth-child(2) {
    opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
    }

    .header-actions .btn {
    display: none;
    }

    .hero {
    min-height: auto;
    height: auto;
    padding: 150px 0 100px;
    }

    .hero::before {
    display: none;
    }

    .hero-content {
    width: 100%;
    text-align: center;
    padding-right: 0;
    }

    .hero-image {
    position: relative;
    width: 100%;
    right: auto;
    top: auto;
    transform: none;
    margin-top: 60px;
    }

    .hero h1 {
    font-size: 3rem;
    }

    .hero p {
    margin-left: auto;
    margin-right: auto;
    }

    .hero-btns {
    justify-content: center;
    }

    .modal-content {
    flex-direction: column;
    }

    .modal-image {
    min-height: 300px;
    }

    /* Mobile menu button */
    .mobile-get-quote {
    display: block !important;
    margin-top: 30px;
    text-align: center;
    }
}

@media (max-width: 640px) {
    .logo-text {
    display: none;
    }
}

@media (max-width: 768px) {
.header-container {
justify-content: flex-start; /* Align items to start */
}
}

@media (max-width: 576px) {
    .hero h1 {
    font-size: 2.5rem;
    }

    .hero-btns {
    flex-direction: column;
    align-items: center;
    }

    .section-title h2 {
    font-size: 2.2rem;
    }

    .timer {
    flex-wrap: wrap;
    }

    .newsletter-form {
    flex-direction: column;
    }

    .footer-col:last-child .newsletter-form {
    flex-direction: column;
    }

    .footer-col:last-child .newsletter-form input,
    .footer-col:last-child .newsletter-form button {
    width: 100%;
    }
}

/* Mobile menu button */
.mobile-get-quote {
    display: none;
}


/* Modal overlay centering + safe padding on mobile */
.modal-overlay {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.5);
  padding: 20px;
  z-index: 1000;
}

/* Modal Container (minor tweaks for better mobile handling) */
.modal {
  position: relative;
  background: var(--light);
  border-radius: 20px;
  width: 90%;
  max-width: 1000px;
  max-height: calc(100vh - 40px); /* keep space for padding */
  overflow-y: auto; /* enable internal scrolling */
  transform: translateY(50px);
  opacity: 0;
  transition: all 0.4s ease;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

/* Make the modal almost full-screen on small devices to avoid cramped controls */
@media (max-width: 480px) {
  .modal {
    width: 100%;
    height: 100vh;
    max-height: 100vh;
    border-radius: 0;
    margin: 0;
  }
}

/* Carousel container */
.carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
  flex: 1 1 auto;
  min-height: 200px; /* gives it visible area on small screens */
}

/* Track: flex row of images */
.carousel-track {
  display: flex;
  transition: transform 0.35s ease;
  will-change: transform;
}

/* Each image fills the slide */
.carousel-track img {
  flex: 0 0 100%;
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* Carousel buttons - larger and touch-friendly */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.45);
  border: none;
  color: #fff;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 30; /* above sticky footer/header */
  font-size: 1.2rem;
  line-height: 1;
  -webkit-tap-highlight-color: transparent;
}

/* left / right placement */
.carousel-btn.prev { left: 12px; }
.carousel-btn.next { right: 12px; }

.carousel-btn:active { transform: translateY(-50%) scale(.98); }

/* make sure sticky footer does not cover buttons (buttons z-index higher) */
.modal-actions {
  display: flex;
  gap: 15px;
  position: sticky; /* stick to bottom */
  bottom: 0;
  padding: 20px;
  background: var(--light);
  z-index: 20; /* less than carousel buttons (30) */
}

/* keep existing responsive tweaks but ensure widths/padding are mobile-friendly */
@media (max-width: 768px) {
  .modal-content { flex-direction: column; }
  .modal-details { padding: 20px; }
  .modal-image { min-height: 200px; height: 30vh; }
  .modal-actions { padding: 15px 20px; }
  .whatsapp-btn { width: 100%; justify-content: center; }
}

/* ensure header and actions are above content but below carousel buttons */
.modal-header { z-index: 25; position: sticky; top: 0; }


/* Modal title: clean, white, responsive, and safe from overflow */
.modal-header .modal-title {
  color: #ffffff;                            /* white on dark header */
  font-weight: 700;                          /* bolder for emphasis */
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);   /* responsive sizing */
  line-height: 1.05;
  margin: 0;
  display: block;
  max-width: calc(100% - 80px);              /* reserve space for close button */
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;                   /* prevent overlap with close icon */
  -webkit-font-smoothing: antialiased;
  text-shadow: 0 1px 2px rgba(0,0,0,0.45);   /* subtle pop on dark bg */
}

/* On very small screens allow wrapping to avoid tiny truncated text */
@media (max-width: 360px) {
  .modal-header .modal-title {
    white-space: normal;
    max-width: calc(100% - 56px);
    font-size: 1.4rem;
  }
}
