/* Color Variables */
:root {
    --heritage-gold: #D4AF37;
    --archival-black: #1A1A1A;
    --memory-blue: #1976D2;
    --life-story-red: #C2185B;
    --gold-light: #E8D5A3;
    --gold-dark: #B8941F;
}

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

body {
    font-family: 'Georgia', 'Times New Roman', serif;
    background-color: var(--heritage-gold);
    color: var(--archival-black);
    line-height: 1.6;
}

/* Top Bar */
.top-bar {
    background-color: var(--archival-black);
    color: var(--heritage-gold);
    padding: 1rem 0;
    font-size: 1.1rem;
    font-weight: 300;
    letter-spacing: 1px;
    border-bottom: 2px solid var(--heritage-gold);
}

/* Header with Keyhole */
.header-section {
    padding: 3rem 0 2rem;
    background: linear-gradient(180deg, var(--heritage-gold) 0%, var(--gold-light) 100%);
}

.keyhole-container {
    margin-bottom: 2rem;
}

.keyhole {
    position: relative;
    display: inline-block;
    width: 120px;
    height: 180px;
}

.keyhole-head {
    width: 100px;
    height: 100px;
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    background-color: var(--archival-black);
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    border: 4px solid var(--heritage-gold);
    box-shadow: 0 0 20px rgba(26, 26, 26, 0.3);
}

/* Profile head shape */
.keyhole-head::before {
    content: '';
    position: absolute;
    width: 80px;
    height: 80px;
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    background-color: var(--archival-black);
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    border: 3px solid var(--heritage-gold);
}

/* Keyhole opening */
.keyhole-head::after {
    content: '';
    position: absolute;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: var(--heritage-gold);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.keyhole-shaft {
    width: 20px;
    height: 80px;
    background-color: var(--archival-black);
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    border: 4px solid var(--heritage-gold);
    border-top: none;
    border-radius: 0 0 10px 10px;
}

.site-title {
    font-size: 3rem;
    font-weight: 700;
    color: var(--archival-black);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    letter-spacing: 2px;
}

/* Hero Section */
.hero-section {
    padding: 4rem 0;
    background-color: var(--heritage-gold);
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--archival-black);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-description {
    font-size: 1.2rem;
    color: var(--archival-black);
    margin-bottom: 2rem;
    opacity: 0.9;
}

.audio-player {
    margin-top: 2rem;
}

.audio-placeholder {
    background-color: var(--archival-black);
    color: var(--heritage-gold);
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    border: 2px solid var(--heritage-gold);
}

.audio-placeholder svg {
    color: var(--heritage-gold);
}

.btn-play {
    background-color: var(--memory-blue);
    color: white;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 5px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.btn-play:hover {
    background-color: var(--life-story-red);
    transform: scale(1.05);
}

.play-icon {
    margin-right: 0.5rem;
}

.hero-image-placeholder {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 300px;
}

.memory-box {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.photo-frame {
    width: 120px;
    height: 150px;
    background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold-dark) 100%);
    border: 8px solid var(--archival-black);
    border-radius: 5px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    position: relative;
    transform: rotate(-5deg);
    animation: float 3s ease-in-out infinite;
}

.photo-frame:nth-child(2) {
    transform: rotate(2deg);
    animation-delay: 0.5s;
}

.photo-frame:nth-child(3) {
    transform: rotate(-3deg);
    animation-delay: 1s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(-5deg);
    }
    50% {
        transform: translateY(-10px) rotate(-5deg);
    }
}

/* Features Section */
.features-section {
    padding: 4rem 0;
    background: linear-gradient(180deg, var(--heritage-gold) 0%, var(--gold-light) 100%);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--archival-black);
    margin-bottom: 3rem;
}

.feature-card {
    background-color: var(--archival-black);
    color: var(--heritage-gold);
    padding: 2.5rem;
    border-radius: 10px;
    text-align: center;
    height: 100%;
    border: 3px solid var(--heritage-gold);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 3px solid;
}

.feature-icon.blue {
    background-color: var(--memory-blue);
    border-color: var(--memory-blue);
    color: white;
}

.feature-icon.red {
    background-color: var(--life-story-red);
    border-color: var(--life-story-red);
    color: white;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--heritage-gold);
}

.feature-card p {
    font-size: 1rem;
    line-height: 1.6;
    opacity: 0.9;
}

/* Timeline Section */
.timeline-section {
    padding: 4rem 0;
    background-color: var(--heritage-gold);
}

.timeline-container {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 0;
}

.timeline-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 4px;
    background-color: var(--archival-black);
    transform: translateX(-50%);
}

.timeline-events {
    position: relative;
}

.timeline-event {
    position: relative;
    margin-bottom: 3rem;
    display: flex;
    align-items: center;
}

.timeline-event:nth-child(odd) {
    flex-direction: row;
}

.timeline-event:nth-child(even) {
    flex-direction: row-reverse;
}

.timeline-content {
    width: 45%;
    background-color: var(--archival-black);
    color: var(--heritage-gold);
    padding: 1.5rem;
    border-radius: 10px;
    border: 2px solid var(--heritage-gold);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.timeline-event:nth-child(odd) .timeline-content {
    margin-right: auto;
}

.timeline-event:nth-child(even) .timeline-content {
    margin-left: auto;
}

.timeline-dot {
    position: absolute;
    left: 50%;
    width: 20px;
    height: 20px;
    background-color: var(--heritage-gold);
    border: 4px solid var(--archival-black);
    border-radius: 50%;
    transform: translateX(-50%);
    z-index: 2;
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}

.timeline-year {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--memory-blue);
    margin-bottom: 0.5rem;
}

.timeline-text {
    font-size: 1rem;
    line-height: 1.6;
}

/* Q&A Section */
.qa-section {
    padding: 4rem 0;
    background: linear-gradient(180deg, var(--gold-light) 0%, var(--heritage-gold) 100%);
}

.qa-container {
    background-color: var(--archival-black);
    border-radius: 15px;
    padding: 2rem;
    border: 3px solid var(--heritage-gold);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.qa-chat {
    min-height: 300px;
    max-height: 500px;
    overflow-y: auto;
    padding: 1.5rem;
    background-color: rgba(26, 26, 26, 0.8);
    border-radius: 10px;
    margin-bottom: 1.5rem;
}

.message {
    margin-bottom: 1.5rem;
    display: flex;
}

.user-message {
    justify-content: flex-end;
}

.bot-message {
    justify-content: flex-start;
}

.message-content {
    max-width: 70%;
    padding: 1rem 1.5rem;
    border-radius: 15px;
    font-size: 1rem;
    line-height: 1.6;
}

.user-message .message-content {
    background-color: var(--memory-blue);
    color: white;
    border-bottom-right-radius: 5px;
}

.bot-message .message-content {
    background-color: var(--heritage-gold);
    color: var(--archival-black);
    border-bottom-left-radius: 5px;
}

.qa-input-container {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.qa-input-container input {
    flex: 1;
    padding: 1rem;
    background-color: var(--archival-black);
    color: var(--heritage-gold);
    border: 2px solid var(--heritage-gold);
    border-radius: 5px;
    font-size: 1rem;
}

.qa-input-container input:focus {
    outline: none;
    border-color: var(--memory-blue);
}

.qa-input-container input::placeholder {
    color: rgba(212, 175, 55, 0.5);
}

.btn-send {
    background-color: var(--life-story-red);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-send:hover {
    background-color: var(--memory-blue);
    transform: scale(1.05);
}

.qa-suggestions {
    text-align: center;
}

.suggestion-label {
    color: var(--heritage-gold);
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.suggestion-buttons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.btn-suggestion {
    background-color: transparent;
    color: var(--heritage-gold);
    border: 1px solid var(--heritage-gold);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-suggestion:hover {
    background-color: var(--heritage-gold);
    color: var(--archival-black);
}

/* Bottom Bar */
.bottom-bar {
    background-color: var(--archival-black);
    color: var(--heritage-gold);
    padding: 2rem 0;
    border-top: 2px solid var(--heritage-gold);
    font-size: 0.9rem;
}

.copyright-link {
    color: var(--heritage-gold);
    text-decoration: underline;
    font-weight: 700;
    transition: all 0.3s ease;
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}

.copyright-link:hover {
    color: var(--gold-light);
    text-shadow: 0 0 15px rgba(212, 175, 55, 0.8);
    transform: scale(1.05);
    display: inline-block;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .site-title {
        font-size: 2rem;
    }
    
    .timeline-event {
        flex-direction: column !important;
    }
    
    .timeline-content {
        width: 90%;
        margin: 0 auto !important;
    }
    
    .timeline-dot {
        left: 20px;
    }
    
    .timeline-line {
        left: 20px;
    }
    
    .message-content {
        max-width: 85%;
    }
    
    .suggestion-buttons {
        flex-direction: column;
    }
    
    .btn-suggestion {
        width: 100%;
    }
}

/* Scrollbar Styling */
.qa-chat::-webkit-scrollbar {
    width: 8px;
}

.qa-chat::-webkit-scrollbar-track {
    background: var(--archival-black);
}

.qa-chat::-webkit-scrollbar-thumb {
    background: var(--heritage-gold);
    border-radius: 4px;
}

.qa-chat::-webkit-scrollbar-thumb:hover {
    background: var(--gold-dark);
}

