/* Static Page Enhancements */

/* 1. SCROLL FIX FOR ALL DEVICES (GLOBAL OVERRIDE) */
/* Override the SPA-specific overflow rules from styles.combined.css */
html,
body.static-body {
    height: auto !important;
    /* Allow body to grow with content */
    min-height: 100% !important;
    overflow-y: auto !important;
    /* Force scrollbar */
    overflow-x: hidden !important;
    position: static !important;
    /* Prevent fixed positioning causing stickiness */
}

.static-page {
    min-height: 100vh;
    height: auto !important;
    overflow-y: visible !important;
    position: relative;
    z-index: 1;
}

/* 2. BACKGROUND GRAPHICS */
.static-body {
    background-color: var(--bg-primary);
    background-image:
        radial-gradient(circle at 10% 20%, rgba(139, 92, 246, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(236, 72, 153, 0.15) 0%, transparent 40%);
    background-attachment: fixed;
}

/* Floating blobs decoration */
.bg-blob {
    position: fixed;
    border-radius: 50%;
    filter: blur(80px);
    z-index: -1;
    opacity: 0.4;
    animation: floatBlob 20s infinite ease-in-out;
}

.blob-1 {
    top: -10%;
    left: -10%;
    width: 50vw;
    height: 50vw;
    background: var(--primary-dark);
    animation-delay: 0s;
}

.blob-2 {
    bottom: -10%;
    right: -10%;
    width: 60vw;
    height: 60vw;
    background: var(--accent-color);
    animation-delay: -10s;
}

@keyframes floatBlob {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(30px, -50px) scale(1.1);
    }

    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }
}

/* 3. COOLER BACK BUTTON */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.05);
    /* Glass effect */
    color: var(--text-primary) !important;
    text-decoration: none !important;
    padding: 12px 24px;
    border-radius: 30px;
    margin-bottom: 40px;
    font-size: 14px;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.back-link::before {
    content: '←';
    font-size: 18px;
    transition: transform 0.3s ease;
}

.back-link:hover {
    background: rgba(139, 92, 246, 0.2);
    border-color: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(139, 92, 246, 0.25);
    padding-left: 20px;
    /* Slight expansion */
}

.back-link:hover::before {
    transform: translateX(-4px);
}

/* 4. ENTRY ANIMATIONS */
.animate-enter {
    animation: fadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
    transform: translateY(30px);
}

.delay-1 {
    animation-delay: 0.1s;
}

.delay-2 {
    animation-delay: 0.2s;
}

.delay-3 {
    animation-delay: 0.3s;
}

.delay-4 {
    animation-delay: 0.4s;
}

.delay-5 {
    animation-delay: 0.5s;
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 5. ENHANCED CARD STYLES */
.feature-card,
.contact-card,
.info-card,
.security-item,
.blog-post,
.stat-card,
.category-card,
.coming-soon {
    background: rgba(26, 13, 46, 0.6) !important;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
        border-color 0.3s ease,
        box-shadow 0.3s ease !important;
}

.feature-card:hover,
.contact-card:hover,
.info-card:hover,
.security-item:hover,
.blog-post:hover,
.stat-card:hover,
.category-card:hover {
    transform: translateY(-8px) scale(1.02) !important;
    border-color: var(--primary-light) !important;
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.2) !important;
}

/* Enhanced Typography */
.page-title {
    text-shadow: 0 2px 10px rgba(139, 92, 246, 0.3);
    position: relative;
    display: inline-block;
}

.page-title::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border-radius: 2px;
}