@import url('https://fonts.googleapis.com/css2?family=Dancing+Script:wght@400;500;600;700&family=Montserrat:wght@300;400;500;600;700&family=Great+Vibes&family=Satisfy&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-pink: #ff69b4;
    --secondary-pink: #ff1493;
    --light-pink: #ffb6c1;
    --dark-pink: #c71585;
    --gradient-1: linear-gradient(135deg, #ff9a9e 0%, #fecfef 50%, #fad0c4 100%);
    --gradient-2: linear-gradient(45deg, #ff69b4, #ff1493, #ff69b4, #ff1493);
    --shadow-pink: rgba(255, 105, 180, 0.3);
    --shadow-dark: rgba(0, 0, 0, 0.1);
    --glass-bg: rgba(255, 255, 255, 0.15);
    --glass-border: rgba(255, 255, 255, 0.2);
}

body {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 25%, #f093fb 50%, #f5576c 75%, #4facfe 100%);
    background-size: 400% 400%;
    animation: gradient-wave 15s ease infinite;
    font-family: 'Montserrat', sans-serif;
    color: #333;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

@keyframes gradient-wave {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(255, 182, 193, 0.4) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 20, 147, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(255, 105, 180, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 60% 70%, rgba(186, 85, 211, 0.2) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
    animation: aurora 20s ease-in-out infinite;
}

@keyframes aurora {
    0%, 100% {
        transform: translateX(0) translateY(0) rotate(0deg);
        opacity: 0.7;
    }
    25% {
        transform: translateX(-50px) translateY(-30px) rotate(1deg);
        opacity: 0.9;
    }
    50% {
        transform: translateX(50px) translateY(30px) rotate(-1deg);
        opacity: 0.8;
    }
    75% {
        transform: translateX(-30px) translateY(50px) rotate(0.5deg);
        opacity: 0.9;
    }
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.1) 50%, transparent 70%),
        linear-gradient(-45deg, transparent 30%, rgba(255, 255, 255, 0.05) 50%, transparent 70%);
    pointer-events: none;
    z-index: 1;
    animation: shimmer 8s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.8; }
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
    text-align: center;
    position: relative;
    z-index: 10;
    backdrop-filter: blur(10px);
    background: var(--glass-bg);
    border-radius: 30px;
    border: 1px solid var(--glass-border);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    margin-top: 20px;
    margin-bottom: 20px;
    animation: container-glow 4s ease-in-out infinite;
}

@keyframes container-glow {
    0%, 100% {
        box-shadow: 
            0 8px 32px rgba(0, 0, 0, 0.1),
            inset 0 1px 0 rgba(255, 255, 255, 0.2),
            0 0 20px rgba(255, 105, 180, 0.1);
    }
    50% {
        box-shadow: 
            0 15px 40px rgba(0, 0, 0, 0.15),
            inset 0 1px 0 rgba(255, 255, 255, 0.3),
            0 0 40px rgba(255, 105, 180, 0.3);
    }
}

header {
    margin-bottom: 40px;
    padding-top: 30px;
    position: relative;
}

header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 4px;
    background: var(--gradient-2);
    border-radius: 2px;
    animation: header-line 3s ease-in-out infinite;
}

@keyframes header-line {
    0%, 100% { width: 100px; opacity: 0.5; }
    50% { width: 300px; opacity: 1; }
}

h1 {
    font-family: 'Great Vibes', cursive;
    font-size: 4.2rem;
    font-weight: 600;
    background: linear-gradient(45deg, #ff69b4, #ff1493, #da70d6, #ff69b4);
    background-size: 200% 200%;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradient-text 4s ease infinite, title-float 6s ease-in-out infinite;
    text-shadow: none;
    margin-bottom: 15px;
    position: relative;
    filter: drop-shadow(3px 3px 6px rgba(255, 105, 180, 0.4));
}

@keyframes gradient-text {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes title-float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    33% { transform: translateY(-8px) rotate(1deg); }
    66% { transform: translateY(8px) rotate(-1deg); }
}

.subtitle {
    font-size: 1.4rem;
    font-weight: 500;
    color: #fff;
    margin-bottom: 30px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    animation: subtitle-glow 3s ease-in-out infinite;
    position: relative;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 240, 245, 0.7));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

@keyframes subtitle-glow {
    0%, 100% { 
        transform: translateY(0px);
        filter: drop-shadow(2px 2px 4px rgba(255, 105, 180, 0.3));
    }
    50% { 
        transform: translateY(-3px);
        filter: drop-shadow(4px 4px 8px rgba(255, 105, 180, 0.5));
    }
}

.heart-divider {
    font-size: 3rem;
    margin: 30px 0;
    filter: drop-shadow(3px 3px 6px rgba(255, 105, 180, 0.4));
    position: relative;
}

.heart-divider::before {
    content: '✨';
    position: absolute;
    left: -60px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    animation: sparkle-left 2s ease-in-out infinite;
}

.heart-divider::after {
    content: '✨';
    position: absolute;
    right: -60px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    animation: sparkle-right 2s ease-in-out infinite;
}

@keyframes sparkle-left {
    0%, 100% { transform: translateY(-50%) scale(0.8) rotate(0deg); opacity: 0.6; }
    50% { transform: translateY(-50%) scale(1.2) rotate(180deg); opacity: 1; }
}

@keyframes sparkle-right {
    0%, 100% { transform: translateY(-50%) scale(0.8) rotate(0deg); opacity: 0.6; }
    50% { transform: translateY(-50%) scale(1.2) rotate(-180deg); opacity: 1; }
}

.menu-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin: 60px 0;
    perspective: 1200px;
    padding: 20px;
}

.menu-btn {
    background: linear-gradient(145deg, 
        rgba(255, 255, 255, 0.25), 
        rgba(255, 255, 255, 0.1));
    backdrop-filter: blur(20px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 25px;
    padding: 30px 25px;
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.320, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transform-style: preserve-3d;
    animation: menu-float 6s ease-in-out infinite;
}

.menu-btn:nth-child(odd) {
    animation-delay: -1s;
}

.menu-btn:nth-child(even) {
    animation-delay: -3s;
}

@keyframes menu-float {
    0%, 100% { transform: translateY(0px) rotateX(0deg); }
    50% { transform: translateY(-10px) rotateX(2deg); }
}

.menu-btn::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(
        transparent, 
        rgba(255, 105, 180, 0.4), 
        transparent
    );
    animation: rotate-border 4s linear infinite;
    opacity: 0;
    transition: opacity 0.3s ease;
}

@keyframes rotate-border {
    100% { transform: rotate(360deg); }
}

.menu-btn::after {
    content: '';
    position: absolute;
    top: 10px;
    right: 15px;
    width: 30px;
    height: 30px;
    background: radial-gradient(circle, rgba(255, 105, 180, 0.3), transparent);
    border-radius: 50%;
    transform: scale(0);
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.menu-btn:hover {
    transform: translateY(-15px) rotateX(10deg) rotateY(5deg) scale(1.02);
    box-shadow: 
        0 25px 50px rgba(255, 105, 180, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
    background: linear-gradient(145deg, 
        rgba(255, 255, 255, 0.4), 
        rgba(255, 240, 245, 0.2));
    border-color: rgba(255, 105, 180, 0.5);
}

.menu-btn:hover::before {
    opacity: 1;
}

.menu-btn:hover::after {
    transform: scale(1) rotate(180deg);
    background: radial-gradient(circle, rgba(255, 105, 180, 0.6), transparent);
}

.menu-btn:active {
    transform: translateY(-8px) scale(0.98);
    transition: all 0.1s ease;
}

.menu-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    filter: drop-shadow(3px 3px 6px rgba(255, 105, 180, 0.3));
    position: relative;
    z-index: 2;
}

.menu-btn:hover .menu-icon {
    transform: scale(1.2) rotate(10deg) translateY(-5px);
    filter: drop-shadow(5px 5px 15px rgba(255, 105, 180, 0.5));
}

.menu-title {
    font-weight: 600;
    color: #fff;
    margin-bottom: 12px;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 2;
}

.menu-btn:hover .menu-title {
    color: #ff69b4;
    transform: translateY(-3px);
    text-shadow: 3px 3px 8px rgba(255, 105, 180, 0.5);
}

.menu-desc {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.5;
    transition: all 0.3s ease;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 2;
}

.menu-btn:hover .menu-desc {
    color: rgba(255, 255, 255, 1);
    transform: translateY(-2px);
}

footer {
    margin-top: 80px;
    padding: 40px 30px;
    color: #fff;
    font-family: 'Satisfy', cursive;
    font-size: 1.8rem;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.3);
    position: relative;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.1), 
        rgba(255, 255, 255, 0.05));
    backdrop-filter: blur(15px);
    border-radius: 25px 25px 0 0;
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: footer-glow 5s ease-in-out infinite;
}

footer::before {
    content: '';
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--gradient-2);
    border-radius: 2px;
    animation: footer-line 3s ease-in-out infinite;
}

footer::after {
    content: '💖✨💕✨💖';
    position: absolute;
    left: 50%;
    top: -15px;
    transform: translateX(-50%);
    font-size: 20px;
    animation: footer-hearts 3s ease-in-out infinite;
    white-space: nowrap;
}

@keyframes footer-glow {
    0%, 100% {
        text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.3);
        box-shadow: 
            0 -8px 32px rgba(255, 105, 180, 0.2),
            inset 0 1px 0 rgba(255, 255, 255, 0.2);
    }
    50% {
        text-shadow: 3px 3px 12px rgba(255, 105, 180, 0.6);
        box-shadow: 
            0 -15px 40px rgba(255, 105, 180, 0.4),
            inset 0 1px 0 rgba(255, 255, 255, 0.3);
    }
}

@keyframes footer-line {
    0%, 100% { width: 40px; opacity: 0.7; }
    50% { width: 80px; opacity: 1; }
}

@keyframes footer-hearts {
    0%, 100% {
        transform: translateX(-50%) translateY(0) scale(1);
    }
    50% {
        transform: translateX(-50%) translateY(-5px) scale(1.1);
    }
}

/* Enhanced Responsive Design */
@media (max-width: 1024px) {
    .container {
        margin: 10px;
        padding: 15px;
        border-radius: 20px;
    }
    
    .menu-container {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 20px;
        padding: 15px;
    }
}

@media (max-width: 768px) {
    .menu-container {
        grid-template-columns: 1fr;
        gap: 20px;
        margin: 40px 0;
    }
    
    .menu-btn {
        padding: 25px 20px;
        max-width: 300px;
        margin: 0 auto;
    }
    
    h1 {
        font-size: 3.2rem;
    }
    
    .subtitle {
        font-size: 1.2rem;
    }

    .heart-divider::before,
    .heart-divider::after {
        display: none;
    }
}

@media (max-width: 480px) {
    .container {
        margin: 5px;
        padding: 10px;
    }
    
    .menu-btn {
        padding: 20px 15px;
    }
    
    h1 {
        font-size: 2.8rem;
    }
    
    .heart-divider {
        font-size: 2.2rem;
    }

    footer {
        font-size: 1.4rem;
        padding: 30px 20px;
    }
}

/* Accessibility and Performance Enhancements */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(45deg, #ff69b4, #ff1493);
    border-radius: 6px;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(45deg, #ff1493, #da70d6);
}

/* Selection styling */
::selection {
    background: rgba(255, 105, 180, 0.3);
    color: #fff;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

::-moz-selection {
    background: rgba(255, 105, 180, 0.3);
    color: #fff;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}
