html {
    scroll-behavior: smooth;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Open Sans', sans-serif;
}

body {
    height: 100vh;
    background-color: #000;
    background-image: url(images/background.jpg);
    background-size: cover;
    background-position: center;
}

li {
    list-style: none;
}

a {
    text-decoration: none;
    color: #fff;
    font-size: 1rem;
}

/* HEADER */
a:hover {
    color: orange;
}

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 0 2rem;
    background-color: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    z-index: 1000;

}

.navbar {
    width: 100%;
    height: 60px;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.navbar .logo a {
    font-size: 1.5rem;
    font-weight: bold;
}

.navbar .links {
    display: flex;
    gap: 2rem;
}

.navbar .toggle_btn {
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    display: none;
}

.action-btn {
    background-color: orange;
    color: #fff;
    padding: 0.5rem 1rem;
    border: none;
    outline: none;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    cursor: pointer;
    transition: scale 0.2 ease;
}

.action-btn:hover {
    scale: 1.05;
    background-color: #ffff
}

.action-btn:active {
    scale: 0.95;
}

/* DROPDOWN MENU  */

.dropdown_menu {
    position: absolute;
    right: 2rem;
    top: 60px;
    height: 0;
    width: 300px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(15px);
    border-radius: 10px;
    overflow: hidden;
    transition: height 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 1000;
}

.dropdown_menu.open {
    height: 200px;
}

.dropdown_menu li {
    display: none;
    padding: 0.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dropdown_menu .action-btn {
    width: 100%;
    display: flex;
    justify-content: center;

}

/* COMMON CLASSES */

.content {
    position: relative;
    width: 100%;
    min-height: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    padding: 2rem;
    background-color: rgba(255, 255, 255, 1);
    backdrop-filter: blur(15px);
    border-radius: 10px;
    margin-top: 2rem;
    margin-bottom: 2rem;
    z-index: 100;
}

/* ABOUT - INDEX */

.about {
    overflow-x:auto;
    text-indent: 2rem;
    text-align: justify;
    line-height: 1.5;
    font-size: 1.2rem;
    background-color: rgba(255, 255, 255, 0.1);
    margin-top: 2rem;
    margin-bottom: 2rem;

}

.about li {
    list-style: disc;
    text-indent: 0;
    margin-left: 2.5rem;
}

#rezultat_studiu {
    width: 100%;
    object-fit: cover;
    border-radius: 10px;
}

#robinet_termostatic {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

#table.tabel_gradatie{
    border: 1px solid black;
     table-layout: auto;
  width: 100%; 
}

.about h2 {
    font-size: 1.3rem;
    color: #000;
    text-align: center;
    margin-top: 2rem;
    background-color: rgba(255, 255, 255, 0.1);
}

.about h3 {
    margin-bottom: 1rem;
    text-align: center;
}

.anre {
    color: orange;
    font-size: 1.5rem;
}

.about a {
    color: orange;
    font-size: 1.25rem;
}

/* CONTACT */

.map {
    margin-top: 2rem;
    border: 3px solid #fff;

}

/* FOOTER */

footer {
    background-color: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
}

footer div {
    padding: 0 10px;
    max-width: 1200px;
    width: 100%;
    display: flex;
    justify-content: space-between;
}

footer span {
    color: #fff;
}

footer a {
    padding: 0;
}


/* SERVICES */

section {
    display: flex;
    align-items: center;
    flex-direction: column;
    padding: 80px 0 0;
}

section h2 {
    font-size: 2rem;
}

section>p {
    text-align: center;
}

section .cards {
    display: flex;
    flex-wrap: wrap;
    max-width: 1200px;
    margin-top: 50px;
    padding: 0 10px;
    justify-content: space-between;
}


section .cards .card {
    background: rgb(254, 242, 218);
    padding: 40px 15px;
    list-style: none;
    border-radius: 5px;
    box-shadow: 0px 5px 10px rgba(0, 0, 0, 0.04);
    margin-bottom: 40px;
    width: calc(100% / 3 - 30px);
    text-align: center;
}

.services .card img {
    width: 120px;
    height: 120px;
    margin-bottom: 20px;
    border-radius: 100%;
    object-fit: cover;
}

.services .card:hover {
    cursor: pointer;
    transform: translateY(-10px);
    background: orange;
    transition: all 0.3s ease;
}

.cards .card p {
    padding: 0 15px;
    margin-top: 5px;
}

/* REPARTITOARE */

.cuprins {
    background: rgb(254, 242, 218);
    padding: 40px 15px;
    list-style: none;
    border-radius: 5px;
    box-shadow: 0px 5px 10px rgba(0, 0, 0, 0.04);
    margin-bottom: 40px;
    width: calc(100% / 2 - 30px);
    display: flex;
    flex-direction: column;
    align-items: start;
    text-align: start;
     letter-spacing: 1px;
	line-height: 1.5;
}

.cuprins a {
    color: black;
    
}

.cuprins a:hover {
    cursor: pointer;
    color: orange;
}






/* RESPONSIVE DESIGN - NAVBAR*/
@media(max-width: 992px) {

    .navbar .links,
    .navbar .action-btn {
        display: none;
    }

    .navbar .toggle_btn {
        display: block;
    }

    .dropdown_menu {
        display: block;
    }

    section>p {
        text-align: center;
    }

    section .cards .card {
        width: calc(100% / 2 - 15px);
        margin-bottom: 30px;
    }

    .cuprins {
        width: calc(100% - 15px);
    }
}

@media (max-width: 576px) {
    .dropdown_menu {
        left: 2rem;
        width: unset;
    }

    section .cards .card {
        width: 100%;
        margin-bottom: 30px;
    }

    .cuprins {
        width: 100%;
    }
}

@media(min-width: 993px) {
    .dropdown_menu {
        display: none;
    }
}
