:root {
    --bg-color: #0b0c10;
    --text-color: #c5c6c7;
    --accent-color: #d4af37;
    --accent-hover: #b8962c;
    --card-bg: rgba(31, 40, 51, 0.6);
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 400;
    color: #ffffff;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.5rem 0;
    z-index: 1000;
    transition: all 0.4s ease;
}

.navbar.scrolled {
    background: rgba(11, 12, 16, 0.9);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

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

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
    letter-spacing: 2px;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: #fff;
    text-decoration: none;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--accent-color);
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

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

.banner-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

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

.hero-content {
    max-width: 800px;
    padding: 0 2rem;
}

.subtitle {
    font-size: 1.1rem;
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 4px;
    margin-bottom: 1rem;
}

.title {
    font-size: 5rem;
    margin-bottom: 1.5rem;
    letter-spacing: 2px;
}

.quote {
    font-family: var(--font-heading);
    font-style: italic;
    font-size: 1.4rem;
    margin-bottom: 3rem;
    color: #e0e0e0;
}

.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    border: 1px solid var(--accent-color);
    color: var(--accent-color);
    text-decoration: none;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all 0.3s ease;
    background: transparent;
    cursor: pointer;
}

.btn:hover {
    background: var(--accent-color);
    color: var(--bg-color);
}

/* General Sections */
.section {
    padding: 6rem 2rem;
}

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

.section-title {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.divider {
    width: 60px;
    height: 2px;
    background-color: var(--accent-color);
    margin: 0 auto;
}

/* About Section */
.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    font-size: 1.1rem;
}

.about-content p {
    margin-bottom: 1.5rem;
}

/* Poems Section */
.poems-grid {
    display: flex;
    overflow-x: auto;
    gap: 2.5rem;
    padding-bottom: 2rem;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
}

/* Custom Scrollbar for poems grid */
.poems-grid::-webkit-scrollbar {
    height: 8px;
}
.poems-grid::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}
.poems-grid::-webkit-scrollbar-thumb {
    background: var(--accent-color);
    border-radius: 4px;
}

.poem-card {
    flex: 0 0 320px;
    scroll-snap-align: start;
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 2.5rem 2rem;
    border-radius: 4px;
    text-align: center;
    transition: transform 0.4s ease, background 0.4s ease;
    backdrop-filter: blur(5px);
}

.poem-card:hover {
    transform: translateY(-10px);
    background: rgba(31, 40, 51, 0.8);
    border-color: rgba(212, 175, 55, 0.3);
}

.poem-card h3 {
    font-size: 1.6rem;
    margin-bottom: 1.5rem;
    color: var(--accent-color);
}

.poem-excerpt {
    font-style: italic;
    margin-bottom: 2rem;
    color: #a0a0a0;
}

.read-more-btn {
    background: none;
    border: none;
    color: #fff;
    font-family: var(--font-body);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    border-bottom: 1px solid var(--accent-color);
    padding-bottom: 4px;
    transition: color 0.3s ease;
}

.read-more-btn:hover {
    color: var(--accent-color);
}

/* Footer */
footer {
    padding: 3rem 2rem;
    background: #07080a;
    text-align: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.social-links {
    display: flex;
    gap: 1.5rem;
}

.social-links a {
    color: #888;
    text-decoration: none;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--accent-color);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(11, 12, 16, 0.95);
    backdrop-filter: blur(5px);
    overflow: auto;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.modal.show {
    opacity: 1;
}

.modal-content {
    background-color: #151b23;
    margin: 10% auto;
    padding: 4rem;
    border: 1px solid var(--accent-color);
    width: 90%;
    max-width: 700px;
    position: relative;
    border-radius: 4px;
    transform: translateY(20px);
    transition: transform 0.4s ease;
}

.modal.show .modal-content {
    transform: translateY(0);
}

.close-modal {
    color: #aaa;
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-modal:hover {
    color: var(--accent-color);
}

.modal-body h2 {
    font-size: 2rem;
    color: var(--accent-color);
    text-align: center;
    margin-bottom: 1rem;
}

.modal-divider {
    width: 40px;
    height: 1px;
    background-color: rgba(255, 255, 255, 0.2);
    margin: 0 auto 2rem auto;
}

.poem-text {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    line-height: 2;
    text-align: center;
    color: #e0e0e0;
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeIn 1s forwards;
}

.fade-in:nth-child(1) { animation-delay: 0.2s; }
.fade-in:nth-child(2) { animation-delay: 0.4s; }
.fade-in:nth-child(3) { animation-delay: 0.6s; }
.fade-in:nth-child(4) { animation-delay: 0.8s; }

@keyframes fadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
    .title {
        font-size: 3.5rem;
    }
    
    .quote {
        font-size: 1.2rem;
    }
    
    .nav-links {
        display: none;
    }
    
    .modal-content {
        padding: 2.5rem 1.5rem;
        margin: 20% auto;
    }
    
    .poem-text {
        font-size: 1.1rem;
    }
}

/* Fixed Bottom Actions */
.fixed-bottom-actions {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
    z-index: 999;
    background: rgba(11, 12, 16, 0.85);
    padding: 10px 20px;
    border-radius: 30px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(212, 175, 55, 0.3);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    white-space: nowrap;
}

.fixed-btn {
    color: #fff;
    text-decoration: none;
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 0.95rem;
    padding: 8px 16px;
    border-radius: 20px;
    background: transparent;
    border: 1px solid var(--accent-color);
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: center;
}

.fixed-btn:hover {
    background: var(--accent-color);
    color: var(--bg-color);
}

@media (max-width: 768px) {
    .fixed-bottom-actions {
        width: 90%;
        max-width: 400px;
        bottom: 15px;
        padding: 10px;
    }
    .fixed-btn {
        font-size: 0.85rem;
        flex: 1;
        padding: 8px 10px;
    }
}

/* Memory Feed (Homepage integration) */
.memory-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
}

.memory-post {
    background: #151b23;
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    display: flex;
    flex-direction: column;
}

.post-header {
    padding: 15px 20px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.post-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--accent-color);
    color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    margin-right: 15px;
    font-family: var(--font-heading);
}

.post-author {
    color: #fff;
    font-weight: 500;
    font-size: 1.1rem;
}

.post-date {
    margin-left: auto;
    color: #666;
    font-size: 0.85rem;
}

.post-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    background: #000;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.post-content {
    padding: 20px;
    color: #ddd;
    line-height: 1.6;
    flex-grow: 1;
}
