:root {
    --white: #ffffff;
    --goldish-orange: #f28d1f;
    --dark-bg: #1a1a1a;
    --overlay-dark: rgba(0, 0, 0, 0.7);
}

/* Navigation Bar - Creative Style */
.hero-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(242, 141, 31, 0.2);
    z-index: 1000;
    transition: all 0.3s ease;
}

.hero-nav.scrolled {
    background: rgba(26, 26, 26, 0.98);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.hero-logo {
    width: 200px;
    height: auto;
    transition: transform 0.3s ease;
}

.hero-logo:hover {
    transform: scale(1.05);
}

/* Creative Navigation Menu */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
    background: rgba(34, 34, 34, 0.8);
    border-radius: 30px;
    padding: 0.8rem 2rem;
    border: 1px solid rgba(242, 141, 31, 0.3);
    backdrop-filter: blur(10px);
    position: relative;
}

.nav-menu::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(242, 141, 31, 0.1), rgba(26, 20, 6, 0.1));
    border-radius: 30px;
    z-index: -1;
}

.nav-menu a {
    position: relative;
    font-size: 1rem;
    font-weight: 500;
    color: var(--white);
    text-decoration: none;
    padding: 0.8rem 1.2rem;
    border-radius: 20px;
    transition: all 0.3s ease;
    z-index: 1;
}

.nav-menu a:hover {
    color: var(--goldish-orange);
    background: rgba(242, 141, 31, 0.1);
    transform: translateY(-2px);
}

/* Dropdown Styles */
.dropdown {
    position: relative;
    display: flex;
    align-items: center;
}

.nav-link {
    color: white;
    text-decoration: none;
    padding: 0.8rem 1.2rem;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.nav-link:hover {
    color: var(--goldish-orange);
    background: rgba(242, 141, 31, 0.1);
    transform: translateY(-2px);
}

.dropdown-toggle {
    background: none;
    border: none;
    color: white;
    font-size: 1rem;
    cursor: pointer;
    padding: 0.8rem;
    margin-left: 0.5rem;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.dropdown-toggle:hover {
    background: rgba(242, 141, 31, 0.2);
    transform: rotate(180deg);
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 120%;
    left: 0;
    background: rgba(34, 34, 34, 0.95);
    backdrop-filter: blur(15px);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    min-width: 200px;
    border: 1px solid rgba(242, 141, 31, 0.3);
    z-index: 1000;
    flex-direction: column;
    overflow: hidden;
}

.dropdown-menu a {
    color: white;
    padding: 1rem 1.5rem;
    display: block;
    text-align: left;
    text-decoration: none;
    transition: all 0.3s ease;
    border-radius: 0;
}

.dropdown-menu a:hover {
    background: linear-gradient(45deg, rgba(242, 141, 31, 0.2), rgba(26, 20, 6, 0.2));
    color: var(--goldish-orange);
    transform: translateX(5px);
}

.dropdown:hover .dropdown-menu {
    display: flex;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hamburger Menu */
.hamburger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 35px;
    height: 30px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 4;
    padding: 5px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.hamburger-menu:hover {
    background: rgba(242, 141, 31, 0.1);
}

.hamburger-menu span {
    width: 100%;
    height: 3px;
    background: var(--goldish-orange);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger-menu.open span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.hamburger-menu.open span:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.open span:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
}

.nav-menu.hidden {
    transform: translateX(100%);
    display: none;
}

.nav-menu.visible {
    transform: translateX(0);
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 70px;
    right: 20px;
    background: rgba(34, 34, 34, 0.95);
    backdrop-filter: blur(15px);
    border-radius: 15px;
    padding: 1.5rem;
    gap: 1rem;
    width: 250px;
    border: 1px solid rgba(242, 141, 31, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    z-index: 3;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-nav {
        padding: 1rem;
    }

    .nav-menu {
        display: none;
    }

    .hamburger-menu {
        display: flex;
    }

    .hero-logo {
        width: 160px;
    }

    .dropdown-menu {
        min-width: 180px;
        left: -50px;
    }
}

@media (max-width: 480px) {
    .hero-logo {
        width: 140px;
    }

    .nav-menu.visible {
        width: 220px;
        right: 10px;
    }
}

.services-section {
    padding: 4rem 1rem;
    background-color: var(--white);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: var(--goldish-orange);
    margin-bottom: 2rem;
}

.headings {
color: var(--goldish-orange);
    margin-top: 120px;
    margin-bottom: 20px;
    text-align: center;
    font-size: 1.7rem;
    margin-bottom: 2rem;
    color: #f28d1f;

}

.services-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    justify-items: center;
}


/* Service Cards Styling */
.service-card {
    position: relative;
    width: 380px;
    height: 300px;
    perspective: 1000px;
    /* Enables 3D effect */
    border-radius: 10px;
    overflow: hidden;
}

/* Front and Back of the Card */
.card-front,
.card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 10px;
    transition: transform 0.5s ease;
}

/* Front of the Card */
.card-front {
    background-color: var(--goldish-orange);
    color: var(--white);
    display: flex;
    flex-direction: column;
    align-items: left;
    justify-content: center;
    text-align: left;
    padding: 1.5rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);

}

.card-front ul {
    text-align: left;
    /* Aligns text to the left */
    padding-left: 0.9rem;
    /* Ensures proper indentation */
    margin: 0;
    /* Removes extra margin */
    list-style-position: inside;
    /* Ensures bullets are close to text */
    font-size: 0.9rem;
}

.card-front p {
    font-size: 0.9rem;
    font-weight: bold;
}


/* Arrow for flip indication */
.flip-arrow {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background-color: rgba(0, 0, 0, 0.3);
    color: white;
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    /* Always visible by default */
    align-items: center;
    gap: 6px;
    transition: opacity 0.3s ease;
}

.flip-arrow::before {
    content: "Tap to flip";
    font-size: 14px;
    font-weight: 500;
}

/* Hide flip arrow when card is being hovered on desktop */
@media (min-width: 769px) {
    .service-card:hover .flip-arrow {
        opacity: 0;
    }
}

/* Card Back Styling */
.card-back {
    transform: rotateY(180deg);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    overflow: hidden;
    background-color: var(--black);
    position: relative;
    line-height: 0;
}

.card-back img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 10px;
    filter: brightness(0.7);
    transition: filter 0.3s ease;
}




.card-back:hover img {
    filter: brightness(0.9);
}

/* Button Styling */
.get-a-quote-btn {
    position: absolute;
    bottom: 10%;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--goldish-orange);
    color: var(--white);
    text-decoration: none;
    padding: 0.8rem 2rem;
    border-radius: 15px;
    font-size: 1rem;
    font-weight: bold;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    white-space: nowrap;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.get-a-quote-btn:hover {
    background-color: var(--white);
    color: var(--goldish-orange);
    transform: translate(-50%, -5px);
}

/* Card Flip on Hover (Desktop) */
.service-card:hover .card-front {
    transform: rotateY(180deg);
}

.service-card:hover .card-back {
    transform: rotateY(0);
}


@media (max-width: 1024px) {
    .services-container {
        grid-template-columns: repeat(2, 1fr);
        /* Show 2 cards per row */
    }

    .service-card {
        width: 320px;
        /* Slightly smaller for medium screens */
        height: 280px;
    }
}



/* For Mobile - Tap to Flip */
@media (max-width: 768px) {

    .services-container {
        grid-template-columns: 1fr;
        /* Stack cards in a single column */
    }

    .service-card {
        width: 90%;
        /* Make cards take most of the screen width */
        height: 320px;
        /* Adjust height dynamically */
    }

    /* Disable hover effect on mobile */
    .service-card:hover .card-front {
        transform: rotateY(0);
    }

    /* Add tap functionality to flip */
    .service-card.flipped .card-front {
        transform: rotateY(180deg);
    }

    .service-card.flipped .card-back {
        transform: rotateY(0);
    }

    .flip-arrow i {
        font-size: 16px;
    }
}

/* Responsive Grid for Cards */
@media (max-width: 480px) {
    .services-container {
        grid-template-columns: 1fr;
    }

    .service-card {
        width: 100%;
        height: 350px;
        /* Full width for very small screens */
    }
}







/* Section Styling */
.partners-section {
    text-align: center;
    padding: 2rem 1rem;
    background-color: #f9f9f9;
}

.partners-section h2 {
    margin-bottom: 2rem;
    font-size: 2rem;
    color: #333;
    text-transform: uppercase;
    font-weight: bold;
}


/* Slider Styling */
.partners-slider {
    position: relative;
    overflow: hidden;
    width: 90vw;
    max-width: 1200px;
    margin: 0 auto;
}

.partners-track {
    display: flex;
    gap: 2rem;
    animation: scroll 10s linear infinite;
    flex-wrap: nowrap;
    /* Prevent images from wrapping */
    width: fit-content;
    /* Adjust the width of the track to fit the images */

}

.partners-slider img {
    width: 150px;
    height: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.partners-slider img:hover {
    transform: scale(1.1);
    /* Slight zoom on hover */
}

/* Keyframes for smooth scrolling */
@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Mobile Specific Adjustments */
@media (max-width: 768px) {
    .partners-slider {
        padding: 1rem 0;
        /* Optional: Add padding to the sides */
    }

    .partners-track {
        animation: scroll 10s linear infinite;
        /* Faster animation for mobile */
        width: fit-content;
        /* track width fits all images */
    }

    .partners-slider img {
        width: 100px;
        /* Make the images smaller on mobile */
        margin: 0 10px;
        /* Add some spacing between images */
    }
}