/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    overflow-x: hidden;
    height: 100vh;
    background: #0a0a0a;
}

/* Background Container */
.background-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

/* Gradient Animation Layer */
.gradient-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, 
        #1e3c72 0%, 
        #2a5298 25%, 
        #764ba2 50%, 
        #667eea 75%, 
        #f093fb 100%);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    opacity: 0.8;
}

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

/* Particles Container */
.particles-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.particle {
    position: absolute;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    pointer-events: none;
    animation: float 20s infinite linear;
}

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

/* Geometric Shapes */
.shapes-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.shape {
    position: absolute;
    opacity: 0.1;
    animation: shapeFloat 25s infinite ease-in-out;
}

.shape-1 {
    width: 100px;
    height: 100px;
    background: linear-gradient(45deg, #ff6b6b, #ee5a6f);
    border-radius: 20px;
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.shape-2 {
    width: 80px;
    height: 80px;
    background: linear-gradient(45deg, #4ecdc4, #44a08d);
    border-radius: 50%;
    top: 20%;
    right: 15%;
    animation-delay: -5s;
}

.shape-3 {
    width: 120px;
    height: 120px;
    background: linear-gradient(45deg, #feca57, #ff9ff3);
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
    bottom: 30%;
    left: 20%;
    animation-delay: -10s;
}

.shape-4 {
    width: 60px;
    height: 60px;
    background: linear-gradient(45deg, #a8edea, #fed6e3);
    border-radius: 10px;
    top: 50%;
    right: 30%;
    animation-delay: -15s;
}

.shape-5 {
    width: 90px;
    height: 90px;
    background: linear-gradient(45deg, #d299c2, #fef9d7);
    border-radius: 50%;
    bottom: 20%;
    right: 10%;
    animation-delay: -20s;
}

@keyframes shapeFloat {
    0%, 100% {
        transform: translateY(0) rotate(0deg) scale(1);
    }
    25% {
        transform: translateY(-20px) rotate(90deg) scale(1.1);
    }
    50% {
        transform: translateY(10px) rotate(180deg) scale(0.9);
    }
    75% {
        transform: translateY(-10px) rotate(270deg) scale(1.05);
    }
}

/* Wave Animation */
.wave-container {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 150px;
    pointer-events: none;
}

.wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.4;
}

.wave-2 {
    animation-delay: -2s;
    opacity: 0.2;
}

.wave-path {
    fill: rgba(255, 255, 255, 0.1);
    animation: waveAnimation 8s ease-in-out infinite;
}

@keyframes waveAnimation {
    0%, 100% {
        d: path("M0,120 L0,60 Q300,0 600,60 T1200,60 L1200,120 Z");
    }
    50% {
        d: path("M0,120 L0,80 Q300,20 600,80 T1200,80 L1200,120 Z");
    }
}

/* Content Overlay */
.content-overlay {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
}

.content-container {
    text-align: center;
    color: white;
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 40px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.main-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
    background: linear-gradient(45deg, #fff, #f0f0f0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.subtitle {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
    line-height: 1.6;
}

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

.control-btn {
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 25px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    backdrop-filter: blur(10px);
}

.control-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Responsive Design */
@media (max-width: 768px) {
    .main-title {
        font-size: 2rem;
    }
    
    .subtitle {
        font-size: 1rem;
    }
    
    .content-container {
        padding: 30px 20px;
    }
    
    .controls {
        flex-direction: column;
        align-items: center;
    }
    
    .control-btn {
        width: 200px;
    }
    
    .shape {
        opacity: 0.05;
    }
    
    .shape-1, .shape-3 {
        width: 60px;
        height: 60px;
    }
    
    .shape-2, .shape-5 {
        width: 50px;
        height: 50px;
    }
    
    .shape-4 {
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 480px) {
    .main-title {
        font-size: 1.5rem;
    }
    
    .content-container {
        padding: 20px 15px;
    }
    
    .wave-container {
        height: 80px;
    }
}

/* Animation State Classes */
.particles-hidden .particle {
    display: none;
}

.shapes-hidden .shape {
    display: none;
}

.waves-hidden .wave {
    display: none;
}

/* Color Scheme Variations */
.color-scheme-ocean .gradient-layer {
    background: linear-gradient(45deg, 
        #667eea 0%, 
        #764ba2 25%, 
        #f093fb 50%, 
        #f5576c 75%, 
        #4facfe 100%);
}

.color-scheme-sunset .gradient-layer {
    background: linear-gradient(45deg, 
        #fa709a 0%, 
        #fee140 25%, 
        #fa709a 50%, 
        #fee140 75%, 
        #fa709a 100%);
}

.color-scheme-forest .gradient-layer {
    background: linear-gradient(45deg, 
        #134e5e 0%, 
        #71b280 25%, 
        #134e5e 50%, 
        #71b280 75%, 
        #134e5e 100%);
}

.color-scheme-space .gradient-layer {
    background: linear-gradient(45deg, 
        #2c3e50 0%, 
        #fd746c 25%, 
        #2c3e50 50%, 
        #fd746c 75%, 
        #2c3e50 100%);
}
