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

body {
    font-family: system-ui, -apple-system, sans-serif;
    background-color: #fffaf0;
    color: #4a4a4a;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

header {
    background-color: #ffb6c1;
    padding: 1.25rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

nav ul {
    list-style: none;
    display: flex;
    gap: 1.5rem;
}

nav a {
    text-decoration: none;
    color: #fff;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    transition: background-color 0.3s ease;
}

nav a:hover, nav a:focus {
    background-color: #ff69b4;
    outline: none;
}

main {
    padding: 3rem 2rem;
    flex: 1;
    max-width: 1100px;
    margin: 0 auto;
    width: 100%;
}

h1 {
    color: #ff69b4;
    margin-bottom: 1rem;
    font-size: 2.2rem;
}

h2 {
    color: #ff8c00;
    margin-top: 2.5rem;
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
}

p {
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 1.5rem;
}

.card {
    background: #fff;
    border-radius: 16px;
    padding: 2rem 1.5rem;
    box-shadow: 0 8px 16px rgba(255, 182, 193, 0.2);
    text-align: center;
    border: 2px dashed #ffb6c1;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 20px rgba(255, 182, 193, 0.4);
}

.card-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    line-height: 1;
}

.card h3 {
    color: #ff69b4;
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.card p {
    font-size: 1rem;
    color: #666;
    margin-bottom: 0;
}

.center-content {
    text-align: center;
    margin-top: 3rem;
}

.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    background-color: #ff8c00;
    color: #fff;
    text-decoration: none;
    border-radius: 30px;
    font-weight: bold;
    font-size: 1.1rem;
    transition: background-color 0.3s ease, transform 0.1s ease;
}

.btn:hover {
    background-color: #ffa500;
}

.btn:active {
    transform: scale(0.98);
}

.principles-list {
    margin-left: 2rem;
    margin-top: 1rem;
}

.principles-list li {
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
}

.error-container {
    text-align: center;
    margin-top: 5vh;
}

.error-code {
    font-size: 8rem;
    font-weight: 900;
    color: #ffb6c1;
    line-height: 1;
    margin-bottom: 1rem;
}

footer {
    background-color: #ffb6c1;
    color: #fff;
    text-align: center;
    padding: 1.5rem;
    margin-top: auto;
    font-weight: 500;
}