/* Global Styles */
body {
    margin: 0;
    font-family: 'Poppins', sans-serif;
}

html {
    scroll-behavior: smooth;
}

header, section, footer {
    max-width: auto; /* Set a maximum width */
    margin: 0 auto; /* Center align all sections */
    text-align: center;
}

/* Header */
header {
    background-color: #F5F5DC;
    color: #fff;
    padding: 20px 0;
    top: 0;
    z-index: 1000;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    height: 40px;
}

.logo-highlight {
    color: #1230ae;
}

.logo img {
    width: 150px; /* Adjust the width as needed */
    height: auto; /* Maintain aspect ratio */
    margin-top: 25px;
    margin-right: -30px;
    vertical-align: middle; /* Ensure vertical alignment */
}

.logo h3 {
    margin: 0;
    font-size: 25px;
    display: inline-block; /* Makes text behave like an inline element */
    vertical-align: middle; /* Aligns text with the middle of the image */
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Navigation */
nav {
    position: relative;
}

nav ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 20px;
}

nav ul li {
    display: inline;
}

nav ul li a {
    color: #000;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

nav ul li a:hover {
    background-color: #555;
}

/* Menu Icon for Mobile */
.menu-icon {
    display: none;
    font-size: 30px;
    cursor: pointer;
    color: #000;
}

/* Responsive Design */
@media (max-width: 768px) {
    .menu-icon {
        display: block;
    }
    
    nav ul {
        flex-direction: column;
        position: absolute;
        top: 65px;
        right: -20px;
        background-color: #fff;
        width: 300px;
        height: auto;
        display: none; /* Initially hidden */
        z-index: 1002;
        transition: height 0.3s ease;
    }

    nav ul.active {
        display: flex;
        height: 100vh;
    }

    nav ul li {
        text-align: center; /* Center-align each menu item */
        padding: 10px 0; /* Add padding for better touch targets */
    }

    nav ul li a {
        display: block;
        width: 100%;
        color: #000;
        padding: 15px 0;
        border-bottom: 1px solid #ddd; /* Add a border between menu items */
    }
}

/* About Us Section */
.about-container {
    background-color: #FFFFFF; /* Keep the background white */
    padding: 50px 20px; /* Add padding for space */
    text-align: center; /* Center-align text for a modern look */
    color: #333333; /* Dark gray text for readability */
    font-family: 'Poppins', sans-serif; /* Modern and fun font */
}

.about-container h2 {
    font-size: 2.5rem; /* Large, bold heading */
    margin-bottom: 20px; /* Space below heading */
    color: #1230ae; /* Use the brand color for the heading */
    text-transform: uppercase; /* Uppercase for a bold statement */
}

.about-container p {
    font-size: 1.1rem; /* Slightly larger font for easy reading */
    line-height: 1.6; /* Increase line height for readability */
    margin-bottom: 30px; /* Space between paragraphs */
}

.about-container h3 {
    font-size: 2rem; /* Slightly smaller than the main heading */
    margin-top: 40px; /* Space above subheadings */
    margin-bottom: 20px; /* Space below subheadings */
    color: #1230ae; /* Consistent color theme */
    text-transform: capitalize; /* Softer text transformation */
}

.about-container p:last-of-type {
    margin-bottom: 0; /* Remove bottom margin from the last paragraph */
}

.about-container h2:hover, .about-container h3:hover {
    color: #333; /* Darken color on hover */
    transform: scale(1.05); /* Slight zoom effect */
    transition: transform 0.3s ease, color 0.3s ease;
}

/* Services Section */
.services-container {
    background-color: #f9f9f9; /* Subtle shade */
    color: #333; /* Dark text color for readability */
    padding: 60px 20px;
    text-align: center;
}

.services-content h2 {
    font-size: 2.5rem;
    margin-bottom: 40px;
    color: #1230ae;
    transition: color 0.3s ease, transform 0.3s ease;
}

.services-content h2:hover {
    color: #333; /* Darken color on hover */
    transform: scale(1.05); /* Slight zoom effect */
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* Responsive grid layout */
    gap: 20px;
    margin-top: 30px;
}

.services-card {
    background-color: #ffffff;
    perspective: 1000px; /* Enables 3D space for flip effect */
    overflow: hidden;
    height: 350px; /* Fixed height to ensure proper display */
}

.services-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

.services-card:hover .services-card-inner {
    transform: rotateY(180deg);
}

.service-card-front, .service-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
    box-sizing: border-box;
}

.service-card-front {
    background-color: #ffffff;
    z-index: 2;
    border: 1px solid #1230ae;
}

.service-card-back {
    background-color: #1230ae;
    color: #ffffff;
    transform: rotateY(180deg);
}

.service-card-front img {
    width: 100%;
    height: 200px; /* Set a fixed height */
    object-fit: cover; /* Ensures the image covers the container */
    border-radius: 10px;
}

.service-card-back h3, .service-card-back p {
    color: #ffffff;
    margin: 0; /* Remove default margin for better alignment */
}

.service-card-back h3 {
    margin-top: 20px;
}

.service-card-back p {
    margin-top: 10px;
    padding: 0 10px; /* Add padding for better readability */
    text-align: center;
}

/* Responsive Design */
@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr; /* Stacks services cards vertically on smaller screens */
        gap: 15px;
    }

    .services-container {
        padding: 40px 15px; /* Adjust padding for smaller screens */
    }
}

/* Portfolio Section */
.portfolio-container {
    padding: 3rem 1rem;
    text-align: center;
}

.portfolio-container h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: #1230ae;
}

/* Portfolio Grid */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.portfolio-item {
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.portfolio-item img:hover {
    transform: scale(1.05);
}

.portfolio-container h2:hover {
    color: #333; /* Darken color on hover */
    transform: scale(1.05); /* Slight zoom effect */
    transition: transform 0.3s ease, color 0.3s ease;
}

/* Showcase Section Styles */
#showcase-container {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    color: #000;
    text-align: left;
    padding: 0 20px;
    box-sizing: border-box;
    z-index: 1;
    padding-left: 40px;
    overflow: hidden; /* Ensures video doesn’t overflow */
}

#showcase-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures video covers the entire section */
    z-index: -1; /* Places the video behind the content */
    opacity: 0.45; /* Adjust opacity if you want the video to be dimmer */
}

.showcase-content {
    position: relative;
    z-index: 2; /* Ensures content appears above the video */
}

#showcase-container h1 {
    margin: 0;
    font-size: 3em;
    line-height: 1.2;
}

#showcase-container p {
    margin-top: 10px;
    font-size: 1.3em;
    line-height: 1.5;
    max-width: 600px;
}

#showcase-container button {
    margin-top: 10px;
    background-color: #1230ae;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 150ms cubic-bezier(0.4, 0, 0.2, 1);
}

#showcase-container button:hover {
    background-color: #333;
}

/* Social Media Icons Styling */
.social-media-icons {
    position: absolute; /* Position relative to the nearest positioned ancestor */
    bottom: 20px; /* Distance from the bottom of the showcase section */
    right: 20px; /* Distance from the right side of the showcase section */
    display: flex;
    gap: 15px;
    z-index: 1;
}

.social-media-icons a {
    font-size: 1.5rem;
    color: #000; /* White color for the icons */
    transition: color 0.3s ease, transform 0.3s ease;
}

.social-media-icons a:hover {
    color: #1230ae; /* Change color on hover */
    transform: scale(1.1); /* Slight zoom effect on hover */
}

/* Contact Section Styling */
.contact-container {
    background-color: #f9f9f9;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Three equal columns */
    gap: 2rem; /* Space between columns */
    align-items: start; /* Align items to the start of the grid */
}

.contact-info {
    grid-column: 1 / span 1;
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    align-items: center; /* Vertically aligns text with icon */
    margin-bottom: 15px; /* Space between contact items */
    gap: 10px; /* Space between icon and text */
}

.contact-item a {
    display: flex;
    align-items: center; /* Vertically align the icon and text inside the link */
    text-decoration: none; /* Remove underline from link */
    color: #333; /* Text color */
}

.contact-item img {
    width: 35px; /* Icon size */
    height: auto;
    margin-right: 10px;
}

.contact-item span {
    font-size: 18px; /* Adjust the font size */
    color: #333; /* Text color */
}

.contact-item a:hover span {
    color: #1230ae; /* Change color on hover */
}

.contact-item a:hover img {
    transform: scale(1.1); /* Slight zoom on icon hover */
    transition: transform 0.2s ease-in-out;
}

.form-container {
    background-color: #ffffff;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    grid-column: 2 / span 1;
}

/* Form CSS */
.input-group {
    font-size: 0.8rem;
    text-align: left;
    margin-bottom: 1.5rem;
}

/* Label styling: place the label above the input field */
.label {
    display: block;
    text-align: left;
    margin-bottom: 0.3rem;
    font-size: 1.2rem;
    color: #333; /* Darker color for readability */
}

.input, .select {
    all: unset;
    color: #333;
    padding: 1rem;
    border: 1px solid #9e9e9e;
    border-radius: 10px;
    transition: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;
    box-sizing: border-box;
    background-color: #f5f5f5;
    cursor: pointer;
}

/* Focused input style */
.input:focus, .select:focus {
    border: 1px solid #1230ae;
}

/* Specifically for the select field */
.select {
    appearance: none;
}

/* Styling the button */
.button {
    background-color: #1230ae;
    color: white;
    border: none;
    width: 100%;
    padding: 0.75rem 1.5rem;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 150ms cubic-bezier(0.4, 0, 0.2, 1);
}

.button:hover {
    background-color: #333;
}

/* Option Styling */
select.input option[value=""] {
    display: none; /* Hide placeholder option */
}

.contact-map {
    margin-top: 20px;
    width: 100%;
    height: 450px; /* Adjust height as needed */
    grid-column: 3 / span 1;
}

.contact-map iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.contact-container h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: #1230ae;
}

.contact-container h2:hover {
    color: #333; /* Darken color on hover */
    transform: scale(1.05); /* Slight zoom effect */
    transition: transform 0.3s ease, color 0.3s ease;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .contact-grid {
        grid-template-columns: repeat(2, 1fr); /* Two columns on medium screens */
        grid-template-rows: auto auto; /* Allows map to take up space if needed */
    }

    .form-container {
        grid-column: span 2; /* Form takes full width on medium screens */
    }

    .contact-map {
        grid-column: span 2; /* Map takes full width on medium screens */
    }
}

@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr; /* Stack all items in a single column on small screens */
    }

    .contact-map {
        margin-top: 20px;
    }
}

/* footer style */
footer {
    display: flex;
    justify-content: space-between; /* Distributes space between the text and icons */
    align-items: center; /* Vertically centers the content */
    background-color: #f5f5dc;
    padding: 20px;
    color: #333;
}

footer p {
    margin: 0;
    font-size: 1rem;
    text-align: center;
    flex: 1; /* Allows the text to take up available space and stay centered */
}

.social-media-icons-footer {
    display: flex;
    gap: 15px;
}

.social-media-icons-footer a {
    font-size: 1.1rem;
    color: #333;
    transition: color 0.3s ease, transform 0.3s ease;
}

.social-media-icons-footer a:hover {
    color: #1230ae;
    transform: scale(1.1);
}

/* Back to Top Button Styling */
.back-to-top {
    position: fixed;
    bottom: 45px;
    right: 15px;
    width: 25px;
    height: 25px;
    background-color: #1230ae; /* Change to your website's color */
    color: #fff;
    font-size: 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1; /* Ensure the arrow is not affected by line height */
    padding: 0; /* Remove any padding */
}

.back-to-top.show {
    opacity: 0.85;
    visibility: visible;
}

.back-to-top:hover {
    background-color: #333;
    color: #1230ae; /* Change to your website's color */
}

.badge-container {
    position: absolute;
    top: 30px; /* Position from the top */
    right: 30px; /* Position from the right */
    z-index: 1000; /* Ensure it stays above other elements */
}

.badge {
    position: relative;
    width: 70px; /* Smaller size */
    height: 70px; /* Smaller size */
    background-color: #1230ae; /* Badge color */
    border-radius: 50%; /* Make the badge round */
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.badge:before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 110px; /* Adjusted size */
    height: 110px; /* Adjusted size */
    border-radius: 50%;
    background: repeating-radial-gradient(circle, #1230ae, #1230ae 8px, transparent 10px, transparent 12px);
    transform: translate(-50%, -50%);
    z-index: -1;
}

.badge:after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    border: 2px solid #ffffff; /* White line inside the circle */
    transform: translate(-50%, -50%);
}

.badge-text {
    color: #ffffff;
    font-size: 0.7rem; /* Smaller text */
    font-weight: bold;
    text-align: center;
    z-index: 1;
    padding: 0 5px; /* Adjusted padding */
}

/* Modal Styling */
.modal {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 9999;
    padding-top: 60px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
}

.modal-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
}

.close {
    position: absolute;
    top: 20px;
    right: 25px;
    color: #fff;
    font-size: 35px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: #bbb;
}

/* Navigation arrows modal*/
.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    padding: 16px;
    color: white;
    font-weight: bold;
    font-size: 30px;
    user-select: none;
    transition: 0.3s;
}

.prev {
    left: 10px;
    transform: translateY(-50%);
}

.next {
    right: 10px;
    transform: translateY(-50%);
}

/* Hover effects for arrows */
.prev:hover, .next:hover {
    background-color: rgba(0, 0, 0, 0.8);
    color: #bbb;
}

/* reviews */
.reviews-container {
    margin-top: 40px;
    text-align: center;
    width: 100%;
}

.reviews-slideshow {
    position: relative;
    max-width: 100%;
    margin: 0 auto;
    overflow: hidden;
}

.slide {
    display: none;
    width: 100%;
    padding: 20px;
    background-color: #f5f5f5;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    box-sizing: border-box;
    height: 150px;
}

.active {
    display: block;
}

.review-text {
    font-size: 18px;
    color: #333;
    margin-bottom: 10px;
    word-wrap: break-word;
}

.review-author {
    font-weight: bold;
    color: #555;
}

.slideshow-controls {
    margin-top: 10px;
}

.slideshow-controls .prev-slide, 
.slideshow-controls .next-slide {
    cursor: pointer;
    font-size: 24px;
    color: #333;
    padding: 10px;
    user-select: none;
}

.slideshow-controls .prev-slide:hover, 
.slideshow-controls .next-slide:hover {
    color: #000;
}
