:root {
    --primary-color: #EAEAEA;
    --secondary-color: #212121;
    --accent-color: #C0392B; /* A nice pop of red */
    --text-color: #333;
    --light-gray: #f4f4f4;
    --border-radius: 8px;
    --shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    background-color: var(--primary-color);
    color: var(--text-color);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

h1, h2, h3 {
    font-family: 'Oswald', sans-serif;
    font-weight: 700;
    color: var(--secondary-color);
}

a {
    text-decoration: none;
    color: var(--accent-color);
}

/* Header */
.main-header {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow);
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Oswald', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
}

.main-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 20px;
}

.main-nav a {
    color: var(--primary-color);
    font-weight: bold;
    transition: color 0.3s ease;
}

.main-nav a:hover {
    color: var(--accent-color);
}

/* Hero Section */
#hero {
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('https://images.unsplash.com/photo-1612810806583-a3745e8926a2?q=80&w=1974&auto=format&fit=crop') no-repeat center center/cover;
    height: 60vh;
    color: var(--primary-color);
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 20px;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.search-bar input {
    width: 100%;
    max-width: 500px;
    padding: 15px;
    font-size: 1rem;
    border: none;
    border-radius: var(--border-radius);
}

/* Controls & Filters */
.controls {
    margin-bottom: 40px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 20px;
}

.filters h3 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.filter-group {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.filter-group label {
    display: flex;
    align-items: center;
    cursor: pointer;
    background-color: #fff;
    padding: 5px 12px;
    border-radius: 20px;
    border: 1px solid #ddd;
    transition: all 0.3s ease;
}

.filter-group input[type="checkbox"] {
    margin-right: 5px;
}

.filter-group label:hover {
    border-color: var(--accent-color);
}

.filter-group input[type="checkbox"]:checked + span {
    font-weight: bold;
}

#clear-filters {
    padding: 10px 20px;
    background-color: var(--secondary-color);
    color: var(--primary-color);
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-family: 'Oswald', sans-serif;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

#clear-filters:hover {
    background-color: #444;
}

/* Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.studio-card {
    background: #fff;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.studio-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.studio-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.card-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-content h3 {
    margin-top: 0;
}

.card-content .location {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 10px;
}

.card-content .price-range {
    font-weight: bold;
    color: var(--accent-color);
    margin-bottom: 15px;
}

.styles-list {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.style-tag {
    background-color: var(--light-gray);
    color: var(--secondary-color);
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: bold;
}

.card-link {
    margin-top: auto;
    background-color: var(--secondary-color);
    color: var(--primary-color);
    padding: 10px 15px;
    text-align: center;
    border-radius: var(--border-radius);
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.card-link:hover {
    background-color: var(--accent-color);
}

/* Blog Section */
#blog {
    background-color: #fff;
    padding: 60px 20px;
    margin-top: 60px;
}

#blog h2 {
    text-align: center;
    margin-bottom: 40px;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.blog-card {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}

.blog-card:hover {
    transform: scale(1.02);
}

.blog-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.blog-card-content {
    padding: 20px;
}

.blog-card-content h3 {
    margin-top: 0;
    font-size: 1.3rem;
}

.blog-meta {
    font-size: 0.9rem;
    color: #777;
    margin-bottom: 10px;
}

/* Footer */
.main-footer {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    text-align: center;
    padding: 30px 20px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .controls {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-group {
        justify-content: center;
    }
}

/* Form Messages */
.error-message {
    background-color: #f8d7da;
    color: #721c24;
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 1.5rem;
    border: 1px solid #f5c6cb;
}

.success-message {
    background-color: #d4edda;
    color: #155724;
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 1.5rem;
    border: 1px solid #c3e6cb;
}

.error {
    color: #721c24;
    font-size: 0.875rem;
    display: block;
    margin-top: 0.25rem;
}

.form-group input.error,
.form-group textarea.error {
    border-color: #dc3545;
}