:root {
    --primary-color: #ff4d6d;
    --bg-color: #fff0f3;
    --text-color: #590d22;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Montserrat', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    display: flex;
    flex-direction: column;
    align-items: center;
}

#hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

h1 {
    font-family: 'Dancing Script', cursive;
    font-size: 4rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

#timer {
    display: flex;
    gap: 15px;
}

.time-box {
    background: white;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 10px 20px rgba(255, 77, 109, 0.1);
    min-width: 90px;
}

.time-box span {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--primary-color);
    display: block;
}

.time-box p {
    margin: 5px 0 0;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.timeline-section {
    padding: 100px 0;
    width: 100%;
}

.section-title {
    text-align: center;
    font-family: 'Dancing Script', cursive;
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 50px;
}

/* Dikey Çizgi */
.timeline {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 6px;
    background-color: var(--primary-color);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -3px;
    border-radius: 10px;
}

/* Konteyner Ayarları */
.container {
    padding: 10px 40px;
    position: relative;
    background-color: inherit;
    width: 50%;
    box-sizing: border-box;
}

/* Yuvarlak Noktalar */
.container::after {
    content: '';
    position: absolute;
    width: 25px;
    height: 25px;
    right: -17px;
    background-color: white;
    border: 4px solid var(--primary-color);
    top: 15px;
    border-radius: 50%;
    z-index: 1;
}

.left { left: 0; }
.right { left: 50%; }

.right::after { left: -16px; }

.content {
    padding: 20px 30px;
    background-color: white;
    position: relative;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.content img {
    width: 100%;
    border-radius: 10px;
    margin-bottom: 15px;
}

.date {
    font-weight: bold;
    color: var(--primary-color);
    display: block;
    margin-top: 10px;
}

/* Mobil Uyumluluk */
@media screen and (max-width: 600px) {
    .timeline::after { left: 31px; }
    .container { width: 100%; padding-left: 70px; padding-right: 25px; }
    .container::after { left: 15px; }
    .right { left: 0%; }
}

.photo-gallery {
    display: grid;
    /* 2 sütun yapalım ki fotoğraflar daha büyük ve dikey gözüksün */
    grid-template-columns: 1fr 1fr; 
    gap: 15px;
    margin-bottom: 20px;
}

.photo-gallery img {
    width: 100%;
    /* Yüksekliği 300px yaptık, daha belirgin olacak */
    height: 300px; 
    object-fit: cover; 
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

/* Üzerine gelince biraz daha estetik dursun */
.photo-gallery img:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(255, 77, 109, 0.3);
}

/* Yatay fotoğraflar için özel galeri */
.photo-gallery-2 {
    display: flex;
    flex-direction: column; /* Fotoğrafları alt alta dizer */
    gap: 20px;
    margin-bottom: 25px;
}

.photo-gallery-2 img {
    width: 100%;
    height: 250px; /* Yatay görünüm için yüksekliği azalttık */
    object-fit: cover; /* Fotoğrafın en-boy oranını bozmadan sığdırır */
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    transition: transform 0.3s ease;
}

.photo-gallery-2 img:hover {
    transform: scale(1.02); /* Hafif bir büyüme efekti */
}

.forever-section {
    text-align: center;
    padding: 60px 20px;
    margin-top: 40px;
}

.infinity-symbol {
    font-size: 5rem;
    color: var(--primary-color);
    animation: pulse 2s infinite ease-in-out; /* Kalp atışı gibi sönüp yansın */
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.1); opacity: 1; }
    100% { transform: scale(1); opacity: 0.8; }
}

.forever-section h2 {
    font-family: 'Dancing Script', cursive;
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-top: 10px;
}

.forever-section p {
    font-size: 1.1rem;
    line-height: 1.6;
    max-width: 600px;
    margin: 20px auto;
    font-style: italic;
}

.forever-tag {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 10px 25px;
    border-radius: 50px;
    font-weight: bold;
    margin-top: 20px;
    box-shadow: 0 5px 15px rgba(255, 77, 109, 0.4);
}

#music-player {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    padding: 15px 25px;
    border-radius: 50px;
    box-shadow: 0 10px 25px rgba(255, 77, 109, 0.3);
    z-index: 1000;
    border: 1px solid var(--primary-color);
}

.player-content {
    display: flex;
    align-items: center;
    gap: 15px;
}

#now-playing {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-color);
}

#play-pause-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: bold;
    transition: 0.3s;
}

#play-pause-btn.playing {
    background: #590d22;
}

/* Dark Mode için player uyumu */
body.dark-mode #music-player {
    background: rgba(26, 26, 46, 0.9);
    border-color: var(--primary-color);
}

#entrance-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--bg-color);
    display: flex; /* Kartı ortalamak için şart */
    justify-content: center;
    align-items: center;
    z-index: 99999;
    transition: opacity 1s ease;
    opacity: 1;
    visibility: visible;
}

/* KART BOYUTU BURADA DÜZELİYOR */
.entrance-card {
    text-align: center;
    background: white;
    padding: 60px 40px; /* İç boşluğu artırdık */
    border-radius: 30px;
    box-shadow: 0 15px 45px rgba(255, 77, 109, 0.2);
    width: 90%; /* Mobilde taşmasın */
    max-width: 550px; /* Masaüstünde doyurucu boyut */
    
    /* AOS engeline takılmaması için zorunlu kurallar */
    opacity: 1 !important;
    transform: none !important;
    visibility: visible !important;
}

.entrance-card h1 {
    font-size: 3.5rem; /* Başlık boyutu */
    margin-bottom: 20px;
}

#entry-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 1.2rem;
    border-radius: 50px;
    cursor: pointer;
    margin-top: 20px;
    transition: transform 0.3s;
}

#entry-btn:hover {
    transform: scale(1.1);
}

#media-controls {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    padding: 12px 20px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 8px 32px rgba(255, 77, 109, 0.2);
    z-index: 10000;
    transition: all 0.5s ease;
    transform: translateY(100px); /* Başta ekranın altında gizli */
    opacity: 0;
}

#media-controls.visible-player {
    transform: translateY(0);
    opacity: 1;
}

.player-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

#mini-play-pause {
    background: var(--primary-color);
    color: white;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 0.8rem;
}

#volume-slider {
    width: 80px;
    accent-color: var(--primary-color);
    cursor: pointer;
}

/* Müzik ikonu her zaman dönecek şekilde ayarlı kalsın ama kontrol bizde olsun */
.music-icon {
    display: inline-block;
    animation: rotate 3s linear infinite;
    animation-play-state: paused; /* Başlangıçta dursun */
}

/* Bu sınıf eklendiğinde dönmeye başlar */
.music-icon.spinning {
    animation-play-state: running;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Pembe Buton Merkezleme */
#mini-play-pause {
    background: var(--primary-color);
    color: white;
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    
    /* İçerik merkezleme */
    display: flex;
    justify-content: center;
    align-items: center;
    
    font-size: 0.9rem;
    line-height: 1; /* Yazı yüksekliğini sıfırla */
    padding: 0;
}

.volume-symbol {
    font-size: 0.8rem;
    color: var(--text-color);
}
@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Dark mode uyumu */
body.dark-mode #media-controls {
    background: rgba(26, 26, 46, 0.8);
    color: white;
}

.click-heart {
    position: fixed;
    pointer-events: none;
    z-index: 10001;
    font-size: 20px;
    animation: floatUp 1s ease-out forwards;
}

@keyframes floatUp {
    0% {
        transform: translate(0, 0) rotate(0deg) scale(1);
        opacity: 1;
    }
    100% {
        /* JS'den gelen rastgele X değerini kullanıyoruz */
        transform: translate(var(--random-x), -100px) rotate(var(--rotation)) scale(0);
        opacity: 0;
    }
}

.floating-bg-heart {
    position: fixed;
    bottom: -20px;
    z-index: -1; /* İçeriğin arkasında kalsın */
    font-size: 15px;
    color: var(--primary-color);
    pointer-events: none;
    animation: floatBackground linear forwards;
}

@keyframes floatBackground {
    to {
        transform: translateY(-110vh) rotate(360deg);
    }
}

/* Giriş ekranındaki kartı sağlama alalım */
#entrance-screen .entrance-card {
    opacity: 1 !important;
    visibility: visible !important;
}

/* Timeline elemanları için güvenli başlatma */
#main-content [data-aos] {
    opacity: 0;
    transition-property: transform, opacity;
}

/* AOS aktif olduğunda sınıf eklendiğinde görünecekler */
#main-content [data-aos].aos-animate {
    opacity: 1;
}