/* --- GENEL AYARLAR --- */
body {
    font-family: 'Poppins', sans-serif; /* Burayı değiştirdik */
    /* Diğer ayarlar aynı kalsın */
    background: linear-gradient(-45deg, #ee7752, #e73c7e, #23a6d5, #23d5ab);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    color: #fff;
    margin: 0;
    min-height: 100vh;
    overflow-x: hidden;
}

/* El yazısı olan başlıkları da modern yapalım dersen: */
.romantic-font, h1.main-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 600; /* Biraz kalın olsun */
    letter-spacing: -1px; /* Harfleri birbirine yaklaştır */
}

@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

a { text-decoration: none; color: inherit; }

/* --- NAVBAR (MENÜ) --- */
.navbar {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    justify-content: center;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.nav-link {
    color: #fff;
    padding: 10px 20px;
    margin: 0 5px;
    border-radius: 20px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.nav-link.active {
    background: rgba(255, 255, 255, 0.3);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
}

/* --- ANA KUTU (GLASS CARD) --- */
.container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.glass-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 24px;
    padding: 40px;
    width: 90%;
    max-width: 700px;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    text-align: center;
    margin-bottom: 40px;
}

/* --- YAZI TİPLERİ --- */
.romantic-font {
    font-family: 'Dancing Script', cursive;
}

h1.main-title {
    font-size: 3.5rem;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

h2.sub-title {
    font-weight: 300;
    margin-top: 10px;
    font-size: 1.5rem;
    opacity: 0.9;
}

/* --- SAYAÇ --- */
.timer-label {
    letter-spacing: 2px;
    font-size: 0.9rem;
    margin-top: 30px;
    opacity: 0.8;
    text-transform: uppercase;
}

.timer {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 15px;
}

.time-box {
    background: rgba(0, 0, 0, 0.2);
    padding: 15px;
    border-radius: 12px;
    min-width: 70px;
}

.time-box span {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    font-family: 'Segoe UI', monospace; /* Sayılar düzgün hizalansın diye */
}

.time-box .label {
    font-size: 0.7rem;
    margin-top: 5px;
    opacity: 0.8;
}

/* --- TIMELINE (HİKAYE) --- */
.timeline {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
    text-align: left;
    padding-left: 20px;
}

.timeline-item {
    padding: 20px 30px;
    position: relative;
    border-left: 3px solid rgba(255,255,255,0.3);
    margin-bottom: 20px;
}

.timeline-item::before {
    content: '❤️';
    position: absolute;
    left: -14px;
    top: 20px;
    background: #fff;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    text-align: center;
    font-size: 14px;
    line-height: 24px;
    color: #e73c7e;
}

.date { font-weight: bold; color: #ffeb3b; font-size: 1.1rem; }
.event { font-size: 1.1rem; margin-top: 5px; }
.description { font-size: 0.9rem; opacity: 0.8; margin-top: 5px; line-height: 1.4; }

/* --- GALERİ (FOTOĞRAFLAR) --- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    width: 100%;
}

.photo-card {
    background: #fff;
    padding: 10px 10px 40px 10px;
    border-radius: 4px;
    transform: rotate(-2deg);
    transition: transform 0.3s;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.photo-card:hover {
    transform: rotate(0deg) scale(1.05);
    z-index: 10;
}

.photo-card:nth-child(even) { transform: rotate(2deg); } /* Bir sağa bir sola eğim */

.photo-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 2px;
}

.photo-card p {
    color: #333;
    font-family: 'Dancing Script', cursive;
    font-size: 1.2rem;
    text-align: center;
    margin-top: 10px;
    margin-bottom: 0;
}

/* --- ANİMASYONLU KALP --- */
.heart {
    position: fixed;
    top: -10vh;
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.6);
    animation: fall linear forwards;
    z-index: -1;
}

@keyframes fall {
    to { transform: translateY(110vh); }
}

/* --- MÜZİK ÇALAR --- */
.music-player {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 10px;
    border-radius: 50px; /* Hap şeklinde */
    display: flex;
    align-items: center;
    gap: 15px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    z-index: 2000;
}

.disk {
    width: 40px;
    height: 40px;
    background: #333;
    border-radius: 50%;
    position: relative;
    border: 2px solid #fff;
}

.disk-center {
    width: 12px;
    height: 12px;
    background: #e73c7e;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}
.love-btn {
    background: #fff;
    color: #e73c7e;
    border: none;
    padding: 10px 25px;
    border-radius: 20px;
    font-family: 'Segoe UI', sans-serif;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}
.love-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.6);
}

.animation-spin {
    animation: spin 3s linear infinite;
    animation-play-state: paused; /* Başlangıçta dönmesin */
}

@keyframes spin { 100% { transform: rotate(360deg); } }

.song-info { display: flex; align-items: center; gap: 10px; }
.song-title { font-size: 0.9rem; font-weight: 600; margin-right: 5px; }

#play-btn {
    background: #fff;
    color: #e73c7e;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 14px;
    display: flex; /* Flexbox ile ortalama */
    align-items: center;
    justify-content: center;
    padding-left: 2px; /* Üçgen biraz sağa kaysın diye optik düzeltme */
}
/* --- SAYFA GEÇİŞ SİSTEMİ --- */
.page-section {
    width: 100%;
    display: flex;
    justify-content: center;
    /* Varsayılan olarak görünür, JS ile gizleyeceğiz */
}

.hidden-section {
    display: none !important;
}

.active-section {
    display: flex !important;
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
/* --- YILBAŞI IŞIKLARI (Header Süslemesi) --- */
.lightrope {
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    position: absolute;
    z-index: 1;
    margin: -15px 0 0 0;
    padding: 0;
    pointer-events: none;
    width: 100%;
    display: flex; /* Işıkları yan yana dizmek için */
    justify-content: center; /* Ortala */
}

.lightrope li {
    position: relative;
    animation-fill-mode: both;
    animation-iteration-count: infinite;
    list-style: none;
    margin: 0;
    padding: 0;
    display: block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin: 20px;
    background: #00f7a5;
    box-shadow: 0px 4.66667px 24px 3px #00f7a5;
    animation-name: flash-1;
    animation-duration: 2s;
}

.lightrope li:nth-child(2n+1) {
    background: #00ffff;
    box-shadow: 0px 4.66667px 24px 3px #00ffff;
    animation-name: flash-2;
    animation-duration: 0.4s;
}

.lightrope li:nth-child(4n+2) {
    background: #f70094;
    box-shadow: 0px 4.66667px 24px 3px #f70094;
    animation-name: flash-3;
    animation-duration: 1.1s;
}

.lightrope li:before {
    content: "";
    position: absolute;
    background: #222;
    width: 10px;
    height: 9px;
    border-radius: 3px;
    top: -4.66667px;
    left: 1px;
}

.lightrope li:after {
    content: "";
    top: -14px;
    left: 9px;
    position: absolute;
    width: 52px;
    height: 18.66667px;
    border-bottom: solid #222 2px;
    border-radius: 50%;
}

@keyframes flash-1 { 0%, 100% { background: #00f7a5; box-shadow: 0px 4.66667px 24px 3px #00f7a5; } 50% { background: rgba(0,247,165,0.4); box-shadow: 0px 4.66667px 24px 3px rgba(0,247,165,0.2); } }
@keyframes flash-2 { 0%, 100% { background: #00ffff; box-shadow: 0px 4.66667px 24px 3px #00ffff; } 50% { background: rgba(0,255,255,0.4); box-shadow: 0px 4.66667px 24px 3px rgba(0,255,255,0.2); } }
@keyframes flash-3 { 0%, 100% { background: #f70094; box-shadow: 0px 4.66667px 24px 3px #f70094; } 50% { background: rgba(247,0,148,0.4); box-shadow: 0px 4.66667px 24px 3px rgba(247,0,148,0.2); } }

/* --- 2026 LOADING BAR --- */
.progress-container {
    width: 100%;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    margin-top: 25px;
    height: 20px;
    position: relative;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #ff7b72, #e73c7e);
    width: 0%; /* JS ile dolacak */
    border-radius: 10px;
    transition: width 1s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.progress-text {
    padding-right: 10px;
    font-size: 0.7rem;
    font-weight: bold;
    color: white;
}

/* --- FOOTER --- */
.site-footer {
    width: 100%;
    text-align: center;
    padding: 20px;
    font-size: 0.9rem;
    opacity: 0.8;
    margin-top: auto; /* Sayfanın en altına iter */
    color: rgba(255,255,255,0.7);
}
/* --- DİLEK FENERİ --- */
.lantern {
    position: fixed;
    bottom: -100px; /* Ekranın altından başlasın */
    width: 60px;
    height: 80px;
    background: linear-gradient(to bottom, #ff9966, #ff5e62);
    border-radius: 10px 10px 30px 30px; /* Fener şekli */
    box-shadow: 0 0 20px #ff9966, 0 0 40px #ff5e62; /* Parlama efekti */
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
    color: rgba(255, 255, 255, 0.8);
    animation: flyUp 10s linear forwards; /* 10 saniyede yukarı çıkıp kaybolsun */
}

/* Fenerin içindeki ateş efekti */
.lantern::after {
    content: '';
    position: absolute;
    bottom: 0;
    width: 20px;
    height: 10px;
    background: #ffeb3b;
    border-radius: 50%;
    box-shadow: 0 0 10px 5px #ffeb3b;
    animation: flicker 1s infinite alternate;
}

@keyframes flyUp {
    0% { transform: translateY(0) scale(1) rotate(0deg); opacity: 1; }
    50% { opacity: 0.9; }
    100% { transform: translateY(-120vh) scale(0.5) rotate(10deg); opacity: 0; } /* Göğe yükseldikçe küçülsün */
}

@keyframes flicker {
    0% { opacity: 0.8; transform: scale(1); }
    100% { opacity: 1; transform: scale(1.2); }
}
/* --- MEKTUP PENCERESİ (MODAL) --- */
.modal {
    display: none; /* Başlangıçta gizli */
    position: fixed;
    z-index: 5000; /* En üstte görünsün */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7); /* Arka planı karart */
    backdrop-filter: blur(5px);
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s;
}

.modal-content {
    background: #fff !important; /* Mektup kağıdı gibi beyaz olsun */
    color: #333;
    max-width: 500px;
    width: 90%;
    position: relative;
    padding: 40px;
    text-align: left;
    border-radius: 10px;
    box-shadow: 0 0 50px rgba(231, 60, 126, 0.5);
}

.letter-text p {
    font-family: 'Caveat', cursive; /* El yazısı fontu */
    font-size: 1.3rem;
    line-height: 1.6;
    margin-bottom: 15px;
    color: #555;
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 20px;
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.close-btn:hover { color: #e73c7e; }
/* --- EASTER EGG ANİMASYONU --- */
@keyframes popIn {
    0% { transform: scale(0); opacity: 0; }
    80% { transform: scale(1.1); opacity: 1; }
    100% { transform: scale(1); }
}
/* --- HEDİYE ZIPLAMA --- */
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {transform: translateY(0);}
    40% {transform: translateY(-20px);}
    60% {transform: translateY(-10px);}
}