/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --color-primary: #1a73e8;
    --color-secondary: #5f6368;
    --color-background: #000000;
    --color-surface: #0a0a0a;
    --color-surface-light: #1a1a1a;
    --color-text: #e8eaed;
    --color-text-secondary: #9aa0a6;
    --border-radius: 8px;
    --spacing-unit: 8px;
    --max-width: 1400px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--color-background);
    color: var(--color-text);
    line-height: 1.6;
    font-size: 16px;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 calc(var(--spacing-unit) * 3);
}

/* Header and Navigation */
.site-header {
    background-color: var(--color-surface);
    border-bottom: 1px solid var(--color-surface-light);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    padding: calc(var(--spacing-unit) * 2) 0;
    position: relative;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.logo h1 {
    font-size: 24px;
    font-weight: 600;
    color: var(--color-text);
}

.logo {
    text-decoration: none;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: calc(var(--spacing-unit) * 4);
}

.nav-menu a {
    color: var(--color-text);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-menu a:hover {
    color: var(--color-primary);
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.mobile-menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--color-text);
    margin: 5px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    position: relative;
    height: 70vh;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.4;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3), rgba(0,0,0,0.8));
}

.hero-content {
    text-align: center;
    z-index: 1;
}

.hero-content h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 16px;
}

.hero-content p {
    font-size: 20px;
    color: var(--color-text-secondary);
    margin-bottom: 40px;
}

.hero-stats {
    display: flex;
    gap: 60px;
    justify-content: center;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 36px;
    font-weight: 700;
    color: var(--color-primary);
}

.stat-label {
    font-size: 14px;
    color: var(--color-text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Section Styles */
section {
    padding: calc(var(--spacing-unit) * 10) 0;
}

.section-title {
    font-size: 36px;
    font-weight: 600;
    margin-bottom: calc(var(--spacing-unit) * 5);
    text-align: center;
}

/* Photo Grid */
.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: calc(var(--spacing-unit) * 3);
}

.photo-card {
    background-color: var(--color-surface);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}

.photo-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.5);
}

.photo-link {
    text-decoration: none;
    color: inherit;
}

.photo-image {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
}

.photo-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.photo-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s;
}

.photo-card:hover .photo-overlay {
    opacity: 1;
}

.view-icon {
    font-size: 32px;
}

.photo-info {
    padding: calc(var(--spacing-unit) * 2);
}

.photo-info h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}

.photo-object, .photo-exposure, .photo-date {
    font-size: 14px;
    color: var(--color-text-secondary);
}

/* Collections Grid */
.collections-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: calc(var(--spacing-unit) * 4);
}

.collection-card {
    background-color: var(--color-surface);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}

.collection-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.5);
}

.collection-link {
    text-decoration: none;
    color: inherit;
}

.collection-image {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
}

.collection-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.collection-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--color-surface-light), var(--color-surface));
}

.collection-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    padding: calc(var(--spacing-unit) * 2);
}

.photo-count {
    font-size: 14px;
    font-weight: 500;
}

.collection-info {
    padding: calc(var(--spacing-unit) * 3);
}

.collection-info h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
}

.collection-info p {
    font-size: 14px;
    color: var(--color-text-secondary);
    line-height: 1.5;
}

/* Footer */
.site-footer {
    background-color: var(--color-surface);
    border-top: 1px solid var(--color-surface-light);
    padding: calc(var(--spacing-unit) * 6) 0 calc(var(--spacing-unit) * 3);
    margin-top: calc(var(--spacing-unit) * 10);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: calc(var(--spacing-unit) * 6);
    margin-bottom: calc(var(--spacing-unit) * 4);
}

.footer-section h3, .footer-section h4 {
    margin-bottom: calc(var(--spacing-unit) * 2);
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: var(--spacing-unit);
}

.footer-section a {
    color: var(--color-text-secondary);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-section a:hover {
    color: var(--color-text);
}

.footer-bottom {
    text-align: center;
    padding-top: calc(var(--spacing-unit) * 3);
    border-top: 1px solid var(--color-surface-light);
    color: var(--color-text-secondary);
    font-size: 14px;
}

.version-info {
    margin-top: calc(var(--spacing-unit) * 1);
    font-family: 'Courier New', Monaco, monospace;
    font-size: 12px;
    opacity: 0.6;
    color: var(--color-text-secondary);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: calc(var(--spacing-unit) * 1.5) calc(var(--spacing-unit) * 3);
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: var(--color-primary);
    color: white;
}

.btn-primary:hover {
    background-color: #1557b0;
    transform: translateY(-2px);
}

.section-footer {
    text-align: center;
    margin-top: calc(var(--spacing-unit) * 5);
}

/* Mobile Menu */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--color-surface);
        border-bottom: 1px solid var(--color-surface-light);
        padding: 20px;
        flex-direction: column;
        gap: 16px;
        box-shadow: 0 4px 6px rgba(0,0,0,0.3);
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    
    .hero-content h1 {
        font-size: 36px;
    }
    
    .hero-content p {
        font-size: 18px;
    }
    
    .hero-stats {
        gap: 30px;
    }
    
    .stat-number {
        font-size: 28px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: calc(var(--spacing-unit) * 4);
    }
    
    .photo-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
    
    .collections-grid {
        grid-template-columns: 1fr;
    }
}

/* Photo Viewer Styles */
.photo-viewer {
    background: var(--color-background);
    min-height: 70vh;
}

.viewer-container {
    position: relative;
    width: 100%;
    height: 70vh;
    background: #111;
    display: flex;
    align-items: center;
    justify-content: center;
}

.simple-viewer {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.main-photo {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: var(--border-radius);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.photo-details {
    padding: calc(var(--spacing-unit) * 6) 0;
}

.details-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: calc(var(--spacing-unit) * 6);
    align-items: start;
}

.main-info h1 {
    font-size: 2.5rem;
    margin-bottom: calc(var(--spacing-unit) * 2);
    color: var(--color-text);
}

.object-name {
    font-size: 1.5rem;
    color: var(--color-primary);
    margin-bottom: calc(var(--spacing-unit) * 3);
}

.description, .story {
    margin-bottom: calc(var(--spacing-unit) * 4);
    line-height: 1.7;
}

.story h3 {
    margin-bottom: calc(var(--spacing-unit) * 2);
    color: var(--color-text);
}

/* Responsive photo viewer */
@media (max-width: 768px) {
    .details-grid {
        grid-template-columns: 1fr;
        gap: calc(var(--spacing-unit) * 4);
    }
    
    .viewer-container {
        height: 50vh;
    }
    
    .main-info h1 {
        font-size: 2rem;
    }
}