/* Genshin Paimon Theme - For Dhiti */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600;700&family=Quicksand:wght@300;400;500;600&family=Dancing+Script:wght@400;500;600;700&display=swap');

:root {
    --primary-gold: #FFD93D;
    --soft-cream: #FFF8E7;
    --celestial-blue: #6B9AC4;
    --deep-night: #1A1A2E;
    --darker-night: #0F0F1A;
    --star-white: #FFFEF7;
    --accent-purple: #9D84B7;
    --soft-pink: #FFB6C1;
    --warm-gold: #F4C430;
    --glow-blue: rgba(107, 154, 196, 0.5);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Quicksand', sans-serif;
    background: var(--deep-night);
    color: var(--soft-cream);
    min-height: 100vh;
    overflow-x: hidden;
}

/* Starry Background */
.starry-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, var(--darker-night) 0%, var(--deep-night) 50%, #1e1e3f 100%);
    z-index: -2;
}

.stars {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.star {
    position: absolute;
    background: var(--star-white);
    border-radius: 50%;
    animation: twinkle var(--duration) ease-in-out infinite;
    box-shadow: 0 0 6px var(--star-white), 0 0 12px var(--primary-gold);
}

@keyframes twinkle {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.2); }
}

/* Floating Particles */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

.particle {
    position: absolute;
    background: radial-gradient(circle, var(--primary-gold) 0%, transparent 70%);
    border-radius: 50%;
    animation: float var(--float-duration) ease-in-out infinite;
    opacity: 0.6;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) translateX(0) rotate(0deg);
        opacity: 0.3;
    }
    25% {
        transform: translateY(-30px) translateX(10px) rotate(90deg);
        opacity: 0.7;
    }
    50% {
        transform: translateY(-20px) translateX(-10px) rotate(180deg);
        opacity: 0.5;
    }
    75% {
        transform: translateY(-40px) translateX(5px) rotate(270deg);
        opacity: 0.8;
    }
}

/* Main Container */
.container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
}

/* Secret Code Page Styles */
.secret-box {
    background: rgba(26, 26, 46, 0.8);
    border: 2px solid var(--primary-gold);
    border-radius: 20px;
    padding: 50px 40px;
    text-align: center;
    max-width: 500px;
    width: 90%;
    box-shadow:
        0 0 30px rgba(255, 217, 61, 0.2),
        0 0 60px rgba(107, 154, 196, 0.1),
        inset 0 0 30px rgba(255, 217, 61, 0.05);
    animation: boxGlow 3s ease-in-out infinite;
    backdrop-filter: blur(10px);
}

@keyframes boxGlow {
    0%, 100% { box-shadow: 0 0 30px rgba(255, 217, 61, 0.2), 0 0 60px rgba(107, 154, 196, 0.1); }
    50% { box-shadow: 0 0 50px rgba(255, 217, 61, 0.4), 0 0 80px rgba(107, 154, 196, 0.2); }
}

.secret-title {
    font-family: 'Cinzel', serif;
    font-size: 1.8rem;
    color: var(--primary-gold);
    margin-bottom: 15px;
    text-shadow: 0 0 20px rgba(255, 217, 61, 0.5);
    animation: titlePulse 2s ease-in-out infinite;
}

@keyframes titlePulse {
    0%, 100% { text-shadow: 0 0 20px rgba(255, 217, 61, 0.5); }
    50% { text-shadow: 0 0 40px rgba(255, 217, 61, 0.8), 0 0 60px rgba(255, 217, 61, 0.4); }
}

.secret-subtitle {
    font-family: 'Dancing Script', cursive;
    font-size: 1.5rem;
    color: var(--celestial-blue);
    margin-bottom: 30px;
    opacity: 0.9;
}

.secret-input-wrapper {
    position: relative;
    margin: 30px 0;
}

.secret-input {
    width: 100%;
    padding: 18px 25px;
    font-size: 1.2rem;
    font-family: 'Quicksand', sans-serif;
    background: rgba(15, 15, 26, 0.8);
    border: 2px solid var(--celestial-blue);
    border-radius: 15px;
    color: var(--soft-cream);
    text-align: center;
    transition: all 0.3s ease;
    outline: none;
}

.secret-input:focus {
    border-color: var(--primary-gold);
    box-shadow: 0 0 20px rgba(255, 217, 61, 0.3);
}

.secret-input::placeholder {
    color: rgba(255, 248, 231, 0.5);
    font-style: italic;
}

.secret-hint {
    font-size: 0.9rem;
    color: var(--accent-purple);
    margin-top: 10px;
    font-style: italic;
}

.secret-btn {
    background: linear-gradient(135deg, var(--primary-gold), var(--warm-gold));
    color: var(--deep-night);
    border: none;
    padding: 15px 50px;
    font-size: 1.1rem;
    font-family: 'Cinzel', serif;
    font-weight: 600;
    border-radius: 30px;
    cursor: pointer;
    margin-top: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(255, 217, 61, 0.4);
}

.secret-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(255, 217, 61, 0.6);
}

.error-msg {
    color: var(--soft-pink);
    margin-top: 15px;
    opacity: 0;
    transition: opacity 0.3s ease;
    font-style: italic;
}

.error-msg.show {
    opacity: 1;
    animation: shake 0.5s ease;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-10px); }
    40%, 80% { transform: translateX(10px); }
}

/* Music Toggle */
.music-toggle {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: rgba(26, 26, 46, 0.9);
    border: 2px solid var(--primary-gold);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1000;
}

.music-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(255, 217, 61, 0.5);
}

.music-toggle svg {
    width: 30px;
    height: 30px;
    fill: var(--primary-gold);
}

/* Apology Page Styles */
.apology-container {
    max-width: 900px;
    width: 95%;
    padding: 40px 20px;
}

.apology-header {
    text-align: center;
    margin-bottom: 50px;
    animation: fadeInDown 1s ease;
}

.dear-text {
    font-family: 'Dancing Script', cursive;
    font-size: 3rem;
    color: var(--primary-gold);
    text-shadow: 0 0 30px rgba(255, 217, 61, 0.5);
    margin-bottom: 10px;
}

.name-text {
    font-family: 'Cinzel', serif;
    font-size: 4rem;
    color: var(--soft-cream);
    text-shadow: 0 0 40px rgba(255, 248, 231, 0.3);
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Sections */
.section {
    background: rgba(26, 26, 46, 0.7);
    border: 1px solid rgba(255, 217, 61, 0.3);
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 40px;
    backdrop-filter: blur(10px);
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.section.visible {
    opacity: 1;
    transform: translateY(0);
}

.section-title {
    font-family: 'Cinzel', serif;
    font-size: 2rem;
    color: var(--primary-gold);
    text-align: center;
    margin-bottom: 25px;
}

.section-text {
    font-size: 1.2rem;
    line-height: 1.8;
    text-align: center;
    color: var(--soft-cream);
    opacity: 0.95;
}

/* Floating Hearts */
.hearts-container {
    position: relative;
    height: 100px;
    overflow: hidden;
}

.floating-heart {
    position: absolute;
    font-size: 2rem;
    animation: floatHeart 4s ease-in-out infinite;
    color: var(--soft-pink);
    text-shadow: 0 0 10px rgba(255, 182, 193, 0.5);
}

@keyframes floatHeart {
    0%, 100% { transform: translateY(0) scale(1); opacity: 0.7; }
    50% { transform: translateY(-20px) scale(1.1); opacity: 1; }
}

/* Quote Carousel */
.quote-carousel {
    padding: 20px;
    text-align: center;
}

.quote {
    font-family: 'Dancing Script', cursive;
    font-size: 1.8rem;
    color: var(--celestial-blue);
    font-style: italic;
    padding: 20px;
    opacity: 0;
    animation: fadeQuote 8s ease-in-out infinite;
}

@keyframes fadeQuote {
    0%, 100% { opacity: 0; }
    10%, 90% { opacity: 1; }
}

/* Image Gallery */
.image-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.gallery-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 15px;
    border: 2px solid var(--celestial-blue);
    transition: all 0.3s ease;
}

.gallery-image:hover {
    transform: scale(1.05);
    border-color: var(--primary-gold);
    box-shadow: 0 0 30px rgba(255, 217, 61, 0.3);
}

/* Buttons */
.buttons-container {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-top: 50px;
}

.btn {
    padding: 20px 50px;
    font-size: 1.3rem;
    font-family: 'Cinzel', serif;
    font-weight: 600;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-yes {
    background: linear-gradient(135deg, var(--primary-gold), var(--warm-gold));
    color: var(--deep-night);
    box-shadow: 0 5px 30px rgba(255, 217, 61, 0.5);
    animation: yesPulse 2s ease-in-out infinite;
}

@keyframes yesPulse {
    0%, 100% { box-shadow: 0 5px 30px rgba(255, 217, 61, 0.5); }
    50% { box-shadow: 0 5px 50px rgba(255, 217, 61, 0.8); }
}

.btn-yes:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 10px 40px rgba(255, 217, 61, 0.7);
}

.btn-no {
    background: rgba(157, 132, 183, 0.3);
    color: var(--soft-cream);
    border: 2px solid var(--accent-purple);
}

.btn-no:hover {
    background: rgba(157, 132, 183, 0.5);
    transform: translateY(-3px);
}

/* Please Forgive Page */
.please-container {
    max-width: 800px;
    text-align: center;
    padding: 40px 20px;
}

.sad-emoji {
    font-size: 8rem;
    animation: sadBounce 2s ease-in-out infinite;
    margin-bottom: 30px;
}

@keyframes sadBounce {
    0%, 100% { transform: translateY(0) rotate(-5deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

.please-title {
    font-family: 'Cinzel', serif;
    font-size: 2.5rem;
    color: var(--soft-pink);
    margin-bottom: 30px;
    text-shadow: 0 0 20px rgba(255, 182, 193, 0.5);
}

.friendship-text {
    font-family: 'Dancing Script', cursive;
    font-size: 2rem;
    color: var(--celestial-blue);
    margin: 40px 0;
    line-height: 1.6;
}

.friendship-highlight {
    color: var(--primary-gold);
    font-weight: 700;
    font-size: 2.5rem;
    display: block;
    margin: 20px 0;
    text-shadow: 0 0 30px rgba(255, 217, 61, 0.5);
}

/* Thank You Page */
.thankyou-container {
    max-width: 900px;
    text-align: center;
    padding: 40px 20px;
}

.confetti {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1000;
    overflow: hidden;
}

.confetti-piece {
    position: absolute;
    width: 15px;
    height: 15px;
    background: var(--primary-gold);
    animation: confettiFall var(--fall-duration) linear forwards;
    opacity: 0;
}

@keyframes confettiFall {
    0% {
        transform: translateY(-100px) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(720deg);
        opacity: 0;
    }
}

.thankyou-title {
    font-family: 'Cinzel', serif;
    font-size: 5rem;
    color: var(--primary-gold);
    text-shadow: 0 0 50px rgba(255, 217, 61, 0.7);
    margin-bottom: 20px;
    animation: thankYouPulse 1.5s ease-in-out infinite;
}

@keyframes thankYouPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.smile-emoji {
    font-size: 6rem;
    animation: smileRotate 3s ease-in-out infinite;
    display: block;
    margin: 20px 0;
}

@keyframes smileRotate {
    0%, 100% { transform: rotate(-10deg) scale(1); }
    50% { transform: rotate(10deg) scale(1.1); }
}

.main-image-container {
    margin: 40px auto;
    max-width: 600px;
    border-radius: 20px;
    overflow: hidden;
    border: 3px solid var(--primary-gold);
    box-shadow: 0 0 50px rgba(255, 217, 61, 0.3);
}

.main-image {
    width: 100%;
    height: auto;
    display: block;
}

.activities-list {
    background: rgba(26, 26, 46, 0.7);
    border: 1px solid rgba(255, 217, 61, 0.3);
    border-radius: 20px;
    padding: 40px;
    margin: 40px 0;
    backdrop-filter: blur(10px);
}

.activities-title {
    font-family: 'Dancing Script', cursive;
    font-size: 2.5rem;
    color: var(--celestial-blue);
    margin-bottom: 30px;
}

.activity-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    font-size: 1.3rem;
    margin: 20px 0;
    opacity: 0;
    animation: slideIn 0.5s ease forwards;
    animation-delay: var(--delay);
}

@keyframes slideIn {
    from { opacity: 0; transform: translateX(-30px); }
    to { opacity: 1; transform: translateX(0); }
}

.activity-icon {
    font-size: 2rem;
}

.signature {
    font-family: 'Dancing Script', cursive;
    font-size: 2.5rem;
    color: var(--primary-gold);
    margin-top: 50px;
    text-shadow: 0 0 20px rgba(255, 217, 61, 0.5);
}

/* Responsive */
@media (max-width: 768px) {
    .secret-title { font-size: 1.4rem; }
    .secret-box { padding: 30px 20px; }
    .dear-text { font-size: 2rem; }
    .name-text { font-size: 2.5rem; }
    .section { padding: 25px 15px; }
    .section-title { font-size: 1.5rem; }
    .btn { padding: 15px 35px; font-size: 1.1rem; }
    .thankyou-title { font-size: 3rem; }
    .buttons-container { gap: 15px; }
}

/* Page Transitions */
.page-enter {
    animation: pageEnter 0.8s ease;
}

@keyframes pageEnter {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}
