/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600&family=Great+Vibes&display=swap');

:root {
    --primary: #ff4d6d;
    --primary-glow: rgba(255, 77, 109, 0.5);
    --glass: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --text: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

/* ARXA PLAN - SABİT (PİN EDİLMİŞ) */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background-image: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.7)), url('assets/background.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

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

/* GİRİŞ EKRANI */
#welcome-screen {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: #000;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.8s ease;
}

.welcome-content { text-align: center; }
.welcome-content h1 { font-family: 'Great Vibes', cursive; font-size: 3.5rem; margin-bottom: 20px; }

#enter-btn {
    padding: 15px 45px;
    background: var(--primary);
    border: none;
    color: white;
    border-radius: 50px;
    cursor: pointer;
    font-size: 1.2rem;
    box-shadow: 0 10px 25px var(--primary-glow);
    transition: transform 0.3s ease;
}

#enter-btn:hover { transform: scale(1.1); }

/* ANA KONTENT */
.hidden { display: none; }

main {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* BAŞLIQ VE INFINITY */
header { text-align: center; margin-bottom: 40px; }
.logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    font-family: 'Great Vibes', cursive;
    font-size: 4.5rem;
}

.infinity-wrapper { width: 90px; }
.infinity-svg path {
    stroke-dasharray: 300;
    stroke-dashoffset: 300;
    animation: draw 4s ease forwards, glow 2s infinite alternate;
}

@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes glow { from { filter: drop-shadow(0 0 2px #fff); } to { filter: drop-shadow(0 0 12px var(--primary)); } }

/* TAYMER */
.counter-section {
    background: var(--glass);
    backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    padding: 30px;
    border-radius: 25px;
    text-align: center;
    margin-bottom: 50px;
}

.timer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin: 25px 0;
}

.time-box {
    background: rgba(0,0,0,0.3);
    padding: 15px 5px;
    border-radius: 15px;
    border-bottom: 3px solid var(--primary);
}

.time-box span { display: block; font-size: 2rem; font-weight: 600; color: var(--primary); }
.time-box label { font-size: 0.75rem; opacity: 0.8; text-transform: uppercase; }

/* QALEREYA - TAM ORTADA VƏ MODERN */
.gallery-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-bottom: 70px;
}

.stacked-gallery {
    position: relative;
    width: 220px;
    height: 300px;
    margin: 40px auto;
    cursor: pointer;
    perspective: 1000px;
}

.stack-item {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    border-radius: 15px;
    border: 5px solid white;
    box-shadow: 0 15px 35px rgba(0,0,0,0.5);
    transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Stack effekti */
.stack-item:nth-child(1) { transform: rotate(-10deg) translateX(-15px); }
.stack-item:nth-child(2) { transform: rotate(7deg) translateX(15px); }
.stack-item:nth-child(3) { transform: rotate(-4deg) translateY(-5px); }
.stack-item:nth-child(4) { transform: rotate(0deg); }

.stacked-gallery:hover .stack-item {
    transform: rotate(0deg) translateY(-10px) scale(1.05);
}

/* MUSİQİ PLAYER */
.music-player {
    background: var(--glass);
    backdrop-filter: blur(20px);
    border-radius: 30px;
    padding: 25px;
    margin-bottom: 50px;
    border: 1px solid var(--glass-border);
}

.player-card {
    display: flex;
    align-items: center;
    gap: 25px;
}

.cover-art img {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    border: 3px solid var(--primary);
    object-fit: cover;
    animation: rotate 12s linear infinite;
    animation-play-state: paused;
}

.cover-art img.playing { animation-play-state: running; }

.track-info { flex: 1; }

.progress-container {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 15px 0;
}

.seek_slider { flex: 1; height: 6px; accent-color: var(--primary); cursor: pointer; }

.controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.volume-box { display: flex; align-items: center; gap: 10px; }
.volume_slider { width: 80px; accent-color: #fff; cursor: pointer; }

.play-btn { background: none; border: none; color: white; cursor: pointer; transition: 0.3s; }
.play-btn:hover { transform: scale(1.2); color: var(--primary); }

/* LİNK BÖLMƏSİ (ALINTI) */
.quote-card {
    display: block;
    text-decoration: none;
    color: white;
    background: rgba(255,255,255,0.05);
    padding: 25px;
    margin-bottom: 20px;
    border-left: 5px solid var(--primary);
    border-radius: 0 20px 20px 0;
    transition: 0.4s;
}

.quote-card:hover { background: rgba(255,255,255,0.1); transform: translateX(10px); }
blockquote { font-style: italic; font-size: 1.1rem; margin-bottom: 8px; }

/* LIGHTBOX (ANIMASIYALI QALEREYA) */
.lightbox {
    display: none;
    position: fixed;
    z-index: 10000;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.95);
    backdrop-filter: blur(10px);
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.lightbox.active { display: flex; opacity: 1; }

.lightbox-content {
    max-width: 85%;
    max-height: 75vh;
    border-radius: 15px;
    box-shadow: 0 0 40px rgba(0,0,0,0.8);
    transform: scale(0.8);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s;
}

.lightbox.active .lightbox-content { transform: scale(1); }

.close-lightbox { position: absolute; top: 30px; right: 30px; font-size: 45px; color: white; cursor: pointer; }
.prev, .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 50px;
    color: white;
    cursor: pointer;
    padding: 20px;
    user-select: none;
    transition: 0.3s;
}
.prev:hover, .next:hover { color: var(--primary); }
.prev { left: 10px; }
.next { right: 10px; }

/* MOBİL UYĞUNLUQ */
@media (max-width: 650px) {
    .logo-container { font-size: 2.8rem; }
    .timer-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .player-card { flex-direction: column; text-align: center; }
    .volume-box { display: none; }
    .controls { justify-content: center; }
    .time-box span { font-size: 1.6rem; }
    .prev, .next { font-size: 40px; padding: 10px; }
}

@keyframes rotate { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
.heart-particle {
    position: fixed;
    bottom: -10px; /* Ekranın altından başlayır */
    font-size: 20px;
    color: #ff4d6d;
    user-select: none;
    pointer-events: none;
    z-index: 999;
    animation: moveUp 4s linear forwards;
}

@keyframes moveUp {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(-100vh) rotate(360deg);
        opacity: 0;
    }
}

.letters-section { text-align: center; margin-bottom: 50px; }
.envelopes-grid {
    display: grid; grid-template-columns: repeat(2, 1fr);
    gap: 15px; padding: 10px;
}
.envelope {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 20px; border-radius: 15px; cursor: pointer;
    transition: 0.3s; display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.envelope i { font-size: 1.8rem; color: #ff4d6d; }
.envelope:hover { transform: translateY(-5px); background: rgba(255, 255, 255, 0.2); }

/* Məktub Modal */
.letter-modal {
    display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.85); backdrop-filter: blur(8px);
    z-index: 10001; justify-content: center; align-items: center; padding: 20px;
}
.letter-content {
    background: #fff; color: #333; padding: 40px 25px; border-radius: 25px;
    max-width: 450px; width: 100%; position: relative; text-align: center;
    box-shadow: 0 0 30px rgba(255, 77, 109, 0.5);
    animation: popUp 0.4s ease-out;
}
.letter-content h2 { font-family: 'Great Vibes', cursive; color: #ff4d6d; font-size: 2.8rem; margin-bottom: 15px; }
.letter-content p { font-size: 1.1rem; line-height: 1.7; font-family: 'Poppins', sans-serif; }
.close-letter { position: absolute; top: 15px; right: 20px; font-size: 30px; cursor: pointer; color: #888; }
@keyframes popUp { from { transform: scale(0.8); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.love-slider {
    width: 100%;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.2);
    padding: 20px 0;
    margin-top: 50px;
    border-top: 1px solid rgba(255, 77, 109, 0.3);
    white-space: nowrap;
    position: relative;
}

.love-switcher {
    width: 100%;
    text-align: center;
    padding: 25px 0;
    margin-top: 30px;
    font-family: 'monospace', sans-serif; /* Daha çox "kod" və ya "sürətli dəyişən" havası üçün */
    font-size: 1.4rem;
    color: #ffffff;
    letter-spacing: 1px;
    text-shadow: 0 0 10px rgba(255, 77, 109, 0.5);
}

#changing-love {
    font-weight: bold;
}
/* Rose Container */
.rose-wrapper {
    width: 200px;
    height: 250px;
    position: relative;
    margin-bottom: 20px;
    animation: yidon 5s infinite;
    display: flex;
    justify-content: center;
}

.rose-flower {
    position: relative;
    width: 100px;
    height: 100px;
}

.petal {
    width: 50px;
    height: 50px;
    background: #fe7696;
    border-radius: 0px 50%;
    position: absolute;
    box-shadow: 0 0 10px #D1123F;
    z-index: 2;
    transform-origin: bottom right; 
    animation: zhankai2 10s infinite;
}

.petal:nth-child(2){
    transform-origin: right bottom;
    transform: rotate(90deg);
    left: -10px;
    animation: zhankai1 10s infinite;
}

.petal:nth-child(3){
    width: 40px; height: 40px;
    left: 10px; top: -20px;
    z-index: 1;
    background: #f03a64;
    animation: zhankai2 10s infinite;
}

.petal:nth-child(4){
    transform: rotate(90deg);
    width: 40px; height: 40px;
    left: 0px; top: -20px;
    z-index: 1;
    background: #f03a64;
    animation: zhankai1 10s infinite;
}

.petal:nth-child(5){
    width: 50px; height: 50px;
    border-radius: 20px;
    left: 20px; top: -30px;
    z-index: 0;
    background: #d1123f;
}

.leaf {
    position: absolute;
    top: 60px;
    left: -80px; /* Mövqeyi tənzimləndi */
}

.stem {
    width: 200px;
    height: 40px;
    background: transparent;
    border: 6px solid #8ac78a;
    border-color: #77a377 transparent transparent transparent;
    border-radius: 50% 50%;
    transform: rotate(100deg);
}

.leafs {
    width: 40px;
    height: 30px;
    border-radius: 0px 50%;
    background: #77a377;
    position: absolute;
    top: 10px;
    left: 80px;
    z-index: 49;
}

.leafs:nth-child(2){
    width: 30px;
    height: 15px;
    top: 40px;
    left: 120px;
    transform: rotate(120deg);
}

/* Animasiyalar */
@keyframes yidon {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

@keyframes zhankai1 {
    50% { transform: rotate(110deg); }
    100% { transform: rotate(90deg); }
}

@keyframes zhankai2 {
    50% { transform: rotate(-20deg); }
    100% { transform: rotate(0deg); }
}

.visualizer-container {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 10px 0 40px 0;
}

#visualizer {
    width: 250px; /* İstədiyin ölçüdə edə bilərsən */
    height: 60px;
    border-radius: 10px;
}
