:root {
    --primary-teal: #042f2e; /* Deep ocean teal background */
    --accent-turquoise: #2dd4bf; /* Vibrant turquoise water */
    --accent-turquoise-rgb: 45, 212, 191;
    --accent-gold: #fbbf24; /* Warm Levante golden sun */
    --accent-gold-rgb: 251, 191, 36;
    --accent-sand: #fef08a; /* Soft coastal sand */
    --text-white: #f8fafc;
    --bg-glass: rgba(13, 148, 136, 0.08); /* Transparent turquoise glass */
    --bg-dropdown: rgba(4, 47, 46, 0.96);
    --border-glass: rgba(45, 212, 191, 0.15);
}

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

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: var(--primary-teal);
}
::-webkit-scrollbar-thumb {
    background: rgba(45, 212, 191, 0.3);
    border-radius: 5px;
    border: 2px solid var(--primary-teal);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--accent-turquoise);
}

body {
    background: var(--primary-teal);
    color: var(--text-white);
    font-family: 'Montserrat', sans-serif;
    overflow-x: hidden;
    min-height: 100vh;
}

/* Background image overlay */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('background.png') no-repeat center center fixed;
    background-size: cover;
    z-index: -2;
    filter: brightness(0.45) saturate(1.1);
}

/* Effects canvas for interactive particles */
#effects-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

.main-wrapper {
    position: relative;
    min-height: 100vh;
    padding: 2rem 0;
}

.paz-logo {
    position: fixed;
    top: 1rem;
    left: 1rem;
    height: 80px;
    z-index: 1000;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.7));
}
.paz-logo:hover {
    transform: scale(1.08) rotate(-2deg);
}

/* Navigation & Language Select */
.lang-nav {
    position: fixed;
    top: 2rem;
    right: 2rem;
    z-index: 1000;
}
.nav-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.nav-btn {
    background: rgba(4, 47, 46, 0.4);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-glass);
    color: #fff;
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}
.linktree-btn {
    border-color: rgba(45, 212, 191, 0.3);
    box-shadow: 0 0 15px rgba(45, 212, 191, 0.1);
}
.linktree-btn i {
    color: var(--accent-turquoise);
}
.nav-btn:hover {
    background: rgba(13, 148, 136, 0.2);
    color: var(--accent-gold);
    border-color: var(--accent-gold);
    box-shadow: 0 0 25px rgba(251, 191, 36, 0.35);
    transform: translateY(-2px);
}

.lang-selector {
    position: relative;
}
.current-lang {
    background: rgba(4, 47, 46, 0.4);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-glass);
    color: #fff;
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    transition: all 0.3s ease;
}
.current-lang:hover {
    border-color: var(--accent-turquoise);
    box-shadow: 0 0 15px rgba(45, 212, 191, 0.25);
}
.lang-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: var(--bg-dropdown);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 1rem;
    min-width: 210px;
    display: none;
    border: 1px solid rgba(45, 212, 191, 0.25);
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.85);
}
.lang-dropdown.active {
    display: block;
    animation: fadeInDown 0.35s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}

.lang-opt {
    padding: 0.7rem 1.2rem;
    cursor: pointer;
    border-radius: 12px;
    transition: all 0.25s ease;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 12px;
}
.lang-opt:hover {
    background: rgba(45, 212, 191, 0.15);
    color: var(--accent-gold);
}

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

/* Poem Styling */
.poem-wrapper {
    width: 92%;
    max-width: 620px; /* Narrower and more adjusted wrapper */
    margin: 8rem auto;
    background: var(--bg-glass);
    backdrop-filter: blur(25px);
    border: 1px solid var(--border-glass);
    padding: 5rem 3.5rem;
    border-radius: 35px;
    text-align: center;
    box-shadow: 0 50px 100px rgba(0, 0, 0, 0.85);
    position: relative;
    overflow: hidden;
}
.poem-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, rgba(45, 212, 191, 0.08), transparent 75%);
    pointer-events: none;
}

.poem-title {
    font-family: 'Philosopher', sans-serif;
    font-size: 3.5rem;
    margin-bottom: 3.5rem;
    color: var(--accent-gold);
    text-shadow: 0 0 35px rgba(251, 191, 36, 0.4);
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 5px;
}

.poem-content {
    font-family: 'Philosopher', serif;
    font-size: 1.45rem;
    line-height: 2.2;
    color: rgba(248, 250, 252, 0.95);
    text-shadow: 1px 1px 12px rgba(0, 0, 0, 0.9);
}

.stanza {
    margin-bottom: 3rem;
    transition: all 0.3s ease;
}

/* Emotional and thematic stanza overrides */

/* Stanza 1: Sunrise & Levante Sun (Warm Golden-Yellow) */
.sunrise-stanza {
    font-family: 'Philosopher', sans-serif;
    color: var(--accent-gold);
    text-shadow: 0 0 10px rgba(251, 191, 36, 0.45), 1px 1px 4px rgba(0, 0, 0, 0.8);
    font-size: 1.4rem;
}

/* Stanza 2: Luminous Diadem of Stars (Ethereal Silver-Blue) */
.stars-stanza {
    font-family: 'Philosopher', serif;
    font-style: italic;
    color: #bae6fd;
    text-shadow: 0 0 12px rgba(186, 230, 253, 0.5), 1px 1px 4px rgba(0, 0, 0, 0.9);
    letter-spacing: 0.5px;
}

/* Stanza 3: Murcian Mirrors (Serene Light Turquoise) */
.mirror-stanza {
    font-family: 'Montserrat', sans-serif;
    font-weight: 300;
    color: #99f6e4;
    text-shadow: 0 0 10px rgba(153, 246, 228, 0.35), 1px 1px 4px rgba(0, 0, 0, 0.8);
    letter-spacing: 1px;
}

/* Stanza 4: Mud / Clay massage dissolution (Warm Terracotta / Dissolving Cursive) */
.mud-stanza {
    font-family: 'Caveat', cursive;
    font-size: 1.85rem;
    line-height: 1.8;
    border: 1px solid rgba(251, 191, 36, 0.15);
    border-left: 5px solid #d97706; /* Terracotta amber */
    padding: 1.5rem;
    border-radius: 4px 20px 20px 4px;
    background: rgba(217, 119, 6, 0.04);
    color: #fde047;
    text-shadow: 0 0 10px rgba(217, 119, 6, 0.35), 1px 1px 4px rgba(0, 0, 0, 0.9);
}

/* Stanza 5: Mediterranean Sea Bath (Free, light, weightless, spacious) */
.sea-stanza {
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    border-right: 4px solid var(--accent-turquoise);
    border-left: 4px solid var(--accent-turquoise);
    padding: 1.5rem;
    border-radius: 20px;
    background: rgba(45, 212, 191, 0.03);
    color: #cbd5e1;
    text-shadow: 0 0 15px rgba(45, 212, 191, 0.3), 1px 1px 4px rgba(0, 0, 0, 0.8);
    font-size: 1.35rem;
}

/* Stanza 6: Sirena de sal (Shimmering Aquamarine Pearl) */
.mermaid-stanza {
    font-family: 'Philosopher', sans-serif;
    font-weight: 600;
    border: 1px dashed rgba(45, 212, 191, 0.35);
    padding: 1.6rem;
    border-radius: 25px;
    background: rgba(45, 212, 191, 0.04);
    color: #e2e8f0;
    text-shadow: 0 0 20px rgba(45, 212, 191, 0.45), 1px 1px 6px rgba(0, 0, 0, 0.9);
    letter-spacing: 1px;
}

/* Stanza 7: Seeking & Finding (Serene Emerald Green) */
.seeking-stanza {
    font-family: 'Philosopher', serif;
    font-style: italic;
    color: #6ee7b7;
    text-shadow: 0 0 10px rgba(110, 231, 183, 0.35), 1px 1px 4px rgba(0, 0, 0, 0.8);
    font-size: 1.35rem;
}

/* Stanza 8: Festive / Vitality (Warm Festival Rose/Pink) */
.festive-stanza {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    color: #fda4af;
    text-shadow: 0 0 12px rgba(253, 164, 175, 0.45), 1px 1px 4px rgba(0, 0, 0, 0.8);
    font-size: 1.35rem;
}

/* Stanza 9: Art, Music, Poetic Inspiration (Creative Electric Violet) */
.art-stanza {
    font-family: 'Philosopher', sans-serif;
    color: #c084fc;
    text-shadow: 0 0 10px rgba(192, 132, 252, 0.45), 1px 1px 4px rgba(0, 0, 0, 0.8);
    font-size: 1.4rem;
}

/* Stanza 10: Climax Diamond (Art, passion, love - Sparkling Gold & White) */
.climax-stanza {
    font-family: 'Caveat', cursive;
    font-size: 2.1rem;
    letter-spacing: 1.5px;
    border: 2px solid rgba(251, 191, 36, 0.35);
    background: rgba(251, 191, 36, 0.03);
    padding: 1.8rem;
    border-radius: 25px;
    color: #fef08a;
    text-shadow: 0 0 18px rgba(251, 191, 36, 0.55), 1px 1px 5px rgba(0, 0, 0, 0.9);
}

.signature {
    font-family: 'Caveat', cursive;
    font-size: 2.5rem;
    margin-top: 4.5rem;
    opacity: 0.9;
    color: var(--accent-gold);
    text-shadow: 0 0 20px rgba(251, 191, 36, 0.3);
}

.poem-date {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    opacity: 0.5;
    margin-top: 0.5rem;
    letter-spacing: 1.5px;
}

/* Musical Section */
.music-section {
    text-align: center;
    margin-top: 4rem;
}
.handwritten {
    font-family: 'Caveat', cursive;
    font-size: 3rem;
    color: var(--accent-gold);
    text-shadow: 0 0 20px rgba(251, 191, 36, 0.3);
    margin-bottom: 2.5rem;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}
.justify-content-center {
    justify-content: center;
}
.col-md-4 {
    width: 33.333%;
    padding: 0 15px;
}

.album-card {
    position: relative;
    background: rgba(4, 47, 46, 0.8);
    border: 1px solid rgba(45, 212, 191, 0.2);
    border-radius: 25px;
    padding: 1.8rem;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    overflow: hidden;
}
.album-card:hover {
    transform: translateY(-15px) rotate(1deg) scale(1.03);
    border-color: var(--accent-gold);
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.9), 0 0 40px rgba(251, 191, 36, 0.25);
    z-index: 10;
}
.album-card img {
    width: 100%;
    border-radius: 15px;
    margin-bottom: 1.5rem;
    border: 2px solid rgba(255, 255, 255, 0.06);
    transition: all 0.5s ease;
}
.album-card:hover img {
    border-color: var(--accent-turquoise);
    transform: scale(1.02);
}

.album-info h4 {
    font-family: 'Philosopher', sans-serif;
    font-size: 1.25rem;
    color: var(--text-white);
    margin-bottom: 0.3rem;
}
.album-info p {
    font-size: 0.9rem;
    opacity: 0.7;
    margin-top: 0.5rem;
}

/* Inspiration Section */
.inspiration-section {
    text-align: center;
    margin-top: 8rem;
}
.inspiration-text {
    max-width: 850px;
    margin: 0 auto;
    background: rgba(4, 47, 46, 0.7);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(45, 212, 191, 0.2);
    border-radius: 35px;
    padding: 3.5rem;
    font-family: 'Philosopher', serif;
    font-size: 1.3rem;
    line-height: 2;
    color: rgba(248, 250, 252, 0.9);
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.7);
    text-align: left;
}
.inspiration-text em {
    color: var(--accent-gold);
    font-style: normal;
    font-weight: bold;
}

/* Multi-language content handling */
[data-lang="spanish"] .spanish, 
[data-lang="english"] .english, 
[data-lang="italian"] .italian, 
[data-lang="chinese"] .chinese, 
[data-lang="arabic"] .arabic, 
[data-lang="russian"] .russian, 
[data-lang="ukrainian"] .ukrainian, 
[data-lang="aleman"] .aleman, 
[data-lang="frances"] .frances, 
[data-lang="japones"] .japones, 
[data-lang="portuges"] .portuges { 
    display: block; 
}

.spanish, .english, .italian, .chinese, .arabic, .russian, .ukrainian, .aleman, .frances, .japones, .portuges { 
    display: none; 
}

/* Prompt Button styles */
.prompt-btns {
    margin-top: 1.2rem;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.prompt-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: rgba(45, 212, 191, 0.08);
    border: 1px solid rgba(45, 212, 191, 0.25);
    color: var(--accent-turquoise);
    padding: 0.6rem 1rem;
    border-radius: 12px;
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}
.prompt-btn:hover {
    background: var(--accent-turquoise);
    color: var(--primary-teal);
    box-shadow: 0 0 15px rgba(45, 212, 191, 0.35);
    transform: translateY(-2px);
}
.prompt-btn i {
    font-size: 0.95rem;
}

/* Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 1s ease;
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

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

/* Responsive adjustments */
@media (max-width: 992px) {
    .col-md-4 {
        width: 50%;
        margin-bottom: 2.5rem;
    }
    .poem-wrapper {
        padding: 4rem 3rem;
    }
}

@media (max-width: 768px) {
    .poem-wrapper {
        padding: 3rem 1.8rem;
        margin: 6rem auto;
    }
    .poem-title {
        font-size: 2.3rem;
        margin-bottom: 2.5rem;
        letter-spacing: 3px;
    }
    .poem-content {
        font-size: 1.25rem;
        line-height: 2;
    }
    .paz-logo {
        height: 60px;
    }
    .lang-nav {
        top: 1rem;
        right: 1rem;
    }
    .nav-btn span {
        display: none;
    }
    .col-md-4 {
        width: 100%;
        margin-bottom: 2rem;
    }
    .inspiration-text {
        padding: 2.2rem 1.8rem;
        font-size: 1.15rem;
        line-height: 1.8;
    }
}
