@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@500&display=swap');

* {
    margin: 0;
    padding: 0;
    font-family: "Poppins", sans-serif;
    font-weight: 500;
    scroll-behavior: smooth;
}

nav a {
    display: inline-block;
    max-width: 450px;    
}

a img {
    width: 100%;
    height: auto;
    max-width: 450px;
    margin: 2%;
    border-radius: 40px;
}

.header {
    min-height: 100vh;
    width: 100%;
    background-image: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)), url(/img/lawnCare.jpg);
    background-position: center;
    background-size: cover;
    position: relative;   
    margin: auto;
    padding-bottom: 2%;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: top;
}

.logo {
    cursor: pointer;
}

/* ------------- Navigation Links ------------- */
.navLinks {
    flex: 1;
    text-align: right;
    margin: 1% 2%;
}

.navLinks ul li {
    list-style: none;
    display: inline-block;
    position: relative;
    padding-left: 10px;
}

/* ------------- Navigation Button Text and Background ------------- */
.navLinks ul li a {
    color: #fff;
    font-size: 24px;  
    padding: 2px 10px;
    text-decoration: none;
    border: none;
    border-radius: 10px;
    background: rgb(57, 78, 89);
    position: relative;
    cursor: pointer;
    transition: 0.3s;
}

.navLinks ul li a:hover {
    background-color: rgb(103, 170, 122);
    color: rgb(57, 78, 89);
}

/* ------------- Background for text on main page ------------- */
.text-box {
    background: rgba(103, 170, 122, 0.90);
    border-radius: 10px;
    padding: 20px 12px;
    box-sizing: border-box;
    text-align: center;
    width: 80%;
    border: 2px solid rgb(57, 78, 89);
    margin: 20% auto;
}

.topButton {
    display: none;
    position: fixed;
    margin: auto;
    bottom: 10px;
    right: 45%;
    z-index: 99;
    border: none;
    outline: none;
    background-color:rgba(57, 78, 89, 0.9);
    color: #fff;
    cursor:pointer;
    border-radius: 10px;
    font-size: 36px;
    transition: 0.3s;
}

.topButton:hover {
    background-color: rgb(103, 170, 122);
}

/* ------------- Header Class ------------- */
h1, h2, h3 {
    color: #fff;
    text-align: center;
    font-size: 32px;
    line-height: 42px;
    padding-bottom: 20px;
}

/* ------------- Paragraph Class ------------- */
p {
    color: rgb(57, 78, 89);
    text-align: center;
    font-size: 18px;
    line-height: 32px;
    padding-bottom: 20px;
}

/* ----------- Special Paragraph for Before pictures column ---------- */
#before {
    margin-top: 2%;
    color: #fff;
    font-size: 32px;
    text-align: center;
    transform: translateX(-25%) translateY(52px);
}

/* ----------- Special Paragraph for After pictures column ---------- */
#after {
    margin-top: 2%;
    color: #fff;
    font-size: 32px;
    text-align: center;
    transform: translateX(25%) translateY(-25px);

}

/* ------------- Row Class ------------- */
.row {
    display: flex;
    justify-content: space-between;
    margin: 2% 2% 0 2%;
    gap: 2%;
}

/* ------------- Contact Button ------------- */
.contactButton {
    display: inline-block;
    text-decoration: none;
    box-sizing: border-box;
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 12px 34px;
    font-size: 24px;
    background: rgb(57, 78, 89);
    position: relative;
    cursor: pointer;
    transition: 0.3s;
}

/* ------------- Contact Button Effects------------- */
.contactButton:hover {
    background-color: rgb(103, 170, 122);
    color: rgb(57, 78, 89);
}

nav .bi {
    display: none;
}

/* ------------     Services We Offer Main Img----------------        */
.services {
    min-height: 100vh;
    width: 100%;
    background-image: linear-gradient(rgba(0,0,0, 0.3), rgba(0,0,0, 0.3)), url(/img/leafCleanup.jpg);
    background-position: center;
    background-size: cover;
    position: relative; 
    margin: auto;
    padding-top: 2%;
}

#servicePage{
    background: none;
}

/* ------------     Services Background Box ----------------        */
.serviceBox {
    background: rgba(103, 170, 122, 0.90);
    border-radius: 10px;
    margin: auto;
    padding: 20px 12px;
    box-sizing: border-box;
    border: 2px solid rgb(57, 78, 89);
    width: 80%;
}

.servicesCol { /* Uses the row class and creates a row of columns for each service we offer */
    flex: 1;
    margin-bottom: 2%;
    background: rgba(103, 170, 122, .90);
    border-radius: 10px;
    padding: 20px 12px;
    box-sizing: border-box;
    border: 2px solid rgb(57, 78, 89);
}

 /*------------         Service Area    ------------*/

.serviceArea {
    min-height: 100vh;
    width: 100%;
    background-color: rgb(57, 78, 89);
    background-position: center;
    background-size: cover;
    position: relative; 
    margin: auto;
    padding-top: 2%;         
}

/*------------         Service Area  Background  ------------*/
.serviceAreaBox {
    background-color: rgb(103, 170, 122);
    width: 80%;
    margin: auto;
    padding: 10px;
    border: 2px solid #fff;
    border-radius: 10px;
}

/*------------         Service Area  Columns and Background  ------------*/
.areaCol { /* Uses the row class and creates a row of columns for each area we service, uses the image, in sections from left to right for each column */
    flex: 1; /* Each column takes equal width */
    min-height: 80vh; /* Adjust the height as needed */ 
    background-image: url('/img/grandValley.jpg');
    background-size: 300%; /* Ensures that the image covers the entire column width */
    background-position: center;
    position: relative;
    box-sizing: border-box;
    border: 2px solid #fff;
    border-radius: 10px; 
    padding-bottom: 2%;
}

.areaCol:nth-child(1) {
    background-position: left center; /* Shows the left third of the image */
}

.areaCol:nth-child(2) {
    background-position: center center; /* Shows the middle third of the image */
}

.areaCol:nth-child(3) {
    background-position: right center; /* Shows the right third of the image */
}

.layer {
    background: transparent;
    height: 100%;
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    border-radius: 10px; 
}

.layer h3 {
    width: 100%;
    font-size: 36px;
    bottom: 75%;
    left: 50%;
    transform: translateX(-50%);
    position: absolute;
}

.layer:hover {
    background: rgba(57, 78, 89, 0.3); /* Hover effect for the text background */
}

/*------------         Gallery and Background  ------------*/
.galleryOfWork {
    min-height: 100vh;
    width: 100%;
    background-color: rgb(57, 78, 89);
    background-position: center;
    background-size: cover;
    position: relative; 
    margin: auto;
    padding-top: 2%;
}

.galleryBox { 
    margin: 0 2%;
    padding: 20px;
    min-height: 50vh;
    border: 2px solid rgb(103, 170, 122);
    border-radius: 10px;
} 

/* Gallery Row */
.galleryRow {
    display: flex; /* Arrange items side by side */
    max-height: 50vh; /* max height of image box change in tandem with .galleryItem min-height: */ 
    justify-content: space-between; /* Even spacing between items */
    gap: 10px; /* Space between items */
    margin-bottom: 20px;
}

.galleryOfWork p {
    color: #fff;
}

/* Gallery Item */
.galleryItem {
    position: relative;
    width: 100%; /* Adjust to fit the grid */
    min-height: 50vh;
    overflow: hidden; /* Ensure images do not overflow */
    border-radius: 10px; /* Optional rounded corners */
    border: 2px solid rgb(103, 170, 122); /* Adds a border */
}

/* Images in Gallery Items */
.galleryItem img {
    width: 100%; /* Fill the container width */
    height: 100%; /* Fill the container height */
    object-fit: cover; /* Maintain aspect ratio */
    position: absolute; /* Stack images for slideshow */
    top: 0;
    left: 0;
    opacity: 1; /* Fully visible by default */
    transition: opacity 1s ease-in-out; /* Smooth fade effect */
}

/* Hidden Class for Slideshow */
.hidden {
    opacity: 0; /* Fully transparent */
    pointer-events: none; /* Non-interactable when hidden */
    transition: opacity 1s ease-in-out;
}

/*------------         Our Team          ------------*/
.ourTeam {
    min-height: 100vh;
    width: 100%;
    background-image: linear-gradient(rgba(0,0,0, 0.3), rgba(0,0,0, 0.3)), url(/img/theCrew.jpg);
    background-position: center;
    background-size: cover;
    position: relative; 
    padding-top: 2%;
}
/* ------------     Background Box for Our Team Title ----------------        */
.teamBox {
    width: 80%;
    background: rgba(57, 78, 89, 0.9);
    border-radius: 10px;
    margin: auto;
    padding: 20px 12px;
    box-sizing: border-box;    
}

.ourTeam p {
    color: #fff;
}

.personBox {
    display: inline-flex;
    justify-content: space-between;
    gap: 40%;
    width: 80%;
    height: 40vh;  
    border-radius: 10px;
    margin: 20% 2%;
    padding-left: 8%;
}

.personCol { /* Uses the row class and creates a row of columns for each service we offer */
    flex: 1;
    background-image: linear-gradient(rgba(0,0,0, 0.3), rgba(0,0,0, 0.3)), url(/img/dad.jpg);
    background-position: center;
    background-size: cover;
    align-items: center;
    overflow: hidden;
    min-height: 50vh;
    border-radius: 10px;
    margin-bottom: 5%;
    padding: 20px 12px;
    box-sizing: border-box;
    transition: 0.3s;
    cursor: pointer;
    opacity: 0.9;
}

#mike {
    background-image: linear-gradient(rgba(0,0,0, 0.3), rgba(0,0,0, 0.3)), url(/img/mike.jpg);
}

.personCol p {
    color: #fff;
}

.personCol:hover {
    opacity: 1;
}

.contactUs {
    margin: 100px auto;
    width: 80%;
    background-image: linear-gradient(rgba(0,0,0, 0.3), rgba(0,0,0, 0.3)), url(/img/project2-after.jpg);
    background-position: center;
    background-size: cover;
    border-radius: 10px;
    text-align: center;
    padding: 20px 0;
}

.contactUs div {
    padding-top: 20px;
}

.contactButton h3 {
    margin-bottom: 40px;
    padding: 0;
    text-align: center;
}

#contactPage {
    background: none;
    margin: 20px auto;
    border: 2px solid rgb(57, 78, 89);
}

#contactPage h3 {
    color: rgb(57, 78, 89);
}

.footer {
    width: 100%;
    text-align: center;
    padding: 30px 0;
    margin-bottom: 25px;
    margin-top: 20px;
}

.footer p {
    margin-top: 25px;
}

.icons {
    text-align: center;
}
.icons .bi {
    margin: 0 13px;
    cursor: pointer;
    padding: 18px 0;
    font-size: 32px;
    color: rgb(57, 78, 89);
}

/* ----------------              Services Page   Created a subHeader here to use on other pages lowers VH  ---------------------- */

.subHeader {
    min-height: 40vh;
    width: 100%;
    background-image: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)), url(/img/lawnCare.jpg);
    background-position: center;
    background-size: cover;
    position: relative;    
}

#serviceRow {
    margin: 2% 2%;
}

/* ----------------                                   Contact US            ---------------------- */
.subContactUs {
    width: 80%;
    margin: 40px auto;
    border: 10px solid rgb(57, 78, 89);
}

.subContactUs h3 {
    color:rgb(57, 78, 89);
    text-align: left;
}

.contactCol {
    flex-basis: 48%;
    margin-bottom: 30px;
}

.contactCol div {
    display: flex;
    align-items: center;
    margin-bottom: 80px;
    text-align: center;
}

.contactCol div .bi {
    font-size: 36px;
    color:rgb(57, 78, 89);
    margin-left: 35px;
}

.contactCol div p {
    padding: 0;
    font-size: 18px;
    text-align: center;
}

.contactCol div h3 {
    font-size: 24px;
    text-align: center;
}

.contactCol input, .contactCol textarea {
    width: 100%;
    padding: 15px;
    margin-bottom: 17px;
    outline: none;
    border: 1px solid rgb(57, 78, 89);
    box-sizing: border-box;
} 



/* ----------------                                   MEDIA                    ---------------------- */

@media(max-width: 700px) {
    
    a img {
        max-width: 150px; /* makes the logo scale down to 150px for smaller screens */
    }

    h1, h2, h3 { /* makes the fonts on all headers scale down to for smaller screens */
        font-size: 20px;
        line-height: 23px;        
    }

    p { /* makes the fonts on all paragraphs scale down to for smaller screens */
        font-size: 12px;
        line-height: 15px;
        margin-bottom: 20px;
    }
    
    /* ----------- Special Paragraph for Before pictures column ---------- */
    #before {
        font-size: 20px;
    }

    /* ----------- Special Paragraph for After pictures column ---------- */
    #after {
        font-size: 20px;
    }

    .contactButton { /* makes the fonts on button scale down to for smaller screens */
        font-size: 20px;
    }

    .topButton {
        position: fixed;
        font-size: 24px;
        right: 42%;
    }

    .navLinks { /* creates the rectangle for the navLinks to sit in for smaller screens, allows to "show" and "hide" with buttons (the -200px parameter) */
        position: fixed;
        background: rgb(103, 170, 122);
        height: 100vh;
        width: 200px;
        top: 0;
        right: -200px;
        text-align: left;
        z-index: 2;
        transition: 0.8s;
    }

    nav .bi { /* Size and color adjustment for X and Menu stack buttons */
        display: block;
        color: #fff;
        font-size: 16px;
        cursor: pointer;
        padding: 5px 25px;
    }

    .navLinks ul li { /* Changes navLinks into a block and list instead of flex box for smaller screens */
        display: block;       
    }

    .navLinks ul li a { /* makes the fonts on  scale down to for smaller screens */
        font-size: 16px;
        background: none;
        padding: 0;
        margin: 0;
    }        

    .row { /* row class for smaller screens changes all flex to column and adds gap between them */
        flex-direction: column;
        gap: 2%;
        margin-top: 2%;
    }
    
    .serviceAreaBox{
        flex-direction: column;
        align-items: center;
    }

    .areaCol {
        flex: none;
        width: 100%; /* Adjusts the column width to fit smaller screens */
        max-height: 40vh; /* 40vh to get a more drastic shift of the image for the following children */
        background-size: cover; /* Ensures the image fits properly in the smaller columns */
        background-position: center; /* Centers the background */
        border-radius: 10px; /* Keeps the rounded corners */
    }
    .areaCol:nth-child(1) {
        background-position: left; /* Adjust for smaller screens */
    }

    .areaCol:nth-child(2) {
        background-position: center; /* Adjust for smaller screens */
    }

    .areaCol:nth-child(3) {
        background-position: right; /* Adjust for smaller screens */
    }

    .layer {
        font-size: 20px; /* Reduces text size for readability */
        padding: 2%; /* Adjusts padding around the text */
        width: 96%;
        height: 100%;
    }

    .layer:hover {
        background: rgba(57, 78, 89, 0.3); /* Hover effect for the text background */
    }

    .galleryRow {
        max-height: 20vh;
    }
    .galleryItem  {
        min-height: 20vh;
    }

    #after {
        transform: translateX(10vh) translateY(30px);
    }

    #before {
        transform: translateX(-10vh) translateY(85px);
    }

    .personCol {
        gap: 10%;
        min-height: 50vh;
    }

    .personCol h3 {
        font-size: 18px;
    }

    .personCol p{
        font-size: 10px;
        text-align: left;
    }

    .contactCol div bi {
        font-size: 20px;
    }

    
}