@import url('https://fonts.googleapis.com/css2?family=Gloria+Hallelujah&display=swap');

:root {
    --primary-color: #007bff;
    --secondary-color: #6c757d;
    --background-color: #ffffff;
    --text-color: #333333;
    --header-bg: #f8f9fa;
    --footer-bg: #f8f9fa;
    --link-color: #007bff;
    --link-hover: #0056b3;
    --border-color: #dee2e6;
}

@media (prefers-color-scheme: dark) {
    :root {
        --background-color: #121212;
        --text-color: #ffffff;
        --header-bg: #1e1e1e;
        --footer-bg: #1e1e1e;
        --link-color: #4dabf7;
        --link-hover: #339af0;
        --border-color: #495057;
    }
}

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

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

header {
    background-color: var(--header-bg);
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header h1 {
    font-size: 2rem;
    margin-bottom: 0;
}

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

nav a {
    color: var(--link-color);
    text-decoration: none;
    padding: 0.5rem;
    border-radius: 4px;
    transition: background-color 0.3s;
}

nav a:hover {
    background-color: var(--primary-color);
    color: white;
}

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

.three-columns {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

@media (max-width: 768px) {
    .three-columns {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

.title-section {
    text-align: center;
    margin-bottom: 3rem;
}

h1, h2, h3 {
    margin-bottom: 1rem;
    color: var(--text-color);
}

h2, h3 {
    font-family: 'Gloria Hallelujah', cursive;
    font-weight: 700;
}

p, li {
    margin-bottom: 0.5rem;
}

ul li {
    background-color: rgba(128, 128, 128, 0.1);
    padding: 0.5rem;
    margin-bottom: 0.5rem;
    border-radius: 4px;
}

.work-item {
    background-color: rgba(128, 128, 128, 0.1);
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 4px;
}

a {
    color: var(--link-color);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
    color: var(--link-hover);
}

footer p {
    font-family: 'Gloria Hallelujah', cursive;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        text-align: center;
    }

    nav ul {
        flex-direction: row;
        gap: 0.5rem;
        justify-content: center;
    }

    main {
        padding: 1rem;
    }
}

.review-card {
    background-color: var(--header-bg);
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.quotee {
    color: var(--secondary-color);
    font-style: italic;
    margin-top: 0.5rem;
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
    justify-items: center;
}

.form-section {
    text-align: center;
}

form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 500px;
    margin: 0 auto;
}

label {
    font-weight: 500;
    display: block;
    margin-bottom: 0.5rem;
}

input, textarea {
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    background-color: var(--background-color);
    color: var(--text-color);
    width: 100%;
    box-sizing: border-box;
}

textarea {
    height: 150px;
    resize: vertical;
}

input:user-invalid, textarea:user-invalid {
    border-color: #dc3545;
}

input:user-valid, textarea:user-valid {
    border-color: #28a745;
}

button {
    padding: 0.75rem;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

button:hover {
    background-color: var(--link-hover);
}