/* ========================================
   Admon's 40th Pool Party - AI Enhanced Styles
   ======================================== */

/* CSS Variables */
:root {
    --turquoise: #40E0D0;
    --turquoise-dark: #2BC4B4;
    --flamingo-pink: #FF6B9D;
    --sunny-yellow: #FFE135;
    --coral: #FF6F61;
    --purple: #A855F7;
    --blue: #3B82F6;
    --cyan: #06B6D4;
    --sky-light: #87CEEB;
    --white: #FFFFFF;
    --text-dark: #1a1a2e;
    --text-light: #FFFFFF;
    
    --font-main: 'Fredoka', sans-serif;
    
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    
    --glow-pink: 0 0 20px rgba(255, 107, 157, 0.5), 0 0 40px rgba(255, 107, 157, 0.3), 0 0 60px rgba(255, 107, 157, 0.2);
    --glow-cyan: 0 0 20px rgba(64, 224, 208, 0.5), 0 0 40px rgba(64, 224, 208, 0.3);
    --glow-yellow: 0 0 20px rgba(255, 225, 53, 0.5), 0 0 40px rgba(255, 225, 53, 0.3);
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    min-height: 100vh;
    overflow-x: hidden;
    background: linear-gradient(135deg, #0f0c29 0%, #302b63 50%, #24243e 100%);
    background-attachment: fixed;
    color: var(--text-light);
    cursor: none;
}

/* Custom Cursor */
.cursor {
    width: 20px;
    height: 20px;
    border: 2px solid var(--flamingo-pink);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    transition: transform 0.1s ease, border-color 0.3s ease;
    mix-blend-mode: difference;
}

.cursor-dot {
    width: 8px;
    height: 8px;
    background: var(--flamingo-pink);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    box-shadow: var(--glow-pink);
}

.cursor-trail {
    width: 6px;
    height: 6px;
    background: var(--turquoise);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9998;
    opacity: 0.6;
}

/* ========================================
   Animated Gradient Blobs
   ======================================== */

.blob-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
    filter: blur(80px);
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(0);
    opacity: 0.7;
    animation: blob-float 20s ease-in-out infinite;
}

.blob-1 {
    width: 600px;
    height: 600px;
    background: linear-gradient(135deg, var(--flamingo-pink), var(--coral));
    top: -200px;
    right: -100px;
    animation-delay: 0s;
}

.blob-2 {
    width: 500px;
    height: 500px;
    background: linear-gradient(135deg, var(--turquoise), var(--cyan));
    bottom: -150px;
    left: -100px;
    animation-delay: -5s;
}

.blob-3 {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, var(--purple), var(--blue));
    top: 40%;
    left: 30%;
    animation-delay: -10s;
}

.blob-4 {
    width: 350px;
    height: 350px;
    background: linear-gradient(135deg, var(--sunny-yellow), var(--coral));
    top: 20%;
    right: 20%;
    animation-delay: -15s;
}

@keyframes blob-float {
    0%, 100% {
        transform: translate(0, 0) scale(1) rotate(0deg);
    }
    25% {
        transform: translate(50px, -50px) scale(1.1) rotate(90deg);
    }
    50% {
        transform: translate(-30px, 30px) scale(0.9) rotate(180deg);
    }
    75% {
        transform: translate(-50px, -30px) scale(1.05) rotate(270deg);
    }
}

/* ========================================
   Particle Canvas
   ======================================== */

#particle-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

/* Confetti Canvas */
#confetti-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1000;
}

/* ========================================
   Floating 3D Elements
   ======================================== */

.floating-toys {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
    overflow: hidden;
    perspective: 1000px;
}

.toy {
    position: absolute;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.3));
    transform-style: preserve-3d;
}

.toy svg {
    width: 100%;
    height: 100%;
}

/* Flamingo */
.flamingo {
    width: 100px;
    height: 125px;
    top: 15%;
    left: 5%;
    animation: float-3d-1 12s ease-in-out infinite;
}

/* Beach Ball */
.beach-ball {
    width: 80px;
    height: 80px;
    top: 25%;
    right: 10%;
    animation: float-3d-2 10s ease-in-out infinite, spin-3d 15s linear infinite;
}

/* Donut Float */
.donut {
    width: 110px;
    height: 110px;
    top: 50%;
    left: 8%;
    animation: float-3d-3 14s ease-in-out infinite;
}

/* Palm Leaf */
.palm-leaf {
    width: 80px;
    height: 100px;
    top: 10%;
    right: 20%;
    animation: float-3d-1 11s ease-in-out infinite, sway-3d 6s ease-in-out infinite;
}

/* Sunglasses */
.sunglasses {
    width: 90px;
    height: 45px;
    top: 60%;
    right: 5%;
    animation: float-3d-2 13s ease-in-out infinite;
}

/* 3D Float Animations */
@keyframes float-3d-1 {
    0%, 100% {
        transform: translateY(0) translateZ(0) rotateX(0deg) rotateY(0deg);
    }
    25% {
        transform: translateY(-30px) translateZ(50px) rotateX(5deg) rotateY(-5deg);
    }
    50% {
        transform: translateY(-15px) translateZ(20px) rotateX(-3deg) rotateY(3deg);
    }
    75% {
        transform: translateY(-40px) translateZ(40px) rotateX(3deg) rotateY(-3deg);
    }
}

@keyframes float-3d-2 {
    0%, 100% {
        transform: translateY(0) translateZ(0) rotateX(0deg) rotateY(0deg);
    }
    33% {
        transform: translateY(-40px) translateZ(60px) rotateX(-5deg) rotateY(10deg);
    }
    66% {
        transform: translateY(-20px) translateZ(30px) rotateX(5deg) rotateY(-5deg);
    }
}

@keyframes float-3d-3 {
    0%, 100% {
        transform: translateY(0) translateZ(0) rotateX(0deg) rotateY(0deg) rotate(0deg);
    }
    50% {
        transform: translateY(-35px) translateZ(45px) rotateX(10deg) rotateY(-10deg) rotate(10deg);
    }
}

@keyframes spin-3d {
    0% { transform: rotateZ(0deg); }
    100% { transform: rotateZ(360deg); }
}

@keyframes sway-3d {
    0%, 100% { transform: rotateZ(-15deg); }
    50% { transform: rotateZ(15deg); }
}

/* ========================================
   Sun with Glow
   ======================================== */

.sun {
    position: fixed;
    top: 20px;
    left: 30px;
    width: 120px;
    height: 120px;
    z-index: 3;
    animation: sun-pulse 4s ease-in-out infinite;
    filter: drop-shadow(0 0 30px rgba(255, 225, 53, 0.8)) drop-shadow(0 0 60px rgba(255, 225, 53, 0.5));
}

.sun svg {
    width: 100%;
    height: 100%;
}

.sun-rays {
    animation: sun-spin 30s linear infinite;
    transform-origin: center;
}

@keyframes sun-pulse {
    0%, 100% { transform: scale(1); filter: drop-shadow(0 0 30px rgba(255, 225, 53, 0.8)); }
    50% { transform: scale(1.15); filter: drop-shadow(0 0 50px rgba(255, 225, 53, 1)); }
}

@keyframes sun-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ========================================
   Main Container
   ======================================== */

.container {
    position: relative;
    z-index: 10;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px 200px;
}

/* ========================================
   Hero Section with Glassmorphism
   ======================================== */

.hero {
    text-align: center;
    max-width: 700px;
    padding: 50px 40px;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 30px;
    box-shadow: var(--glass-shadow), inset 0 1px 1px rgba(255, 255, 255, 0.1);
    animation: fade-in-up 1s ease-out, glow-pulse 4s ease-in-out infinite;
}

@keyframes fade-in-up {
    0% {
        opacity: 0;
        transform: translateY(50px) scale(0.9);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes glow-pulse {
    0%, 100% {
        box-shadow: var(--glass-shadow), inset 0 1px 1px rgba(255, 255, 255, 0.1), 0 0 30px rgba(255, 107, 157, 0.1);
    }
    50% {
        box-shadow: var(--glass-shadow), inset 0 1px 1px rgba(255, 255, 255, 0.1), 0 0 50px rgba(255, 107, 157, 0.2);
    }
}

/* Title */
.title {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 10px;
}

.title-line {
    font-size: 2.8rem;
    font-weight: 600;
    color: var(--text-light);
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

.title-line.birthday {
    font-size: 3.2rem;
    background: linear-gradient(90deg, var(--flamingo-pink), var(--coral), var(--sunny-yellow), var(--turquoise), var(--flamingo-pink));
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient-shift 3s linear infinite;
    filter: drop-shadow(0 0 10px rgba(255, 107, 157, 0.5));
}

/* Animated Gradient Text */
@keyframes gradient-shift {
    0% { background-position: 0% center; }
    100% { background-position: 200% center; }
}

/* Big Number with Extreme Glow */
.big-number {
    font-size: 12rem;
    font-weight: 700;
    line-height: 1;
    background: linear-gradient(135deg, var(--flamingo-pink), var(--coral), var(--sunny-yellow), var(--turquoise));
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient-flow 4s ease-in-out infinite, number-float 3s ease-in-out infinite;
    filter: drop-shadow(0 0 30px rgba(255, 107, 157, 0.6)) drop-shadow(0 0 60px rgba(255, 107, 157, 0.4));
    cursor: pointer;
}

@keyframes gradient-flow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes number-float {
    0%, 100% { transform: translateY(0) rotate(-1deg); }
    50% { transform: translateY(-15px) rotate(1deg); }
}

/* Subtitle with Glow */
.subtitle {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 30px;
    background: linear-gradient(90deg, var(--turquoise), var(--cyan), var(--turquoise));
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient-shift 4s linear infinite;
    text-shadow: none;
    filter: drop-shadow(0 0 15px rgba(64, 224, 208, 0.5));
}

/* Party Details - Glassmorphism Cards */
.party-details {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.detail-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 18px 28px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.detail-card:hover {
    transform: translateY(-8px) scale(1.05);
    box-shadow: 0 15px 40px rgba(255, 107, 157, 0.3), var(--glow-pink);
    border-color: var(--flamingo-pink);
    background: rgba(255, 107, 157, 0.15);
}

.detail-icon {
    font-size: 1.8rem;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.5));
}

.detail-text {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-light);
}

/* Tagline */
.tagline {
    font-size: 1.4rem;
    color: var(--text-light);
    margin-bottom: 8px;
    opacity: 0.95;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

.tagline-sub {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 30px;
    opacity: 0.7;
}

/* ========================================
   Calendar Button - Glassmorphism + Glow
   ======================================== */

.calendar-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 18px 32px;
    border: none;
    border-radius: 50px;
    font-family: var(--font-main);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: none;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

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

.btn:hover::before {
    left: 100%;
}

.btn-icon {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}

.btn-primary {
    background: linear-gradient(135deg, var(--flamingo-pink), var(--coral));
    color: var(--white);
    box-shadow: 0 4px 20px rgba(255, 107, 157, 0.4), var(--glow-pink);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-primary:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 40px rgba(255, 107, 157, 0.5), 0 0 40px rgba(255, 107, 157, 0.6), 0 0 80px rgba(255, 107, 157, 0.4);
}

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

/* ========================================
   Admon Photo
   ======================================== */

.admon-photo {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 25vw;
    max-width: 300px;
    z-index: 20;
    pointer-events: none;
    filter: drop-shadow(0 0 20px rgba(255, 107, 157, 0.3));
}

.admon-photo img {
    width: 100%;
    height: auto;
    display: block;
}

@media (max-width: 768px) {
    .admon-photo {
        width: 30vw;
    }
}

@media (max-width: 480px) {
    .admon-photo {
        width: 35vw;
    }
}

/* ========================================
   Waves with Glow
   ======================================== */

.waves-container {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 200px;
    z-index: 5;
    pointer-events: none;
}

.waves {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 -10px 30px rgba(64, 224, 208, 0.3));
}

.wave {
    animation: wave-motion 8s ease-in-out infinite;
}

.wave-back {
    animation-delay: 0s;
    fill: rgba(64, 224, 208, 0.3);
}

.wave-mid {
    animation-delay: -2s;
    fill: rgba(64, 224, 208, 0.5);
}

.wave-front {
    animation-delay: -4s;
    fill: rgba(64, 224, 208, 0.8);
}

@keyframes wave-motion {
    0%, 100% {
        transform: translateX(0) translateY(0);
    }
    25% {
        transform: translateX(-25px) translateY(5px);
    }
    50% {
        transform: translateX(0) translateY(10px);
    }
    75% {
        transform: translateX(25px) translateY(5px);
    }
}

/* Pool Floor */
.pool-floor {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background: 
        linear-gradient(90deg, 
            rgba(64, 224, 208, 0.6) 25%, 
            rgba(43, 196, 180, 0.6) 25%, 
            rgba(43, 196, 180, 0.6) 50%, 
            rgba(64, 224, 208, 0.6) 50%, 
            rgba(64, 224, 208, 0.6) 75%, 
            rgba(43, 196, 180, 0.6) 75%
        );
    background-size: 80px 80px;
    opacity: 0.6;
}

/* ========================================
   Responsive Design
   ======================================== */

/* Tablet */
@media (max-width: 768px) {
    .sun {
        width: 80px;
        height: 80px;
        top: 15px;
        left: 15px;
    }
    
    .hero {
        padding: 40px 30px;
        margin: 0 15px;
    }
    
    .title-line {
        font-size: 2.2rem;
    }
    
    .title-line.birthday {
        font-size: 2.6rem;
    }
    
    .big-number {
        font-size: 8rem;
    }
    
    .subtitle {
        font-size: 2.4rem;
    }
    
    .flamingo {
        width: 70px;
        height: 87px;
    }
    
    .beach-ball {
        width: 55px;
        height: 55px;
    }
    
    .donut {
        width: 80px;
        height: 80px;
    }
    
    .palm-leaf {
        width: 55px;
        height: 68px;
    }
    
    .sunglasses {
        width: 60px;
        height: 30px;
    }
    
    .blob-1 { width: 400px; height: 400px; }
    .blob-2 { width: 350px; height: 350px; }
    .blob-3 { width: 300px; height: 300px; }
    .blob-4 { width: 250px; height: 250px; }
}

/* Mobile */
@media (max-width: 480px) {
    body {
        cursor: auto;
    }
    
    .cursor, .cursor-dot, .cursor-trail {
        display: none;
    }
    
    .container {
        padding: 30px 15px 180px;
    }
    
    .sun {
        width: 60px;
        height: 60px;
        top: 10px;
        left: 10px;
    }
    
    .hero {
        padding: 30px 20px;
        margin: 0 10px;
    }
    
    .title-line {
        font-size: 1.8rem;
    }
    
    .title-line.birthday {
        font-size: 2.2rem;
    }
    
    .big-number {
        font-size: 6rem;
    }
    
    .subtitle {
        font-size: 2rem;
        margin-bottom: 25px;
    }
    
    .party-details {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }
    
    .detail-card {
        padding: 14px 22px;
    }
    
    .detail-text {
        font-size: 1rem;
    }
    
    .tagline {
        font-size: 1.2rem;
        padding: 0 10px;
    }
    
    .calendar-buttons {
        flex-direction: column;
        width: 100%;
        padding: 0 10px;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
        padding: 16px 24px;
    }
    
    /* Hide some floating toys on mobile */
    .palm-leaf,
    .sunglasses {
        display: none;
    }
    
    .flamingo {
        width: 55px;
        height: 68px;
        top: 20%;
        left: 2%;
    }
    
    .beach-ball {
        width: 40px;
        height: 40px;
        top: 30%;
    }
    
    .donut {
        width: 60px;
        height: 60px;
        top: 55%;
        left: 3%;
    }
    
    .waves-container {
        height: 150px;
    }
    
    .blob-1 { width: 300px; height: 300px; }
    .blob-2 { width: 250px; height: 250px; }
    .blob-3 { width: 200px; height: 200px; }
    .blob-4 { display: none; }
}

/* Extra small devices */
@media (max-width: 350px) {
    .big-number {
        font-size: 5rem;
    }
    
    .title-line.birthday {
        font-size: 1.8rem;
    }
    
    .subtitle {
        font-size: 1.6rem;
    }
}

/* ========================================
   Accessibility
   ======================================== */

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .blob-container {
        display: none;
    }
}

/* Focus States */
.btn:focus {
    outline: 3px solid var(--sunny-yellow);
    outline-offset: 3px;
}

.btn:focus:not(:focus-visible) {
    outline: none;
}

/* ========================================
   Print Styles
   ======================================== */

@media print {
    .floating-toys,
    .sun,
    .waves-container,
    #confetti-canvas,
    #particle-canvas,
    .blob-container,
    .cursor,
    .cursor-dot {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
    
    .hero {
        background: none;
        backdrop-filter: none;
        border: 1px solid #ccc;
    }
    
    .container {
        padding: 20px;
    }
}
