:root {
    --primary-color: #6d5d6e;
    --secondary-color: #4f4557;
    --accent-color: #f4abc4;
    --light-color: #f8f5f5;
    --dark-color: #393646;
    --text-color: #333;
    --text-light: #777;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Raleway', sans-serif;
    --transition: all 0.3s ease;
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 8px 25px rgba(0, 0, 0, 0.15);
}

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

body {
    font-family: var(--font-body);
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--light-color);
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

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

.section {
    padding: 80px 0;
}

.dark-bg {
    background-color: var(--secondary-color);
    color: var(--light-color);
}

.highlight {
    color: var(--accent-color);
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    background-color: var(--accent-color);
    color: white;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
    background-color: #e895b3;
}

/* Header & Navigation */
.hero {
    background: linear-gradient(rgba(57, 54, 70, 0.8), rgba(57, 54, 70, 0.8)), url('https://images.unsplash.com/photo-1516979187457-637abb4f9353?ixlib=rb-1.2.1&auto=format&fit=crop&w=1350&q=80') no-repeat center center/cover;
    height: 100vh;
    color: white;
    display: flex;
    flex-direction: column;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    position: fixed;
    width: 100%;
    z-index: 1000;
    transition: var(--transition);
}

nav.scrolled {
    background-color: var(--secondary-color);
    box-shadow: var(--shadow);
    padding: 15px 5%;
}

.logo {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 700;
    color: var(--accent-color);
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    transition: var(--transition);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: var(--transition);
}

.nav-links a:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    cursor: pointer;
}

.hamburger .line {
    width: 25px;
    height: 3px;
    background-color: white;
    margin: 5px;
    transition: var(--transition);
}

.hero-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 20px;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    animation: fadeInUp 1s ease;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    max-width: 700px;
    animation: fadeInUp 1s ease 0.3s forwards;
    opacity: 0;
}

.search-container {
    display: flex;
    width: 100%;
    max-width: 600px;
    animation: fadeInUp 1s ease 0.6s forwards;
    opacity: 0;
}

.search-container input {
    flex: 1;
    padding: 15px 20px;
    border: none;
    border-radius: 30px 0 0 30px;
    font-size: 1rem;
}

.search-container button {
    padding: 15px 25px;
    background-color: var(--accent-color);
    color: white;
    border: none;
    border-radius: 0 30px 30px 0;
    cursor: pointer;
    transition: var(--transition);
}

.search-container button:hover {
    background-color: #e895b3;
}

/* Poem Grid */
.poem-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.poem-card {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    cursor: pointer;
}

.poem-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.poem-card-img {
    height: 200px;
    background-size: cover;
    background-position: center;
}

.poem-card-content {
    padding: 20px;
}

.poem-card h3 {
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.poem-card p.author {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.poem-card p.excerpt {
    display: -webkit-box;
    display: -moz-box;
    display: box;
    -webkit-line-clamp: 3;
    -moz-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    -moz-box-orient: vertical;
    box-orient: vertical;
    overflow: hidden;
    margin-bottom: 15px;
}

.poem-card .meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--text-light);
}

.load-more {
    display: block;
    margin: 40px auto 0;
}

/* Genre Grid */
.genre-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.genre-card {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 30px 20px;
    border-radius: 10px;
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
}

.genre-card:hover {
    transform: translateY(-10px);
    background-color: rgba(255, 255, 255, 0.2);
}

.genre-card i {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 15px;
}

.genre-card h3 {
    margin-bottom: 10px;
}

.genre-card p {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* About Section */
.about-container {
    display: flex;
    gap: 50px;
    align-items: center;
}

.about-text {
    flex: 1;
}

.about-image {
    flex: 1;
}

.about-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.stats {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
}

.stat {
    text-align: center;
}

.stat .number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent-color);
    display: block;
}

.stat .label {
    font-size: 0.9rem;
    color: var(--text-light);
}

/* Contact Section */
.contact-container {
    display: flex;
    gap: 50px;
}

.contact-form {
    flex: 1;
}

.social-links {
    flex: 1;
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 5px;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    font-family: var(--font-body);
}

.form-group textarea {
    resize: vertical;
}

::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.submit-btn {
    width: 100%;
}

.social-icons {
    display: flex;
    gap: 20px;
    margin: 20px 0;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    font-size: 1.2rem;
    transition: var(--transition);
}

.social-icons a:hover {
    background-color: var(--accent-color);
    transform: translateY(-5px);
}

.newsletter input {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 5px;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    margin-bottom: 10px;
}

.newsletter button {
    width: 100%;
}

/* Footer */
footer {
    background-color: var(--dark-color);
    color: white;
    padding: 40px 0;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.footer-logo {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 20px;
}

.footer-links {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.footer-links a {
    transition: var(--transition);
}

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

.copyright {
    font-size: 0.9rem;
    opacity: 0.7;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    overflow-y: auto;
}

.modal-content {
    background-color: white;
    margin: 50px auto;
    max-width: 800px;
    border-radius: 10px;
    padding: 40px;
    position: relative;
    animation: modalFadeIn 0.5s ease;
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition);
}

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

.poem-title {
    font-size: 2rem;
    margin-bottom: 10px;
}

.poem-author {
    color: var(--text-light);
    margin-bottom: 20px;
}

.poem-text {
    white-space: pre-line;
    line-height: 2;
    margin-bottom: 30px;
    font-size: 1.1rem;
}

.poem-meta {
    display: flex;
    justify-content: space-between;
    color: var(--text-light);
    margin-bottom: 30px;
    font-size: 0.9rem;
}

.poem-actions {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
}

.poem-actions button {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 10px 15px;
    background-color: #f0f0f0;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: var(--transition);
}

.poem-actions button:hover {
    background-color: #e0e0e0;
}

.comments-section {
    border-top: 1px solid #eee;
    padding-top: 30px;
}

.comments-section h3 {
    margin-bottom: 20px;
}

.comments-list {
    margin-bottom: 20px;
}

.comment {
    padding: 15px;
    background-color: #f9f9f9;
    border-radius: 5px;
    margin-bottom: 15px;
}

.comment .author {
    font-weight: 600;
    margin-bottom: 5px;
}

.comment .date {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-bottom: 10px;
}

.comment-form textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    resize: vertical;
    margin-bottom: 10px;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 992px) {
    .about-container,
    .contact-container {
        flex-direction: column;
    }
    
    .about-image {
        order: -1;
        margin-bottom: 30px;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background-color: var(--secondary-color);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 40px;
        transition: var(--transition);
    }
    
    .nav-links.active {
        left: 0;
    }
    
    .hamburger {
        display: block;
    }
    
    .hamburger.active .line:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .hamburger.active .line:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active .line:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .stats {
        flex-direction: column;
        gap: 20px;
    }
}

@media (max-width: 576px) {
    .section {
        padding: 60px 0;
    }
    
    .poem-grid {
        grid-template-columns: 1fr;
    }
    
    .genre-grid {
        grid-template-columns: 1fr 1fr;
    }
}