/* Genel Stiller */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    overflow: hidden;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4, #45b7d1, #96ceb4, #feca57);
    background-size: 400% 400%;
    animation: gradientShift 8s ease infinite;
}

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

/* Sayfa Stilleri */
.page {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.page.active {
    opacity: 1;
    transform: translateX(0);
}

.container {
    text-align: center;
    z-index: 10;
    position: relative;
}

/* 1. SAYFA - HOŞ GELDİN */
.welcome-title {
    font-size: 4rem;
    color: #000;
    text-shadow: 0 0 20px rgba(0, 0, 0, 0.8);
    margin-bottom: 2rem;
    animation: welcomeSlideIn 1.5s ease-out;
}

@keyframes welcomeSlideIn {
    0% {
        transform: translateY(-100px);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Devam Et Butonu */
.continue-btn {
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
    border: none;
    padding: 15px 30px;
    font-size: 1.5rem;
    color: white;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    animation: buttonSlideUp 1.8s ease-out;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

@keyframes buttonSlideUp {
    0% {
        transform: translateY(100px);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

.continue-btn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
    background: linear-gradient(45deg, #ff5252, #26c6da);
}

/* Uçan Kalpler */
.floating-hearts {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.heart {
    position: absolute;
    font-size: 2rem;
    animation: floatHeart 6s infinite ease-in-out;
    opacity: 0.8;
}

.heart:nth-child(1) {
    left: 10%;
    animation-delay: 0s;
}

.heart:nth-child(2) {
    left: 30%;
    animation-delay: 1s;
}

.heart:nth-child(3) {
    left: 50%;
    animation-delay: 2s;
}

.heart:nth-child(4) {
    left: 70%;
    animation-delay: 3s;
}

.heart:nth-child(5) {
    left: 90%;
    animation-delay: 4s;
}

@keyframes floatHeart {
    0%, 100% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10%, 90% {
        opacity: 0.8;
    }
    50% {
        transform: translateY(-100px) rotate(180deg);
        opacity: 1;
    }
}

/* 2. SAYFA - ANILAR */
.memories-title {
    font-size: 3.5rem;
    color: #000;
    text-shadow: 0 0 30px rgba(0, 0, 0, 0.9);
    margin-bottom: 3rem;
    animation: celebrationBounce 2s ease-in-out;
}

.memory-sections {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
    align-items: start;
    max-width: 1200px;
    width: 100%;
}

.memory-section {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(15px);
    border-radius: 25px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    animation: memorySlideIn 1s ease-out;
    animation-fill-mode: both;
    height: fit-content;
}

.memory-section:nth-child(1) { animation-delay: 0.2s; }
.memory-section:nth-child(2) { animation-delay: 0.4s; }
.memory-section:nth-child(3) { animation-delay: 0.6s; }

@keyframes memorySlideIn {
    0% {
        transform: translateY(50px);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

.memory-section:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.memory-subtitle {
    font-size: 1.5rem;
    color: #000;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Devam Et Butonu - 2. Sayfa için özel */
#page2 .continue-btn {
    font-size: 1.8rem;
    padding: 20px 40px;
    margin-top: 2rem;
    z-index: 100;
    position: relative;
}

.typing-text {
    font-size: 1.2rem;
    color: #000;
    line-height: 1.8;
    min-height: 60px;
    opacity: 0;
    animation: fadeInAfterTyping 0.5s ease-in-out forwards;
    animation-delay: 3s;
}

@keyframes fadeInAfterTyping {
    to {
        opacity: 1;
    }
}

/* Typing cursor */
.typing-text::after {
    content: '|';
    animation: blink 1s infinite;
    color: #ff6b6b;
    font-weight: bold;
}

.typing-text.typing-complete::after {
    display: none;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

/* 3. SAYFA - HAVAİ FİŞEK */
.celebration-title {
    font-size: 3.5rem;
    color: #000;
    text-shadow: 0 0 30px rgba(0, 0, 0, 0.9);
    margin-bottom: 2rem;
    animation: celebrationBounce 2s ease-in-out;
}

@keyframes celebrationBounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-30px);
    }
    60% {
        transform: translateY(-15px);
    }
}

/* Havai Fişek Animasyonu */
.fireworks-container {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.firework {
    position: absolute;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    animation: firework 3s infinite;
}

.firework:nth-child(1) {
    left: 20%;
    top: 30%;
    background: #ff6b6b;
    animation-delay: 0s;
}

.firework:nth-child(2) {
    left: 60%;
    top: 20%;
    background: #4ecdc4;
    animation-delay: 1s;
}

.firework:nth-child(3) {
    left: 80%;
    top: 40%;
    background: #feca57;
    animation-delay: 2s;
}

@keyframes firework {
    0% {
        transform: scale(0);
        opacity: 1;
    }
    50% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(3);
        opacity: 0;
    }
}

/* Konfeti */
.confetti {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.confetti-piece {
    position: absolute;
    width: 10px;
    height: 10px;
    animation: confettiFall 4s infinite linear;
}

.confetti-piece:nth-child(1) {
    left: 10%;
    background: #ff6b6b;
    animation-delay: 0s;
}

.confetti-piece:nth-child(2) {
    left: 20%;
    background: #4ecdc4;
    animation-delay: 0.5s;
}

.confetti-piece:nth-child(3) {
    left: 30%;
    background: #feca57;
    animation-delay: 1s;
}

.confetti-piece:nth-child(4) {
    left: 40%;
    background: #ff9ff3;
    animation-delay: 1.5s;
}

.confetti-piece:nth-child(5) {
    left: 50%;
    background: #54a0ff;
    animation-delay: 2s;
}

.confetti-piece:nth-child(6) {
    left: 60%;
    background: #5f27cd;
    animation-delay: 2.5s;
}

.confetti-piece:nth-child(7) {
    left: 70%;
    background: #00d2d3;
    animation-delay: 3s;
}

.confetti-piece:nth-child(8) {
    left: 80%;
    background: #ff9f43;
    animation-delay: 3.5s;
}

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


/* 4. SAYFA - AŞK MESAJLARI */
.love-title {
    font-size: 3rem;
    color: #000;
    text-shadow: 0 0 25px rgba(0, 0, 0, 0.8);
    margin-bottom: 3rem;
    animation: lovePulse 2s ease-in-out infinite;
}

@keyframes lovePulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.love-reasons {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 3rem;
    align-items: center;
}

.reason-item {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    padding: 1rem 2rem;
    color: #000;
    font-size: 1.3rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    animation: reasonSlideIn 1s ease-out;
    animation-fill-mode: both;
    transition: all 0.3s ease;
}

.reason-item:nth-child(1) { animation-delay: 0.1s; }
.reason-item:nth-child(2) { animation-delay: 0.2s; }
.reason-item:nth-child(3) { animation-delay: 0.3s; }
.reason-item:nth-child(4) { animation-delay: 0.4s; }
.reason-item:nth-child(5) { animation-delay: 0.5s; }

@keyframes reasonSlideIn {
    0% {
        transform: translateX(-100px);
        opacity: 0;
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

.reason-item:hover {
    transform: translateX(20px) scale(1.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

/* Uçan Emojiler */
.floating-emojis {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.emoji {
    position: absolute;
    font-size: 2.5rem;
    animation: floatEmoji 8s infinite ease-in-out;
}

.emoji:nth-child(1) {
    left: 15%;
    animation-delay: 0s;
}

.emoji:nth-child(2) {
    left: 35%;
    animation-delay: 1.5s;
}

.emoji:nth-child(3) {
    left: 55%;
    animation-delay: 3s;
}

.emoji:nth-child(4) {
    left: 75%;
    animation-delay: 4.5s;
}

.emoji:nth-child(5) {
    left: 85%;
    animation-delay: 6s;
}

@keyframes floatEmoji {
    0%, 100% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10%, 90% {
        opacity: 1;
    }
    50% {
        transform: translateY(-50px) rotate(360deg);
        opacity: 1;
    }
}

/* 5. SAYFA - UÇAK ROTASYONU */
.airplane-title {
    font-size: 3rem;
    color: #000;
    text-shadow: 0 0 25px rgba(0, 0, 0, 0.8);
    margin-bottom: 3rem;
    animation: airplaneGlow 3s ease-in-out infinite;
}

@keyframes airplaneGlow {
    0%, 100% {
        text-shadow: 0 0 25px rgba(0, 0, 0, 0.8);
    }
    50% {
        text-shadow: 0 0 40px rgba(0, 0, 0, 1);
    }
}

.airplane-container {
    position: relative;
    width: 100%;
    height: 300px;
    margin: 3rem 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.airplane {
    font-size: 4rem;
    position: absolute;
    animation: airplaneRotation 8s ease-in-out infinite;
    z-index: 10;
}

@keyframes airplaneRotation {
    0% {
        transform: translateX(-200px) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    25% {
        transform: translateX(-100px) rotate(15deg);
    }
    50% {
        transform: translateX(0) rotate(0deg);
    }
    75% {
        transform: translateX(100px) rotate(-15deg);
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateX(200px) rotate(0deg);
        opacity: 0;
    }
}

.flight-path {
    position: absolute;
    width: 80%;
    height: 3px;
    background: linear-gradient(90deg, transparent, #ff6b6b, #4ecdc4, transparent);
    border-radius: 2px;
    animation: pathGlow 2s ease-in-out infinite;
}

@keyframes pathGlow {
    0%, 100% {
        box-shadow: 0 0 10px rgba(255, 107, 107, 0.5);
    }
    50% {
        box-shadow: 0 0 20px rgba(78, 205, 196, 0.8);
    }
}

.flight-message {
    margin: 3rem 0;
    text-align: center;
}

.typing-message {
    font-size: 1.8rem;
    color: #000;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    min-height: 60px;
    opacity: 0;
    animation: fadeInAfterTyping 0.5s ease-in-out forwards;
    animation-delay: 8s;
}

/* Typing cursor for message */
.typing-message::after {
    content: '|';
    animation: blink 1s infinite;
    color: #ff6b6b;
    font-weight: bold;
}

.typing-message.typing-complete::after {
    display: none;
}

.final-message {
    animation: finalMessageBounce 2s ease-in-out infinite;
}

@keyframes finalMessageBounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.final-message h2 {
    font-size: 2.5rem;
    color: #000;
    text-shadow: 0 0 30px rgba(0, 0, 0, 0.9);
}

/* Bulutlar */
.clouds {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

.cloud {
    position: absolute;
    font-size: 3rem;
    animation: cloudFloat 15s infinite linear;
    opacity: 0.7;
}

.cloud:nth-child(1) {
    top: 20%;
    animation-delay: 0s;
}

.cloud:nth-child(2) {
    top: 30%;
    animation-delay: 3s;
}

.cloud:nth-child(3) {
    top: 60%;
    animation-delay: 6s;
}

.cloud:nth-child(4) {
    top: 40%;
    animation-delay: 9s;
}

.cloud:nth-child(5) {
    top: 70%;
    animation-delay: 12s;
}

@keyframes cloudFloat {
    0% {
        transform: translateX(-150px);
        opacity: 0;
    }
    10% {
        opacity: 0.7;
    }
    90% {
        opacity: 0.7;
    }
    100% {
        transform: translateX(calc(100vw + 150px));
        opacity: 0;
    }
}

/* Responsive Tasarım */
@media (max-width: 1024px) {
    .memory-sections {
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
    }
    
    .memory-section:nth-child(3) {
        grid-column: 1 / -1;
        max-width: 500px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .welcome-title, .celebration-title, .memories-title, .love-title, .poem-title {
        font-size: 2.5rem;
    }
    
    .memory-sections {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .memory-section {
        width: 95%;
        padding: 2rem;
    }
    
    #page2 .continue-btn {
        font-size: 1.5rem;
        padding: 15px 30px;
    }
    
    .memory-subtitle {
        font-size: 1.5rem;
    }
    
    .typing-text {
        font-size: 1.1rem;
    }
    
    .poem {
        font-size: 1.2rem;
        padding: 2rem;
    }
    
    .continue-btn {
        font-size: 1.2rem;
        padding: 12px 25px;
    }
    
    .airplane-title {
        font-size: 2.5rem;
    }
    
    .airplane {
        font-size: 3rem;
    }
    
    .typing-message {
        font-size: 1.4rem;
    }
    
    .cloud {
        font-size: 2rem;
    }
}
