/* assets/css/style.css */

:root {
    --bg-color: #030303;
    --card-bg: rgba(12, 12, 12, 0.75);
    --primary-color: #39FF14; /* Neon Green */
    --secondary-color: #00f0ff; /* Neon Blue */
    --text-color: #e2e8f0;
    --border-color: rgba(57, 255, 20, 0.15);
}

body {
    background-color: var(--bg-color);
    background-image: 
        linear-gradient(to right, rgba(57, 255, 20, 0.04) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(57, 255, 20, 0.04) 1px, transparent 1px);
    background-size: 50px 50px;
    color: var(--text-color);
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
    position: relative;
    animation: gridMove 30s linear infinite;
}

/* Moving grid line texture */
body::before {
    content: '';
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(circle at 30% 20%, rgba(57, 255, 20, 0.12) 0%, transparent 50%),
                radial-gradient(circle at 80% 70%, rgba(0, 240, 255, 0.1) 0%, transparent 50%);
    z-index: -2;
    pointer-events: none;
}

/* Background Cyberpunk grid animation */
@keyframes gridMove {
    0% { background-position: 0 0; }
    100% { background-position: 50px 50px; }
}

/* CRT Scanlines Overlay */
.scanlines {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.18) 50%), 
                linear-gradient(90deg, rgba(255, 0, 0, 0.03), rgba(0, 255, 0, 0.01), rgba(0, 255, 0, 0.03));
    background-size: 100% 4px, 6px 100%;
    z-index: 9999;
    pointer-events: none;
    opacity: 0.15;
}

/* Background canvas positioning */
#cyber-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -3;
    pointer-events: none;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Orbitron', sans-serif;
    color: #fff;
}

/* Glassmorphism */
.glass-card {
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.4);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.glass-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary-color);
    box-shadow: 0 0 30px rgba(57, 255, 20, 0.35), inset 0 0 15px rgba(57, 255, 20, 0.08);
}

/* Navbar */
.navbar {
    background: rgba(10, 10, 10, 0.9) !important;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
}

.navbar-brand {
    font-family: 'Orbitron', sans-serif;
    color: var(--primary-color) !important;
    font-weight: bold;
    letter-spacing: 1px;
}

.nav-link {
    color: var(--text-color) !important;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--primary-color) !important;
}

/* Buttons */
.btn-neon {
    background-color: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    border-radius: 4px;
    padding: 10px 20px;
    text-transform: uppercase;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-neon:hover {
    background-color: var(--primary-color);
    color: #000;
    box-shadow: 0 0 15px var(--primary-color);
}

.btn-blue {
    background-color: transparent;
    color: var(--secondary-color);
    border: 1px solid var(--secondary-color);
    border-radius: 4px;
    padding: 10px 20px;
    text-transform: uppercase;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-blue:hover {
    background-color: var(--secondary-color);
    color: #000;
    box-shadow: 0 0 15px var(--secondary-color);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: radial-gradient(circle at center, #111 0%, var(--bg-color) 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: url('https://www.transparenttextures.com/patterns/cubes.png');
    opacity: 0.1;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.neon-text {
    text-shadow: 0 0 10px var(--primary-color), 0 0 20px var(--primary-color);
}

/* Footer */
footer {
    background: #0f0f0f;
    border-top: 1px solid var(--border-color);
    padding: 40px 0 20px;
}

/* Form Controls */
.form-control, .form-select {
    background-color: #1a1a1a;
    border: 1px solid var(--border-color);
    color: #fff;
}

.form-control:focus, .form-select:focus {
    background-color: #1a1a1a;
    border-color: var(--primary-color);
    color: #fff;
    box-shadow: 0 0 5px rgba(57, 255, 20, 0.5);
}
/* Animations */
.loading-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: var(--bg-color);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease;
}

.cyber-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid transparent;
    border-top-color: var(--primary-color);
    border-bottom-color: var(--secondary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin { 100% { transform: rotate(360deg); } }
/* Floating Buttons */
.floating-btn {
    position: fixed;
    bottom: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 30px;
    color: #fff;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
    z-index: 1000;
    transition: transform 0.3s ease;
    border: none;
    text-decoration: none;
}
.floating-btn:hover {
    transform: scale(1.1);
    color: #fff;
}
.whatsapp-float {
    left: 30px;
    background-color: #25d366;
}
.whatsapp-float::before {
    content: "Can I help you?";
    position: absolute;
    bottom: calc(100% + 12px);
    left: 0;
    background-color: #fff;
    color: #128c7e;
    padding: 6px 14px;
    border-radius: 20px;
    border-bottom-left-radius: 2px;
    font-size: 14px;
    font-weight: bold;
    font-family: 'Inter', sans-serif;
    white-space: nowrap;
    box-shadow: 0 4px 15px rgba(0,0,0,0.4);
    pointer-events: none;
}
.whatsapp-float::after {
    content: "";
    position: absolute;
    bottom: calc(100% + 4px);
    left: 12px;
    border-width: 8px 8px 0;
    border-style: solid;
    border-color: #fff transparent transparent transparent;
    pointer-events: none;
}
.whatsapp-float:hover {
    background-color: #128c7e;
    box-shadow: 0 0 15px rgba(37, 211, 102, 0.5);
}
.ai-float {
    right: 30px;
    background-color: var(--primary-color);
    color: #000;
}
.ai-float:hover {
    background-color: #32e612;
    color: #000;
    box-shadow: 0 0 15px var(--primary-color);
}
.ai-chat-box {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 350px;
    background: rgba(15, 15, 15, 0.95);
    z-index: 1000;
    display: flex;
    flex-direction: column;
}
.ai-chat-body::-webkit-scrollbar {
    width: 5px;
}
.ai-chat-body::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 5px;
}

/* Global Hacking/Cyberpunk Overrides */
section, .bg-dark:not(.loading-overlay):not(.alert) {
    background: transparent !important;
    background-color: transparent !important;
}

.alert.bg-dark {
    background-color: rgba(15, 15, 15, 0.95) !important;
}

footer {
    background: rgba(5, 5, 5, 0.7) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid rgba(57, 255, 20, 0.15) !important;
}

/* Simulated Hacking Terminal Card */
.terminal-card {
    border: 1px solid rgba(57, 255, 20, 0.3) !important;
    border-radius: 12px;
    box-shadow: 0 0 20px rgba(57, 255, 20, 0.15), inset 0 0 15px rgba(0, 0, 0, 0.9) !important;
}

/* Pulse Badge Hacking Simulation */
.pulse-badge {
    animation: badgePulse 2s infinite alternate;
    font-weight: bold;
    letter-spacing: 1px;
    box-shadow: 0 0 10px rgba(220, 53, 69, 0.5);
}

@keyframes badgePulse {
    0% { opacity: 0.6; box-shadow: 0 0 5px rgba(220, 53, 69, 0.3); }
    100% { opacity: 1; box-shadow: 0 0 15px rgba(220, 53, 69, 0.8); }
}

/* Cyber Glitch Hacking Text Effect */
.glitch-text {
    position: relative;
    color: #fff;
    text-shadow: 0 0 10px var(--primary-color), 0 0 20px var(--primary-color);
}

.glitch-text::before, .glitch-text::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    color: #fff;
}

.glitch-text::before {
    left: 2px;
    text-shadow: -2px 0 #ff00c1;
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim 4s infinite linear alternate-reverse;
}

.glitch-text::after {
    left: -2px;
    text-shadow: -2px 0 #00fff9, 2px 2px #ff00c1;
    clip: rect(85px, 450px, 140px, 0);
    animation: glitch-anim2 4s infinite linear alternate-reverse;
}

@keyframes glitch-anim {
    0% { clip: rect(15px, 9999px, 66px, 0); }
    100% { clip: rect(34px, 9999px, 55px, 0); }
}

@keyframes glitch-anim2 {
    0% { clip: rect(70px, 9999px, 105px, 0); }
    100% { clip: rect(12px, 9999px, 85px, 0); }
}

/* High-Contrast Cyberpunk Text Contrast & Legibility Overrides */
.text-muted {
    color: rgba(255, 255, 255, 0.6) !important;
}

.form-control::placeholder, .form-select::placeholder {
    color: rgba(255, 255, 255, 0.38) !important;
}

/* Futuristic Cyberpunk Payment Cards */
.payment-card {
    background: rgba(15, 15, 15, 0.6) !important;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    border-radius: 12px;
    padding: 1.2rem;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
    position: relative;
    overflow: hidden;
}

/* Subtle scanning grid line inside each card */
.payment-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(57, 255, 20, 0.05) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.payment-card:hover {
    transform: translateY(-5px);
    border-color: rgba(57, 255, 20, 0.5) !important;
    box-shadow: 0 8px 20px rgba(57, 255, 20, 0.15), 0 0 10px rgba(57, 255, 20, 0.05);
}

.payment-card:hover::before {
    opacity: 1;
}

/* Toggled Active Styles for selected card */
.payment-card.active-payment {
    border-color: #39ff14 !important; /* Cyber neon green border */
    background: rgba(15, 25, 15, 0.8) !important;
    box-shadow: 0 0 25px rgba(57, 255, 20, 0.3), inset 0 0 12px rgba(57, 255, 20, 0.1) !important;
    transform: translateY(-5px) scale(1.02);
}

/* Neon title glow on active card */
.payment-card.active-payment h5 {
    text-shadow: 0 0 8px currentColor;
    font-weight: bold;
}

/* Active indicator checkmark */
.payment-card::after {
    content: '✓';
    position: absolute;
    top: 10px;
    right: 10px;
    width: 22px;
    height: 22px;
    background: #39ff14;
    color: #000;
    border-radius: 50%;
    font-size: 12px;
    font-weight: bold;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transform: scale(0.5);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 0 8px #39ff14;
}

.payment-card.active-payment::after {
    opacity: 1;
    transform: scale(1);
}

/* Mobile Responsive Optimizations for Dual-Column Grids */
@media (max-width: 576px) {
    /* Tighten layout container margins */
    .container {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }
    
    /* Make card padding tighter and rounded corners more subtle */
    .glass-card {
        padding: 10px !important;
        border-radius: 10px !important;
    }
    
    /* Optimize Aspect-Ratio Containers margin-bottom */
    .glass-card .mb-3 {
        margin-bottom: 8px !important;
    }
    
    /* Downscale product and course card titles */
    .glass-card h4, .glass-card h5 {
        font-size: 0.88rem !important;
        font-weight: 600 !important;
        line-height: 1.25 !important;
        margin-bottom: 6px !important;
    }
    
    /* Scale down descriptions to fit neatly */
    .glass-card p {
        font-size: 0.72rem !important;
        line-height: 1.3 !important;
        margin-bottom: 8px !important;
    }
    
    /* Shrink small items like price tags, clock, and categories */
    .glass-card .badge {
        font-size: 0.6rem !important;
        padding: 3px 6px !important;
    }
    
    .glass-card .fw-bold {
        font-size: 0.82rem !important;
    }
    
    .glass-card .text-muted.small, .glass-card .small {
        font-size: 0.65rem !important;
    }
    
    /* Shrink the button elements to align perfectly */
    .glass-card .btn {
        font-size: 0.72rem !important;
        padding: 5px 8px !important;
        margin-top: 8px !important;
    }
    
    /* Adjust standard layout margin top on mobile */
    .py-5 {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }
}

/* ===== Services Section ===== */
.service-card-hover {
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.service-card-hover:hover {
    transform: translateY(-8px);
    border-color: var(--accent-glow) !important;
    box-shadow: 0 0 25px var(--accent-glow), inset 0 0 10px var(--accent-glow) !important;
}
.service-card-hover i {
    transition: transform 0.3s ease;
}
.service-card-hover:hover i {
    transform: scale(1.15);
}

@media (max-width: 576px) {
    .service-icon-wrapper {
        width: 40px !important;
        height: 40px !important;
    }
    .service-icon-wrapper i {
        font-size: 1.25rem !important;
    }
    .service-title-text {
        font-size: 0.85rem !important;
        line-height: 1.2;
    }
    .service-desc-text {
        font-size: 0.7rem !important;
        line-height: 1.3;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
        margin-bottom: 8px !important;
    }
    .service-price-label {
        font-size: 0.65rem !important;
    }
    .service-price-text {
        font-size: 0.85rem !important;
    }
}

/* Mobile & Tablet performance override to prevent high repaint lag & layout thrashing */
@media (max-width: 991px) {
    body {
        animation: none !important; /* Disables continuous grid movement to prevent browser lag on scroll */
    }
    
    /* Disable GPU-heavy live glass blur filter on mobile to eliminate scroll stutter */
    .glass-card, .payment-card, .navbar, .ai-chat-box {
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        background-color: rgba(12, 12, 12, 0.96) !important;
    }
    
    /* Hide CPU-heavy fixed CRT gradient scanlines overlay on mobile */
    .scanlines {
        display: none !important;
    }
}


