/* style.css for Muna Dhananjaya Portfolio - Paper Diary Theme */
body {
    font-family: 'Noto Serif Devanagari', 'EB Garamond', serif;
    background: linear-gradient(135deg, #f4f1e8 0%, #e8dcc0 100%);
    background-attachment: fixed;
    color: #3d2914;
    margin: 0;
    padding: 0;
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(139, 69, 19, 0.02) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(160, 82, 45, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(210, 180, 140, 0.02) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

.container {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
}

.navbar {
    background: rgba(255, 248, 240, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(139, 69, 19, 0.1);
    padding: 1rem 0;
    border-bottom: 2px solid rgba(160, 82, 45, 0.1);
    position: relative;
}
.navbar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50px;
    right: 50px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(160, 82, 45, 0.3), transparent);
}
.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.logo {
    font-size: 2rem;
    font-weight: bold;
    letter-spacing: 1px;
    color: #8b4513;
    font-family: 'Noto Serif Devanagari', 'EB Garamond', serif;
    text-shadow: 2px 2px 4px rgba(139, 69, 19, 0.1);
    position: relative;
}
.logo::after {
    content: '✒️';
    margin-left: 8px;
    font-size: 0.8em;
}
.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
    margin: 0;
    padding: 0;
}
.nav-links a {
    text-decoration: none;
    color: #3d2914;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    position: relative;
}
.nav-links a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(210, 180, 140, 0.2), rgba(222, 184, 135, 0.2));
    border-radius: 25px;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.nav-links a.active::before, .nav-links a:hover::before {
    opacity: 1;
}
.nav-links a.active, .nav-links a:hover {
    color: #8b4513;
    transform: translateY(-2px);
}

.hero {
    background: linear-gradient(135deg, rgba(255, 248, 240, 0.8) 0%, rgba(245, 245, 220, 0.9) 100%);
    padding: 4rem 0 3rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    bottom: 20px;
    border: 2px solid rgba(160, 82, 45, 0.2);
    border-radius: 15px;
    background: repeating-linear-gradient(
        transparent,
        transparent 24px,
        rgba(160, 82, 45, 0.05) 25px
    );
}
.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    font-family: 'EB Garamond', serif;
    color: #8b4513;
    text-shadow: 2px 2px 6px rgba(139, 69, 19, 0.1);
    position: relative;
    z-index: 1;
}
.hero p {
    font-size: 1.4rem;
    color: #a0522d;
    font-style: italic;
    position: relative;
    z-index: 1;
}

.poem-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 2rem 0;
    margin-top: 2rem;
}

.poem-card {
    background: rgba(255, 248, 240, 0.9);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(139, 69, 19, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    border: 1px solid rgba(160, 82, 45, 0.1);
}
.poem-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(139, 69, 19, 0.2);
}

.poem-image {
    height: 200px;
    background: linear-gradient(135deg, #f4f1e8 0%, #e8dcc0 100%);
    position: relative;
    overflow: hidden;
}

.poem-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.poem-card:hover .poem-image img {
    transform: scale(1.05);
}

.poem-icon {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: rgba(139, 69, 19, 0.3);
    background: linear-gradient(135deg, rgba(255, 248, 240, 0.8) 0%, rgba(232, 220, 192, 0.8) 100%);
}

.poem-category {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(139, 69, 19, 0.8);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
}

.poem-content {
    padding: 1.5rem;
}

.poem-title {
    font-size: 1.3rem;
    color: #3d2914;
    margin-bottom: 1rem;
    font-weight: 700;
    line-height: 1.3;
}

.poem-excerpt {
    color: #5a4037;
    line-height: 1.6;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.poem-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: #8b4513;
    border-top: 1px solid rgba(160, 82, 45, 0.1);
    padding-top: 1rem;
}

.poem-author {
    font-weight: 600;
}

.poem-date {
    opacity: 0.8;
}

.poem-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(139, 69, 19, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.poem-card:hover .poem-overlay {
    opacity: 1;
}

.read-more-btn {
    background: white;
    color: #8b4513;
    padding: 1rem 2rem;
    border-radius: 25px;
    font-weight: 600;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.poem-card:hover .read-more-btn {
    transform: translateY(0);
}

/* Ensure footer stays at bottom */
main {
    flex: 1;
}

/* View All Card */
.view-all-card {
    grid-column: 1 / -1;
    margin-top: 1rem;
}

.view-all-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem;
    background: linear-gradient(135deg, rgba(139, 69, 19, 0.1) 0%, rgba(160, 82, 45, 0.1) 100%);
    border: 2px dashed rgba(139, 69, 19, 0.3);
    border-radius: 15px;
    text-decoration: none;
    color: #8b4513;
    transition: all 0.3s ease;
}

.view-all-link:hover {
    background: linear-gradient(135deg, rgba(139, 69, 19, 0.2) 0%, rgba(160, 82, 45, 0.2) 100%);
    border-color: rgba(139, 69, 19, 0.5);
}

.view-all-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.view-all-link h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.5rem;
}

.view-all-link p {
    margin: 0 0 1rem 0;
    opacity: 0.8;
}

.arrow {
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.view-all-link:hover .arrow {
    transform: translateX(5px);
}

/* Poem Modal Styles */
.poem-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 2rem;
    animation: fadeIn 0.3s ease;
}

.poem-modal {
    background: rgba(255, 248, 240, 0.98);
    border-radius: 20px;
    max-width: 600px;
    max-height: 80vh;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
}

.modal-header {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid rgba(160, 82, 45, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, rgba(139, 69, 19, 0.05) 0%, rgba(160, 82, 45, 0.05) 100%);
}

.modal-header h2 {
    margin: 0;
    color: #3d2914;
    font-size: 1.5rem;
}

.close-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #8b4513;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: background 0.3s ease;
}

.close-btn:hover {
    background: rgba(139, 69, 19, 0.1);
}

.modal-content {
    padding: 2rem;
    max-height: 60vh;
    overflow-y: auto;

}

.poem-modal-image {
    text-align: center;
    margin-bottom: 1.5rem;
}

.poem-modal-image img {
    max-width: 100%;
    max-height: 200px;
    border-radius: 10px;
    object-fit: cover;
}

.poem-modal-title {
    text-align: center;
    margin-bottom: 1.5rem;
}

.poem-modal-title h1 {
    font-size: 2.5rem;
    color: #3d2914;
    margin: 0;
    line-height: 1.2;
    font-family: 'Noto Serif Devanagari', serif;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.poem-modal-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    color: #8b4513;
}

.poem-modal-meta .category {
    background: rgba(139, 69, 19, 0.1);
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-weight: 600;
}

.poem-modal-text p {
    line-height: 1.8;
    margin-bottom: 1rem;
    color: #3d2914;
}

.poem-stanzas {
    text-align: center;
    max-width: 100%;
    padding: 1rem 0;
}

.poem-stanza {
    margin-bottom: 2rem;
    line-height: 1.8;
}

.poem-line {
    margin-bottom: 0.5rem;
    color: #3d2914;
    font-size: 1.1rem;
    font-family: 'Noto Serif Devanagari', serif;
    line-height: 1.6;
    padding: 0.2rem 0;
}

.poem-modal-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(160, 82, 45, 0.1);
}

.share-btn, .view-all-btn {
    flex: 1;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    text-align: center;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.share-btn {
    background: linear-gradient(135deg, #8b4513 0%, #a0522d 100%);
    color: white;
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(139, 69, 19, 0.3);
}

.view-all-btn {
    background: rgba(139, 69, 19, 0.1);
    color: #8b4513;
    border: 1px solid rgba(139, 69, 19, 0.3);
}

.view-all-btn:hover {
    background: rgba(139, 69, 19, 0.2);
}

footer {
    margin-top: auto;
    background: linear-gradient(135deg, #2c1810 0%, #3d2914 100%);
    color: #fff8f0;
    padding: 3rem 0 1rem;
    font-size: 0.9rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    color: #f4c430;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    font-family: 'Noto Serif Devanagari', serif;
    border-bottom: 2px solid #f4c430;
    padding-bottom: 0.5rem;
    display: inline-block;
}

.footer-section p {
    margin: 0.5rem 0;
    line-height: 1.6;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin: 0.5rem 0;
}

.footer-links a {
    color: #fff8f0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #f4c430;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(244, 196, 48, 0.3);
    color: rgba(255, 248, 240, 0.8);
}

#footerContactInfo p {
    margin: 0.3rem 0;
    font-size: 0.9rem;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { 
        opacity: 0;
        transform: translateY(50px) scale(0.9);
    }
    to { 
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ================================
   ENHANCED RESPONSIVE DESIGN & NEW FEATURES
   ================================ */

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1000;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: #8b4513;
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* Enhanced Poems Page Styles */
.poems-header {
    text-align: center;
    padding: 3rem 0;
    background: rgba(255, 248, 240, 0.8);
    border-radius: 15px;
    margin: 2rem 0;
    box-shadow: 0 5px 15px rgba(139, 69, 19, 0.1);
}

.poems-header h2 {
    font-size: 2.5rem;
    color: #8b4513;
    margin-bottom: 1rem;
}

.poems-header p {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 2rem;
}

/* Poet Introduction Box */
.poet-intro-box {
    background: rgba(255, 248, 240, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(139, 69, 19, 0.15);
    border: 1px solid rgba(160, 82, 45, 0.2);
    margin: 2rem 0;
    transition: all 0.3s ease;
}

.poet-intro-box:hover {
    box-shadow: 0 15px 40px rgba(139, 69, 19, 0.2);
    transform: translateY(-2px);
}

/* ================================
   IMPROVED KABI PARICHAYA SECTION
   ================================ */

.poet-intro {
    margin: 3rem 0;
}

.poet-intro-box {
    background: rgba(255, 248, 240, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 10px 30px rgba(139, 69, 19, 0.15);
    border: 1px solid rgba(160, 82, 45, 0.2);
    transition: all 0.3s ease;
}

.poet-intro-box:hover {
    box-shadow: 0 15px 40px rgba(139, 69, 19, 0.2);
    transform: translateY(-2px);
}

.intro-card {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 2rem;
    align-items: start;
}

.poet-photo-section {
    display: flex;
    justify-content: center;
}

.photo-frame {
    width: 180px;
    height: 180px;
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(139, 69, 19, 0.2);
    border: 3px solid rgba(160, 82, 45, 0.3);
}

.poet-photo {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f4f1e8 0%, #e8dcc0 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.poet-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.poet-photo:hover img {
    transform: scale(1.05);
}

.photo-placeholder {
    font-size: 3rem;
    color: rgba(139, 69, 19, 0.3);
    margin-bottom: 0.5rem;
}

.photo-text {
    font-size: 0.8rem;
    color: rgba(139, 69, 19, 0.5);
    font-weight: 500;
}

.poet-intro-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.poet-intro-text h2 {
    font-size: 2rem;
    color: #8b4513;
    margin-bottom: 1rem;
    font-family: 'Noto Serif Devanagari', serif;
    border-bottom: 2px solid rgba(160, 82, 45, 0.3);
    padding-bottom: 0.5rem;
    display: inline-block;
}

.poet-intro-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #4a4a4a;
    text-align: justify;
}

/* Mobile responsive for Kabi Parichaya */
@media (max-width: 768px) {
    .intro-card {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        text-align: center;
    }
    
    .photo-frame {
        width: 150px;
        height: 150px;
        margin: 0 auto;
    }
    
    .poet-intro-text {
        text-align: center;
    }
    
    .poet-intro-text h2 {
        font-size: 1.8rem;
    }
    
    .poet-intro-text p {
        font-size: 1rem;
        text-align: center;
    }
}

/* ================================
   ENHANCED RESPONSIVE DESIGN & NEW FEATURES
   ================================ */

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1000;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: #8b4513;
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* Enhanced Poems Page Styles */
.poems-header {
    text-align: center;
    padding: 3rem 0;
    background: rgba(255, 248, 240, 0.8);
    border-radius: 15px;
    margin: 2rem 0;
    box-shadow: 0 5px 15px rgba(139, 69, 19, 0.1);
}

.poems-header h2 {
    font-size: 2.5rem;
    color: #8b4513;
    margin-bottom: 1rem;
}

.poems-header p {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 2rem;
}

/* Poet Introduction Box */
.poet-intro-box {
    background: rgba(255, 248, 240, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(139, 69, 19, 0.15);
    border: 1px solid rgba(160, 82, 45, 0.2);
    margin: 2rem 0;
    transition: all 0.3s ease;
}

.poet-intro-box:hover {
    box-shadow: 0 15px 40px rgba(139, 69, 19, 0.2);
    transform: translateY(-2px);
}

/* ================================
   IMPROVED KABI PARICHAYA SECTION
   ================================ */

.poet-intro {
    margin: 3rem 0;
}

.poet-intro-box {
    background: rgba(255, 248, 240, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 10px 30px rgba(139, 69, 19, 0.15);
    border: 1px solid rgba(160, 82, 45, 0.2);
    transition: all 0.3s ease;
}

.poet-intro-box:hover {
    box-shadow: 0 15px 40px rgba(139, 69, 19, 0.2);
    transform: translateY(-2px);
}

.intro-card {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 2rem;
    align-items: start;
}

.poet-photo-section {
    display: flex;
    justify-content: center;
}

.photo-frame {
    width: 180px;
    height: 180px;
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(139, 69, 19, 0.2);
    border: 3px solid rgba(160, 82, 45, 0.3);
}

.poet-photo {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f4f1e8 0%, #e8dcc0 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.poet-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.poet-photo:hover img {
    transform: scale(1.05);
}

.photo-placeholder {
    font-size: 3rem;
    color: rgba(139, 69, 19, 0.3);
    margin-bottom: 0.5rem;
}

.photo-text {
    font-size: 0.8rem;
    color: rgba(139, 69, 19, 0.5);
    font-weight: 500;
}

.poet-intro-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.poet-intro-text h2 {
    font-size: 2rem;
    color: #8b4513;
    margin-bottom: 1rem;
    font-family: 'Noto Serif Devanagari', serif;
    border-bottom: 2px solid rgba(160, 82, 45, 0.3);
    padding-bottom: 0.5rem;
    display: inline-block;
}

.poet-intro-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #4a4a4a;
    text-align: justify;
}

/* Mobile responsive for Kabi Parichaya */
@media (max-width: 768px) {
    .intro-card {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        text-align: center;
    }
    
    .photo-frame {
        width: 150px;
        height: 150px;
        margin: 0 auto;
    }
    
    .poet-intro-text {
        text-align: center;
    }
    
    .poet-intro-text h2 {
        font-size: 1.8rem;
    }
    
    .poet-intro-text p {
        font-size: 1rem;
        text-align: center;
    }
}

/* ================================
   ENHANCED RESPONSIVE DESIGN & NEW FEATURES
   ================================ */

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1000;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: #8b4513;
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* Enhanced Poems Page Styles */
.poems-header {
    text-align: center;
    padding: 3rem 0;
    background: rgba(255, 248, 240, 0.8);
    border-radius: 15px;
    margin: 2rem 0;
    box-shadow: 0 5px 15px rgba(139, 69, 19, 0.1);
}

.poems-header h2 {
    font-size: 2.5rem;
    color: #8b4513;
    margin-bottom: 1rem;
}

.poems-header p {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 2rem;
}

/* Poet Introduction Box */
.poet-intro-box {
    background: rgba(255, 248, 240, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(139, 69, 19, 0.15);
    border: 1px solid rgba(160, 82, 45, 0.2);
    margin: 2rem 0;
    transition: all 0.3s ease;
}

.poet-intro-box:hover {
    box-shadow: 0 15px 40px rgba(139, 69, 19, 0.2);
    transform: translateY(-2px);
}

/* ================================
   IMPROVED KABI PARICHAYA SECTION
   ================================ */

.poet-intro {
    margin: 3rem 0;
}

.poet-intro-box {
    background: rgba(255, 248, 240, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 10px 30px rgba(139, 69, 19, 0.15);
    border: 1px solid rgba(160, 82, 45, 0.2);
    transition: all 0.3s ease;
}

.poet-intro-box:hover {
    box-shadow: 0 15px 40px rgba(139, 69, 19, 0.2);
    transform: translateY(-2px);
}

.intro-card {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 2rem;
    align-items: start;
}

.poet-photo-section {
    display: flex;
    justify-content: center;
}

.photo-frame {
    width: 180px;
    height: 180px;
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(139, 69, 19, 0.2);
    border: 3px solid rgba(160, 82, 45, 0.3);
}

.poet-photo {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f4f1e8 0%, #e8dcc0 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.poet-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.poet-photo:hover img {
    transform: scale(1.05);
}

.photo-placeholder {
    font-size: 3rem;
    color: rgba(139, 69, 19, 0.3);
    margin-bottom: 0.5rem;
}

.photo-text {
    font-size: 0.8rem;
    color: rgba(139, 69, 19, 0.5);
    font-weight: 500;
}

.poet-intro-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.poet-intro-text h2 {
    font-size: 2rem;
    color: #8b4513;
    margin-bottom: 1rem;
    font-family: 'Noto Serif Devanagari', serif;
    border-bottom: 2px solid rgba(160, 82, 45, 0.3);
    padding-bottom: 0.5rem;
    display: inline-block;
}

.poet-intro-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #4a4a4a;
    text-align: justify;
}

/* Mobile responsive for Kabi Parichaya */
@media (max-width: 768px) {
    .intro-card {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        text-align: center;
    }
    
    .photo-frame {
        width: 150px;
        height: 150px;
        margin: 0 auto;
    }
    
    .poet-intro-text {
        text-align: center;
    }
    
    .poet-intro-text h2 {
        font-size: 1.8rem;
    }
    
    .poet-intro-text p {
        font-size: 1rem;
        text-align: center;
    }
}

/* ================================
   ENHANCED RESPONSIVE DESIGN & NEW FEATURES
   ================================ */

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1000;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: #8b4513;
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* Enhanced Poems Page Styles */
.poems-header {
    text-align: center;
    padding: 3rem 0;
    background: rgba(255, 248, 240, 0.8);
    border-radius: 15px;
    margin: 2rem 0;
    box-shadow: 0 5px 15px rgba(139, 69, 19, 0.1);
}

.poems-header h2 {
    font-size: 2.5rem;
    color: #8b4513;
    margin-bottom: 1rem;
}

.poems-header p {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 2rem;
}

/* Poet Introduction Box */
.poet-intro-box {
    background: rgba(255, 248, 240, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(139, 69, 19, 0.15);
    border: 1px solid rgba(160, 82, 45, 0.2);
    margin: 2rem 0;
    transition: all 0.3s ease;
}

.poet-intro-box:hover {
    box-shadow: 0 15px 40px rgba(139, 69, 19, 0.2);
    transform: translateY(-2px);
}

/* ================================
   IMPROVED KABI PARICHAYA SECTION
   ================================ */

.poet-intro {
    margin: 3rem 0;
}

.poet-intro-box {
    background: rgba(255, 248, 240, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 10px 30px rgba(139, 69, 19, 0.15);
    border: 1px solid rgba(160, 82, 45, 0.2);
    transition: all 0.3s ease;
}

.poet-intro-box:hover {
    box-shadow: 0 15px 40px rgba(139, 69, 19, 0.2);
    transform: translateY(-2px);
}

.intro-card {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 2rem;
    align-items: start;
}

.poet-photo-section {
    display: flex;
    justify-content: center;
}

.photo-frame {
    width: 180px;
    height: 180px;
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(139, 69, 19, 0.2);
    border: 3px solid rgba(160, 82, 45, 0.3);
}

.poet-photo {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f4f1e8 0%, #e8dcc0 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.poet-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.poet-photo:hover img {
    transform: scale(1.05);
}

.photo-placeholder {
    font-size: 3rem;
    color: rgba(139, 69, 19, 0.3);
    margin-bottom: 0.5rem;
}

.photo-text {
    font-size: 0.8rem;
    color: rgba(139, 69, 19, 0.5);
    font-weight: 500;
}

.poet-intro-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.poet-intro-text h2 {
    font-size: 2rem;
    color: #8b4513;
    margin-bottom: 1rem;
    font-family: 'Noto Serif Devanagari', serif;
    border-bottom: 2px solid rgba(160, 82, 45, 0.3);
    padding-bottom: 0.5rem;
    display: inline-block;
}

.poet-intro-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #4a4a4a;
    text-align: justify;
}

/* Mobile responsive for Kabi Parichaya */
@media (max-width: 768px) {
    .intro-card {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        text-align: center;
    }
    
    .photo-frame {
        width: 150px;
        height: 150px;
        margin: 0 auto;
    }
    
    .poet-intro-text {
        text-align: center;
    }
    
    .poet-intro-text h2 {
        font-size: 1.8rem;
    }
    
    .poet-intro-text p {
        font-size: 1rem;
        text-align: center;
    }
}

/* ================================
   ENHANCED RESPONSIVE DESIGN & NEW FEATURES
   ================================ */

/* Mobile Responsive for Enhanced Boxes */
@media (max-width: 768px) {
    /* ...existing mobile code... */
    
    .poet-intro-box {
        padding: 1.5rem;
        margin: 1.5rem 0;
    }
    
    .poems-header-box {
        padding: 2rem 1.5rem;
        margin: 0 auto 2rem auto;
    }
    
    .poems-header-box h2 {
        font-size: 2rem;
    }
    
    .poems-header-box p {
        font-size: 1.1rem;
    }
    
    .poems-header-box .category-filter {
        gap: 0.5rem;
    }
}

/* --- Responsive Enhancements --- */
@media (max-width: 1024px) {
  .container { width: 96%; }
  .poem-cards { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .container { width: 99%; padding: 0 0.5rem; }
  .navbar .container { flex-direction: column; gap: 1rem; }
  .nav-links { flex-direction: column; gap: 1rem; align-items: center; }
  .hero { padding: 2rem 0; }
  .hero h1 { font-size: 2rem; }
  .poem-cards { grid-template-columns: 1fr; gap: 1.2rem; }
  .poem-card { min-width: 0; max-width: 100%; height: auto; }
  .poem-image { height: 160px; }
  .footer-content { flex-direction: column; gap: 2rem; text-align: center; }
  .footer-section { margin-bottom: 1.5rem; }
  .footer-links { flex-wrap: wrap; justify-content: center; gap: 1rem; }
}
@media (max-width: 480px) {
  .container { width: 100%; padding: 0 0.2rem; }
  .hero h1 { font-size: 1.3rem; }
  .poem-image { height: 120px; }
  .poem-card { min-height: 220px; }
}
/* Remove horizontal scroll on mobile */
html, body { overflow-x: hidden; }