*, *::before, *::after {
    box-sizing: border-box; 
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background-color: #f8f8f8;
    color: #333;
    overflow-x: hidden; 
}

a {
    text-decoration: none;
    color: inherit;
    display: block; 
}

nav {
    display: flex;
    gap: 30px; 
    
    margin: 0 auto; 
    max-width: 1200px;
    width: 95%; 
    
    flex-wrap: wrap; 
    justify-content: center;
}

nav a {
    flex: 1 1 300px;
    height: 180px; 
    
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

section {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    
    padding: 20px;
    width: 100%; 
    height: 100%; 
    
    background-color: lightblue;
    border-radius: 1em;
}

header {
    display: flex;
    height: 100px;
    background-color: palevioletred;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 50px;
}

nav a:hover {
    border-radius: 1em;
    transform: translateY(-5px); 
}

nav a:hover section {
    border-radius: 1em;
    background-color: #90ee90;
}

nav section h1 {
    margin: 0 0 10px 0;
    font-size: 1.5em;
    color: #444;
}

footer {
    height: 50px;
    background-color: #ccc;
    margin-top: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
}

@media (max-width: 768px) {
    nav a {
        flex-basis: 100%; 
        height: 150px; 
        margin-bottom: 0;
    }
}