:root {
    --bg-color: #f9fafb;
    --text-color: #1f2933;
    --muted-color: #6b7280;
    --accent-color: #2563eb;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI",
                 Roboto, Oxygen, Ubuntu, Cantarell, "Helvetica Neue", Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
}

header {
    position: relative;
    padding: 100px 20px 80px;
    text-align: center;
    background-image: url("img/hero-bg.jpg");
    background-size: cover;
    background-position: center;
    color: white;
}

header h1 {
    font-size: 3rem;
    margin-bottom: 10px;
}

header::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        rgba(15, 23, 42, 0.55),
        rgba(15, 23, 42, 0.35)
    );
}



header h1,
header p {
    position: relative;
    z-index: 1;
}


main {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 20px 60px;
}

section {
    margin-bottom: 40px;
}

section h2 {
    font-size: 1.6rem;
    margin-bottom: 10px;
}

footer {
    border-top: 1px solid #e5e7eb;
    padding: 20px;
    text-align: center;
    font-size: 0.9rem;
    color: var(--muted-color);
    margin-top: 60px;
}

/* Navigation styles */
header nav {
    position: relative;
    z-index: 2;
    padding: 15px 20px;
    background: rgba(15, 23, 42, 0.3);
    backdrop-filter: blur(10px);
}

header nav a {
    color: white;
    text-decoration: none;
    margin-right: 15px;
    font-weight: 500;
    transition: opacity 0.2s;
}

header nav a:hover {
    opacity: 0.8;
}

header nav form {
    display: inline;
}

header nav button {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background 0.2s;
}

header nav button:hover {
    background: rgba(255, 255, 255, 0.3);
}

header hr {
    display: none;
}

/* Messages */
.messages-container {
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 20px;
}

.message {
    padding: 12px 16px;
    margin-bottom: 10px;
    border-radius: 6px;
    font-size: 0.95rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.message-success {
    background-color: #d1fae5;
    color: #065f46;
    border-left: 4px solid #10b981;
}

.message-warning {
    background-color: #fef3c7;
    color: #92400e;
    border-left: 4px solid #f59e0b;
}

.message-error {
    background-color: #fee2e2;
    color: #991b1b;
    border-left: 4px solid #ef4444;
}

.message-info {
    background-color: #dbeafe;
    color: #1e40af;
    border-left: 4px solid #3b82f6;
}

/* Responsive improvements */
@media (max-width: 768px) {
    header {
        padding: 80px 15px 60px;
    }

    header h1 {
        font-size: 2rem;
    }

    main {
        padding: 0 15px 40px;
    }

    .messages-container {
        padding: 0 15px;
    }
}
