
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;600;700;900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Cairo', sans-serif;
    background: #080817;
    color: white;
    min-height: 100vh;
    overflow-x: hidden;
}

.welcome-screen {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    padding: 30px 15px;
    background: radial-gradient(circle at center, #171044, #080817 70%);
    overflow: hidden;
}

.content {
    position: relative;
    z-index: 3;
    text-align: center;
    width: 100%;
    max-width: 850px;
    animation: appear 1.5s ease;
}

.small-title {
    color: #00eaff;
    font-size: 13px;
    letter-spacing: 5px;
    margin-bottom: 25px;
    text-shadow: 0 0 15px #00eaff;
}

h1 {
    font-family: Arial, sans-serif;
    font-size: clamp(55px, 11vw, 105px);
    font-weight: 900;
    line-height: 1;
    letter-spacing: 5px;
    color: white;
    text-shadow: 0 0 15px #a855f7;
}

h1 span {
    color: #bd66ff;
    text-shadow:
        0 0 10px #bd66ff,
        0 0 30px #8b35ff,
        0 0 60px #8b35ff;
}

.line {
    width: 100px;
    height: 3px;
    background: #00eaff;
    margin: 35px auto;
    box-shadow: 0 0 15px #00eaff;
}

h2 {
    font-size: clamp(25px, 5vw, 42px);
    color: #fff;
    text-shadow: 0 0 10px #bd66ff, 0 0 30px #bd66ff;
}

.description {
    color: #c5c1df;
    margin-top: 15px;
    font-size: 17px;
    line-height: 2;
}

button {
    margin-top: 35px;
    padding: 15px 35px;
    border: 1px solid #bd66ff;
    border-radius: 50px;
    background: transparent;
    color: white;
    font-family: inherit;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 0 15px #8b35ff,
                inset 0 0 12px #8b35ff33;
    transition: .3s;
}

button:hover {
    background: #8b35ff;
    box-shadow: 0 0 35px #bd66ff;
    transform: scale(1.06);
}

button:active {
    transform: scale(.96);
}

.footer {
    margin-top: 50px;
    font-size: 11px;
    letter-spacing: 4px;
    color: #77718f;
}

.glow {
    position: absolute;
    width: 350px;
    height: 350px;
    border-radius: 50%;
    filter: blur(110px);
    opacity: .25;
    animation: float 7s infinite alternate ease-in-out;
}

.glow-one {
    background: #8b35ff;
    top: -100px;
    right: -100px;
}

.glow-two {
    background: #00eaff;
    bottom: -150px;
    left: -100px;
    animation-delay: 2s;
}

@keyframes appear {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes float {
    from { transform: translate(0, 0); }
    to { transform: translate(40px, 50px); }
}

/* =================================
   SURPRISE SCREEN
================================= */

.surprise-content {
    width: 100%;
    max-width: 850px;
    margin: auto;
    padding: 35px 15px;
    text-align: center;
    position: relative;
    z-index: 3;
}

.reveal-item {
    opacity: 0;
    animation: cinematicReveal 1s ease forwards;
}

.reveal-item:nth-child(1) { animation-delay: .2s; }
.reveal-item:nth-child(2) { animation-delay: .5s; }
.reveal-item:nth-child(3) { animation-delay: .8s; }
.reveal-item:nth-child(4) { animation-delay: 1s; }
.reveal-item:nth-child(5) { animation-delay: 1.2s; }

@keyframes cinematicReveal {
    from {
        opacity: 0;
        transform: translateY(40px) scale(.95);
        filter: blur(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

.photo-frame {
    position: relative;
    width: min(92%, 560px);
    margin: 35px auto 20px;
    padding: 9px;
    border-radius: 25px;
    background: linear-gradient(135deg, #00eaff, #8b35ff, #ff55d4, #00eaff);
    background-size: 300% 300%;
    animation: borderFlow 5s ease infinite, photoAppear 1.5s ease both;
    box-shadow: 0 0 25px #8b35ff, 0 0 55px #00eaff55;
}

.photo-frame img {
    display: block;
    width: 100%;
    max-height: 520px;
    min-height: 260px;
    object-fit: cover;
    border-radius: 18px;
    background: #111126;
}

@keyframes borderFlow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes photoAppear {
    from { opacity: 0; transform: scale(.7) rotate(-3deg); }
    to { opacity: 1; transform: scale(1) rotate(0); }
}

.photo-fallback {
    display: none;
    min-height: 300px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 15px;
    background: radial-gradient(circle, #24144c, #09091c);
    border-radius: 18px;
}

.photo-fallback span {
    font-size: 65px;
}

.photo-fallback p {
    font-size: 23px;
    color: #bd66ff;
}

.photo-fallback small {
    color: #aaa;
}

.photo-caption {
    color: #00eaff;
    font-size: 17px;
    margin: 20px 0 35px;
    text-shadow: 0 0 15px #00eaff;
}

.message-card {
    max-width: 650px;
    margin: 35px auto;
    padding: 35px 25px;
    border: 1px solid #9b55ff88;
    border-radius: 25px;
    background: linear-gradient(145deg, #171033dd, #080817ee);
    box-shadow: 0 0 25px #8b35ff33, inset 0 0 25px #8b35ff11;
}

.message-icon {
    font-size: 45px;
}

.message-card h3 {
    color: #bd66ff;
    font-size: 24px;
    margin: 15px 0;
}

.message-card p {
    color: #e0dcf5;
    font-size: 17px;
    line-height: 2.2;
}

.signature {
    margin-top: 25px;
    color: #00eaff;
    letter-spacing: 5px;
    font-size: 13px;
}

.music-button {
    display: block;
    margin: 25px auto;
    border-color: #00eaff;
    font-size: 14px;
}

#fireworksCanvas {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
}

.floating-heart {
    position: fixed;
    z-index: 1;
    bottom: -50px;
    pointer-events: none;
    animation: heartFloat 6s linear forwards;
    text-shadow: 0 0 15px #ff55d4;
}

@keyframes heartFloat {
    from { transform: translateY(0) rotate(0); opacity: 0; }
    15% { opacity: 1; }
    to { transform: translateY(-110vh) rotate(360deg); opacity: 0; }
}

@media (max-width: 600px) {
    .surprise-content h1 { font-size: 48px; }
    .surprise-content h2 { font-size: 26px; }
    .photo-frame { width: 95%; }
    .photo-frame img { min-height: 220px; }
    .message-card { padding: 25px 17px; }
    .message-card p { font-size: 15px; }
    .message-card h3 { font-size: 20px; }
    .photo-caption { font-size: 14px; }
}

/* =================================
   RASOOL PERSONAL PHOTO
================================= */

.photo-frame {
    width: min(90%, 420px);
    margin: 35px auto;
    padding: 8px;
    position: relative;
    border-radius: 22px;
    background: linear-gradient(135deg, #bd66ff, #00eaff);
    box-shadow:
        0 0 20px rgba(189, 102, 255, 0.5),
        0 0 40px rgba(0, 234, 255, 0.25);
    overflow: hidden;
    box-sizing: border-box;
}

.photo-frame img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 550px;
    object-fit: contain;
    object-position: center;
    border-radius: 16px;
    margin: 0 auto;
}

.photo-fallback {
    display: none;
    min-height: 250px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    color: white;
    text-align: center;
}

.photo-fallback span {
    font-size: 55px;
}

.photo-caption {
    text-align: center;
    color: #ffffff;
    margin: 15px auto 30px;
}

/* Center surprise content */

.surprise-content {
    width: 100%;
    max-width: 850px;
    margin: 0 auto;
    padding: 25px 15px;
    box-sizing: border-box;
    text-align: center;
}

/* Music button */

.music-button {
    display: block;
    margin: 25px auto;
    padding: 13px 25px;
    border: 1px solid #bd66ff;
    border-radius: 30px;
    background: rgba(120, 40, 180, 0.2);
    color: white;
    cursor: pointer;
    font-size: 15px;
}
