:root {
    --primary-color: #0046B8;    /* Blue */
    --secondary-color: #E31E24;  /* Red */
    --dark-blue: #003591;
    --dark-red: #C41A1F;
    --light-gray: #f8f9fa;
    --text-dark: #333333;
    --text-light: #666666;
}

/* Global Styles */
html {
    scroll-padding-top: 100px; /* This helps with anchor links and fixed header */
    scroll-behavior: smooth;
}

/* Container overflow fix */
.container {
    overflow: hidden;
    max-width: 100%;
}

/* Row overflow fix */
.row {
    margin-left: 0;
    margin-right: 0;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-dark);
    overflow-x: hidden;
    position: relative;
    width: 100%;
}

/* Fix for AOS animations on mobile */
@media (max-width: 768px) {
    [data-aos=fade-left] {
        transform: translateX(0) !important;
    }
    [data-aos=fade-right] {
        transform: translateX(0) !important;
    }
    [data-aos=fade-up] {
        transform: translateY(20px);
    }
}

section {
    scroll-margin-top: 100px; /* Modern browsers - helps with anchor positioning */
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--dark-blue);
    border-color: var(--dark-blue);
    transform: translateY(-2px);
}

/* Header Styles */
.navbar {
    padding: 1.2rem 0;
    transition: all 0.3s ease;
    background-color: transparent;
}

.navbar.scrolled {
    background-color: #1a1a1a;
    padding: 12px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.navbar-brand {
    display: flex;
    align-items: center;
}

.navbar-brand img.logo {
    height: 46px;
    transition: all 0.3s ease;
}

.navbar-toggler {
    padding: 0.5rem;
    border: 2px solid white;
    margin-left: auto;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255, 255, 255, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

.nav-link {
    color: white !important;
    font-weight: 500;
    font-size: 1rem;
    padding: 0.5rem 1.2rem !important;
    transition: all 0.3s ease;
}

.nav-link:hover {
    color: var(--primary-color) !important;
}

@media (max-width: 991.98px) {
    .nav-link {
        color: rgb(0, 0, 0) !important;
    }
    .nav-link:hover {
        color: var(--primary-color) !important;
    }
}

.navbar .btn-primary {
    padding: 0.6rem 1.2rem;
    font-weight: 500;
}

@media (max-width: 991.98px) {
    .navbar {
        background-color: rgba(0, 0, 0, 0.9);
    }
    .navbar-collapse {
        background: rgba(255, 255, 255, 0.95);
        padding: 1rem;
        border-radius: 10px;
        margin-top: 1rem;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }

    .navbar > .container {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0 15px;
    }

    .navbar-toggler {
        margin: 0;
        order: 2;
    }

    .navbar-brand {
        order: 1;
    }

    .navbar-collapse {
        order: 3;
        width: 100%;
    }

    .nav-item {
        text-align: center;
        padding: 0.5rem 0;
    }

    .nav-item:last-child {
        margin: 0.5rem 0;
    }
}

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 100vh;
    color: white;
    padding-top: 90px;
    overflow: hidden;
}

.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-slider .swiper-slide {
    position: relative;
}

.hero-slider .swiper-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6));
    z-index: 1;
}

.hero-slider img {
    width: 100%;
    height: 100vh;
    object-fit: cover;
}

.hero-slider .swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 1;
}

.hero-slider .swiper-pagination-bullet-active {
    background: var(--primary-color);
    transform: scale(1.2);
}

.hero-content {
    padding: 4rem 0;
    min-height: calc(100vh - 90px);
    display: flex;
    align-items: center;
}

.hero-section h1 {
    font-size: 2.75rem;
    line-height: 1.2;
    margin-bottom: 1.25rem;
    font-weight: 600;
}

.hero-text {
    font-size: 1.1rem;
    margin-bottom: 1.75rem;
    opacity: 0.9;
    line-height: 1.5;
}

.hero-buttons {
    margin-top: 1.75rem;
}

.hero-buttons .btn {
    padding: 0.75rem 1.25rem;
    font-size: 1rem;
}

.cta-card {
    background: rgba(255, 255, 255, 0.95);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
    text-align: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.cta-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

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

.cta-card h2 {
    color: var(--primary-color);
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 0.875rem;
    text-transform: uppercase;
}

.offer-text {
    margin-bottom: 1.25rem;
}

.offer-text h3 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 0.375rem;
}

.offer-text .highlight {
    font-size: 1rem;
    color: #666;
    font-weight: 500;
}

.offer-features {
    margin-bottom: 2rem;
}

.feature-item {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 8px;
}

.feature-item i {
    color: var(--secondary-color);
    font-size: 1.2rem;
    margin-right: 0.75rem;
}

.feature-item span {
    color: #444;
    font-weight: 500;
}

.cta-buttons .btn {
    padding: 1rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.cta-buttons .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.cta-buttons p {
    color: #666;
    font-weight: 500;
}

.cta-buttons i {
    color: var(--secondary-color);
}

/* Enquiry Form */
.card {
    border: none;
    border-radius: 15px;
    overflow: hidden;
}

.form-control, .form-select {
    padding: 0.75rem 1rem;
    border-radius: 8px;
    border: 1px solid #dee2e6;
    margin-bottom: 1rem;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(0,102,204,0.25);
}

/* Features Section */
#features .row {
    margin-bottom: 30px; /* Space for shadow */
}

#features .col-md-3 {
    margin-bottom: 30px; /* Additional space for shadow */
}

.feature-box {
    padding: 2.5rem 1.5rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    height: 100%;
    min-height: 280px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px; /* Space for shadow */
}

.feature-box:hover {
    transform: translateY(-10px);
}

.feature-box i {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 2.5rem;
}

.feature-box h4 {
    color: var(--text-dark);
    margin-bottom: 1rem;
    font-weight: 600;
    font-size: 1.25rem;
    min-height: 2.5em;
    display: flex;
    align-items: center;
    text-align: center;
    line-height: 1.4;
}

.feature-box p {
    color: var(--text-light);
    margin-bottom: 0;
    font-size: 1rem;
    line-height: 1.6;
    text-align: center;
}

/* Animations */
@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
    100% {
        transform: translateY(0px);
    }
}

.floating {
    animation: float 3s ease-in-out infinite;
}

/* Process Section */
.process-timeline {
    position: relative;
    padding: 40px 0;
}

.process-timeline::before {
    content: '';
    position: absolute;
    top: 41px;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 93%;
    background-color: var(--primary-color);
}

.timeline-item {
    position: relative;
    margin-bottom: 60px;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.timeline-icon {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    box-shadow: 0 0 0 8px rgba(0, 70, 184, 0.2);
}

.timeline-icon i {
    color: white;
    font-size: 24px;
}

.timeline-content {
    width: 45%;
    padding: 30px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    position: relative;
    margin-left: auto;
}

.timeline-item:nth-child(even) .timeline-content {
    margin-left: 0;
    margin-right: auto;
}

.timeline-content h3 {
    color: var(--primary-color);
    margin-bottom: 12px;
    font-size: 1.2rem;
    font-weight: 600;
}

.timeline-content p {
    margin: 0;
    line-height: 1.5;
    font-size: 0.95rem;
}

/* Phone Pill Styles */
.phone-pill-container {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 60px;
}

.phone-pill {
    background-color: #d84315;
    color: white;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 24px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(216, 67, 21, 0.3);
}

.phone-pill:hover {
    background-color: #bf360c;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(216, 67, 21, 0.4);
}

.phone-pill i {
    font-size: 24px;
}

@media (max-width: 768px) {
    .process-timeline::before {
        left: 30px;
    }
    
    .timeline-item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .timeline-icon {
        left: 30px;
        transform: translateX(-50%);
    }
    
    .timeline-content {
        width: calc(100% - 60px);
        margin-left: 60px !important;
    }

    .phone-pill {
        font-size: 20px;
        padding: 12px 25px;
    }

    .phone-pill i {
        font-size: 20px;
    }
}

/* Showroom Section */
.showroom-image {
    position: relative;
    transition: transform 0.3s ease;
    height: 520px; /* Exact height to match the address card */
}

.showroom-image:hover {
    transform: translateY(-5px);
}

.showroom-image img {
    object-position: center;
    height: 100%;
    object-fit: cover;
}

/* Make sure both cards have same height */
.showroom-info {
    height: 520px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.overlay-gradient {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 30%;
    background: linear-gradient(to top, rgba(0,0,0,0.4), transparent);
    pointer-events: none;
}

.showroom-info {
    transition: transform 0.3s ease;
}

.showroom-info:hover {
    transform: translateY(-5px);
}

.info-item {
    transition: all 0.3s ease;
}

.info-item:hover {
    transform: translateX(5px);
}

.info-item i {
    font-size: 1.5rem;
    width: 2rem;
    text-align: center;
}

.info-item h5 {
    color: var(--text-dark);
    font-size: 1rem;
    font-weight: 600;
}

.info-item p {
    color: var(--text-light);
    line-height: 1.6;
    margin: 0;
}

.info-item a:hover {
    color: var(--primary-color) !important;
}

@media (max-width: 991px) {
    .showroom-info {
        margin-top: 2rem;
    }
}

/* Services Gallery Section */
.service-card {
    position: relative;
    height: 300px;
    border-radius: 10px;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.2), rgba(0,0,0,0.8));
    transition: all 0.3s ease;
}

.service-card:hover::before {
    background: linear-gradient(to bottom, rgba(0,0,0,0.4), rgba(0,0,0,0.9));
}

.service-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem;
    color: white;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.service-card:hover .service-content {
    transform: translateY(0);
}

.service-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.875rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.service-content .btn {
    opacity: 0;
    transform: translateY(15px);
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.service-card:hover .btn {
    opacity: 1;
    transform: translateY(0);
}

/* Make button visible by default on mobile */
@media (max-width: 991.98px) {
    .service-content .btn {
        opacity: 1;
        transform: translateY(0);
    }
    
    .service-content {
        transform: translateY(0);
        background: linear-gradient(to bottom, rgba(0,0,0,0.4), rgba(0,0,0,0.9));
        padding: 1.5rem;
    }
}

.service-content .btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--dark-blue));
    border: none;
    padding: 0.5rem 1.25rem;
    font-weight: 500;
}

.service-content .btn-primary:hover {
    background: linear-gradient(135deg, var(--secondary-color), var(--dark-red));
    color: white;
    transform: translateY(-2px);
}

/* Product Modal Styles */
.modal-xl {
    max-width: 1140px;
}

.modal-content {
    border: none;
    border-radius: 15px;
    overflow: hidden;
    background: #f8f9fa;
}

.modal-header {
    background: linear-gradient(135deg, var(--primary-color), var(--dark-blue));
    color: white;
    padding: 1.5rem;
    border: none;
}

.modal-header .btn-close {
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    padding: 1rem;
    margin: -0.5rem -0.5rem -0.5rem auto;
    transition: all 0.3s ease;
}

.modal-header .btn-close:hover {
    background-color: rgba(255, 255, 255, 0.5);
    transform: rotate(90deg);
}

.modal-title {
    font-size: 1.5rem;
    font-weight: 600;
}

.product-showcase {
    position: relative;
    background: #000;
}

.product-slider {
    height: 70vh;
    background: #000;
}

.product-slide {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.product-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.5s ease;
}

.product-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: white;
    padding: 2rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.product-slide:hover .product-overlay {
    transform: translateY(0);
}

.product-slide:hover img {
    transform: scale(1.05);
}

/* Swiper Navigation Styles */
.swiper-button-next,
.swiper-button-prev {
    background: rgba(255, 255, 255, 0.9);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    color: var(--primary-color) !important;
    transition: all 0.3s ease;
}

.swiper-button-next:after,
.swiper-button-prev:after {
    font-size: 20px;
    font-weight: bold;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    background: white;
    transform: scale(1.1);
}

/* Swiper Pagination Styles */
.swiper-pagination {
    position: absolute;
    bottom: 20px !important;
}

.swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 0.5;
    transition: all 0.3s ease;
}

.swiper-pagination-bullet-active {
    background: white;
    opacity: 1;
    transform: scale(1.2);
}

.product-info {
    background: white;
    border-radius: 0 0 15px 15px;
}

.product-features {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.product-features h4 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
    font-weight: 600;
}

.product-features li {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    padding: 0.5rem;
    background: white;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.product-features li:hover {
    transform: translateX(10px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.product-features li i {
    color: var(--primary-color);
    margin-right: 1rem;
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}

.product-features li:hover i {
    transform: scale(1.2);
}

.btn-primary {
    padding: 1rem 2rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, var(--primary-color), var(--dark-blue));
    border: none;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 70, 184, 0.3);
    background: linear-gradient(135deg, var(--dark-blue), var(--primary-color));
}

/* Clients Section */
.marquee-wrapper {
    position: relative;
    max-width: 100vw;
    overflow: hidden;
}

.marquee {
    display: flex;
    width: 200%; /* Double width for seamless loop */
    animation: scroll 30s linear infinite;
}

.marquee-group {
    display: flex;
    align-items: center;
    justify-content: space-around;
    width: 100%;
    padding: 20px 0;
}

.client-logo {
    flex: 0 0 auto;
    padding: 0 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.client-logo img {
    max-width: 180px;
    height: auto;
    object-fit: contain;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .client-logo {
        padding: 0 20px;
    }
    .client-logo img {
        max-width: 120px;
    }
}

/* Testimonials Section */
.testimonial-card {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    height: 100%;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.testimonial-card h3 {
    color: #333;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.stars {
    color: #00b67a;
    font-size: 0.9rem;
}

.stars i {
    margin-right: 1px;
}

.testimonial-text {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.5;
}

.testimonial-text p {
    margin-bottom: 0.75rem;
}

.testimonial-text p:last-child {
    margin-bottom: 0;
    font-size: 0.9rem;
    color: #777;
}

/* Contact Section */
.contact-info i {
    color: var(--primary-color);
    font-size: 1.2rem;
}

.contact-info h5 {
    font-size: 1rem;
    color: var(--text-dark);
    font-weight: 600;
}

.contact-info p {
    font-size: 0.95rem;
    color: var(--text-light);
}

.contact-form h3 {
    font-size: 1.3rem;
    color: var(--text-dark);
    font-weight: 600;
}

.contact-form .form-control {
    font-size: 0.95rem;
    padding: 0.625rem 1rem;
}

.contact-form {
    border-radius: 15px;
}

/* Footer */
footer {
    background: var(--text-dark);
}

footer a {
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

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

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

/* WhatsApp Float Button */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25D366;
    color: #FFFFFF;
    border-radius: 50%;
    text-align: center;
    font-size: 30px;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.whatsapp-float:hover {
    background-color: #25D366;
    color: #FFFFFF;
    transform: scale(1.1);
}

.whatsapp-icon {
    font-size: 38px;
}

/* Mobile Styles for WhatsApp Button */
@media screen and (max-width: 767px) {
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
    }
    
    .whatsapp-icon {
        font-size: 32px;
    }
}

.newsletter-form .form-control {
    background: rgba(255,255,255,0.1);
    border: none;
    color: white;
}

.newsletter-form .form-control::placeholder {
    color: rgba(255,255,255,0.5);
}

/* Responsive Design */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background: white;
        padding: 1rem;
        border-radius: 10px;
        margin-top: 1rem;
    }
    
    .hero-section {
        padding-top: 80px;
        text-align: center;
    }
    
    .cta-buttons {
        justify-content: center;
        margin-bottom: 2rem;
    }
}

@media (max-width: 767.98px) {
    .feature-box {
        margin-bottom: 2rem;
    }
    
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .hero-section .lead {
        font-size: 1.1rem;
    }
}
