/* --- GLOBAL & FONTS --- */
@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;700&family=Inter:wght@400;600;800&display=swap');

body {
    font-family: 'Inter', sans-serif;
}

/* --- CUSTOM SCROLLBAR (Hacker Style) --- */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #0f172a; 
}
::-webkit-scrollbar-thumb {
    background: #334155; 
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #22c55e; 
}

/* --- GLITCH TEXT EFFECT --- */
.glitch-text {
    position: relative;
    color: white;
}
.glitch-text::before, .glitch-text::after {
    content: attr(data-text);
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: #0f172a;
}
.glitch-text::before {
    left: 2px; text-shadow: -1px 0 #ff00c1;
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim 5s infinite linear alternate-reverse;
}
.glitch-text::after {
    left: -2px; text-shadow: -1px 0 #00fff9;
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim2 5s infinite linear alternate-reverse;
}

@keyframes glitch-anim {
    0% { clip: rect(31px, 9999px, 94px, 0); }
    20% { clip: rect(6px, 9999px, 4px, 0); }
    40% { clip: rect(58px, 9999px, 49px, 0); }
    60% { clip: rect(18px, 9999px, 63px, 0); }
    80% { clip: rect(98px, 9999px, 20px, 0); }
    100% { clip: rect(11px, 9999px, 83px, 0); }
}
@keyframes glitch-anim2 {
    0% { clip: rect(65px, 9999px, 100px, 0); }
    20% { clip: rect(2px, 9999px, 79px, 0); }
    40% { clip: rect(27px, 9999px, 25px, 0); }
    60% { clip: rect(92px, 9999px, 11px, 0); }
    80% { clip: rect(45px, 9999px, 3px, 0); }
    100% { clip: rect(4px, 9999px, 89px, 0); }
}

/* --- FLOATING ICONS (Header) --- */
.floating-icon {
    position: absolute;
    opacity: 0.1;
    animation: float 6s ease-in-out infinite;
    pointer-events: none;
}
.delay-1 { animation-delay: 0s; }
.delay-2 { animation-delay: 2s; }
.delay-3 { animation-delay: 4s; }

@keyframes float {
    0% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(10deg); }
    100% { transform: translateY(0px) rotate(0deg); }
}

/* --- TERMINAL BOX --- */
.terminal-box {
    background: #0f172a; /* Slate 900 */
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    border: 1px solid #334155;
    overflow: hidden;
    font-family: 'JetBrains Mono', monospace;
}
.terminal-header {
    background: #1e293b;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #334155;
}
.dot { width: 12px; height: 12px; border-radius: 50%; margin-right: 6px; }
.dot-red { background: #ff5f56; }
.dot-yellow { background: #ffbd2e; }
.dot-green { background: #27c93f; }
.terminal-body { padding: 20px; color: #cbd5e1; }

/* --- BUTTON STYLES --- */
.view-full-btn {
    font-size: 10px;
    font-weight: bold;
    text-transform: uppercase;
    padding: 6px 16px;
    border-radius: 20px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: all 0.3s;
}
.locked-btn {
    background: #f1f5f9;
    color: #64748b;
    border: 1px solid #cbd5e1;
}
.locked-btn:hover {
    background: #e2e8f0;
    color: #0f172a;
}
.unlocked-btn {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #86efac;
}
.unlocked-btn:hover {
    background: #bbf7d0;
    transform: scale(1.05);
}

/* --- GLASS CARD EFFECT --- */
.glass-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.1);
    transition: transform 0.3s ease;
}
.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(31, 38, 135, 0.15);
}

/* --- TOOL CARDS --- */
.tool-card {
    background: white;
    border: 1px solid #e2e8f0;
    transition: all 0.3s;
    cursor: pointer;
}
.tool-card:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    border-color: #3b82f6;
}

/* --- NOTIFICATION ANIMATION (Just Enrolled) --- */
.notify-enter {
    animation: slideUpFade 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.notify-exit {
    animation: slideDownFade 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes slideUpFade {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes slideDownFade {
    from { opacity: 1; transform: translateY(0); }
    to { opacity: 0; transform: translateY(-20px); }
}

/* --- CERTIFICATE 3D WRAPPER --- */
.cert-container {
    perspective: 1000px; /* Important for 3D effect */
}
.cert-3d-wrapper {
    transition: transform 0.1s;
    transform-style: preserve-3d;
}
.gold-text {
    background: linear-gradient(to right, #bf953f, #fcf6ba, #b38728, #fbf5b7, #aa771c);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* --- LOADER --- */
.loader {
    border: 4px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top: 4px solid #4ade80; /* Green */
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* --- PRICE BUTTON PULSE --- */
.price-box-anim {
    animation: pulse-glow 2s infinite;
}
@keyframes pulse-glow {
    0% { box-shadow: 0 0 0 0 rgba(234, 179, 8, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(234, 179, 8, 0); }
    100% { box-shadow: 0 0 0 0 rgba(234, 179, 8, 0); }
}