/* =========================================
   1. GENEL AYARLAR VE SIFIRLAMA
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: #fff;
    background-color: #222;
    overflow-x: hidden; /* Yan taşmayı engelle */
}

/* =========================================
   2. YAPIŞKAN SAYAÇ (STICKY BAR)
   ========================================= */
#sticky-counter {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.85);
    text-align: center;
    padding: 10px 0;
    z-index: 1000;
    backdrop-filter: blur(5px);
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

#sticky-counter p {
    font-size: 1rem;
    font-weight: 300;
}

#timer-sticky {
    font-weight: 600;
    color: #e91e63;
}

/* Animasyon Sınıfları */
.hidden-bar {
    opacity: 0;
    visibility: hidden;
    transform: translateY(-100%);
    transition: all 0.5s ease;
}

.visible-bar {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* =========================================
   3. HERO (GİRİŞ) BÖLÜMÜ
   ========================================= */
.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    /* Arka plan görseli */
    background-image: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('hero-bg.jpg'); 
    background-size: cover;
    background-position: center;
    padding: 20px;
}

.hero h1 {
    font-family: 'Dancing Script', cursive;
    font-size: 4rem;
    margin-bottom: 10px;
    color: #e91e63;
}

.hero h2 {
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 20px;
}

/* KUTULU SAYAÇ TASARIMI */
#countdown-wrapper {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 30px 0;
    flex-wrap: wrap;
}

.time-box {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 15px 20px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    min-width: 90px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: float 6s ease-in-out infinite;
}

.time-box span:first-child {
    font-size: 2.5rem;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 0 10px rgba(233, 30, 99, 0.5);
    line-height: 1;
}

.time-box .label {
    font-size: 0.7rem;
    margin-top: 5px;
    letter-spacing: 2px;
    opacity: 0.8;
    text-transform: uppercase;
}

.romantic-text {
    font-family: 'Dancing Script', cursive;
    font-size: 2.5rem;
    color: #ff80ab;
    margin-top: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

/* Kalp Atışı Animasyonu */
.pulse-heart {
    display: inline-block;
    animation: heartbeat 1.5s infinite;
}

@keyframes heartbeat {
    0% { transform: scale(1); }
    15% { transform: scale(1.3); }
    30% { transform: scale(1); }
    45% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

/* Aşağı Kaydırma Oku */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    font-size: 2rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {transform: translateY(0);}
    40% {transform: translateY(-20px);}
    60% {transform: translateY(-10px);}
}

/* =========================================
   4. TIMELINE (ZAMAN TÜNELİ)
   ========================================= */
.timeline {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 0 100px 0; /* Alttan boşluk */
    overflow: hidden;
}

/* ORTA ÇİZGİ */
.timeline::after {
    content: '';
    position: absolute;
    width: 4px;
    background: linear-gradient(to bottom, #ff9a9e 0%, #e91e63 80%, transparent 100%);
    top: 0;
    bottom: 120px; /* Çizgiyi alttan kesiyoruz (Taşmayı önler) */
    left: 50%;
    margin-left: -2px; 
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(233, 30, 99, 0.6);
    z-index: 0; 
}

.timeline-item {
    padding: 10px 50px;
    position: relative;
    background-color: inherit;
    width: 50%;
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease-out;
    margin-bottom: 30px;
    z-index: 5;
}

.left { left: 0; }
.right { left: 50%; }

/* İÇERİK KUTUSU */
.content {
    padding: 25px;
    background-color: rgba(50, 50, 50, 0.95);
    position: relative;
    border-radius: 20px;
    border: 1px solid rgba(255,105,180, 0.3);
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
}

.content h2 {
    font-family: 'Dancing Script', cursive;
    color: #ff80ab;
    font-size: 1.8rem;
}

.date {
    color: #ccc;
    font-style: italic;
    margin-bottom: 15px;
    font-size: 0.85rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 5px;
    display: inline-block;
}

/* Tekli Fotoğraflar (Standart) */
.timeline-img {
    width: 100%;
    border-radius: 15px;
    margin-top: 15px;
    border: 3px solid #fff;
    transition: transform 0.3s ease;
}

.timeline-img:hover {
    transform: scale(1.03);
}

/* KALP İŞARETLEYİCİLER */
.timeline-item::after {
    content: '❤️';
    position: absolute;
    width: 40px;
    height: 40px;
    z-index: 10; 
    background-color: #fff;
    border: 4px solid #ff9a9e;
    border-radius: 50%;
    top: 25px;
    right: -22px; 
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 0 10px rgba(255, 105, 180, 0.8);
}

.right::after {
    left: -22px; 
}

.timeline-item.active {
    opacity: 1;
    transform: translateY(0);
}

/* MOBİL UYUMLULUK */
@media screen and (max-width: 600px) {
    .timeline::after { left: 30px; }
    
    .timeline-item { width: 100%; padding-left: 80px; padding-right: 25px; }
    .right { left: 0%; }
    
    .timeline-item::after { left: 10px; right: auto; } 
    .left::after, .right::after { left: 10px; }
    
    .hero h1 { font-size: 2.5rem; }
    .time-box { min-width: 60px; padding: 10px; }
    .time-box span:first-child { font-size: 1.5rem; }
    .romantic-text { font-size: 1.8rem; }
}

/* =========================================
   5. GELECEK BÖLÜM VE KARTLAR
   ========================================= */
.conclusion {
    position: relative;
    z-index: 20; 
    padding: 60px 20px;
    background-color: #2a2a2a;
    text-align: center;
}

.intro-text h2 {
    font-family: 'Dancing Script', cursive;
    color: #e91e63;
    font-size: 3rem;
}

.letter-container {
    margin: 40px auto;
    max-width: 700px;
    padding: 20px;
}

.letter-paper {
    background-color: #f4e4bc;
    color: #4a3b2b;
    padding: 40px;
    border-radius: 5px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    position: relative;
    background-image: url('https://www.transparenttextures.com/patterns/cream-paper.png'); 
}

.letter-paper h3 {
    font-family: 'Dancing Script', cursive;
    font-size: 2rem;
    margin-bottom: 20px;
}

.signature {
    margin-top: 30px;
    font-weight: bold;
    text-align: right;
    font-family: 'Dancing Script', cursive;
    font-size: 1.5rem;
}

.future-section { margin-top: 60px; }

.cards-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.future-card {
    background-color: #fff;
    color: #333;
    width: 250px;
    height: 300px;
    border-radius: 15px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.future-card:hover { transform: translateY(-10px); }

.card-front {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, #e91e63, #ff6b6b);
    color: white;
    transition: opacity 0.3s ease;
}

.icon { font-size: 4rem; margin-bottom: 15px; }

.card-back {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.card-back p {
    font-size: 1.2rem;
    font-weight: 500;
    color: #e91e63;
}

.future-card.open .card-front { opacity: 0; }
.future-card.open .card-back { opacity: 1; z-index: 2; }

.hint-text { margin-top: 20px; font-size: 0.8rem; color: #aaa; }

/* GELECEK AYIRACI (Dashed Line) */
.timeline-future {
    text-align: center;
    position: relative;
    padding-top: 50px;
    padding-bottom: 20px;
    z-index: 2;
}

.timeline-future::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    height: 50px;
    border-left: 4px dashed rgba(233, 30, 99, 0.5);
    margin-left: -2px;
}

.future-content {
    background: rgba(255, 255, 255, 0.05);
    border: 2px dashed rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 30px;
    max-width: 600px;
    margin: 0 auto;
    color: #aaa;
    position: relative;
}

.future-content h3 {
    font-family: 'Dancing Script', cursive;
    font-size: 2rem;
    color: #e91e63;
    margin-bottom: 10px;
}

.loading-dots {
    display: block;
    font-size: 3rem;
    line-height: 0.5;
    margin-bottom: 15px;
    color: #e91e63;
    animation: pulse-dots 2s infinite;
}

@keyframes pulse-dots {
    0% { opacity: 0.2; transform: scale(0.9); }
    50% { opacity: 1; transform: scale(1.1); }
    100% { opacity: 0.2; transform: scale(0.9); }
}

/* =========================================
   6. YENİ EKLENEN: ŞEHİR VE ALBÜM (BÜYÜK BOY)
   ========================================= */

/* Şehir Etiketi (Badge) */
.city-badge {
    display: inline-block;
    background-color: #e91e63; 
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 10px;
    box-shadow: 0 4px 10px rgba(233, 30, 99, 0.4);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.city-badge .pin {
    margin-right: 5px;
}

/* Fotoğraf Kapsayıcısı (Alt alta sıralar) */
.photo-grid {
    display: flex;          /* Esnek kutu */
    flex-direction: column; /* Dikey hizalar */
    gap: 20px;              /* Fotolar arası boşluk */
    margin-top: 20px;
}

/* Resim Stilleri (Büyük boy) */
.grid-img {
    width: 100%;            /* Genişlik tam sığsın */
    height: auto;           /* Yükseklik resmin orijinaline göre ayarlansın */
    object-fit: cover;
    border-radius: 15px;    /* Yuvarlak köşeler */
    border: 3px solid #fff; /* Beyaz çerçeve */
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    transition: transform 0.3s ease;
}

/* Üzerine gelince efekt */
.grid-img:hover {
    transform: scale(1.02); /* Hafif büyür */
    z-index: 10;
}

/* Mobilde boşluk ayarı */
@media screen and (max-width: 600px) {
    .photo-grid {
        gap: 15px; 
    }
}