/* ==================== RESET & BASE ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --neon-pink: #ff6ec7;
    --neon-gold: #ffd700;
    --neon-lavender: #9c6eff;
    --dark-bg: #0a0a0f;
    --card-bg: rgba(26, 26, 40, 0.8);
    --text-light: #f0f0f0;
    --text-pink: #ffb3e6;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #0a0a0f 0%, #1a0a1f 50%, #0f0a1a 100%);
    color: var(--text-light);
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 50%, rgba(255, 110, 199, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(156, 110, 255, 0.1) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

/* ==================== FLOATING HEARTS ==================== */
.hearts-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.heart {
    position: absolute;
    width: 20px;
    height: 20px;
    opacity: 0;
    animation: floatHeart 8s infinite ease-in;
}

.heart::before,
.heart::after {
    content: '';
    position: absolute;
    width: 10px;
    height: 16px;
    background: var(--neon-pink);
    border-radius: 10px 10px 0 0;
    filter: blur(1px);
}

.heart::before {
    left: 10px;
    transform: rotate(-45deg);
    transform-origin: 0 100%;
}

.heart::after {
    left: 0;
    transform: rotate(45deg);
    transform-origin: 100% 100%;
}

@keyframes floatHeart {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.8;
    }
    90% {
        opacity: 0.8;
    }
    100% {
        transform: translateY(-100px) rotate(360deg);
        opacity: 0;
    }
}

/* ==================== PERI MODE TOGGLE ==================== */
.peri-mode-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
}

.peri-mode-toggle input[type="checkbox"] {
    display: none;
}

.peri-mode-toggle label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    background: var(--card-bg);
    padding: 10px 15px;
    border-radius: 25px;
    border: 2px solid var(--neon-pink);
    box-shadow: 0 0 15px rgba(255, 110, 199, 0.3);
    transition: all 0.3s ease;
}

.peri-mode-toggle label:hover {
    box-shadow: 0 0 25px rgba(255, 110, 199, 0.6);
    transform: translateY(-2px);
}

.toggle-label {
    color: var(--text-pink);
    font-size: 14px;
    font-weight: 600;
}

.toggle-switch {
    width: 40px;
    height: 20px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    position: relative;
    transition: all 0.3s ease;
}

.toggle-switch::before {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: white;
    top: 2px;
    left: 2px;
    transition: all 0.3s ease;
}

input[type="checkbox"]:checked + label .toggle-switch {
    background: var(--neon-pink);
    box-shadow: 0 0 15px var(--neon-pink);
}

input[type="checkbox"]:checked + label .toggle-switch::before {
    left: 22px;
}

/* ==================== MUSIC TOGGLE ==================== */
.music-toggle {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 1000;
}

.music-btn {
    background: var(--card-bg);
    border: 2px solid var(--neon-lavender);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    transition: all 0.3s ease;
    box-shadow: 0 0 15px rgba(156, 110, 255, 0.3);
}

.music-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 0 25px rgba(156, 110, 255, 0.6);
}

.music-btn.playing {
    animation: pulse 2s infinite;
}

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

/* ==================== HERO SECTION ==================== */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    z-index: 2;
}

.flowers-container {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.flower {
    position: absolute;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    animation: flowerGlow 3s infinite alternate ease-in-out;
}

.flower::before {
    content: '🌸';
    font-size: 50px;
    position: absolute;
    filter: drop-shadow(0 0 10px var(--neon-pink));
}

.flower-1 {
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.flower-2 {
    top: 20%;
    right: 15%;
    animation-delay: 0.5s;
}

.flower-3 {
    bottom: 20%;
    left: 20%;
    animation-delay: 1s;
}

.flower-4 {
    bottom: 15%;
    right: 10%;
    animation-delay: 1.5s;
}

.flower-5 {
    top: 50%;
    left: 5%;
    animation-delay: 2s;
}

@keyframes flowerGlow {
    0% {
        transform: scale(1) rotate(0deg);
        opacity: 0.6;
    }
    100% {
        transform: scale(1.2) rotate(15deg);
        opacity: 1;
    }
}

.hero-content {
    text-align: center;
    z-index: 10;
    animation: fadeInUp 1.5s ease-out;
    padding: 20px;
}

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

.hero-title {
    font-size: clamp(2rem, 5vw, 4rem);
    color: var(--neon-pink);
    text-shadow: 0 0 20px var(--neon-pink),
                 0 0 40px var(--neon-pink),
                 0 0 60px var(--neon-pink);
    margin-bottom: 20px;
    animation: neonPulse 2s infinite alternate;
    font-weight: 700;
}

@keyframes neonPulse {
    from {
        text-shadow: 0 0 20px var(--neon-pink),
                     0 0 40px var(--neon-pink);
    }
    to {
        text-shadow: 0 0 30px var(--neon-pink),
                     0 0 60px var(--neon-pink),
                     0 0 80px var(--neon-pink);
    }
}

.hero-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.5rem);
    color: var(--neon-lavender);
    margin-bottom: 30px;
    text-shadow: 0 0 10px var(--neon-lavender);
    font-weight: 500;
}

.random-compliment {
    font-size: clamp(0.9rem, 2vw, 1.2rem);
    color: var(--text-pink);
    margin-bottom: 40px;
    font-style: italic;
    animation: fadeIn 2s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.continue-btn {
    position: relative;
    padding: 15px 40px;
    font-size: 1.2rem;
    color: var(--text-light);
    background: transparent;
    border: 2px solid var(--neon-gold);
    border-radius: 50px;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s ease;
    font-weight: 600;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.4);
}

.continue-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.8);
}

.btn-glow {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.4), transparent);
    transition: left 0.5s ease;
}

.continue-btn:hover .btn-glow {
    left: 100%;
}

/* ==================== MAIN CONTENT ==================== */
.main-content {
    position: relative;
    z-index: 2;
    opacity: 0;
    transform: translateY(50px);
    transition: all 1s ease;
}

.main-content.visible {
    opacity: 1;
    transform: translateY(0);
}

.section {
    padding: 80px 20px;
    position: relative;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    text-align: center;
    margin-bottom: 50px;
    color: var(--neon-pink);
    text-shadow: 0 0 15px var(--neon-pink);
    font-weight: 700;
}

.butterfly-icon {
    display: inline-block;
    animation: butterflyFloat 3s infinite ease-in-out;
    font-size: 2rem;
}

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

/* ==================== LOVE REASONS ==================== */
.love-reasons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.love-reason-card {
    background: var(--card-bg);
    padding: 25px;
    border-radius: 20px;
    border: 1px solid rgba(255, 110, 199, 0.3);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3),
                inset 0 0 15px rgba(255, 110, 199, 0.1);
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateX(-30px);
    animation: slideIn 0.6s ease-out forwards;
}

.love-reason-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(255, 110, 199, 0.4),
                inset 0 0 20px rgba(255, 110, 199, 0.2);
    border-color: var(--neon-pink);
}

@keyframes slideIn {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.love-reason-card p {
    color: var(--text-light);
    font-size: 1.1rem;
    line-height: 1.6;
}

/* ==================== GALLERY ==================== */
.section-description {
    text-align: center;
    color: var(--text-pink);
    font-size: 1.2rem;
    margin-bottom: 40px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.gallery-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.gallery-item:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 30px rgba(255, 110, 199, 0.5);
}

.gallery-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: var(--text-light);
    padding: 30px 15px 15px;
    text-align: center;
    font-size: 1rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-caption {
    transform: translateY(0);
}

/* ==================== MODAL ==================== */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    animation: fadeIn 0.3s ease;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    max-width: 90%;
    max-height: 80%;
    border-radius: 10px;
    box-shadow: 0 0 50px var(--neon-pink);
    animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.modal-close {
    position: absolute;
    top: 30px;
    right: 50px;
    color: var(--neon-pink);
    font-size: 50px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-shadow: 0 0 10px var(--neon-pink);
}

.modal-close:hover {
    transform: rotate(90deg) scale(1.2);
    text-shadow: 0 0 20px var(--neon-pink);
}

.modal-caption {
    text-align: center;
    color: var(--text-light);
    padding: 20px;
    font-size: 1.3rem;
}

/* ==================== JOKES ==================== */
.jokes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.joke-card {
    background: linear-gradient(135deg, rgba(255, 182, 193, 0.1) 0%, rgba(221, 160, 221, 0.1) 100%);
    padding: 30px;
    border-radius: 20px;
    border: 2px solid rgba(255, 192, 203, 0.3);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.joke-card::before {
    content: '✨';
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 2rem;
    opacity: 0;
    transition: all 0.3s ease;
}

.joke-card:hover {
    transform: translateY(-5px) rotate(1deg);
    box-shadow: 0 8px 25px rgba(255, 110, 199, 0.4);
    border-color: var(--neon-pink);
}

.joke-card:hover::before {
    opacity: 1;
    animation: sparkle 1s ease-in-out;
}

@keyframes sparkle {
    0%, 100% {
        transform: scale(1) rotate(0deg);
    }
    50% {
        transform: scale(1.3) rotate(180deg);
    }
}

.joke-card h3 {
    color: var(--neon-gold);
    font-size: 1.3rem;
    margin-bottom: 15px;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.joke-card p {
    color: var(--text-light);
    font-size: 1.1rem;
    line-height: 1.6;
}

/* ==================== SPECIAL MESSAGE ==================== */
.message-section {
    background: radial-gradient(circle at center, rgba(255, 110, 199, 0.1) 0%, transparent 70%);
}

.message-content {
    max-width: 800px;
    margin: 0 auto;
    background: var(--card-bg);
    padding: 50px;
    border-radius: 25px;
    border: 2px solid var(--neon-pink);
    box-shadow: 0 0 30px rgba(255, 110, 199, 0.3),
                inset 0 0 20px rgba(255, 110, 199, 0.1);
}

.special-message {
    font-size: 1.2rem;
    line-height: 2;
    color: var(--text-light);
    text-align: justify;
}

.special-message .highlight {
    color: var(--neon-pink);
    font-weight: 700;
    position: relative;
    display: inline-block;
    text-shadow: 0 0 10px var(--neon-pink);
}

.special-message .highlight::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--neon-pink);
    box-shadow: 0 0 10px var(--neon-pink);
    animation: underlineGlow 2s infinite alternate;
}

@keyframes underlineGlow {
    from {
        box-shadow: 0 0 5px var(--neon-pink);
    }
    to {
        box-shadow: 0 0 15px var(--neon-pink);
    }
}

/* ==================== FOOTER ==================== */
.footer {
    padding: 40px 20px;
    text-align: center;
    border-top: 1px solid rgba(255, 110, 199, 0.3);
    background: rgba(0, 0, 0, 0.3);
}

.footer-text {
    color: var(--text-pink);
    font-size: 1.1rem;
    text-shadow: 0 0 10px rgba(255, 110, 199, 0.5);
}

/* ==================== BUTTERFLIES (PERI MODE) ==================== */
.butterflies-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 100;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.butterflies-container.active {
    opacity: 1;
}

.butterfly {
    position: absolute;
    font-size: 30px;
    animation: butterflyFly 15s infinite ease-in-out;
    filter: drop-shadow(0 0 5px var(--neon-pink));
}

@keyframes butterflyFly {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }
    25% {
        transform: translate(30vw, -20vh) rotate(90deg);
    }
    50% {
        transform: translate(60vw, 10vh) rotate(180deg);
    }
    75% {
        transform: translate(30vw, 30vh) rotate(270deg);
    }
    100% {
        transform: translate(0, 0) rotate(360deg);
    }
}

/* ==================== PERI MODE EFFECTS ==================== */
body.peri-mode-active {
    animation: periModeGlow 3s infinite alternate;
}

@keyframes periModeGlow {
    from {
        filter: brightness(1);
    }
    to {
        filter: brightness(1.1);
    }
}

body.peri-mode-active .hero-title,
body.peri-mode-active .section-title {
    animation: intensePulse 1.5s infinite alternate;
}

@keyframes intensePulse {
    from {
        text-shadow: 0 0 20px var(--neon-pink),
                     0 0 40px var(--neon-pink);
    }
    to {
        text-shadow: 0 0 40px var(--neon-pink),
                     0 0 80px var(--neon-pink),
                     0 0 120px var(--neon-pink);
    }
}

/* ==================== RESPONSIVE DESIGN ==================== */
@media (max-width: 768px) {
    .section {
        padding: 60px 15px;
    }
    
    .love-reasons-grid,
    .gallery-grid,
    .jokes-grid {
        grid-template-columns: 1fr;
    }
    
    .message-content {
        padding: 30px 20px;
    }
    
    .special-message {
        font-size: 1rem;
        line-height: 1.8;
    }
    
    .peri-mode-toggle {
        top: 10px;
        right: 10px;
    }
    
    .music-toggle {
        top: 70px;
        right: 10px;
    }
    
    .modal-close {
        top: 20px;
        right: 20px;
        font-size: 40px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .continue-btn {
        padding: 12px 30px;
        font-size: 1rem;
    }
}

/* ==================== TYPING ANIMATION ==================== */
.typing-animation {
    overflow: hidden;
    white-space: nowrap;
    animation: typing 4s steps(40, end);
}

@keyframes typing {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
}

/* ==================== VISIBLE CLASS ==================== */
.visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease, transform 0.8s ease;
}
