body
{
    margin: 0;
    font-family: Arial, sans-serif;
    color: #242f2e;
    min-height: 100vh;
    background:
        radial-gradient(circle at 12% 10%, rgba(0, 169, 157, 0.18), transparent 28%),
        radial-gradient(circle at 90% 80%, rgba(99, 118, 117, 0.14), transparent 30%),
        linear-gradient(135deg, #e9f8f6 0%, #c0e7e4 50%, #f7fbfa 100%);
}

nav
{
    background: rgba(255, 255, 255, 0.58);
    border-bottom: 1px solid rgba(36, 47, 46, 0.12);
    box-shadow: 0 8px 25px rgba(36, 47, 46, 0.08);
    backdrop-filter: blur(12px);
    order: 1;
    position: sticky;
    top: 0;
    z-index: 10;
} 

ul
{  
    list-style-type: none;
    margin:  0;
    padding: 0;
    display: flex;
}

li 
{
    margin-right: 10px;
}

li a
{
    border-radius: 999px;
    font-weight: 700;
}

nav a
{
    text-decoration: none;
    display: block;
    padding: 15px;
    color: #242f2e;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

nav a::after {
    content: "";
    display: block;
    height: 2px;
    width: 0;
    margin: 4px auto 0;
    background: #00a99d;
    transition: width 0.2s ease;
}

nav a:hover::after,
nav a.active::after {
    width: 60%;
}

nav a:hover
{
    background-color: #637675;
    color: #00ffea;
    transform: rotate(-3deg);
}

nav a.active
{
    background-color: #aad9d7;
    color: #173533;
}

h1
{
    margin: 0;
    margin-right: auto;
    color: #173533;
    letter-spacing: -0.04em;
    font-size: clamp(1.8rem, 4vw, 2.8rem);
}

header {
    display: flex;
    align-items: center;
    padding: 25px clamp(20px, 5vw, 70px);
    gap: 25px;
    position: relative;
    z-index: 1;
}



.container {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    justify-content: center;
    flex-wrap: wrap;
    gap: 28px;
    box-sizing: border-box;
    min-height: 500px;
    margin: 55px auto 40px;
    padding: clamp(24px, 5vw, 52px);
    border: 1px solid rgba(99, 118, 117, 0.25);
    border-radius: 28px;
    max-width: 1200px;
    background: rgba(255, 255, 255, 0.52);
    box-shadow: 0 20px 50px rgba(36, 47, 46, 0.1);
    backdrop-filter: blur(8px);
}

.container div 
{
        box-sizing: border-box;
    cursor: pointer;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        flex: 1 1 280px;
        max-width: 340px;
        min-height: 300px;
        height: 100%;
        overflow: hidden;
        background: linear-gradient(160deg, #ffffff 0%, #f1fbfa 100%);
        border: 1px solid rgba(99, 118, 117, 0.2);
        border-radius: 18px;
        transition: transform 0.6s ease, box-shadow 0.25s ease, border-color 0.25s ease;
        animation: card-in 0.7s ease both;
}

    .container img {
        display: block;
        width: 100%;
        height: 220px;
        object-fit: cover;
        object-position: center;
        border-radius: 18px;
    }

.container div:hover {
    transform: translateY(-12px) rotate(3deg);
    box-shadow: 0 18px 30px rgba(36, 47, 46, 0.2);
    border-color: rgba(0, 169, 157, 0.55);
}

.container div:active {
    transform: translateY(-10px);
}
 
section p
{
    box-sizing: border-box;
    width: 100%;
    margin: 0;
    padding: 16px 18px 20px;
    color: #364544;
    font-size: 1rem;
    line-height: 1.55;
    
}

.container h2 {
    color: #173533;
    font-size: 1.25rem;
    line-height: 1.2;
    text-align: center;
    margin: 18px 12px 0;
    transition: color 0.2s ease;
}

.container a {
    color: inherit;
    text-decoration: none;
}

.container a:focus-visible {
    outline: 3px solid #00a99d;
    outline-offset: 4px;
    border-radius: 18px;
}

main a
{
    text-align: center;
}


body footer p {
    font-size: 0.7rem;
}

main section nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin: 0 140px;
    padding: 2px -10px;
    width: fit-content;
    max-width: 100%;
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(23, 53, 51, 0.1);
    border-radius: 999px;
    box-shadow: 0 10px 25px rgba(23, 53, 51, 0.12);
    backdrop-filter: blur(8px);
}

main section nav a {
    align-items: center;
    justify-content: center;
    padding: 2px -10px;
    color: #173533;
    text-decoration: none;
    border-radius: 999px;
    font-weight: 700;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

main section nav a:hover {
    background-color: #07544f;
    color: #ffffff;
    transform: translateY(-2px);
    transform: rotate(4deg);
    box-shadow: 0 8px 16px rgba(36, 47, 46, 0.18);
}

main section nav a:focus-visible {
    outline: 3px solid #00a99d;
    outline-offset: 3px;
}

main section nav a.active {
    background-color: #aad9d7;
    color: #173533;
    box-shadow: inset 0 0 0 1px rgba(23, 53, 51, 0.08);
}

footer {
     background-color: #1f2937; 
     color: #ffffff; 
     padding: 0; 
     margin-top: 40px;
}

footer div {
     display: flex; 
     flex-wrap:  wrap; 
     justify-content: space-between; 
     gap: 20px; 
     max-width: 1100px; 
     margin: -25px auto; 
     padding: 25px 20px; 
     box-sizing: border-box;
}

footer p {
     margin: 0; 
     padding: 10px 20px 5px; 
     text-align: center; 
     background-color: #111827; 
     font-size: 0.95rem;
}