/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body, html {
    width: 100%;
    height: 100%;
    overflow: hidden; /* No Scroll Rule */
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #000;
}

/* Dynamic Background */
#dynamic-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    background: linear-gradient(-45deg, #ee7752, #e73c7e, #23a6d5, #23d5ab);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    opacity: 0.8;
}

/* Blur overlay for depth */
#dynamic-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 2;
}

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

/* Confetti Canvas */
#confetti-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3;
    pointer-events: none;
}

/* Gallery Container */
#gallery-container {
    position: relative;
    width: 100%;
    height: 100%;
    z-index: 2; /* Below confetti, above bg */
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Slideshow Images */
.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    background-size: contain; /* Changed from cover to show full image */
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 2s ease-in-out;
    will-change: transform, opacity;
    filter: drop-shadow(0 0 20px rgba(0,0,0,0.5)); /* Make photos pop */
}

.slide.active {
    opacity: 1;
    /* animation: kenBurns 15s infinite linear; */ /* Efekt kaldırıldı */
}

/* Ken Burns Effect */
/* @keyframes kenBurns {
    0% {
        transform: scale(1);
    }
    100% {
        transform: scale(1.1);
    }
} */

/* Intro Overlay */
#intro-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    text-align: center;
    cursor: pointer;
    transition: opacity 0.5s ease;
}

.intro-content h1 {
    font-size: 4rem;
    margin-bottom: 20px;
    animation: float 3s ease-in-out infinite;
}

.intro-content p {
    font-size: 1.2rem;
    font-weight: 300;
    letter-spacing: 1px;
    opacity: 0.8;
}

/* Final Overlay */
#final-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7); /* Slightly transparent to see confetti */
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    text-align: center;
    transition: opacity 2s ease;
}

.hidden {
    opacity: 0;
    pointer-events: none;
}

.final-content h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    text-shadow: 0 0 20px rgba(255,255,255,0.5);
    animation: float 3s ease-in-out infinite;
}

.final-content p {
    font-size: 1.5rem;
    font-weight: 400;
}

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

/* ==========================================
   6. PAYLAŞIM BUTONU VE MODAL
   ========================================== */
.share-fab {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    z-index: 1000;
    transition: transform 0.2s;
}

.share-fab:active {
    transform: scale(0.9);
}

.share-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.share-content {
    background: white;
    padding: 25px;
    border-radius: 20px;
    width: 90%;
    max-width: 350px;
    text-align: center;
    animation: modalPop 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes modalPop {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.share-content h3 {
    margin-bottom: 20px;
    color: #333;
    font-size: 1.2rem;
}

.share-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    padding: 15px;
    margin-bottom: 10px;
    border: none;
    border-radius: 12px;
    background: #f5f5f5;
    cursor: pointer;
    transition: background 0.2s;
}

.share-option:active {
    background: #e0e0e0;
}

.share-option .icon {
    font-size: 24px;
    margin-bottom: 5px;
}

.share-option .text {
    font-weight: bold;
    color: #333;
}

.share-option .subtext {
    font-size: 0.8rem;
    color: #666;
    margin-top: 3px;
}

.close-share {
    margin-top: 10px;
    background: none;
    border: none;
    color: #888;
    cursor: pointer;
    font-size: 0.9rem;
    padding: 10px;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .intro-content h1, .final-content h1 {
        font-size: 2.5rem;
    }
}
