/* General styles */
body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #121212;
    color: white;
}

a {
    color: #1abc9c;
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    color: #16a085;
}

/* Header styles */
header {
    background: linear-gradient(90deg, #2d1e2f 0%, #4e4376 100%);
    padding: 2.5em 0 1.5em 0;
    text-align: center;
    color: #f8e9ff;
    box-shadow: 0 4px 24px rgba(78, 67, 118, 0.25);
    border-bottom-left-radius: 40px;
    border-bottom-right-radius: 40px;
    position: relative;
    margin-bottom: 2em;
    overflow: hidden;
}

header::before {
    content: '';
    position: absolute;
    left: 0; right: 0; top: 0; bottom: 0;
    background: radial-gradient(circle at 60% 40%, #a4508b33 0%, transparent 70%);
    z-index: 0;
}

header h1 {
    margin: 0 0 0.5em 0;
    font-size: 3em;
    font-family: 'Georgia', 'Times New Roman', serif;
    letter-spacing: 2px;
    font-weight: 700;
    color: #fff6fa;
    text-shadow: 0 2px 12px #a4508b55;
    position: relative;
    z-index: 1;
}

header p {
    margin: 0;
    font-size: 1.3em;
    color: #e0c3fc;
    font-family: 'Inter', Arial, sans-serif;
    font-weight: 400;
    letter-spacing: 1px;
    position: relative;
    z-index: 1;
}

@media (max-width: 700px) {
    header {
        padding: 1.5em 0 1em 0;
        border-bottom-left-radius: 20px;
        border-bottom-right-radius: 20px;
    }
    header h1 {
        font-size: 2em;
    }
    header p {
        font-size: 1em;
    }
}

/* Navigation styles */
nav {
    background-color: #34495e;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    padding: 1em 0;
}

nav a {
    padding: 0.5em 1em;
    text-transform: uppercase;
    font-weight: bold;
    transition: background-color 0.3s;
}

nav a:hover {
    background-color: #1abc9c;
    color: black;
}

/* Main content styles */
main {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    padding: 2em;
}

.card {
    background-color: #1e1e1e;
    border: 1px solid #333;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    margin: 1em;
    padding: 1em;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    flex: 1 1 300px; /* Ensures each card takes equal space */
    max-width: 300px;
    box-sizing: border-box;
}

.card img {
    max-width: 100%;
    border-radius: 10px 10px 0 0;
}

.card h3 {
    margin: 0.5em 0;
}