/* css/style.css */

/* Define variables for Dark Theme (Default) */
:root[data-theme="dark"] {
    --bg-main: #0a0a0a;
    --bg-alt: #141414;
    --card-bg: rgba(30, 30, 30, 0.6);
    --text-main: #e0e0e0;
    --text-muted: #888888;
    --text-title: #ffffff;
    --border-color: rgba(255, 255, 255, 0.1);
    
    --gold: #d4af37;
    --gold-hover: #e5c158;
}

/* Define variables for Light Theme */
:root[data-theme="light"] {
    --bg-main: #f9f7f1;
    --bg-alt: #eae5d9;
    --card-bg: rgba(255, 255, 255, 0.7);
    --text-main: #333333;
    --text-muted: #666666;
    --text-title: #111111;
    --border-color: rgba(0, 0, 0, 0.1);
    
    --gold: #b8860b; /* slightly darker gold for light mode contrast */
    --gold-hover: #d4af37;
}

:root {
    --font-head: 'Playfair Display', serif;
    --font-body: 'Montserrat', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    font-family: var(--font-body);
    overflow-x: hidden;
    transition: background-color 0.4s ease, color 0.4s ease;
}

/* Typography */
h1, h2, h3, h4 {
    font-family: var(--font-head);
    font-weight: 600;
    color: var(--text-title);
    transition: color 0.4s ease;
}

.text-center { text-align: center; }
.hidden { display: none !important; }

/* Navigation */
.glass-nav {
    position: fixed;
    top: 20px; left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1200px;
    height: 70px;
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 30px;
    z-index: 1000;
    transition: background 0.4s ease, border-color 0.4s ease;
}

.nav-brand {
    font-family: var(--font-head);
    font-size: 1.5rem;
    color: var(--gold);
    font-weight: 700;
    letter-spacing: 1px;
    text-decoration: none;
    transition: color 0.3s;
}

.nav-brand:hover { color: var(--gold-hover); }

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

.nav-links a {
    color: var(--text-main);
    text-decoration: none;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s;
}

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

.nav-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.theme-btn, .music-btn {
    background: transparent;
    border: 1px solid var(--gold);
    color: var(--gold);
    padding: 8px 15px;
    border-radius: 20px;
    cursor: pointer;
    font-family: var(--font-body);
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.theme-btn:hover, .music-btn:hover {
    background: var(--gold);
    color: var(--bg-main);
}

/* Hero Split Section */
.hero-split {
    display: flex;
    height: 100vh;
    width: 100%;
}

.hero-text-side {
    width: 50%;
    background: var(--bg-main);
    display: flex;
    align-items: center;
    padding: 0 10%;
    position: relative;
    transition: background 0.4s ease;
}

.hero-image-side {
    width: 50%;
    position: relative;
    overflow: hidden;
}

.hero-image-side img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-overlay {
    position: absolute;
    top:0; left:0; width:100%; height:100%;
    background: linear-gradient(to right, var(--bg-main) 0%, transparent 100%);
    transition: background 0.4s ease;
}

.subtitle {
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 4px;
    font-size: 0.9rem;
    display: block;
    margin-bottom: 20px;
}

.main-title {
    font-size: 6rem;
    line-height: 1;
    margin-bottom: 40px;
}

.hero-quote {
    font-family: var(--font-head);
    font-size: 1.5rem;
    font-style: italic;
    color: var(--text-muted);
    border-left: 3px solid var(--gold);
    padding-left: 20px;
    line-height: 1.6;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--gold);
}

/* Sections */
.section { padding: 120px 0; }
.alternate-bg { background-color: var(--bg-alt); transition: background-color 0.4s ease;}
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

.section-tag {
    display: block;
    font-size: 0.8rem;
    color: var(--gold);
    letter-spacing: 2px;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.section-title {
    font-size: 3rem;
    margin-bottom: 60px;
}

/* Glass Card */
.glass-card {
    background: var(--card-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 40px;
    transition: all 0.4s ease;
}

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

/* Biography Area */
.bio-wrapper {
    display: flex;
    gap: 60px;
}

.bio-content {
    flex: 1.5;
    position: relative;
}

.bio-text p {
    margin-bottom: 20px;
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-muted);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--gold);
    color: var(--gold);
    padding: 10px 24px;
    border-radius: 4px;
    cursor: pointer;
    font-family: var(--font-body);
    font-weight: 500;
    transition: all 0.3s;
    margin-top: 20px;
}

.btn-outline:hover {
    background: var(--gold);
    color: var(--bg-main);
}

/* Timeline */
.timeline-container { flex: 1; }
.timeline-title { font-size: 2rem; margin-bottom: 40px; color: var(--gold); }

.timeline-item {
    padding-left: 30px;
    position: relative;
    margin-bottom: 40px;
    border-left: 1px solid rgba(212, 175, 55, 0.3);
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -5px; top: 0;
    width: 9px; height: 9px;
    background: var(--gold);
    border-radius: 50%;
}

.timeline-year {
    font-family: var(--font-head);
    font-size: 1.5rem;
    color: var(--text-title);
    margin-bottom: 10px;
}

.timeline-desc {
    font-size: 0.95rem;
    color: var(--text-muted);
}

/* Poems Filter - Modern Glassmorphism */
.alphabet-filter-container {
    display: flex;
    justify-content: center;
    margin-bottom: 50px;
}

.alphabet-filter.glass-card-filter {
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    background: var(--card-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    padding: 10px 20px;
    border-radius: 50px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.letter-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    min-width: 35px; height: 35px;
    padding: 0 10px;
    border-radius: 20px;
    cursor: pointer;
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 1.1rem;
    position: relative;
    transition: all 0.3s ease;
    display: flex; align-items: center; justify-content: center;
}

.letter-btn::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background-color: var(--gold);
    transition: width 0.3s ease;
}

.letter-btn:hover {
    color: var(--text-main);
}

.letter-btn.active {
    color: var(--gold);
    font-weight: 600;
}

.letter-btn.active::after {
    width: 60%;
}

/* Poems Grid */
.poems-creative-grid {
    display: columns;
    column-count: 2;
    column-gap: 40px;
}

.poem-card {
    break-inside: avoid;
    margin-bottom: 40px;
    border-top: 3px solid var(--gold);
}

.poem-card h3 {
    font-size: 2rem;
    margin-bottom: 5px;
}

.poem-card .category {
    font-size: 0.8rem;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
    display: block;
}

.poem-card .text {
    font-family: var(--font-head);
    font-size: 1.2rem;
    font-style: italic;
    line-height: 1.8;
    color: var(--text-muted);
    white-space: pre-line;
}

/* Video Carousel */
.carousel-container {
    position: relative;
    display: flex;
    align-items: center;
}

.carousel-btn {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    width: 50px; height: 50px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s;
    flex-shrink: 0;
}

.carousel-btn:hover { background: var(--gold); color: #fff; }

.left-btn { margin-right: -25px; }
.right-btn { margin-left: -25px; }

.videos-carousel {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    gap: 30px;
    padding: 20px 30px;
    /* Hide scrollbar */
    scrollbar-width: none; 
}
.videos-carousel::-webkit-scrollbar { display: none; }

.video-card {
    flex: 0 0 calc(50% - 15px);
    scroll-snap-align: start;
    min-width: 300px;
}

.video-card h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 8px;
}

.video-wrapper iframe {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
}

/* Modals */
.modal {
    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: 2000;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.modal.hidden {
    display: none;
    opacity: 0;
}

.modal-content {
    width: 90%;
    max-width: 800px;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
    padding: 50px;
    background: var(--bg-main);
}

.close-btn {
    position: absolute;
    top: 20px; right: 20px;
    background: none; border: none;
    font-size: 1.5rem;
    color: var(--text-main);
    cursor: pointer;
}

.close-btn:hover { color: var(--gold); }

.modal-title { margin-bottom: 20px; font-size: 2.5rem; }
.modal-body { color: var(--text-muted); line-height: 1.8; white-space: pre-line; }

/* Footer */
.creative-footer {
    padding: 80px 20px;
    background: var(--bg-alt);
    border-top: 1px solid var(--border-color);
}

.creative-footer h2 {
    font-size: 3rem;
    color: var(--gold);
    margin-bottom: 10px;
}

/* Responsive */
@media (max-width: 900px) {
    .hero-split { flex-direction: column; }
    .hero-text-side, .hero-image-side { width: 100%; height: 50vh; }
    .main-title { font-size: 4rem; }
    .bio-wrapper { flex-direction: column; }
    .poems-creative-grid { column-count: 1; }
    .nav-links { display: none; }
    .video-card { flex: 0 0 100%; }
}
