/* css/custom.css */
/* Premium cyber-adventure and kids-tech layout styles */

/* Global Smooth Scroll */
html {
    scroll-behavior: smooth;
    font-family: 'Poppins', 'Outfit', 'Inter', system-ui, sans-serif;
}

/* Cyber Blueprint Background Grid */
.bg-cyber-grid {
    background-size: 40px 40px;
    background-image: 
        linear-gradient(to right, rgba(139, 92, 246, 0.05) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(139, 92, 246, 0.05) 1px, transparent 1px);
    background-color: #0f172a; /* Slate 900 base for high-contrast dark theme elements */
}

/* Playful Techy Light Grid for white sections */
.bg-light-grid {
    background-size: 30px 30px;
    background-image: 
        linear-gradient(to right, rgba(99, 102, 241, 0.04) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(99, 102, 241, 0.04) 1px, transparent 1px);
    background-color: #fafafa;
}

/* Neon Glow Card Effects */
.glow-indigo {
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.15);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.glow-indigo:hover {
    box-shadow: 0 0 25px rgba(99, 102, 241, 0.35);
    transform: translateY(-4px);
}

.glow-purple {
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.15);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.glow-purple:hover {
    box-shadow: 0 0 25px rgba(139, 92, 246, 0.35);
    transform: translateY(-4px);
}

.glow-cyan {
    box-shadow: 0 0 15px rgba(6, 182, 212, 0.15);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.glow-cyan:hover {
    box-shadow: 0 0 25px rgba(6, 182, 212, 0.35);
    transform: translateY(-4px);
}

/* Custom Micro-Animations */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}
.animate-float {
    animation: float 4s ease-in-out infinite;
}

@keyframes pulse-slow {
    0%, 100% { opacity: 0.9; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.02); }
}
.animate-pulse-slow {
    animation: pulse-slow 3s ease-in-out infinite;
}

/* Customized Scrollbar for Tech Look */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: #0f172a;
}
::-webkit-scrollbar-thumb {
    background: #4f46e5;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #6366f1;
}

/* --- PRINT RULES FOR DYNAMIC CERTIFICATE --- */
@media print {
    /* Set page dimension to Landscape A4 */
    @page {
        size: A4 landscape;
        margin: 0;
    }
    
    /* Suppress browser native headers/footers */
    body {
        margin: 0;
        background: #ffffff;
        color: #000000;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
    
    /* Hide everything other than the certificate container */
    header, footer, nav, .no-print {
        display: none !important;
    }
    
    /* Standardize certificate to occupy full page correctly */
    .certificate-container {
        width: 100% !important;
        height: 100vh !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 2.5rem !important;
        border: none !important;
        box-shadow: none !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: space-between !important;
        background: #ffffff !important;
    }
    
    .certificate-border {
        border: 15px double #4f46e5 !important;
        height: 100% !important;
        box-sizing: border-box !important;
        padding: 2.5rem !important;
        background: #ffffff !important;
    }
}
