
.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;
}

.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 */
    }
}






/* Services Hero Section */
.hero-section {
    position: relative;
    height: 50vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--white);
    overflow: hidden;
    padding-top: 70px; /* Offset for the navigation */
}

.hero-section video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-content h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--goldish-orange);
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    font-size: 1rem;
    text-transform: uppercase;
    color: var(--white);
    background-color: var(--goldish-orange);
    border: none;
    border-radius: 7px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.hero-btn:hover {
    background-color: var(--white);
    color: var(--goldish-orange);
    border: 1px solid var(--goldish-orange);
}

/* Navigation Bar */
.hero-nav {
    position: absolute;
    top: 2%;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
    z-index: 3;
}

.hero-logo {
    width: 220px; /* Adjust the size of the logo */
    height: auto;
}

.nav-menu {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    background: #222;
    border-radius: 8px;
    padding: 0.5rem 1rem;
}

.nav-menu a {
    position: relative;
    font-size: 1em;
    color: #fff;
    text-decoration: none;
    padding: 0 15px;
    z-index: 1;
}

.nav-menu span {
    position: absolute;
    top: 0;
    left: 0;
    width: 95px;
    height: 100%;
    background: linear-gradient(45deg, #f28d1f, #1a1406);
    border-radius: 8px;
    transition: .5s ease;
}

.nav-menu a:nth-child(1):hover~span {
    left: 0;
}

.nav-menu a:nth-child(2):hover~span {
    left: 95px;
}

.nav-menu a:nth-child(3):hover~span {
    left: 189px;
    width: 110px;
}

.nav-menu a:nth-child(4):hover~span {
    left: 298px;
    width: 115px;
}

.nav-menu a:nth-child(5):hover~span {
    left: 413px;
    width: 110px;
}
/* Hamburger Menu */
.hamburger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 24px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 4;
}

.hamburger-menu span {
    width: 100%;
    height: 3px;
    background: #fff;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Open and Close States */
.hamburger-menu.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger-menu.open span:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.open span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

.nav-menu.hidden {
    transform: translateX(100%);
    display: none;
}

.nav-menu.visible {
    transform: translateX(0);
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 60px;
    right: 20px;
    background: rgba(34, 34, 34, 0.5);
    border-radius: 8px;
    padding: 1rem;
    gap: 1rem;
    width: 200px;
    z-index: 3;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        display: none; /* Initially hidden */
    }
    .hamburger-menu {
        display: flex; /* Show hamburger menu */
    }
}
@media (max-width: 768px) {
    .hero-section {
        height: 50vh; /* Adjust height for mobile */
    }

    .hero-section video {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover; /* Ensure it covers the section completely */
        z-index: 0; /* Ensure it stays behind the content */
        pointer-events: none; /* Prevent interactions with the video */
    }

    .overlay {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.6); /* Keeps the text readable with a darker overlay */
        z-index: 1; /* Sits above the video */
    }

    .hero-content {
        position: relative;
        z-index: 2; /* Ensures content stays on top */
    }
}

/* Dropdown Toggle (Arrow) */
.dropdown-toggle {
    background: none;
    border: none;
    color: white;
    font-size: 1rem;
    cursor: pointer;
    padding: 10px;
    margin-left: 5px; /* Add space between text & arrow */
}

/* 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 */
    }
}

