:root {
    --text-color: #ffffff;
}

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

body {
    background-color: #0d0e15;
    color: var(--text-color);
    font-family: 'Outfit', sans-serif;
    overflow-x: hidden;
    line-height: 1.6;
}

body.bn-lang .text-content {
    font-family: 'Noto Sans Bengali', sans-serif;
    font-weight: 300;
}

/* Vibrant Animated Shapes Background */
.bg-shapes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -2;
    overflow: hidden;
    background: #0f172a; /* Deep elegant slate */
}

.shape {
    position: absolute;
    filter: blur(90px);
    border-radius: 50%;
    animation: float 20s infinite ease-in-out;
    opacity: 0.8;
}

.shape-1 {
    top: -10%;
    left: -10%;
    width: 50vw;
    height: 50vw;
    background: #ec4899; /* Vibrant Pink */
}

.shape-2 {
    bottom: -10%;
    right: -10%;
    width: 60vw;
    height: 60vw;
    background: #8b5cf6; /* Deep Purple */
    animation-delay: -5s;
    animation-direction: reverse;
}

.shape-3 {
    top: 40%;
    left: 40%;
    width: 45vw;
    height: 45vw;
    background: #0ea5e9; /* Bright Blue */
    animation-delay: -10s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(10vw, -10vh) scale(1.1); }
    66% { transform: translate(-10vw, 10vh) scale(0.9); }
}

/* TRUE Glassmorphism */
.glass-card {
    background: rgba(255, 255, 255, 0.1); /* White semi-transparent */
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-top: 1px solid rgba(255, 255, 255, 0.4);
    border-left: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    border-radius: 30px;
    padding: 3rem;
    text-align: center;
}

.main-card {
    max-width: 90%;
    width: 550px;
}

.story-card {
    max-width: 800px;
    width: 100%;
    padding: 4rem;
}

.glass-card h1 {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    font-style: italic;
    color: #fff;
    margin-bottom: 1.5rem;
    font-size: 2.8rem;
    letter-spacing: 1px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.glass-card p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
}

.main-card p {
    margin-bottom: 3rem;
}

/* Overlays */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(15, 23, 42, 0.6); /* Slate tint */
    z-index: 100;
    opacity: 0;
    pointer-events: none;
    transition: opacity 1s ease;
}

.overlay.active {
    opacity: 1;
    pointer-events: all;
}

.hidden {
    display: none !important;
}

/* Buttons */
.lang-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

button {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    padding: 12px 35px;
    border-radius: 50px;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    font-family: inherit;
    font-weight: 400;
    letter-spacing: 1px;
    cursor: pointer;
    backdrop-filter: blur(5px);
}

button:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

/* Story Content */
.story-container {
    padding: 10rem 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.story-step {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 0 20px;
    
    /* Fade In Initial State */
    opacity: 0;
    transform: translateY(50px);
    transition: all 1.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.story-step.visible {
    opacity: 1;
    transform: translateY(0);
}

.story-step p {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    line-height: 1.6;
    text-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* End Card & Profile Pic */
.end-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.profile-pic {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3), 0 0 40px rgba(236, 72, 153, 0.4);
    margin-bottom: 1rem;
    animation: floatPic 6s ease-in-out infinite;
}

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

#surprise-btn {
    background: linear-gradient(45deg, #ec4899, #8b5cf6);
    border: none;
    color: white;
    padding: 18px 45px;
    font-size: 1.3rem;
    font-weight: 500;
    opacity: 0;
    transform: translateY(30px) scale(0.9);
    transition: all 1s cubic-bezier(0.2, 0.8, 0.2, 1);
    box-shadow: 0 10px 30px rgba(236, 72, 153, 0.4);
}

#surprise-btn.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

#surprise-btn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 40px rgba(236, 72, 153, 0.6);
}

/* Scroll indicator */
.scroll-indicator {
    position: fixed;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 1;
    transition: opacity 0.8s ease;
    z-index: 50;
    pointer-events: none;
}

.scroll-indicator.fade-out {
    opacity: 0;
}

.scroll-indicator span {
    font-size: 0.8rem;
    margin-bottom: 12px;
    color: rgba(255,255,255,0.7);
    letter-spacing: 3px;
    text-transform: uppercase;
    font-weight: 300;
}

.arrow {
    width: 15px;
    height: 15px;
    border-right: 2px solid rgba(255,255,255,0.7);
    border-bottom: 2px solid rgba(255,255,255,0.7);
    transform: rotate(45deg);
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0) rotate(45deg); }
    40% { transform: translateY(-10px) rotate(45deg); }
    60% { transform: translateY(-5px) rotate(45deg); }
}

@media (max-width: 768px) {
    .story-card p { font-size: 1.6rem; }
    .glass-card h1 { font-size: 2rem; }
    .glass-card { padding: 2rem; }
}
