﻿
@import url('https://fonts.googleapis.com/css2?family=Aref+Ruqaa:wght@400;700&family=Tajawal:wght@400;700&display=swap');

.childhood-page {
    background-color: #fcf6eb; /* Creamy White */
    background-image: radial-gradient(circle, transparent 20%, #ebdcb7 120%);
    min-height: 100vh;
    width: 100vw;
    margin: 0;
    padding: 50px 20px;
    box-sizing: border-box;
    font-family: 'Aref Ruqaa', serif;
    overflow-x: hidden;
}

.story-title {
    text-align: center;
    color: #5d4037;
    font-size: 3.5rem;
    margin-bottom: 70px;
    text-shadow: 2px 2px 5px rgba(0,0,0,0.1);
}

.photos-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 80px;
    max-width: 800px;
    margin: 0 auto;
}

.photo-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.classic-frame {
    border: 15px solid #fff;
    border-bottom: 45px solid #fff;
    border-radius: 2px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.2), inset 0 0 10px rgba(0,0,0,0.1);
    transform: rotate(-2deg);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    background-color: #f7f7f7;
    padding: 8px;
}

.photo-card:nth-child(even) .classic-frame {
    transform: rotate(3deg);
}

.classic-frame:hover {
    transform: scale(1.03) rotate(0deg);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.classic-frame img {
    max-width: 100%;
    width: 400px;
    height: auto;
    display: block;
    filter: sepia(0.2) contrast(1.1); /* Subtle vintage look */
    transition: filter 0.4s ease;
}

.time-machine-frame {
    position: relative;
    padding: 0;
    border-width: 15px;
    border-bottom-width: 45px;
    overflow: hidden;
    width: 350px;
    aspect-ratio: 1 / 1;
}

.time-machine-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: opacity 0.3s ease;
    filter: none !important;
    pointer-events: none;
}

.img-adult {
    z-index: 2;
}

.img-baby {
    z-index: 1;
}

.slider-container {
    width: 100%;
    max-width: 400px;
    margin-top: 25px;
    text-align: center;
    position: relative;
    z-index: 10; /* يضمن بقاء الشريط قابلاً للنقر دائماً */
}

.gold-slider {
    -webkit-appearance: none;
    width: 100%;
    height: 6px;
    background: #ebdcb7;
    border-radius: 5px;
    outline: none;
    box-shadow: inset 0 0 5px rgba(0,0,0,0.2);
}

    .gold-slider::-webkit-slider-thumb {
        -webkit-appearance: none;
        appearance: none;
        width: 30px;
        height: 30px;
        border-radius: 50%;
        background: radial-gradient(circle, #ffe175 0%, #d4af37 100%);
        cursor: pointer;
        box-shadow: 0 0 15px rgba(212, 175, 55, 0.9), inset 0 0 3px #fff;
        transition: transform 0.2s;
    }

        .gold-slider::-webkit-slider-thumb:hover {
            transform: scale(1.1);
        }

.slider-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
    font-family: 'Tajawal', sans-serif;
    color: #5d4037;
    font-weight: bold;
    font-size: 1.2rem;
}

.classic-frame:hover img {
    filter: sepia(0) contrast(1);
}

.photo-caption {
    margin-top: 30px;
    font-size: 2.2rem;
    color: #4e342e;
    text-shadow: 1px 1px 2px rgba(255,255,255,0.8);
}

.return-btn {
    display: inline-block;
    background-color: #5d4037;
    color: #fff;
    text-decoration: none;
    padding: 15px 40px;
    font-size: 1.8rem;
    border-radius: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
    font-family: 'Tajawal', sans-serif;
}

    .return-btn:hover {
        background-color: #3e2723;
        transform: translateY(-3px);
        color: #fff;
    }

/* Sequential Fade-in Animations */
.fade-in {
    opacity: 0;
    transform: translateY(40px);
    animation: slideUpFadeIn 1s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.delay-1 {
    animation-delay: 0.5s;
}

.delay-2 {
    animation-delay: 1.5s;
}

.delay-3 {
    animation-delay: 3.0s;
}

.delay-4 {
    animation-delay: 4.5s;
}

.delay-5 {
    animation-delay: 5.5s;
}

@@keyframes slideUpFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@@media (max-width: 768px) {
    .childhood-page {
        padding: 40px 15px;
    }

    .story-title {
        font-size: 2.4rem;
        margin-bottom: 50px;
    }

    .classic-frame img {
        width: 300px;
    }

    .photo-caption {
        font-size: 1.6rem;
    }
}

