* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

body {
    background: #0f172a;
    color: #f8fafc;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 40px 20px;
    overflow-x: hidden;
    position: relative;
}

/* Background gradient blobs */
.glass-bg {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    z-index: -2;
    background: #0f172a;
}
.blob-1, .blob-2, .blob-3 {
    position: fixed;
    border-radius: 50%;
    filter: blur(100px);
    z-index: -1;
    opacity: 0.6;
    animation: drift 20s infinite alternate ease-in-out;
}
.blob-1 {
    width: 600px; height: 600px;
    background: #e11d48;
    top: -100px; left: -100px;
}
.blob-2 {
    width: 500px; height: 500px;
    background: #fb923c;
    bottom: -100px; right: -100px;
}
.blob-3 {
    width: 400px; height: 400px;
    background: #a855f7;
    top: 30%; right: 20%;
    animation-delay: -5s;
}

@keyframes drift {
    0% { transform: translateY(0) scale(1); }
    100% { transform: translateY(100px) scale(1.2); }
}

/* Audio Control */
.audio-control {
    position: fixed;
    top: 20px; right: 20px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 10px 20px;
    border-radius: 30px;
    border: 1px solid rgba(255,255,255,0.2);
    cursor: pointer;
    z-index: 100;
    font-weight: 600;
    transition: background 0.3s;
}
.audio-control:hover { background: rgba(255,255,255,0.2); }

/* Main Glass Container */
.glass-container {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    width: 100%;
    max-width: 800px;
    padding: 60px 40px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    z-index: 10;
}

/* Utilities */
.mt-40 { margin-top: 40px; }
.mt-60 { margin-top: 60px; }
.hidden { display: none !important; }

header {
    text-align: center;
    margin-bottom: 50px;
}
header h1 {
    font-size: 3rem;
    font-weight: 700;
    background: linear-gradient(to right, #fb923c, #e11d48);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 10px;
}
header p {
    font-size: 1.2rem;
    color: #cbd5e1;
}

/* Section Stylings */
section {
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 40px;
}

section h2 {
    font-size: 2rem;
    margin-bottom: 10px;
    color: #f1f5f9;
}
section p {
    color: #94a3b8;
    margin-bottom: 20px;
}

/* Scroll Animation */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Love Counter */
.love-counter {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 20px;
}
.time-box {
    background: rgba(0,0,0,0.2);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    padding: 20px;
    min-width: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.time-box span:first-child {
    font-size: 2.5rem;
    font-weight: 700;
    color: #fb923c;
}
.time-box span:last-child {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #94a3b8;
}

/* Scroll Story */
.story-block {
    background: linear-gradient(145deg, rgba(255,255,255,0.05), rgba(255,255,255,0.01));
    padding: 30px;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.05);
}
.story-block h3 {
    font-size: 1.5rem;
    color: #e11d48;
    margin-bottom: 15px;
}
.story-block p {
    font-size: 1.1rem;
    color: #cbd5e1;
    line-height: 1.6;
    margin-bottom: 0;
}

/* Secret Message */
.input-wrapper {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}
.input-wrapper input {
    padding: 15px 20px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.2);
    background: rgba(0,0,0,0.3);
    color: #fff;
    font-size: 1rem;
    outline: none;
    flex-grow: 1;
    max-width: 400px;
    transition: border 0.3s;
}
.input-wrapper input:focus {
    border-color: #fb923c;
}
.input-wrapper button {
    padding: 15px 30px;
    border-radius: 12px;
    border: none;
    background: linear-gradient(135deg, #e11d48, #fb923c);
    color: white;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}
.input-wrapper button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(225, 29, 72, 0.4);
}
.unlock-error {
    color: #ef4444;
    margin-top: 10px;
    font-weight: 600;
}
.hidden-section {
    margin-top: 30px;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 1s ease, opacity 1s ease;
}
.hidden-section.show {
    max-height: 500px;
    opacity: 1;
}
.hidden-section img {
    width: 100%;
    max-width: 400px;
    border-radius: 16px;
    margin-bottom: 20px;
    border: 2px solid rgba(255,255,255,0.2);
}
.hidden-section .secret-text {
    font-size: 1.2rem;
    color: #fb923c;
    font-weight: 600;
}

/* AI Generator */
.ai-mood-selector {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 30px;
}
.mood-btn {
    padding: 10px 20px;
    border-radius: 30px;
    border: 1px solid rgba(255,255,255,0.2);
    background: transparent;
    color: #cbd5e1;
    cursor: pointer;
    transition: all 0.3s ease;
}
.mood-btn:hover {
    background: rgba(255,255,255,0.1);
}
.mood-btn.active {
    background: #a855f7;
    border-color: #a855f7;
    color: white;
}
.ai-output-box {
    background: rgba(0,0,0,0.4);
    border: 1px solid rgba(168, 85, 247, 0.4);
    border-radius: 16px;
    padding: 30px;
    min-height: 150px;
    text-align: left;
    font-size: 1.1rem;
    line-height: 1.6;
    color: #f8fafc;
    position: relative;
    box-shadow: inset 0 0 20px rgba(0,0,0,0.5);
}
.cursor {
    animation: blink 1s step-end infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* Responsive */
@media screen and (max-width: 600px) {
    .glass-container { padding: 40px 20px; }
    header h1 { font-size: 2.2rem; }
    .input-wrapper { flex-direction: column; }
    .time-box { min-width: 80px; padding: 15px; }
    .time-box span:first-child { font-size: 2rem; }
}
