/* ==========================================================================
   Layout Styles - Header, Footer, Grid Systems, Containers
   ========================================================================== */

/* Header styles */
header {
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(5px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
    transition: all 0.3s ease;
}

header.scrolled {
    padding: 0.5rem 0;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    position: relative;
    display: inline-block;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

/* Navigation styles */
nav ul {
    display: flex;
    list-style: none;
}

nav li {
    margin-left: 2rem;
}

nav a {
    text-decoration: none;
    color: #555;
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
    padding: 0.5rem 0;
}

nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #222;
    transition: width 0.3s ease;
}

nav a:hover {
    color: #000;
}

nav a:hover::after,
nav a.active::after {
    width: 100%;
}

/* Hero section layout */
.hero {
    text-align: center;
    padding: 8rem 2rem;
    background: linear-gradient(to right, #f0f0f0, #e6e6e6);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.8) 0%, rgba(255,255,255,0) 70%);
    pointer-events: none;
}

.hero h1 {
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
}

.hero h1::after {
    content: '';
    position: absolute;
    width: 80px;
    height: 4px;
    background-color: #222;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
}

.hero p {
    max-width: 600px;
    margin: 0 auto 2rem;
}

/* Collection header layout */
.collection-header {
    text-align: center;
    padding: 6rem 2rem 4rem;
    background: linear-gradient(to right, #f0f0f0, #e6e6e6);
    position: relative;
}

.collection-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.8) 0%, rgba(255,255,255,0) 70%);
    pointer-events: none;
}

.collection-header h1 {
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
    padding-bottom: 0.5rem;
}

.collection-header h1::after {
    content: '';
    position: absolute;
    width: 60px;
    height: 3px;
    background-color: #222;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

.collection-header p {
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.8;
    position: relative;
}

/* About section layout */
.about {
    background-color: #f0f0f0;
    padding: 5rem 2rem;
    position: relative;
    overflow: hidden;
}

.about::before {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,0.8) 0%, rgba(255,255,255,0) 70%);
    top: -150px;
    right: -150px;
    opacity: 0.6;
}

.about-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}

/* Contact section layout */
.contact {
    padding: 5rem 2rem;
    background-color: white;
    position: relative;
}

.contact::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(0,0,0,0.1), transparent);
}

.contact-container {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

/* Footer layout */
footer {
    background-color: #222;
    color: white;
    padding: 3rem 2rem;
    text-align: center;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.copyright {
    color: #aaa;
    font-size: 0.9rem;
}

.footer-info {
    margin-top: 1.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.8;
    color: #999;
    font-size: 0.9rem;
}

/* Grid systems */
/* General gallery container */
.gallery-container,
.artwork-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1.5rem 5rem;
}

/* Collections grid - 2 column */
.collections-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
    margin-top: 3rem;
}

/* Gallery grid - 3 column */
.gallery-grid,
.artwork-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

/* Collection navigation grid - 4 column */
.collection-nav {
    background-color: #f0f0f0;
    padding: 3rem 1.5rem;
}

.collection-nav-container {
    max-width: 1200px;
    margin: 0 auto;
}

.collection-nav-title {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.collection-nav-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

/* Responsive layout adjustments */
@media (max-width: 1024px) {
    .gallery-grid,
    .artwork-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .collection-nav-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        padding: 1rem;
    }
    
    nav ul {
        margin-top: 1rem;
    }
    
    nav li {
        margin-left: 1rem;
        margin-right: 1rem;
    }
    
    .hero h1,
    .collection-header h1 {
        font-size: 2.5rem;
    }
    
    .collections-grid,
    .gallery-grid,
    .artwork-grid,
    .collection-nav-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-grid {
        gap: 2rem;
    }
    
    .about, 
    .contact {
        padding: 3rem 1.5rem;
    }
    
    .section-header h2, 
    .about h2, 
    .contact h2 {
        font-size: 2rem;
    }
}