/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display+SC:wght@400;700&family=Raleway&family=Readex+Pro:wght@160..700&family=Space+Mono&display=swap');

/* General Reset */
* {
    margin: 0;
    padding: 0;
    border: 0;
    box-sizing: border-box;
}

/* Body Styling */
body {
    background-color: white;
    letter-spacing: 2px;
    font-family: 'Space Mono', monospace;
    overflow-x: hidden;
}

/* Header Styling */
header {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
    font-size: 1rem;
    background-color: transparent;
}

/* Logo Button Styling */
.logo button a {
    position: absolute;
    font-family: 'Space Mono', monospace;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    top: 50px;
    left: 50%;
    transform: translate(-50%, -50%);
    color: black;
    font-size: 2.5rem;
    z-index: 5;
    width: 175px;
}

img[alt="logo"] {
    margin-top: 125px;
    width: 250px;
}

/* Navigation Styling */
nav ul {
    display: flex;
    flex-direction: row;
    position: absolute;
    list-style: none;
    right: 0;
}

nav ul li {
    margin: 25px 70px 10px 0;
}

nav ul li a {
    color: black;
    text-decoration: none;
    text-transform: capitalize;
    font-size: 1rem;
}

nav ul li a:hover {
    border-bottom: 2px solid black;
}

/* Mobile Navigation (default hidden) */
.mobile-nav {
    display: none;
}

/* Dropdown Menu Styling */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropbtn {
    background-color: transparent;
    border: none;
    cursor: pointer;
    font-family: 'Space Mono', monospace;
    text-transform: capitalize;
    color: black;
    font-size: 1rem;
}

.dropdown-content {
    display: none; /* Hide by default */
    position: absolute;
    top: 100%; /* Position below the button */
    left: 0;
    background-color: #aaa;
    padding: 10px; /* Add some padding */
    border-radius: 5px; /* Rounded corners */
    z-index: 1; /* Ensure it appears above other content */
}

/* Show dropdown content when .show class is added */
.dropdown-content.show {
    display: block;
    position: absolute;
    top: 150%; /* Position below the button */
    left: 0;
    background-color: #aaa;
    padding: 10px; /* Add some padding */
    min-width: 300px; /* Ensure a minimum width */
    border-radius: 5px; /* Rounded corners */
    z-index: 1; /* Ensure it appears above other content */
}

.dropdown-content a {
    display: block;
    padding: 8px 12px; /* Add padding for easier clickability */
    text-decoration: none;
    color: #212121;
    font-size: 1rem;
    border-radius: 3px; /* Slightly rounded corners for links */
}

/* Change link color on hover */
.dropdown-content a:hover {
    background-color: #f0f0f0; /* Light gray background on hover */
    color: #000; /* Darker text color on hover */
}

/* Media Query for Mobile */
@media (max-width: 1400px) {
    header {
        height: 175px;
    }    
    nav ul {
        display: none;
    }
    .mobile-nav {
        display: block;
    }
    .dropdown-content {
        position: static; /* Adjust positioning for mobile */
        box-shadow: none;
    }
    img[alt="logo"] {
        margin-top: 50px;
        width: 200px;
    }
}

/* Mobile-specific styles for dropdown */
@media (max-width: 1400px) {
    .dropdown-content {
        display: none; /* Ensure dropdown is hidden by default */
        background-color: #aaa;
        position: absolute;
        width: 100%;
        z-index: 10;
        left: 0;
        top: 100%;
        width: 100%;
        padding: 10px;
    }

    .dropdown-content a {
        padding: 10px;
        display: block;
        text-align: left;
    }

    .dropdown-content a:hover {
        background-color: #ddd;
    }

    .dropdown.show .dropdown-content {
        display: block; /* Display dropdown content when 'show' class is added */
    }
    .dropdown-content.show {
        position: absolute;
        background-color: #aaa;
        top: 100%; /* Position below the button */
        background-color: transparent;
        padding: 10px; /* Add some padding */
        z-index: 1; /* Ensure it appears above other content */
    }
}

.about-hero {
    color: black;
    text-align: left;
    padding: 80px 20px;
    position: relative;
}

.about-hero-content {
    max-width: 80%;
    margin-left: 10vw;
    margin-right: auto;
}

.about-hero h1 {
    font-size: 1.25rem;
    margin-bottom: 20px;
    position: relative;
}

.about-hero p {
    margin-right: 20vw;
    font-size: 4rem;
    font-weight: bold;
}

.team {
    margin-top: 10vh;
    padding: 40px 20px;
    background-color: white;
    text-align: center;
    overflow-x: hidden;
}

.team h2 {
    font-size: 2.5em;
    margin-bottom: 20px;
}

.team-members {
    margin-top: 10vh;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.team-member {
    max-width: 300px;
    margin: 20px;
    text-align: left;
}

.team-member img {
    width: 125px;
    height: auto;
    border-radius: 12px;
}

.team-member h3 {
    font-size: 1.5em;
    margin: 10px 0;
}

.team-member p {
    font-size: 1em;
    color: #666;
}

.mission {
    margin-top: 10vh;
    max-width: 80%;
    margin-left: 10vw;
    margin-right: auto;
}

.mission p {
    font-size: 1rem;
    line-height: 1.5;
}

.footer-first {
    background-color: black;
    color: #fff;
    text-align: center;
    padding: 20px;
    position: fixed;
    width: 100%;
    bottom: 0;
}

/* Media Queries for Mobile Responsiveness */
@media (max-width: 768px) {
    .about-hero-content {
        max-width: 80%;
        margin-left: 10%;
    }

    .about-hero h1 {
        font-size: 1rem;
    }

    .about-hero p {
        font-size: 2rem;
    }

    .about-hero .cta {
        padding: 12px 25px;
        font-size: 1em;
    }
    .team h2 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .about-hero-content {
        max-width: 90%;
        margin-left: 5%;
    }

    .about-hero h1 {
        font-size: .75rem;
    }

    .about-hero p {
        font-size: 1.75rem;
    }

    .about-hero .cta {
        padding: 10px 20px;
        font-size: 0.9em;
    }
    .team h2 {
        font-size: 1.5rem;
    }
}

.reviews-heading {
    max-width: 80%;
    margin-left: 10vw;
    margin-right: auto;
    text-align: left;
}

.review-item img[alt="stars"] {
    width: 150px;
    height: auto;
}

.review-item img {
    width: 50px;
    height: auto;
    border-radius: 50%;
}

.reviews-section {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 20px 0;
}

.reviews-container {
    display: flex;
    flex-wrap: nowrap; /* Prevent wrapping to a new line */
    width: 100%;
    animation: scrollReviews 60s linear infinite;
    margin-top: 10vh;
}

.review-item {
    flex: 0 0 25%; /* Adjust this to show the number of items you want per view */
    max-width: 25%;
    padding: 0 10px; /* Reduce padding to minimize blank space */
    box-sizing: border-box;
    text-align: center;
}

.review-image {
    max-width: 80%;
    height: auto;
    border-radius: 50%;
    margin-bottom: 10px;
}

.review-title {
    font-size: 1.2rem;
    margin: 0;
}

.review-customer {
    font-size: 1rem;
    margin: 0;
}

.review-text {
    max-width: 80%; /* Control the width of the text */
    margin: 0 auto; /* Center the text within the container */
    text-align: center; /* Center align the text */
    line-height: 1.5; /* Adjust line height for readability */
}

.review-stars {
    max-width: 80%;
    height: auto;
}

@keyframes scrollReviews {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-100%); /* Scroll the container width */
    }
}

/* Media query to disable animation on smaller screens */
@media (max-width: 1400px) {
    .reviews-container {
        animation: none; /* Disable the animation */
        overflow-x: auto; /* Enable horizontal scrollbar */
        display: flex; /* Change to block layout for scrolling */
    }
    .review-item {
        display: inline-block; /* Ensure items are laid out in a row */
        flex: 0 0 auto; /* Prevent items from stretching */
        max-width: 40vw; /* Remove max-width restriction */
        padding: 0 10px; /* Adjust padding */
        box-sizing: border-box;
    }
    .review-text {
        max-width: none; /* Remove width restriction */
        margin: 0; /* Remove margin */
        text-align: left; /* Align text to the left */
        line-height: 1.5; /* Adjust line height for readability */
    }
}

/* Media query to disable animation on smaller screens */
@media (max-width: 750px) {
    .reviews-container {
        animation: none; /* Disable the animation */
        overflow-x: auto; /* Enable horizontal scrollbar */
        display: flex; /* Change to block layout for scrolling */
    }
    .review-item {
        display: inline-block; /* Ensure items are laid out in a row */
        flex: 0 0 auto; /* Prevent items from stretching */
        max-width: 90vw; /* Remove max-width restriction */
        padding: 0 10px; /* Adjust padding */
        box-sizing: border-box;
    }
    .review-text {
        max-width: none; /* Remove width restriction */
        margin: 0; /* Remove margin */
        text-align: left; /* Align text to the left */
        line-height: 1.5; /* Adjust line height for readability */
    }
}