* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.6;
    background-image: url(images/background.jpg);
    background-size: cover;
    background-attachment: fixed;
}

/* ----------------------header---------------------- */

header {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding: 20px;
    background-color: #008080;
    color: white;
    position: sticky;
    top: 0;
    z-index: 1;
}

header img {
    max-width: 80px;
    margin-right: 15px;
    border-radius: 50%;
}

header h2 {
    font-size: 1.8rem;
    letter-spacing: 2px;
    font-weight: bold;
    text-transform: uppercase;
    margin: 0 250px 0 0;
    position: relative;
}

/* --------------------navigation-------------------- */

nav ul {
    display: flex;
    list-style: none;
    margin-left: auto;
}

nav ul li {
    margin: 0 15px;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    position: relative;
    transition: color 0.3s ease-in-out;
}

nav ul li a:hover {
    color: #555;
}

/* ----------------------index---------------------- */

main {
    padding: 60px;
}

main h1 {
    font-size: 3rem;
    text-align: center;
    color: white;
    margin-top: 200px;
    margin-bottom: 10px;
    letter-spacing: 2px;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2);
}

main h2 {
    font-size: 2rem;
    color: white;
    margin-bottom: 200px;
    text-align: center;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2);
}

main section h2 {
    font-size: 2.2rem;
    margin-bottom: 20px;
    color: #008080;
    text-align: center;
}

section {
    margin-bottom: 50px;
    padding: 20px;
    border-radius: 10px;
    background-color: whitesmoke;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

section:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.text-picture {
    display: flex;
    margin: 25px;
}

.text-picture ul {
    list-style-type: none;
    padding-right: 20px;
}

.text-picture ul li {
    font-size: 1.4rem;
    padding-bottom: 25px;
    color: #555;
}

.text-picture img {
    max-width: 300px;
    border-radius: 10px;
}

figure {
    text-align: center;
    padding-bottom: 15px;
    display: flex;
    flex-direction: column;
}

iframe {
    width: auto;
}

.section-packages {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    grid-gap: 20px;
    margin-top: 20px;
}

.section-packages img {
    width: 100%;
    border-radius: 10px;
}

.section-packages a {
    color: #555;
}

.section-packages a:hover {
    color: white;
}

.flip-card {
    margin: 0 0 0 0;
    position: relative;
    width: 100%;
    height: 100%;
    perspective: 1000px;
}

.flip-card img {
    width: 100%;
    border-radius: 10px;
    transition: transform 0.6s;
    backface-visibility: hidden;
}

.flip-card-back {
    position: absolute;
    top: 0;
    left: 0;
    margin: 0 0 0 0;
    width: 100%;
    height: 98%;
    background-color: #008080;
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
    display: flex;
    flex-direction: column;
    align-items: start;
    justify-content: center;
    border-radius: 10px;
    padding: 20px;
    transform: rotateY(180deg);
    backface-visibility: hidden;
    transition: transform 0.6s;
}

.flip-card-back p {
    color: white;
    font-weight: bold;
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    text-align: start;
}

.flip-card:hover img {
    transform: rotateY(180deg);
}

.flip-card:hover .flip-card-back {
    transform: rotateY(0deg);
}

.meet-the-team {
    display: grid;
    grid-template-columns: repeat(3, minmax(250px, 1fr));
    gap: 20px;
    margin: 40px auto;
    max-width: 1200px;
    justify-items: center;
    text-align: center;
}

.meet-the-team div {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.meet-the-team img {
    width: 240px;
    height: auto;
}

.meet-the-team h3 {
    color: #008080;
    margin: 10px 0 5px;
    font-size: 1.6rem;
}

.meet-the-team p {
    color: #555;
    font-size: 1.2rem;
    margin-bottom: 50px;
}

/* ---------------------services--------------------- */

.services-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    padding: 2rem;
}

.service {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 16px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    padding: 1.4rem;
    text-align: center;
    font-weight: 600;
    color: #118ab2;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    opacity: 0;
    transform: translateY(40px);
    backdrop-filter: blur(8px);
}

.service:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.25);
    background: #ffffff;
}

/* -------------------contact us------------------- */

form {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
    padding-left: 30px;
    padding-right: 30px;
}

label {
    margin: 10px 0 5px;
    display: block;
}

input[type="text"],
input[type="email"],
input[type="tel"],
select {
    width: 100%;
    height: 45px;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid rgba(35, 34, 34);
    border-radius: 5px;
    font-family: inherit;
    font-size: 1rem;
}

textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid rgba(35, 34, 34);
    border-radius: 5px;
}

button {
    width: 20%;
    padding: 15px;
    margin: 15px;
    background-color: #008080;
    color: white;
    border: none;
    border-radius: 5px;
    align-self: center;
}

button:hover {
    background-color: #555;
}

.info-cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    padding: 2rem 1rem;
    position: relative;
}

.card {
    background: linear-gradient(145deg, #ffffff, #f0f0f0);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    width: 350px;
    text-align: center;
    box-shadow: 
        0 10px 20px rgba(0, 0, 0, 0.15),
        0 4px 6px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card::before {
    content: '';
    position: absolute;
    top: -15px;
    left: -15px;
    width: calc(100% + 30px);
    height: calc(100% + 30px);
    border-radius: 25px;
    z-index: -1;
}

.card:hover {
    transform: translateY(-12px);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.25),
        0 8px 12px rgba(0, 0, 0, 0.1);
}

.card .icon {
    color: #444;
    animation: bounce 2s infinite;
}

.card .icon img {
    width: 100px;
}

.card h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: #111;
    letter-spacing: 0.5px;
}

.card p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #555;
}

.card p a {
    text-decoration: none;
    transition: color 0.3s;
    word-break: break-word;
    color: #555;
}

.card p a:hover {
    color: #008080;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-6px);
    }
}

.form-alert {
    position: fixed;
    top: 20px;
    right: 20px;
    background-color: #cbb197;
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    font-size: 1rem;
    opacity: 0;
    transform: translateY(-20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.form-alert.show {
    opacity: 1;
    transform: translateY(0);
}

.form-alert.error {
    background-color: #d32f2f;
}

.hidden {
    display: none;
}

/* ---------------------footer--------------------- */

footer {
    background-color: #008080;
    color: white;
    padding: 30px 20px;
    text-align: center;
    box-shadow: 0 -4px 8px rgba(0, 0, 0, 0.2);
}

.socials {
    display: flex;
    justify-content: center;
    padding-bottom: 10px;
    list-style: none;
}

.socials li a img {
    width: 60px;
    height: auto;
    transition: transform 0.3s ease;
    padding: 10px;
}
  
.socials li a img:hover {
    transform: scale(1.1);
}

footer a {
    color: white;
    text-decoration: underline;
    transition: color 0.3s ease;
}

footer a:hover {
    color: #555;
}

/* --------------------hamburger-------------------- */

.menu-toggle {
    display: none;
    font-size: 2rem;
    color: white;
    cursor: pointer;
    padding: 10px;
    background-color: #008080;
    border-radius: 5px;
    z-index: 1000;
}

.short-title {
    display: none;
}

/* --------------------section--------------------- */

@media screen and (max-width: 1200px) {
    header h2 {
        font-size: 1.4rem;
        margin: 10px 0;
    }

    main h1 {
        font-size: 2rem;
    }

    main h2 {
        font-size: 1.8rem;
    }

    .text-picture {
        flex-direction: column;
    }
    
    .text-picture img{
        align-self: center;
    }

    .meet-the-team {
        display: flex;
        flex-direction: column;
    }

    iframe {
        height: 400px;
    }

    .menu-toggle {
        display: block;
        margin-left: auto;
    }

    #nav-menu {
        position: absolute;
        top: 100%;
        right: 20px;
        background-color: #008080;
        border-radius: 8px;
        box-shadow: 0 4px 10px rgba(0,0,0,0.2);
        width: 180px;
        display: none;
        flex-direction: column;
        padding: 10px 0;
        margin-top: 10px;
    }

    #nav-menu ul {
        flex-direction: column;
        margin: 0;
        padding: 0;
    }

    #nav-menu li {
        margin: 0;
        padding: 10px 20px;
    }

    #nav-menu li a {
        color: white;
        text-decoration: none;
        display: block;
        width: 100%;
    }

    #nav-menu.show {
        display: flex;
    }

    header {
        position: relative;
    }
}

@media screen and (max-width: 770px) {
    main {
        padding: 15px;
    }
    
    main h1 {
        margin-top: 100px;
    }

    main h2 {
        font-size: 1.5rem;
    }

    main section h2 {
        font-size: 1.7rem;
    }

    .text-picture {
        flex-direction: column;
    }

    main section {
        margin-bottom: 20px;
    }

    .text-picture ul li {
        font-size: 1.2rem;
    }

    .text-picture img {
        width: 250px;
    }

    .section-packages {
        display: flex;
        flex-direction: column;
    }

    .meet-the-team {
        display: flex;
        flex-direction: column;
    }

    .meet-the-team img {
        width: 200;
    }

    button {
        width: 40%;
    }

    iframe {
        height: 200px;
    }

    .menu-toggle {
        display: block;
        margin-left: auto;
    }

    #nav-menu {
        position: absolute;
        top: 100%;
        right: 20px;
        background-color: #008080;
        border-radius: 8px;
        box-shadow: 0 4px 10px rgba(0,0,0,0.2);
        width: 180px;
        display: none;
        flex-direction: column;
        padding: 10px 0;
        margin-top: 10px;
    }

    #nav-menu ul {
        flex-direction: column;
        margin: 0;
        padding: 0;
    }

    #nav-menu li {
        margin: 0;
        padding: 10px 20px;
    }

    #nav-menu li a {
        color: white;
        text-decoration: none;
        display: block;
        width: 100%;
    }

    #nav-menu.show {
        display: flex;
    }

    header {
        position: relative;
    }

    header h2 {
        display: block;
    }

    .full-title {
        display: none;
    }

    .short-title {
        display: inline;
    }
}