/* General Style */
body {
    font-family: 'Inter', sans-serif;
    margin: 0;
    overflow-x: hidden;
    background-color: #FFF8E1; /* Yumuşak Krem Arkaplan */
    color: #4E342E; /* Koyu Kahve Metin */
    scroll-behavior: smooth;
}

h2 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
}

/* --- YENİLENMİŞ KARŞILAMA EKRANI STİLLERİ --- */
.initial-celebration {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(-45deg, #4a00e0, #8e2de2, #c94b4b);
    background-size: 400% 400%;
    animation: gradient-animation 15s ease infinite;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1001;
    color: white;
    text-align: center;
    flex-direction: column;
    opacity: 1;
    transform: translateY(0);
    will-change: transform, opacity;
    overflow: hidden;
}

.initial-celebration h1 {
    font-family: 'Pacifico', cursive;
    font-size: clamp(3em, 12vw, 8em);
    color: #ffffff;
    text-shadow: 0 5px 15px rgba(0, 0, 0, 0.3), 0 2px 5px rgba(0,0,0,0.5);
    animation: bounceIn 1s forwards, glow 2.5s infinite alternate 1s;
    margin-bottom: 15px;
}

.initial-celebration p {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: clamp(1.2em, 3vw, 2em);
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.5);
    animation: fadeIn 2s 0.5s forwards;
    opacity: 0;
}

@keyframes glow {
    from {
        text-shadow: 0 5px 15px rgba(0, 0, 0, 0.3), 0 2px 5px rgba(0,0,0,0.5), 0 0 10px #fff, 0 0 20px #fff, 0 0 30px #e0c3fc, 0 0 40px #e0c3fc;
    }
    to {
        text-shadow: 0 5px 25px rgba(0, 0, 0, 0.3), 0 2px 5px rgba(0,0,0,0.5), 0 0 20px #fff, 0 0 30px #d8b4fe, 0 0 40px #d8b4fe;
    }
}

@keyframes bounceIn {
    0%, 20%, 40%, 60%, 80%, 100% { transition-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1); }
    0% { opacity: 0; transform: scale3d(0.3, 0.3, 0.3); }
    20% { transform: scale3d(1.1, 1.1, 1.1); }
    40% { transform: scale3d(0.9, 0.9, 0.9); }
    60% { opacity: 1; transform: scale3d(1.03, 1.03, 1.03); }
    80% { transform: scale3d(0.97, 0.97, 0.97); }
    100% { opacity: 1; transform: scale3d(1, 1, 1); }
}

.sparkle {
    position: absolute;
    width: 5px;
    height: 5px;
    background-color: white;
    border-radius: 50%;
    box-shadow: 0 0 10px 2px white;
    animation: sparkle-animation 10s linear infinite;
    opacity: 0;
}

@keyframes sparkle-animation {
    0% { transform: translate(0, 0) scale(0.5); opacity: 0.5; }
    50% { opacity: 1; }
    100% { transform: translate(var(--x-end), var(--y-end)) scale(1); opacity: 0; }
}

/* Hero Section */
.hero-section {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    background-size: 400% 400%;
    animation: gradient-animation 15s ease infinite;
    color: white;
    text-align: center;
    padding: 20px;
    box-sizing: border-box;
    position: relative;
    z-index: 1;
}

@keyframes gradient-animation {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.hero-section h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.8em, 8vw, 5em);
    opacity: 0;
    animation: fadeInScaleUp 2s forwards;
    font-weight: 700;
    margin-bottom: 10px;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.4);
}

.hero-section p {
    font-size: clamp(1.2em, 4vw, 2em);
    opacity: 0;
    animation: fadeInScaleUp 2s 1s forwards;
    margin-top: 0;
    text-shadow: 1px 1px 7px rgba(0, 0, 0, 0.3);
}

@keyframes fadeInScaleUp {
    from { opacity: 0; transform: translateY(20px) scale(0.9); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Genel Bölüm Stilleri */
.intro-section, .genco-to-melo-section, .compliment-section, .countdown-section, .closing-section, .gallery-section, .growing-cake-section {
    padding: 60px 20px;
    text-align: center;
    border-radius: 15px;
    margin: 40px 20px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0,0,0,0.05);
}

.intro-section {
    background-color: #f3e5f5; /* Açık Lavanta */
    color: #4a148c; /* Koyu Mor */
}
.intro-section h2 { color: #6a1b9a; }

.genco-to-melo-section {
    background-color: #e3f2fd; /* Açık Mavi */
    color: #0d47a1; /* Koyu Mavi */
}
.genco-to-melo-section h2 { color: #1565c0; }

.compliment-section {
    background-color: #fff3e0; /* Açık Turuncu */
    color: #e65100; /* Koyu Turuncu */
}
.compliment-section h2 { color: #f57c00; }
#complimentDisplay {
    border-color: #ffb74d;
    background-color: #fff8e1;
    color: #e65100;
}

.countdown-section {
    background-color: #e0f2f1; /* Açık Teal */
    color: #004d40; /* Koyu Teal */
}
.countdown-section h2 { color: #00695c; }
#countdown { color: #00897b; }

.closing-section {
    background-color: #fce4ec; /* Açık Pembe */
    color: #880e4f; /* Koyu Pembe */
}
.closing-section p { font-family: 'Playfair Display', serif; }

.growing-cake-section {
    background-color: #f1f8e9; /* Açık Yeşil */
    color: #33691e; /* Koyu Yeşil */
}
.growing-cake-section h2 { color: #558b2f; }
.growing-cake-section p { color: #689f38; }

/* Buton Stilleri */
.compliment-section button, .acrostic-button {
    padding: 15px 35px;
    font-size: 1.3em;
    color: white;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    font-weight: bold;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.compliment-section button { background: linear-gradient(to right, #ff8a65, #ff7043); }
.compliment-section button:hover { background: linear-gradient(to right, #ff7043, #ff5722); transform: translateY(-3px); }

.acrostic-button { background: linear-gradient(to right, #ba68c8, #ab47bc); }
.acrostic-button:hover { background: linear-gradient(to right, #ab47bc, #9c27b0); transform: translateY(-3px); }

/* Galeri Stilleri */
.gallery-section {
    background-color: #fffde7; /* Çok Açık Krem */
}
.gallery-section h2 {
    color: #c5a35a; /* Altın */
}
.gallery-container {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
    user-select: none;
}
.gallery-frame {
    background-color: #3a2e2c;
    border: 12px solid #D4AF37;
    border-image: linear-gradient(to right, #c5a35a, #e6c66e, #c5a35a) 1;
    padding: 20px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3), inset 0 0 15px rgba(0,0,0,0.2);
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}
#galleryImage {
    max-width: 100%;
    max-height: 70vh;
    border-radius: 4px;
    transition: opacity 0.4s ease-in-out;
    opacity: 1;
}
#galleryImage.fade {
    opacity: 0;
}
.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    font-size: 2em;
    cursor: pointer;
    padding: 10px 15px;
    border-radius: 50%;
    z-index: 10;
    transition: background-color 0.3s ease;
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
}
.gallery-nav:hover { background-color: rgba(0, 0, 0, 0.8); }
.gallery-nav.prev { left: -25px; }
.gallery-nav.next { right: -25px; }

/* Diğer Stiller */
.cake-emoji { font-size: clamp(4em, 15vw, 8em); cursor: pointer; display: inline-block; transition: transform 0.1s ease-out; will-change: transform; user-select: none; }
.cake-reset-button { background-color: transparent; color: #555; border: 2px solid #ccc; border-radius: 50%; width: 45px; height: 45px; font-size: 1.5em; display: flex; justify-content: center; align-items: center; cursor: pointer; box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1); transition: all 0.3s ease; }
.cake-reset-button:hover { background-color: rgba(204, 204, 204, 0.3); transform: scale(1.1); border-color: #999; }
.acrostic-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(to top left, #e1bee7, #d1c4e9, #c5cae9); display: none; flex-direction: column; justify-content: center; align-items: center; z-index: 1002; color: #333; text-align: center; animation: fadeIn 0.5s forwards; overflow: hidden; padding: 20px; box-sizing: border-box; padding-bottom: 50px; }
.acrostic-overlay #acrosticPoem { font-family: 'Playfair Display', serif; font-size: clamp(1.2em, 3.5vw, 1.9em); line-height: 1.7; max-width: 700px; margin: 0 auto; white-space: pre-line; font-style: italic; color: #311b92; padding: 0 20px; animation: slideInUp 1s forwards 0.3s; opacity: 0; flex-grow: 1; display: flex; align-items: center; justify-content: center; padding-top: 5vh; }
.acrostic-overlay .back-button { margin-top: 40px; padding: 10px 20px; font-size: 1em; background: linear-gradient(to right, #8e24aa, #7b1fa2); color: white; border: none; border-radius: 25px; cursor: pointer; transition: all 0.3s ease; box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2); font-weight: bold; text-transform: uppercase; }
.acrostic-overlay .back-button:hover { background: linear-gradient(to right, #7b1fa2, #6a1b9a); transform: translateY(-2px); }
.birthday-celebration { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.85); display: none; justify-content: center; align-items: center; z-index: 1000; color: white; text-align: center; flex-direction: column; animation: fadeInScale 1s forwards; }
.birthday-celebration h1 { font-family: 'Pacifico', cursive; font-size: clamp(3em, 10vw, 6em); margin-bottom: 20px; color: #ffd700; text-shadow: 0 0 15px rgba(255, 215, 0, 0.7); }
.birthday-celebration p { font-size: clamp(1.5em, 5vw, 3em); color: #ffe082; }
.music-player-container { position: fixed; bottom: 20px; right: 20px; z-index: 999; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.music-player-container button { width: 60px; height: 60px; border-radius: 50%; background-color: #ad1457; color: white; border: none; font-size: 1.8em; display: flex; justify-content: center; align-items: center; cursor: pointer; box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2); transition: all 0.3s ease; }
.music-player-container button:hover { background-color: #880e4f; transform: scale(1.05); }
.song-title-display { display: none; }

/* Parçacık Animasyonları */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideInUp { from { opacity: 0; transform: translateY(50px); } to { opacity: 1; transform: translateY(0); } }
@keyframes acrostic-pop-fade { 0% { opacity: 0; transform: scale(0.2) translateY(50px) rotate(0deg); } 30% { opacity: 1; transform: scale(1.1) translateY(-10px) rotate(360deg); } 100% { opacity: 0; transform: scale(0.5) translateY(-50px) rotate(720deg); } }
.acrostic-pop-particle { position: absolute; opacity: 0; animation: acrostic-pop-fade ease-out forwards; animation-iteration-count: 1; font-size: clamp(1em, 3vw, 1.8em); text-shadow: 0 0 5px rgba(0, 0, 0, 0.2); will-change: transform, opacity; }
@keyframes gift-confetti-burst { 0% { opacity: 1; transform: scale(0.5) translate(0, 0) rotate(0deg); } 100% { opacity: 0; transform: scale(1.5) translate(var(--x), var(--y)) rotate(720deg); } }
.gift-confetti-particle { position: fixed; opacity: 0; font-size: clamp(1em, 3vw, 2em); animation: gift-confetti-burst ease-out forwards; pointer-events: none; z-index: 998; }
@keyframes fadeInScale { from { opacity: 0; transform: scale(0.8); } to { opacity: 1; transform: scale(1); } }
.initial-celebration-particles-container, .global-background-particles-container { position: absolute; width: 100%; height: 100%; overflow: hidden; pointer-events: none; top: 0; left: 0; }
.global-background-particles-container { position: fixed; z-index: 0; }
.initial-celebration-particle, .initial-screen-continuous-particle, .persistent-particle { position: absolute; opacity: 0.9; text-shadow: 0 0 5px rgba(0, 0, 0, 0.3); will-change: transform; }
.initial-celebration-particle { animation: fall linear forwards; font-size: clamp(1.2em, 3.5vw, 2em); animation-iteration-count: 1; animation-fill-mode: forwards; }
.initial-screen-continuous-particle { animation: fall-slow linear infinite; font-size: clamp(1.2em, 3.5vw, 2em); }
.persistent-particle { animation: fall-slow linear infinite; font-size: clamp(0.9em, 2.8vw, 1.5em); }
@keyframes fall { 0% { transform: translateY(-100px) rotate(0deg); opacity: 1; } 100% { transform: translateY(105vh) rotate(720deg); opacity: 0; } }
@keyframes fall-slow { 0% { transform: translateY(-100px) rotate(0deg); opacity: 0.8; } 100% { transform: translateY(105vh) rotate(360deg); opacity: 0; } }
.firework-burst-particle { font-size: clamp(1.2em, 4vw, 2.5em); opacity: 0; transform: scale(0); animation: burst-animate ease-out forwards; text-shadow: 0 0 10px rgba(255, 255, 0, 0.7); }
@keyframes burst-animate { 0% { opacity: 1; transform: scale(0.5) rotate(0deg); } 50% { opacity: 1; transform: scale(2.0) rotate(360deg); } 100% { opacity: 0; transform: scale(0.1) rotate(720deg); } }

/* Mobil Uyum */
@media (max-width: 768px) {
    .hero-section h1 { font-size: 2.5em; }
    .hero-section p { font-size: 1.2em; }
    .intro-section h2, .countdown-section h2, .compliment-section h2, .growing-cake-section h2, .genco-to-melo-section h2, .gallery-section h2 { font-size: 2em; }
    .closing-section p, .gallery-section p { font-size: 1.1em; }
    .growing-cake-section p, .genco-to-melo-section p, .intro-section p { font-size: 1em; }
    .cake-reset-button { width: 35px; height: 35px; font-size: 1.2em; }
    #countdown { font-size: 2.5em; }
    .compliment-section button, .acrostic-button, .acrostic-overlay .back-button { font-size: 1.1em; padding: 12px 25px; }
    #complimentDisplay { font-size: 1.2em; }
    .birthday-celebration h1 { font-size: 2.5em; }
    .birthday-celebration p { font-size: 1.2em; }
    .music-player-container { bottom: 15px; right: 15px; }
    .music-player-container button { width: 50px; height: 50px; font-size: 1.5em; }
    .initial-celebration p { font-size: clamp(0.8em, 2.5vw, 1.2em); }
    .acrostic-overlay p { font-size: clamp(1em, 3vw, 1.5em); padding-top: 2vh; }
    .acrostic-overlay .back-button { padding: 8px 18px; font-size: 0.9em; }
    .gallery-nav { width: 40px; height: 40px; font-size: 1.5em; }
    .gallery-nav.prev { left: 5px; }
    .gallery-nav.next { right: 5px; }
}