/* ========================
   CSS Reset & Base Styles
   ======================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Source Sans Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #2c2c2c;
    background-color: #fafafa;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ========================
   Typography
   ======================== */

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 600;
    line-height: 1.2;
}

/* ========================
   Audio Controls
   ======================== */

.audio-controls {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
}

.audio-toggle {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    color: #667eea;
}

.audio-toggle:hover {
    background: rgba(255, 255, 255, 1);
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.15);
}

.audio-toggle:active {
    transform: scale(0.95);
}

.audio-icon {
    transition: opacity 0.3s ease;
}

.audio-toggle.muted .audio-on {
    display: none;
}

.audio-toggle.muted .audio-off {
    display: block !important;
}

/* Responsive audio controls */
@media (max-width: 768px) {
    .audio-controls {
        top: 15px;
        right: 15px;
    }
    
    .audio-toggle {
        width: 40px;
        height: 40px;
    }
    
    .audio-icon {
        width: 20px;
        height: 20px;
    }
}

/* ========================
   Hero Section
   ======================== */

.hero-section {
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
}

.hero-content {
    max-width: 800px;
    padding: 2rem;
    animation: fadeInUp 1.2s ease-out;
}

.hero-title {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 300;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-divider {
    width: 100px;
    height: 2px;
    background: rgba(255, 255, 255, 0.8);
    margin: 2rem auto;
}

.hero-description {
    font-size: 1.1rem;
    font-weight: 400;
    line-height: 1.8;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.scroll-arrow {
    width: 24px;
    height: 24px;
    border: 2px solid white;
    border-top: none;
    border-left: none;
    transform: rotate(45deg);
    opacity: 0.7;
}

/* ========================
   Main Content
   ======================== */

.main-content {
    padding: 4rem 0;
    background: #fafafa;
}

.memorial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

/* ========================
   Memorial Cards
   ======================== */

.memorial-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.6s ease-out forwards;
}

.memorial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.card-photo {
    width: 100%;
    height: 280px;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.card-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.memorial-card:hover .card-photo img {
    transform: scale(1.05);
}

.placeholder-photo {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    font-weight: 600;
    font-family: 'Playfair Display', serif;
}

.card-content {
    padding: 2rem;
}

.card-name {
    font-size: 1.5rem;
    font-weight: 600;
    color: #2c2c2c;
    margin-bottom: 0.5rem;
    font-family: 'Playfair Display', serif;
}

.card-role {
    font-size: 1rem;
    color: #666;
    margin-bottom: 0.75rem;
    font-weight: 500;
}

.card-publication {
    font-size: 0.95rem;
    color: #4a90e2;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.card-date {
    font-size: 0.9rem;
    color: #888;
    font-style: italic;
}

.card-details {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* ========================
   Footer
   ======================== */

.site-footer {
    background: #2c2c2c;
    color: white;
    padding: 2rem 0;
    text-align: center;
}

.footer-text {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* ========================
   Animations
   ======================== */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

.memorial-card:nth-child(even) {
    animation-delay: 0.1s;
}

.memorial-card:nth-child(3n) {
    animation-delay: 0.2s;
}

/* ========================
   Responsive Design
   ======================== */

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .memorial-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .container {
        padding: 0 16px;
    }
    
    .card-content {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-content {
        padding: 1rem;
    }
}

/* ========================
   Loading States
   ======================== */

.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 200px;
    font-size: 1.1rem;
    color: #666;
}

.loading::after {
    content: '';
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
} 