/* Hero Section with Background Image */
#home {
    background: url('../assets/photo_headline.png') no-repeat center center/cover;
    color: var(--white-color);
    height: 90vh;
    position: relative;
}

#home h1 {
    font-size: 50px;
    font-weight: bold;
    color: var(--home-bg-color);
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6);
    text-transform: uppercase;
    max-width: 600px;
    letter-spacing: -2px;
}

#home p {
    color: var(--home-bg-color);
    font-size: 1.2rem;
    max-width: 600px;
    font-size: 24px;
    text-transform: uppercase;
    font-weight: bold;
    letter-spacing: -2px;
}

#home .social-links{
    position: absolute;
    bottom: 10px;
    display: flex;
    gap: 25px
}


/* Services */

#services{

}

section h2{
    text-align: center;
    text-transform: uppercase;
}

#services .slider {
    position: relative;
    max-width: 100%;
    overflow: hidden;
    padding: 20px 5px;
}

#services ul{
    display: flex;
    gap: 40px;
    margin-top: 10px;
    cursor: grab;
    transition: transform 0.3s ease-out; 
    padding: 40px 25px 25px;
    

    li{
        position: relative;
        background-color: #fff;
        box-shadow: rgba(100, 100, 111, 0.2) 0px 7px 29px 0px;
        border-radius: 12px;
        padding: 50px 10px 10px;
        user-select: none;
        -webkit-user-select: none;
        flex: 1;
    }

    li .icon-container{
        background-color: var(--secondary-color);
        display: inline-flex;
        position: absolute;
        transform: translate(-50%, -50%);
        top: 0;
        border-radius: 50%;
        width: 4rem;
        height: 4rem;
        justify-content: center;
        align-items: center;

        img{
            width: 50%;

        }
    }

    li h3{
        margin-bottom: 10px;
    }

    li p{
        line-height: 1.2;
        margin-bottom: 30px;
        font-size: 16px;
        word-wrap: break-word;
        white-space: normal;
        width: 100%;
    }

    li a{
        color: gray;
        border-bottom: gray 1px solid;
        padding: 0 2px;
        line-height: 0.9;
        display: inline-block;
    }
}

#services ul:active{
    cursor: grabbing;
}

/* Galery */

#galery{
    padding-top: 0;
}
#galery h2{
    margin-bottom: 20px; 
}

#galery .galery{
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    width: 90%;


    .galery-card{
        width: 32%;
        padding-bottom: 32%;
        height: 0;
        margin-bottom: 2%;
        position: relative;
        border-radius: 8px;
        overflow: hidden;

        .image-container{
            position: absolute;
            top: 0;
            left: 0;
            bottom: 0;
            right: 0;
            z-index: 1;

            img{
                height: 100%;
                width: 100%;
                object-fit: cover;
            }
        }

        .overlay{
            background: black;
            position: absolute;
            top: 0;
            left: 0;
            bottom: 0;
            right: 0;
            z-index: 2;
            opacity: 0;
            transition: 0.3s ease all;
        }

        .card-info{
            position: absolute;
            bottom: 0;
            width: 100%;
            z-index: 3;
            background-color: rgba(255, 255, 255, 0.85);
            border-radius: 8px;
            padding: 12px;
            text-align: left ;
            transform: translateY(calc(100% - 60px));
            transition: all ease 0.3s;

            h3{
                font-size: 20px;
                text-transform: uppercase;
                margin-bottom: 0px;
                line-height: 1;
            }

            .location{
                font-weight: 600;
                text-transform: uppercase;
                font-size: 12px;
                color: #585858;
            }

            .description{
                font-weight: 16px;
                color: #585858;
                transform: translateY(100%);
                transition: all ease 0.3s;
            }

            .more-btn{
                color: gray;
                display: inline-block;
                line-height: 0.9;
                border-bottom: 1px solid gray;
            }


        }
    }

    .galery-card:hover{
        .card-info{
            padding-top: 30px;
            transform: none;

            .description{
                transform: none;
            }
        }

        .overlay{
            opacity: 0.2;
        }
    }


}

/* Stats */

#stats{
    background-color: var(--secondary-color);
    padding: 3em;
    box-shadow: rgba(50, 50, 93, 0.25) 0px 6px 12px -2px, rgba(0, 0, 0, 0.3) 0px 3px 7px -3px;

    .icons{
        display: flex;
        width: 70%;
        justify-content: space-evenly;
    }

    .values{
        margin-top: 45px;
        display: flex;
        width: 90%;
        justify-content: space-evenly;

        .value{
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            color: #f3f3f3;
            font-weight: bold;



            .number{
            font-size: 70px;
            }

            .metric{
                font-size: 22px;
                text-transform: uppercase;

            }
        }
    }
}

/* About Section */
#about {
    background-color: var(--light-color);
}

#about h2 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* Articles Section */
#articles {
    background-color: var(--white-color);
}

#articles h2 {
    color: var(--primary-color);
    margin-bottom: 2rem;
}

article {
    background-color: var(--light-color);
    padding: 1.5rem;
    margin: 1rem 0;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    text-align: left;
    max-width: 800px;
}

article h3 {
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

article p {
    margin-bottom: 0.5rem;
}

article a {
    color: var(--accent-color);
    font-weight: bold;
}

/* Contact Section */
#contact {

}

#contact .contact-card{
    width: 90%;
    position: relative;


    .image-container{
        width: 100%;
        
        img{
            width: 100%;
        }
    }

    .contacts-content{
        position: absolute;
        top: 0;
        left:0;
        bottom: 0;
        right: 0;
        display: flex;
        z-index: 2;
        padding: 6%;
    
    }

    .contacts-content > *{
        flex: 1;
    }

    h3{
        font-size: 50px;
        font-weight: bold;
        text-transform: uppercase;
        line-height: 1;
        text-align: left;
    }

    h4{
        font-weight: bold;
        text-transform: uppercase;
        font-size: 24px;
        text-align: left;
    }

    .contacts-info{
        text-align: left;
        margin-top: 50px;
        font-weight: 600;
    }

    .social-links{
        margin-top: 80px;
        display: flex;
        gap: 25px;
        justify-content: center;
        align-items: center;
    }

    .form{
        display: flex;
        flex-direction: column;
        gap: 25px
    }

    input, textarea{
        background-color: rgba(255, 255, 255, 0.7);
        border-radius: 8px;
        padding: 10px 20px;
        resize: none;
        border: none;
        font-size: 12px;
        color: #717171;

    }

    textarea{
        min-height: 160px;
        font-family: 'Istok Web', Arial, sans-serif;
    }

    button{
        width: min-content;
        padding: 15px 40px;
        background-color: var(--primary-color);
        color: var(--light-color);
        border-radius: 8px;
        cursor: pointer;
        margin-left: auto;
    }


}