/* 
 * ADVANCED CSS ANIMATIONS & EFFECTS
 * FKK Club Germany - Unique & Elegant Design
 */

:root {
    /* Enhanced Color Palette */
    --primary-gold: #D4AF37;
    --secondary-gold: #F4E4BC;
    --accent-gold: #FFD700;
    --dark-charcoal: #1a1a1a;
    --warm-black: #0f0f0f;
    --deep-black: #000000;
    --accent-red: #8B0000;
    --burgundy: #722F37;
    --soft-white: #FFF8F0;
    --pearl-white: #F8F6F0;
    --shadow-gold: rgba(212, 175, 55, 0.3);
    --shadow-dark: rgba(0, 0, 0, 0.5);
    
    /* Advanced Gradients */
    --gradient-primary: linear-gradient(135deg, #D4AF37 0%, #F4E4BC 50%, #FFD700 100%);
    --gradient-dark: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 50%, #1a1a1a 100%);
    --gradient-elegant: linear-gradient(45deg, #0f0f0f 0%, #1a1a1a 25%, #2d2d2d 50%, #1a1a1a 75%, #0f0f0f 100%);
    --gradient-shimmer: linear-gradient(90deg, transparent 0%, rgba(212, 175, 55, 0.4) 50%, transparent 100%);
    --gradient-radial: radial-gradient(ellipse at center, rgba(212, 175, 55, 0.1) 0%, transparent 70%);
    
    /* Animation Timings */
    --ease-luxury: cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --ease-elegant: cubic-bezier(0.19, 1, 0.22, 1);
    --ease-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* ADVANCED TYPOGRAPHY */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,300;0,400;0,600;0,700;1,400&family=Inter:wght@200;300;400;500;600;700&family=Dancing+Script:wght@400;500;600;700&display=swap');

.elegant-title {
    font-family: 'Playfair Display', serif;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    display: inline-block;
}

.elegant-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    animation: titleUnderline 2s var(--ease-elegant) forwards;
}

/* PARTICLE SYSTEM */
.particle-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--primary-gold);
    border-radius: 50%;
    opacity: 0;
    animation: particleFloat 15s infinite linear;
}

.particle:nth-child(odd) {
    background: var(--accent-gold);
    animation-duration: 20s;
}

.particle:nth-child(3n) {
    width: 2px;
    height: 2px;
    animation-duration: 25s;
}

/* MORPHING BACKGROUNDS */
.morphing-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-elegant);
    animation: morphBackground 20s ease-in-out infinite;
    overflow-x:hidden;
}

.morphing-bg::before,
.morphing-bg::after {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    background: var(--gradient-radial);
    animation: morphBlob 25s ease-in-out infinite;
}

.morphing-bg::before {
    top: -50%;
    left: -50%;
    animation-delay: -5s;
}

.morphing-bg::after {
    bottom: -50%;
    right: -50%;
    animation-delay: -15s;
}

/* LUXURY CARDS WITH SIMPLIFIED EFFECTS */
.luxury-card {
    position: relative;
    background: var(--gradient-dark);
    border-radius: 25px;
    padding: 3rem;
    margin: 2rem 0;
    overflow: hidden;
    border: 1px solid rgba(212, 175, 55, 0.2);
    transition: all 0.6s var(--ease-elegant);
}

.luxury-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 
        0 20px 40px var(--shadow-dark),
        0 0 0 1px rgba(212, 175, 55, 0.3);
}

/* ELEGANT NAVIGATION */
.nav-elegant {
    position: relative;
    background: rgba(15, 15, 15, 0.95);
    backdrop-filter: blur(30px) saturate(180%);
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
    transition: all 0.3s var(--ease-elegant);
}

.nav-elegant::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.3s var(--ease-elegant);
}

.nav-elegant.scrolled::before {
    opacity: 1;
}

.nav-link-elegant {
    position: relative;
    color: var(--soft-white);
    text-decoration: none;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 1rem 1.5rem;
    transition: all 0.4s var(--ease-elegant);
    overflow: hidden;
}

.nav-link-elegant::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    transition: left 0.4s var(--ease-elegant);
    z-index: -1;
}

.nav-link-elegant::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary-gold);
    transition: all 0.4s var(--ease-elegant);
    transform: translateX(-50%);
}

.nav-link-elegant:hover::before {
    left: 0;
}

.nav-link-elegant:hover::after,
.nav-link-elegant.active::after {
    width: 80%;
}

.nav-link-elegant:hover {
    color: var(--warm-black);
    transform: translateY(-2px);
}

/* HERO SECTION WITH CINEMATIC EFFECTS */
.hero-cinematic {
    position: relative;
    height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-bg-layers {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hero-layer {
    position: absolute;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    animation: parallaxMove 30s ease-in-out infinite;
}

.hero-layer:nth-child(1) {
    background: var(--gradient-elegant);
    animation-delay: 0s;
}

.hero-layer:nth-child(2) {
    background: var(--gradient-radial);
    animation-delay: -10s;
    opacity: 0.7;
}

.hero-layer:nth-child(3) {
    background: linear-gradient(45deg, transparent 30%, rgba(212, 175, 55, 0.1) 70%);
    animation-delay: -20s;
    opacity: 0.5;
}

.hero-content-cinematic {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 900px;
    padding: 0 2rem;
}

.hero-title-cinematic {
    font-family: 'Playfair Display', serif;
    font-size: 5rem;
    font-weight: 300;
    line-height: 1.1;
    margin-bottom: 2rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: titleReveal 2s var(--ease-elegant) forwards;
    opacity: 0;
    transform: translateY(50px);
}

.hero-subtitle-cinematic {
    font-family: 'Dancing Script', cursive;
    font-size: 2rem;
    color: var(--secondary-gold);
    margin-bottom: 3rem;
    animation: subtitleReveal 2s var(--ease-elegant) 0.5s forwards;
    opacity: 0;
    transform: translateY(30px);
}

/* INTERACTIVE BUTTONS */
.btn-luxury {
    position: relative;
    display: inline-block;
    padding: 1.2rem 3rem;
    background: transparent;
    border: 2px solid var(--primary-gold);
    color: var(--primary-gold);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
    border-radius: 50px;
    overflow: hidden;
    transition: all 0.6s var(--ease-elegant);
    transform-style: preserve-3d;
}

.btn-luxury::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    transition: left 0.6s var(--ease-elegant);
    z-index: -1;
}

.btn-luxury::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.6s var(--ease-elegant);
    z-index: 1;
}

.btn-luxury:hover {
    color: var(--warm-black);
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 35px var(--shadow-gold);
}

.btn-luxury:hover::before {
    left: 0;
}

.btn-luxury:hover::after {
    width: 300px;
    height: 300px;
}

/* GALLERY EFFECTS */
.gallery-grid-advanced {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 2rem 0;
}

.gallery-item-advanced {
    position: relative;
    height: 400px;
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    transform-style: preserve-3d;
    transition: all 0.8s var(--ease-elegant);
}

.gallery-item-advanced::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-dark);
    z-index: 1;
}

.gallery-item-advanced::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: var(--gradient-primary);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.8s var(--ease-elegant);
    z-index: 2;
    opacity: 0;
}

.gallery-item-advanced:hover {
    transform: rotateY(10deg) rotateX(5deg) translateZ(50px);
    box-shadow: 
        0 30px 60px var(--shadow-dark),
        0 0 0 1px var(--primary-gold);
}

.gallery-item-advanced:hover::after {
    width: 500px;
    height: 500px;
    opacity: 0.1;
}

/* LOADING ANIMATIONS */
.loading-elegant {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--warm-black);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 1s var(--ease-elegant);
}

.loading-spinner {
    width: 100px;
    height: 100px;
    border: 3px solid transparent;
    border-top: 3px solid var(--primary-gold);
    border-radius: 50%;
    animation: spinElegant 2s linear infinite;
    position: relative;
}

.loading-spinner::before {
    content: '';
    position: absolute;
    top: -6px;
    left: -6px;
    right: -6px;
    bottom: -6px;
    border: 3px solid transparent;
    border-bottom: 3px solid var(--accent-gold);
    border-radius: 50%;
    animation: spinElegant 3s linear infinite reverse;
}

/* KEYFRAME ANIMATIONS */
@keyframes titleUnderline {
    to { width: 100%; }
}

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

@keyframes morphBackground {
    0%, 100% { 
        background-position: 0% 50%;
        filter: hue-rotate(0deg);
    }
    50% { 
        background-position: 100% 50%;
        filter: hue-rotate(45deg);
    }
}

@keyframes morphBlob {
    0%, 100% {
        transform: rotate(0deg) scale(1);
        border-radius: 50%;
    }
    33% {
        transform: rotate(120deg) scale(1.1);
        border-radius: 60% 40% 30% 70%;
    }
    66% {
        transform: rotate(240deg) scale(0.9);
        border-radius: 30% 60% 70% 40%;
    }
}

@keyframes parallaxMove {
    0%, 100% {
        transform: translateX(0) translateY(0) scale(1);
    }
    25% {
        transform: translateX(-20px) translateY(-10px) scale(1.02);
    }
    50% {
        transform: translateX(0) translateY(-20px) scale(1);
    }
    75% {
        transform: translateX(20px) translateY(-10px) scale(0.98);
    }
}

@keyframes titleReveal {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes subtitleReveal {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes spinElegant {
    to { transform: rotate(360deg); }
}

/* SCROLL TRIGGERED ANIMATIONS */
.scroll-reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 1s var(--ease-elegant);
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

.scroll-reveal-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 1s var(--ease-elegant);
}

.scroll-reveal-left.revealed {
    opacity: 1;
    transform: translateX(0);
}

.scroll-reveal-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 1s var(--ease-elegant);
}

.scroll-reveal-right.revealed {
    opacity: 1;
    transform: translateX(0);
}

/* RESPONSIVE DESIGN */
@media (max-width: 768px) {
    .hero-title-cinematic {
        font-size: 3rem;
    }
    
    .luxury-card {
        padding: 2rem;
        margin: 1rem 0;
    }
    
    .gallery-grid-advanced {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .btn-luxury {
        padding: 1rem 2rem;
        font-size: 0.9rem;
    }
}

/* ACCESSIBILITY */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}