:root {
    --bg-color: #f8faff;
    --text-main: #1e293b;
    --text-light: #64748b;
    --primary: #8b5cf6;
    --secondary: #ec4899;
    --accent: #06b6d4;
    --card-bg: rgba(255, 255, 255, 0.8);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow-x: hidden;
    position: relative;
    padding: 2rem;
}

/* Floating blobs background to match index */
.blob {
    position: fixed;
    border-radius: 50%;
    filter: blur(80px);
    z-index: -1;
    opacity: 0.6;
    animation: float 20s infinite ease-in-out alternate;
}

.blob-1 { top: -10%; right: -5%; width: 50vw; height: 50vw; background: rgba(139, 92, 246, 0.4); animation-delay: 0s; }
.blob-2 { bottom: -20%; left: -10%; width: 60vw; height: 60vw; background: rgba(6, 182, 212, 0.3); animation-delay: -5s; }
.blob-3 { top: 40%; left: 30%; width: 40vw; height: 40vw; background: rgba(236, 72, 153, 0.3); animation-delay: -10s; }

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -50px) scale(1.1); }
    66% { transform: translate(-20px, 20px) scale(0.9); }
    100% { transform: translate(0, 0) scale(1); }
}

.top-nav {
    position: absolute;
    top: 2rem;
    left: 2rem;
    z-index: 10;
}

.home-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--text-main);
    font-weight: 600;
    padding: 0.8rem 1.5rem;
    background: white;
    border: 1px solid rgba(0,0,0,0.05);
    border-radius: 100px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.home-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    color: var(--primary);
}

.container {
    position: relative;
    z-index: 1;
    padding: 3.5rem;
    background: var(--card-bg);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 32px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 24px 48px -12px rgba(139, 92, 246, 0.15);
    max-width: 800px;
    width: 95%;
    margin-top: 4rem; /* Space for nav */
    animation: bounceIn 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes bounceIn {
    0% { opacity: 0; transform: scale(0.95) translateY(20px); }
    100% { opacity: 1; transform: scale(1) translateY(0); }
}

.badge {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.1), rgba(139, 92, 246, 0.1));
    color: var(--primary);
    padding: 6px 14px;
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
    border: 1px solid rgba(139, 92, 246, 0.2);
}

h1 {
    font-family: 'Outfit', sans-serif;
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 2rem;
    line-height: 1.2;
}

.text-card {
    background: white;
    padding: 2rem;
    border-radius: 24px;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.02);
    border: 1px solid rgba(0,0,0,0.03);
    margin-bottom: 2.5rem;
}

.story-text {
    font-size: 1.15rem;
    color: var(--text-light);
    line-height: 1.8;
    text-align: left;
}

.image-gallery {
    margin-bottom: 2rem;
    display: flex;
    justify-content: center;
}

/* Carousel Styles */
.carousel {
    position: relative;
    width: 100%;
    max-width: 600px;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    border: 4px solid white;
    background: rgba(255,255,255,0.5);
}

.carousel-track {
    display: flex;
    transition: transform 0.4s ease-in-out;
}

.carousel-track img {
    min-width: 100%;
    height: 400px;
    object-fit: contain;
    background-color: rgba(0,0,0,0.02);
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.85);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.2rem;
    color: var(--text-main);
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: all 0.2s;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-btn:hover {
    background: white;
    transform: translateY(-50%) scale(1.1);
}

.left-btn { left: 10px; }
.right-btn { right: 10px; }

.carousel-indicators {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background 0.3s, transform 0.3s;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.dot.active {
    background: var(--primary);
    transform: scale(1.3);
}

.navigation-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(0,0,0,0.05);
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0.8rem 1.8rem;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 100px;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.btn-primary {
    color: white;
    background: var(--text-main);
    box-shadow: 0 8px 20px rgba(30, 41, 59, 0.15);
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 25px rgba(30, 41, 59, 0.25);
    background: #000;
}

.btn-secondary {
    color: var(--text-main);
    background: white;
    border: 1px solid rgba(0,0,0,0.05);
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.btn-secondary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

/* Reactions Bar */
.reactions-container {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    position: relative;
}

.reaction-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0.6rem 1.2rem;
    border: none;
    border-radius: 100px;
    background: white;
    color: var(--text-main);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    user-select: none;
}

.reaction-btn:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 8px 15px rgba(0,0,0,0.1);
}

.reaction-btn:active {
    transform: scale(0.95);
}

.reaction-btn .emoji {
    font-size: 1.3rem;
}

/* Floating animation for clicks */
.floating-emoji {
    position: fixed;
    font-size: 2rem;
    pointer-events: none;
    animation: floatUp 1s ease-out forwards;
    z-index: 100;
}

@keyframes floatUp {
    0% { transform: translateY(0) scale(1); opacity: 1; }
    50% { transform: translateY(-40px) scale(1.2); opacity: 1; }
    100% { transform: translateY(-80px) scale(1); opacity: 0; }
}

.loader {
    display: inline-flex;
    gap: 0.5rem;
    justify-content: center;
    padding: 3rem;
}

.loader span {
    width: 12px;
    height: 12px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50%;
    animation: bounce 1.4s infinite ease-in-out both;
}

.loader span:nth-child(1) { animation-delay: -0.32s; }
.loader span:nth-child(2) { animation-delay: -0.16s; }

@media (max-width: 600px) {
    body { padding: 1rem; }
    .container { padding: 2rem 1.5rem; margin-top: 5rem; }
    h1 { font-size: 1.8rem; }
    .story-text { font-size: 1.05rem; }
    .text-card { padding: 1.5rem; }
    .navigation-footer { flex-direction: column; }
    .btn { width: 100%; justify-content: center; }
    .top-nav { top: 1rem; left: 1rem; }
}
