/* Floating Elements Animation - Header Only */
.floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.floating-element {
    position: absolute;
    font-size: 2rem;
    animation: float 15s infinite linear;
    opacity: 0.7;
}

@keyframes float {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    15% {
        opacity: 0.7;
    }
    85% {
        opacity: 0.7;
    }
    100% {
        transform: translateY(-20px) rotate(360deg);
        opacity: 0;
    }
}

/* CSS Variables - must match main pages */
:root {
    --primary: #667eea;
    --secondary: #764ba2;
    --accent: #f093fb;
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-card: rgba(255, 255, 255, 0.95);
    --text-primary: #1a202c;
    --text-secondary: #4a5568;
    --text-muted: #718096;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.1);
    --shadow-2xl: 0 25px 50px rgba(0, 0, 0, 0.15);
    --radius: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-2xl: 20px;
}

/* Footer Styles */
.footer {
    background: linear-gradient(135deg, #1a202c, #2d3748);
    color: white;
    padding: 4rem 0 2rem;
    margin-top: 6rem;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, var(--primary), var(--secondary), var(--accent));
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section {
    animation: fadeInUp 0.8s ease-out;
}

.footer-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-subtitle {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #e2e8f0;
}

.footer-description {
    color: #a0aec0;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-link {
    color: #cbd5e0;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    padding: 0.25rem 0;
}

.footer-link:hover {
    color: var(--primary);
    transform: translateX(5px);
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.social-link {
    color: #cbd5e0;
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 0.5rem 0;
    border-radius: var(--radius);
}

.social-link:hover {
    color: white;
    background: rgba(102, 126, 234, 0.2);
    transform: scale(1.05);
}

.footer-bottom {
    border-top: 1px solid #4a5568;
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.copyright {
    color: #a0aec0;
    font-size: 0.9rem;
}

.footer-decorations {
    display: flex;
    gap: 1rem;
}

.footer-decoration {
    font-size: 1.2rem;
    animation: bounce 3s ease-in-out infinite;
    opacity: 0.7;
}

.footer-decoration:nth-child(1) { animation-delay: 0s; }
.footer-decoration:nth-child(2) { animation-delay: 0.5s; }
.footer-decoration:nth-child(3) { animation-delay: 1s; }

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

@keyframes bounce {
    0%, 20%, 53%, 80%, 100% {
        transform: translate3d(0, 0, 0);
    }
    40%, 43% {
        transform: translate3d(0, -10px, 0);
    }
    70% {
        transform: translate3d(0, -5px, 0);
    }
    90% {
        transform: translate3d(0, -2px, 0);
    }
}

/* Responsive Footer */
@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .social-links {
        flex-direction: row;
        justify-content: center;
    }

    .footer {
        padding: 3rem 0 2rem;
        margin-top: 4rem;
    }

    .footer-title {
        font-size: 1.3rem;
    }

    .footer-subtitle {
        font-size: 1.1rem;
    }
}

/* Container class for consistency */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}