@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');

:root {
    --primary-color: #005a9e;
    --secondary-color: #f8f9fa;
    --dark-color: #343a40;
    --light-color: #ffffff;
    --shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

body.light-mode {
    --primary-color: #005a9e;
    --secondary-color: #005a9e;
    /* Blue background for navbar */
    --dark-color: #343a40;
    --light-color: #F5F5F5;
    /* Elegant light grey */
    background-color: var(--light-color);
    color: var(--dark-color);
}

body.dark-mode {
    --primary-color: #005a9e;
    --secondary-color: #000000;
    --dark-color: #f8f9fa;
    --light-color: #343a40;
    background-color: #121212;
    color: #f1f1f1;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
    background-color: var(--light-color);
    transition: background-color 0.3s ease, color 0.3s ease;
    overflow-x: hidden;
}

.hero-section.light-mode {
    background-image: url('./HERO PAGE/DAY LIGHT.png');
    color: #ffffff;
}

.hero-section.dark-mode {
    background-image: url('./HERO PAGE/HERO IMAGE.png');
}

.theme-switch-wrapper {
    position: fixed;
    bottom: 40px;
    left: 40px;
    z-index: 100;
}

.theme-switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

.theme-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

#header-logo {
    height: 80px;
    /* Standard size for logo */
    width: auto;
    /* Maintain aspect ratio */
}

@media (max-width: 768px) {
    #header-logo {
        height: 60px;
        /* Smaller height for tablets and smaller */
    }
}

@media (max-width: 480px) {
    #header-logo {
        height: 40px;
        /* Even smaller for small phones */
    }
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 34px;
}

/* Hover effect for the toggle switch */
.theme-switch:hover .slider {
    transform: scale(1.1);
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.6);
    /* Gold glow */
}

.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked+.slider {
    background-color: #000000;
    /* Black background in dark mode */
}

input:checked+.slider:before {
    transform: translateX(26px);
}

.slider .sun-icon {
    position: absolute;
    left: 6px;
    top: 50%;
    transform: translateY(-50%);
    color: #f39c12;
    font-size: 18px;
    /* Increased size */
    transition: opacity 0.3s;
    animation: blink-animation 2s infinite;
    z-index: 1;
    /* Ensure icon appears above slider */
}

.slider .moon-icon {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    color: #f1c40f;
    font-size: 18px;
    /* Match sun icon size */
    transition: opacity 0.3s;
    animation: blink-animation 2s infinite 1s;
    /* Staggered blink */
    z-index: 1;
    /* Ensure icon appears above slider */
}

/* Hide the icon that is currently active/covered by the knob to avoid visual clutter or keep them both visible? 
   Usually, the knob covers the "current" state. 
   If unchecked (Light): Knob is Left. Covers Sun? 
   Let's adjust positioning. Knob width 26px. Switch width 60px.
   Left pos: 4px. Right pos: 4px.
   If Knob is Left (4px), it covers from 4px to 30px.
   Sun at left: 6px. It will be covered.
   Moon at right: 6px from right. Visible.
   
   If Checked (Dark): Knob is Right (translateX 26px -> left becomes 30px). Covers 30px to 56px.
   Moon at right: 6px from right (approx 54px). It will be covered.
   Sun at left: Visible.
*/

@keyframes blink-animation {

    0%,
    100% {
        opacity: 1;
        transform: translateY(-50%) scale(1);
    }

    50% {
        opacity: 0.5;
        transform: translateY(-50%) scale(0.8);
    }
}



#theme-name {
    font-size: 1rem;
    font-weight: 500;
}



/* Add this rule for light mode */
body.light-mode .navbar-brand img {
    filter: invert(0);
}

/* Remove the old navbar gradient */
.navbar::before {
    display: none;
}

.navbar-brand {
    padding: 5px 10px;
    /* Add some padding */
    border-radius: 10px;
    /* Rounded corners */
}

body.light-mode .navbar-brand {
    background-color: transparent;
    /* No background in light mode */
}

body.dark-mode .navbar-brand {
    background-color: transparent;
    /* No background in dark mode, rely on text color */
}

body.dark-mode .modal-content {
    background-color: #2d2d2d;
    color: #f1f1f1;
}


body.dark-mode .modal-header,
body.dark-mode .modal-footer {
    background-color: #3a3a3a;
    border-bottom-color: #4a4a4a;
    border-top-color: #4a4a4a;
}

body.dark-mode .list-group-item {
    background-color: #3a3a3a;
    border-color: #4a4a4a;
    color: #f1f1f1;
}

body.dark-mode .btn-close {
    filter: invert(1);
}


h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 600;
}

.navbar {
    background-color: var(--secondary-color);
    /* Changed to secondary-color which is dark in dark mode */
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--dark-color);
    /* Changed to dark-color which is light in dark mode */
}

@media (max-width: 768px) {
    .navbar-brand {
        font-size: 1rem;
        /* Reduce font size on smaller screens */
        gap: 5px;
        /* Reduce gap between logo and text */
    }
}

/* For extra small devices (phones) */
@media (max-width: 480px) {
    .navbar-brand {
        gap: 8px;
        align-items: center;
        /* Vertically center logo with wrapped text */
    }

    .navbar-brand-text {
        font-size: 0.9rem;
        line-height: 1.2;
        white-space: normal;
        /* Allow text to wrap */
        flex-basis: 70%;
        /* Give it a flexible width to wrap */
    }
}

body.light-mode .navbar-brand {
    color: #ffffff;
    /* White text for navbar brand in light mode */
}

.navbar-brand:hover {
    color: var(--primary-color);
    /* Use primary color for hover in both modes */
}

/* Dark Mode Override for Quote List Button */
body.dark-mode .navbar .btn-primary {
    background-color: #000000 !important;
    border-color: #000000 !important;
    color: #ffffff !important;
}

body.dark-mode .navbar .btn-primary:hover {
    background-color: #333333 !important;
    border-color: #333333 !important;
}

.nav-link {
    font-weight: 400;
    transition: color 0.3s ease;
    color: var(--dark-color);
    /* Changed to dark-color which is light in dark mode */
}

body.light-mode .nav-link {
    color: #ffffff;
    /* White text for nav links in light mode */
}

.nav-link:hover {
    color: var(--primary-color);
    /* Use primary color for hover in both modes */
}

.navbar-dark .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, 0.75)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

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

.btn-primary:hover {
    background-color: #004175;
    border-color: #004175;
    transform: translateY(-2px);
}

.hero-section {
    background: url('./HERO PAGE/HERO IMAGE.png') no-repeat center center;
    background-size: cover;
    background-attachment: fixed;
    /* Added for sticky/parallax effect */
    padding: 100px 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    animation: pan-right-to-left 20s infinite alternate ease-in-out;
}

@media (max-width: 768px) {
    .hero-section {
        background-attachment: scroll;
        /* Disable parallax on mobile for performance */
        padding: 60px 0;
        /* Reduce padding on smaller screens */
        overflow: hidden;
        /* Contain child animations and prevent overflow */
    }
}

body.light-mode #services {
    background-color: #f4f4f4;
    /* Light gray for an elegant look */
}

body.dark-mode #services {
    background-color: #1a1a1a;
    /* Very dark grey */
}

body.light-mode .service-card {
    background-color: #f0f8ff;
    /* AliceBlue background for service cards in light mode */
    box-shadow: 0 4px 10px rgba(0, 90, 158, 0.1);
    /* Subtle blue shadow in light mode */
}

body.light-mode .service-card:hover {
    box-shadow: 0 8px 15px rgba(0, 90, 158, 0.15);
    /* Slightly more pronounced blue shadow on hover in light mode */
}

body.light-mode .service-card .card-title {
    color: #005a9e;
    /* Use primary color for titles in light mode */
    text-shadow: none;
    /* No text glow in light mode */
}

body.light-mode .service-card-icon {
    color: #005a9e;
    /* Use primary color for icons in light mode */
    text-shadow: none;
    /* No icon glow in light mode */
}

body.light-mode .service-card button.btn-primary {
    background-color: #005a9e;
    /* Blue button in light mode */
    border-color: #005a9e;
    color: #ffffff;
    /* White text for blue button */
    box-shadow: none;
    /* No glow effect in light mode */
}

body.light-mode .service-card button.btn-primary:hover {
    background-color: #004175;
    /* Slightly darker blue on hover */
    border-color: #004175;
    color: #ffffff;
    box-shadow: none;
    /* No glow effect on hover in light mode */
}

.service-card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.3), var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}

body.dark-mode .service-card {
    background-color: #000000;
    /* Black background for service cards in dark mode */
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 0 25px rgba(255, 215, 0, 0.5), 0 8px 30px rgba(0, 0, 0, 0.15);
    /* More pronounced glow on hover */
}

.service-card.in-viewport {
    transition-delay: var(--stagger-delay, 0s);
    /* Stagger for the card reveal itself */
}

.service-card .card-body {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.service-card .card-title {
    color: #FFD700;
    /* Lamp color */
    font-weight: 600;
    text-shadow: 0 0 5px rgba(255, 215, 0, 0.5);
    /* Title glow */
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    transition-delay: calc(var(--stagger-delay, 0s) + 0.1s);
    /* Staggered delay + slight additional delay */
}

.service-card.in-viewport .card-title {
    opacity: 1;
    transform: translateY(0);
}

.service-card .card-text {
    flex-grow: 1;
    color: #cccccc;
    /* Lighter grey for contrast */
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    transition-delay: calc(var(--stagger-delay, 0s) + 0.2s);
    /* Staggered delay + more additional delay */
}

.service-card.in-viewport .card-text {
    opacity: 1;
    transform: translateY(0);
}

.service-card-icon {
    font-size: 3rem;
    color: #FFD700;
    /* Lamp color */
    text-align: center;
    padding-top: 1.5rem;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.8);
    /* Icon glow */
    /* Initial state for animation */
    transform: scale(0);
    opacity: 0;
    transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.6s ease-out;
    /* Bounce effect */
    transition-delay: var(--stagger-delay, 0s);
    /* Staggered delay */
    transform-origin: center center;
}

/* Custom SVG Icon Styling */
.bi-paint-roller-custom {
    width: 4rem;
    height: 4rem;
    /* Inherits color from parent .service-card-icon */
}

.service-card.in-viewport .service-card-icon {
    transform: scale(1);
    opacity: 1;
}

.service-card button.btn-primary {
    /* Target specifically the button */
    background-color: #FFD700;
    border-color: #FFD700;
    color: #1a1a1a;
    /* Dark text on lamp color button */
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
    /* Button glow */
    /* Initial state for animation */
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    /* Smooth transition */
    transition-delay: calc(var(--stagger-delay, 0s) + 1s);
    /* Staggered delay */
}

.service-card button.btn-primary:hover {
    background-color: #e6c200;
    /* Slightly darker lamp color on hover */
    border-color: #e6c200;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.7);
    /* More pronounced glow on hover */
}

.service-card.in-viewport button.btn-primary {
    opacity: 1;
    transform: translateY(0);
}

#about,
#contact {
    padding: 80px 0;
}

body.light-mode #about {
    background-color: #f8f9fa;
    /* Light gray background for light mode */
}

body.dark-mode #about {
    background-color: #1a1a1a;
    /* Very dark grey background for dark mode */
    color: #f1f1f1;
    /* Light text for dark mode */
}

footer {
    padding: 20px 0;
}

html {
    scroll-behavior: smooth;
}

.modal-header,
.modal-footer {
    background-color: var(--secondary-color);
}

body.light-mode .modal-header {
    color: #ffffff;
}

body.light-mode .modal-header .btn-close {
    filter: invert(1) grayscale(100%) brightness(200%);
}

#cart-items-container .list-group-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.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 3px #999;
    z-index: 100;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    color: #FFF;
    box-shadow: 0 0 15px rgba(37, 211, 102, 0.6);
    /* Added glow for "hovering effect" */
}



/* Styles for image gallery scrolling */
.image-gallery {
    height: 350px;
    /* Fixed height for the gallery viewport */
    overflow: hidden;
    position: relative;
    border: 1px solid #ddd;
    /* Optional: for visibility */
    background-color: #f8f9fa;
    /* Optional: light background */
    display: flex;
    /* Use flexbox to manage content */
    align-items: center;
    /* Center images vertically if not enough to scroll */
    justify-content: center;
    /* Center images horizontally */
}

/* Ensure country code flags are visible */
#bookingPhoneCountryCode {
    font-family: 'Segoe UI Emoji', 'Apple Color Emoji', 'sans-serif';
}

.image-gallery .image-scroller {
    width: 100%;
    display: flex;
    flex-direction: column;
}

.image-gallery.scrolling-active .image-scroller {
    animation: scroll-up var(--scroll-duration, 20s) linear infinite;
}

.image-gallery img {
    width: 100%;
    display: block;
    object-fit: contain;
    /* Ensures images fit without cropping */
    margin-bottom: 5px;
    /* Space between images */
    flex-shrink: 0;
    /* Prevent images from shrinking */
}

@keyframes scroll-up {
    from {
        transform: translateY(0%);
    }

    to {
        transform: translateY(-50%);
    }
}

/* --- Loader Styles --- */
#loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000000;
    /* Fallback color */
    background-image: url('./LOADER IMAGE/LIMAGE2.png');
    background-repeat: no-repeat;
    background-position: 55% center;
    /* This will shift the image to the right */
    background-size: 100% auto;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    transition: opacity 1s ease, visibility 1s ease;
    animation: slow-zoom 15s infinite alternate ease-in-out;
}

#loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-logo {
    width: 600px;
    /* Adjust as needed */
    max-width: 80%;
    /* Ensure it doesn't overflow on small screens */
    height: auto;
    /* Maintain aspect ratio */
    animation: pulse 2s infinite ease-in-out;
    position: relative;
    z-index: 1;
}

@media (max-width: 768px) {

    /* For tablets and smaller */
    .loader-logo {
        width: 80vw;
        /* 80% of viewport width */
    }
}

@media (max-width: 480px) {

    /* For small phones */
    .loader-logo {
        width: 90vw;
        /* 90% of viewport width */
    }
}

.loader-title {
    color: white;
    margin-top: 20px;
    font-size: 2.5rem;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
    animation: fadeIn-slideUp 2s ease-out;
    position: relative;
    z-index: 1;
}

@media (max-width: 768px) {
    .loader-title {
        font-size: 2rem;
        text-align: center;
        /* Center the text content */
    }
}

@media (max-width: 480px) {
    .loader-title {
        font-size: 1.5rem;
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes slow-zoom {
    from {
        background-size: 100% auto;
    }

    to {
        background-size: 110% auto;
    }
}

/* Media query for mobile loader background */
@media (max-width: 768px) {
    #loader {
        background-image: url('./LOADER IMAGE/LIMAGE2.png') !important;
        background-position: center center !important;
        background-repeat: no-repeat !important;
        background-size: cover !important;
        animation: none !important;
        /* Force disable animation */
    }

    .loader-title {
        color: white;
        /* Ensure title is visible on image */
    }
}

@keyframes fadeIn-slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pan-right-to-left {
    from {
        background-position: 100% center;
    }

    to {
        background-position: 0% center;
    }
}

/* Custom styles for hero section elements positioning */
.hero-section .container p.lead {
    margin-top: 50px;
    /* Adjust as needed to move the wording down */
}

.hero-section .container .btn {
    margin-top: 20px;
    /* Adjust as needed to move the button down */
}

#hero-tagline {
    transition: opacity 0.5s ease-in-out;
    opacity: 1;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    /* Dark shadow for white text visibility */
}

/* Scrolling Icons Animation */
.scrolling-icons-container {
    position: absolute;
    bottom: 50px;
    left: 0;
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .scrolling-icons-container {
        bottom: 15px;
        /* Lower the icons on mobile */
    }
}

.scrolling-icons {
    display: inline-block;
    animation: scroll-left-to-right 20s linear infinite;
}

.scrolling-icon {
    display: inline-block;
    width: 80px;
    height: 80px;
    margin: 0 40px;
}

@media (max-width: 768px) {
    .scrolling-icon {
        width: 60px;
        height: 60px;
        margin: 0 20px;
    }
}

@media (max-width: 480px) {
    .scrolling-icon {
        width: 40px;
        height: 40px;
        margin: 0 10px;
    }
}

@keyframes scroll-left-to-right {
    0% {
        transform: translateX(0%);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* --- Mobile Navbar: No-Collapse Two-Row Override --- */
@media (max-width: 991.98px) {
    .navbar-toggler {
        display: none;
        /* Hide hamburger */
    }

    /* Make the container a wrapping flexbox */
    .navbar .container {
        flex-wrap: wrap;
        justify-content: space-between;
        /* Space between brand and switch */
        align-items: center;
    }

    /* The main nav items are on the second row */
    .navbar-collapse {
        display: flex !important;
        justify-content: center;
    }

    .navbar-nav {
        flex-direction: row;
        align-items: center;
        /* Align links and cart button vertically */
    }

    /* Reduce font and padding to fit nav links and cart */
    .navbar-nav .nav-link {
        font-size: 0.8rem;
        padding: 0.3rem 0.3rem;
    }

    .navbar-collapse .btn {
        /* Target cart button */
        font-size: 0.8rem;
        padding: 0.3rem 0.4rem;
        margin-left: 0.4rem !important;
    }
}

/* Styles for Service Booking Modal Background */
body.light-mode #serviceBookingModal .modal-content {
    background-color: #E8F5E9;
    /* Light Green */
}

body.dark-mode #serviceBookingModal .modal-content {
    background-color: #556B2F;
    /* Military Green */
    color: #f1f1f1;
    /* Ensure text is readable */
}