@import url("styles.css");

/*
    STYLING FOR MAIN PAGE
*/

.hero-container {
    /*
    starting image for image changing BG
    */
    background-color: lightslategray;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    background-image: url("images/homepage03.PNG");
    -webkit-animation: back 18s 3s infinite; /* Safari 4+ */
    -moz-animation: back 18s 3s infinite; /* Fx 5+ */
    -o-animation: back 18s 3s infinite; /* Opera 12+ */
    -ms-animation: back 18s 3s infinite;
    animation: back 18s 3s infinite; /* IE 10+, Fx 29+ */
}


/* The Keyframes*/

@keyframes back {
    33% {
        background-image: url("images/homepage01.jpeg");
    }
    66% {
        background-image: url("images/homepage02.jpeg");
    }
}

/*overlay b/c a linear-gradient on the 
background images itself gets rid of the smooth 
transition from the keyframes*/
.hero-overlay {
    height: 100%; /*overlay expands with hero container*/
    width: 100%;
    background: rgba(0,0,0,0.3);
    display: flex;
    justify-content: center;
    align-items: center;
    /*stacks header tags on top of each other*/
    flex-direction: column;
    color: white;
    text-align: center;
}

.hero-text {
    padding: 60px 20px 30px 20px;
    max-width: 1000px;
    width: 100%;
}

.hero-text span {
    color: var(--ternary-color);
}

.hero-text h1 {
    font-size: 50px;
    text-transform: uppercase;
    text-align: center;
    padding-bottom: 20px;
    letter-spacing: 2px;
}

.hero-text h3 {
    font-size: 30px;
    font-family: var(--secondary-font);
    font-weight: bold;
    color: var(--secondary-color);
    padding-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.hero-text p {
    font-size: 24px;
    padding-top: 10px;
}

.fa-phone {
padding-left: 10px;
}

.cta-box {
    padding: 20px 0 60px 0;
}

.cta-box button {
    background-image: linear-gradient(to right, var(--secondary-color), var(--primary-color), var(--ternary-color));
    background-size: 180%;
    font-size: 20px;
    border: none;
    border-radius: 50px;
    text-transform: uppercase;
    color: white;
    outline: none;
    transition: .3s ease;
    padding: 22px;
}

.cta-box a {
    color: white;
}

.cta-box button:hover {
    cursor: pointer;
    background-position: right;
}

.cta-box button:active {
    transform: scale(0.95);
}

.about-container,
.fiberglass {
    display: flex;
    padding:  30px 0;
}

.about-container div,
.fiberglass div {
    width: 100%;
    padding: 10px 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/*heading foreach section*/
.section-title {
    font-size: 48px;
    font-family: var(--secondary-font);
    text-transform: uppercase;
    padding-bottom: 30px;
    letter-spacing: 1.5px;
    color: var(--primary-color);
}

.about-text-container p,
.fiberglass-text-container p {
    line-height: 1.5;
    text-align: left;
}

.about-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    box-shadow: 20px 10px 30px rgba(0, 0, 0, 0.5);
}

.fiberglass {
    flex-direction: row-reverse;
}

.fiberglass img  {
    width: 100%;
    height: 100%;
    object-fit: cover;
    box-shadow: -20px 10px 30px rgba(0, 0, 0, 0.5);
}

/*

FIBERGLASS TECHNOLOGY SECTION

*/

.future-banner {
    height: 40vh;
    background-color: lightslategray;
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)),
        url("/images/waterfall.jpg") no-repeat center;
    background-attachment: fixed;
    background-size: cover;
    display: flex;
    justify-content: center;
    align-items: center;
}

.future-banner a {
    color: white;
}

.future-banner button {
    background-image: linear-gradient(to right, var(--secondary-color), var(--primary-color), var(--ternary-color));
    background-size: 200%;
    font-size: 22px;
    border: none;
    border-radius: 50px;
    color: white;
    text-transform: uppercase;
    outline: none;
    transition: .3s ease;
    padding: 20px;
}


.future-banner button:hover {
    cursor: pointer;
    background-position: right;
}

.future-banner button:active {
    transform: scale(0.95);
}



/* 

    POOL MODELS SECTION 

*/

.pools-container {
    padding: 30px 20px;
    text-align: center;
}

.pools-container h5 {
    font-size: 20px;
    padding: 0px 20px;
}

.pool-models {
    display: flex;
    justify-content: center;
    padding: 40px 20px;
}


.pools-img-container {
    position: relative;
    width: 100%;
    height: 300px;
    padding: 10px;
    transition: .2s ease-in;
}

.pools-img-container:hover {
    transform: translateY(-10px);
}

.pools-img-container img {
    width: 100%;
    height: 100%;
    filter: brightness(45%);
    object-fit: cover;
    transition: .2s ease-in;
}

.pools-img-container img:hover {
    filter: brightness(85%);
}

.text-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 30px;
    font-weight: 700;
    color: var(--secondary-color);
}


/* 

CONTACT FORM 

*/

.contact {
    background-color: var(--primary-color);
    padding: 20px 0;
    color: white;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
}

.contact h5 {
    font-family: var(--secondary-font);
    font-size: 30px;
    text-align: center;
    padding: 20px;
}

.form {
    display: flex;
    justify-content: center;
    max-width: 450px;
    padding: 20px;
}


form input, form textarea {
    background-color: var(--primary-color);
    margin-bottom: 30px;
    border: none;
    border-bottom: 2px solid var(--secondary-color);
    outline: none;
    margin: 18px 0;
    width: 100%; /*helps scale it dwon to make it responsive*/
    font-size: 18px;
    color: white;
}


.form button {
    font-size: 18px;
    border-radius: 50px;
    text-transform: uppercase;
    width: 170px;
    height: 35px;
    color: white;
    background: var(--secondary-color);
    transition: 0.3s ease;
    border: 0;
}

.form button:hover {
    cursor: pointer;
    background-color: var(--secondary-color);
}

.form button:active {
    transform: scale(0.93);
}

.contact span {
    color: var(--secondary-color);
}

/*
blog link in footer*/
.blogs {
   display: none;
}

@media (max-width: 992px) {
    .about-container,
    .fiberglass {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 768px) {   
    .hero-overlay h1 {
        font-size: 34px;
    }

    .hero-text h3 {
        font-size: 24px;
    }

    .hero-text p {
        font-size: 18px;
    }

    .about-container div,
    .fiberglass div {
        padding: 20px;
    }

    .pool-models {
        flex-direction: column;
        align-items: center;
    }

    .contact {
        flex-direction: column;
    }
}

@media (max-width: 576px) {
    .future-banner {
        background-attachment: scroll;
    }

    .future-banner button {
        font-size: 18px;
    }

    .contact button {
        border-radius: 50px;
        font-size: 16px;
    }
}






