@import url('https://fonts.googleapis.com/css2?family=Nunito+Sans:ital,wght@0,200;0,300;0,400;0,500;1,200;1,300;1,400;1,500&family=Open+Sans:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400;1,500&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Nunito Sans";
}

/* Declaring Variables For Colors and Shadows */

:root {
    --headerBg: #00000066;
    --headerHover: #FFFFFF33;
    --globalRed: #FF0000;
    --headerShadow: 0px 3px 6px #00000040;
    --redbuttonShadow: 0px 3px 6px #FF00004D;
    --whiteButtonBG: #FFFFFF29;
    --blogParColor: #6A6A6A;
    --service-contact-Par-Color: #B2B2B2;
    --service-footerBG: #28272C;
    --input-border-color: #D1D1D1;
    --main-block-padding: 0 10%;
}

/* HEADER */

/* Background Image */

.background-image {
    background-image: url(../images/Image.jpg);
    height: 100vh;
    background-size: cover;
    background-position: top;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.background-image::before {
    content: "";
    position: absolute;
    top: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.35);
    z-index: 2;
}

/* Navigation Bar */

.nav-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0 auto;
    height: 93px;
    background-color: var(--headerBg);
    border-bottom: 2px solid var(--headerHover);
    padding: var(--main-block-padding);
    color: white;
    position: fixed;
    top: 0;
    width: 100vw;
    z-index: 3;
}

.nav-menu {
    display: flex;
    list-style: none;
    height: 100%;
}

.nav-menu li {
    padding: 0 30px;
    height: 100%;
    display: flex;
    align-items: center;
    text-align: center;
}

.nav-menu li:hover {
    transition: 0.2s;
    background-color: var(--headerHover);
}

.nav-menu li a {
    display: block;
    width: 67px;
    text-decoration: none;
    text-transform: uppercase;
    color: white;
    font-size: 16px;
    letter-spacing: 0px;
    font-weight: 500;
}

/* Navigation Logo */

.logo-item {
    display: flex;
    align-items: center;
    color: white;
    text-transform: uppercase;
    font-size: 25px;
    cursor: pointer;
}

.logo-item span {
    color: var(--globalRed);
    margin-left: 10px
}

/* Background Image Contents */

.background-image-contents {
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    text-align: center;
    width: 70%;
    height: 50%;
    z-index: 2;
}

.background-image-contents h1 {
    font-size: 90px;
    text-transform: uppercase;
    color: white;
    font-weight: 900;
    text-shadow: var(--headerShadow);
}

.background-image-contents p {
    color: white;
}

/* Background Image Buttons */

.background-image-buttons {
    display: flex;
    justify-content: center;
    gap: 25px;

}

.background-image-buttons button {
    padding: 22px 96px;
    border-radius: 40px;
    outline: none;
    border: none; 
    color: white;
    text-transform: uppercase;
    font-weight: bold;
    font-size: 16px;
    cursor: pointer;
}

.background-image-buttons .red-btn {
    background-color: var(--globalRed);
    box-shadow: var(--redbuttonShadow);
}

.background-image-buttons .white-btn {
    color: var(--globalRed);
}

/* Backroung Image Down Arrow */

.background-image-arrow {
    width: 55px;
    height: 55px;
    background-color: var(--globalRed);
    border-radius: 50%;
    position: absolute;
    z-index: 2;
    bottom: -25px;
    box-shadow: var(--redbuttonShadow);
}

.background-image-arrow img {
    position: absolute;
    top: 16px;
    left: 17px;
}

/* MAIN */

/* Section 1 */

.section1 {
    height: 516px;
    margin-top: 30px;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.section1-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
    width: 352px;
    height: 434px;
}

.section1-card img {
    width: 100%;
    height: 234px;
}

.section1-card h2 {
    font-size: 19px;
    text-transform: uppercase;
    color: var(--blogParColor);
}

.section1-card p {
    font-size: 14px;
    display: block;
    width: 80%;
    color: var(--blogParColor);
}

.section1-card button {
    box-shadow: var(--redbuttonShadow);
    background-color: var(--globalRed);
    border-radius: 40px;
    padding: 10px 40px;
    border: none;
    color: white;
    text-transform: uppercase;
    font-size: 14px;
    cursor: pointer;
}

.section1-card button:hover {
    background-color: white;
    color: var(--globalRed);
    transition: 0.2s;
}

.blog-h1 {
    text-align: center;
    margin-top: 100px;
    text-transform: uppercase;
    font-weight: bold;
    font-size: 35px;
    position: relative;
    line-height: 35px;
}

.blog-h1::after, .blog-h1::before {
    content: "";
    display: inline-block;
    height: 3px;
    width: 50px;
    background-color: var(--globalRed);
    vertical-align: middle;
    border-radius: 8px;
    margin: 0 5px;
    box-shadow: 0px 1px 6px #FF00004D;
}

/* Section 2 */

.section2 {
    height: 643px;
    background-color: var(--service-footerBG);
    display: flex;
    justify-content: center;
    flex-direction: column;
}

.section2-cards {
    display: flex;
    align-items: center;
    margin: 0 auto;
    gap: 55px;
    margin-top: -20px;
}

.section2-cards img {
    width: 170px;
    height: 170px;
}

.section2-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    height: 361px;
    width: 231px;
    text-align: center;
    margin-bottom: 100px;
}

.section2-card h2 {
    font-size: 19px;
    color: white;
    text-transform: uppercase;
    padding: 20px 0;
    font-weight: 400;

}

.section2-card p {
    color: var(--service-contact-Par-Color);
    padding-bottom: 30px;
}

.section2-card button {
    background-color: var(--globalRed);
    border: none;
    border-radius: 40px;
    padding: 12px 40px;
    text-transform: uppercase;
    color: white;
    font-weight: 500;
    cursor: pointer;
    box-shadow: var(--redbuttonShadow);
    font-weight: bold;
}

.section2-card button:hover {
    background-color: white;
    color: var(--globalRed);
    transition: 0.2s;
}

.service-h1 {
    text-align: center;
    justify-content: center;
    text-transform: uppercase;
    color: white;
    margin-bottom: 70px;
    margin-top: 30px;
    font-size: 35px;

}

.service-h1::after, .service-h1::before {
    content: "";
    display: inline-block;
    height: 3px;
    width: 50px;
    background-color: var(--globalRed);
    vertical-align: middle;
    border-radius: 8px;
    margin: 0 5px;
    box-shadow: 0px 1px 6px #FF00004D;
}

/* Seciton 3 */

.section3 {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 489px;
    width: 100%;
    margin: 70px auto;
}

.contact-h1 {
    font-size: 35px;
    text-transform: uppercase;
    margin-bottom: 30px;
    font-weight: bold;
    letter-spacing: 2px;
}

.contact-h1::before, .contact-h1::after {
    content: "";
    display: inline-block;
    height: 3px;
    width: 50px;
    background-color: var(--globalRed);
    vertical-align: middle;
    border-radius: 8px;
    margin: 0 5px;
    box-shadow: 0px 1px 6px #FF00004D;
}

.contact-form {
    display: flex;
    gap: 20px;
    width: 70%;
}

.contact-form img {
    width: 444px;
    height: 316px;
}

.form-inputs {
    width: 444px;
    height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    gap: 15px;
}

.form-inputs input, .form-inputs textarea {
    outline: none;
    border: 2px solid var(--input-border-color);
    padding: 8px;
    font-size: 16px;
    color: var(--service-contact-Par-Color);
    border-radius: 8px;
}

input[type="text"], input[type="email"] {
    width: 100%;
}

input[type="text"]:focus,input[type="email"]:focus,  textarea:focus {
    border: 2px solid var(--globalRed);
    box-shadow: 0px 1px 6px var(--globalRed);
    opacity: 0.8;
}

.form-inputs input::placeholder, .form-inputs textarea::placeholder {
    color: var(--service-contact-Par-Color);
}

.form-inputs textarea {
    resize: none;
    min-height: 140px;
    max-height: 140px;
    min-width: 444px;
    max-width: 444px;
}

#check {
    appearance: none;
    width: 22px;
    height: 22px;
    display: inline-block;
    vertical-align: middle;
    border-radius: 5px;
    background-color: white;
    outline: none;
    position: relative;
}

#check:checked {
    background-image: url(../images/Icon\ Check.svg);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    
}

#check:checked::before {
    content: "";
    background-image: url(../images/Icon\ Check.svg);
    position: absolute;
    color: black;
    
}

.agree-text {
    display: flex;
    gap: 10px;
}

.agree-text label {
    font-size: 13px;
    color: var(--service-contact-Par-Color);
    font-weight: 400;
}

.form-btn {
    align-self: flex-end;
    background-color: white;
    color: var(--globalRed);
    font-size: 14px;
    padding: 10px 50px;
    border-radius: 40px;
    border: 1px solid var(--globalRed);
    box-shadow: var(--redbuttonShadow);
    cursor: pointer;
    text-transform: uppercase;
    font-weight: bold;
}

.form-btn:hover {
    background-color: var(--globalRed);
    color: white;
    transition: 0.2s;
}

.form-btn:active {
    background-color: white;
    color: var(--globalRed);
}

/* FOOTER */

footer {
    height: 232px;
    background-color: var(--service-footerBG);
    padding: 1.5% 10%;
    display: flex;
    flex-direction: column;
}

footer p {
    align-self: flex-end;
    font-size: 12px;
    color: var(--input-border-color);
    font-weight: 300;
}

footer .logo-item {
    font-size: 15px;
    margin-bottom: 15px
}

footer .logo-item img {
    width: 30px;
    height: 30px;

}

.footer-menu {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin: 0 auto;
}

.footer-links {
    display: flex;
    width: 30%;
    height: 90%;
    justify-content: space-between;
    align-items: center;
}

.footer-links ul {
    list-style: none;
}

.footer-links ul li {
    padding: 6px 0;
}

.footer-links ul li a {
    display: block;
    color: white;
    text-transform: uppercase;
    text-decoration: none;
    font-size: 14px;
    font-weight: bold;
}

.footer-links ul li a:hover {
    color: var(--globalRed);
    transition: 0.2s;
}


.toggle-check {
    appearance: none;
}

.toggle-check:checked ~ .btn-toggle span:nth-child(2){
    visibility: hidden;
}

.toggle-check:checked ~ .btn-toggle span:first-child {
    transform: rotate(45deg);
    transform-origin: 5% 50%;
    margin-left: 7px;
}

.toggle-check:checked ~ .btn-toggle span:last-child {
    transform: rotate(-45deg);
    transform-origin: 5% 50%;
    margin-left: 7px;
}

.btn-toggle {
    width: 47px;
    height: 47px;
    display: none;
    padding: 2px;
    cursor: pointer;
}

.btn-toggle span {
    width: 35px;
    height: 3px;
    margin-bottom: 8px;
    display: block;
    background-color: white;
    padding: 0;
    border-radius: 3px;
    margin-left: 2px;
}

.btn-toggle span:first-child {
    margin-top: 8px;
}

@media (max-width: 1024px) {

    footer {
        height: 30vh;
    }

    footer .logo-item {
        align-self: center;
        margin-top: 10px;
    }

    .footer-links {
        width: 50%;
    }

    .section3 {
        height: 110vh;
    }


    .contact-form {
        justify-content: center;
        flex-wrap: wrap;
    }

    .contact-form button {
        align-self: center;
    }

    .section1 {
        flex-wrap: wrap;
        height: 130vh;
    }

    .section1-card {
        align-items: center;
        text-align: center;
    }

    .background-image-contents h1 {
        font-size: 50px;
    }

    .background-image-contents p {
        font-size: 16px;
    }
    .background-image-contents button {
        font-size: 14px;
        padding: 15px 30px;
    }

    .nav-bar {
        flex-wrap: wrap;
    }

    .nav-menu {
        position: absolute;
        left: -500vh;
        display: flex;
        width: 100%;
        padding: 10px 10%;
        background-color: rgba(0, 0, 0, 0.9);
        flex-direction: column;
        justify-content: flex-start;
        z-index: 10;
        height: 300px;
        transition: 0.3s;
        top: 90px;
    }

    .toggle-check:checked ~ .nav-menu {
        display: flex;
        left: 0;
        inset: 0;
        margin: 90px auto;
    }

    .btn-toggle {
        display: block;

    }

    .logo-item h1 {
        font-size: 25px;
    }

    .section2 {
        height: 150vh;
        
    }

    .section2-cards {
        flex-wrap: wrap;
        width: 90%;
        justify-content: center;
    }



}

@media (max-width: 750px) {
    .section1 {
        height: 200vh;
    }
}


@media (max-width: 600px) {

    .section3 {
        height: 140vh;
    }

    .contact-form > * {
        width: 70%;
        align-items: center;
        
    }

    .contact-form img {
        width: 110%;
        object-fit: cover;
    }

    .contact-form textarea {
        max-width: 100%;
    }

    

    .section2 {
        height: 300vh;
    }

    .section1 {
        height: 200vh;
        margin: 0 10%;
    }

    .section1-card {
        align-items: center;
        text-align: center;
    }

    .blog-h1 {
        margin-bottom: 7vh;
    }

    .section1 img {
        object-fit: cover;
    }
}

@media (max-width: 480px) {

    .logo-item img {
        display: none;
    }

    .background-image-contents h1 {
        font-size: 35px;
    }

    .background-image-contents p {
        font-size: 14px;
    }

    .background-image-contents button {
        padding: 10px 40px;
        font-size: 12px;
    }

    footer {
        height: 45vh;
        
        
    }

    footer .logo-item {
        margin-top: 30px;
    }

    .footer-menu {
        flex-direction: column;
        align-items: center;
        margin-top: 10px;
    }

    .footer-links {
        flex-wrap: wrap;
        
    }

    
    .footer-menu p {
        align-self: center;
        margin-top: 10px;
    }

    .section3 {
        height: 110vh;
    }

    .contact-form textarea {
        display: none;
    }

    .agree-text {
        width: 100%;
    }

    .agree-text label {
        font-size: 10px;
    }

    .contact-form button {
        align-self: center;
    }
}