/* ========================================
   HAKYOFF PROFESSIONAL ENHANCEMENTS
   Glitch Effects, Terminal Styles, Icons
   ======================================== */

/* Glitch Title Effect */
.glitch-title {
    font-family: 'Archivo Black', sans-serif;
    font-size: 2.5rem;
    color: #fff;
    letter-spacing: 2px;
    text-transform: uppercase;
    position: relative;
    display: inline-block;
}

.glitch-title .highlight {
    color: #FFD700;
    text-shadow:
        0 0 15px rgba(255, 215, 0, 0.6),
        2px 2px #000,
        -2px -2px rgba(255, 215, 0, 0.3);
}

/* Terminal Tag */
.terminal-tag {
    font-family: 'JetBrains Mono', monospace;
    color: #FFD700;
    font-size: 0.9rem;
    opacity: 0.8;
    display: block;
    margin-bottom: 10px;
}

/* Improved Lucide Icons */
.icon-gold {
    stroke: #FFD700 !important;
    filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.6));
    width: 48px;
    height: 48px;
    stroke-width: 1.5px;
}

.icon-blue {
    stroke: #00D1FF !important;
    filter: drop-shadow(0 0 8px rgba(0, 209, 255, 0.6));
    width: 48px;
    height: 48px;
    stroke-width: 1.5px;
}

.icon-red {
    stroke: #FF4B4B !important;
    filter: drop-shadow(0 0 8px rgba(255, 75, 75, 0.6));
    width: 48px;
    height: 48px;
    stroke-width: 1.5px;
}

.icon-green {
    stroke: #00FF41 !important;
    filter: drop-shadow(0 0 8px rgba(0, 255, 65, 0.6));
    width: 48px;
    height: 48px;
    stroke-width: 1.5px;
}

.icon-wrapper {
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.icon-wrapper svg {
    transition: all 0.3s ease;
}

.level-card:hover .icon-wrapper svg {
    transform: scale(1.1) rotate(5deg);
}

/* Level Cards Enhancement */
.level-card {
    position: relative;
}

.level-card .badge {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 4px 12px;
    border-radius: 4px;
    margin-top: 20px;
    color: #FFD700;
    border: 1px solid rgba(255, 215, 0, 0.3);
}

/* Mentor Cards Professional Style */
.mentor-image-container {
    position: relative;
    height: 350px;
    overflow: hidden;
    background: #111;
}

.mentor-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
    transition: all 0.6s ease;
    opacity: 0.7;
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 60%, #141414 100%);
    pointer-events: none;
}

.mentor-card:hover .mentor-img {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.05);
}

.mentor-info {
    padding: 25px;
    text-align: left;
}

.mentor-info h3 {
    font-family: 'Archivo Black', sans-serif;
    font-size: 1.4rem;
    color: #fff;
    margin-bottom: 5px;
    letter-spacing: 1px;
}

.specialty {
    display: block;
    font-family: 'JetBrains Mono', monospace;
    color: #FFD700;
    font-size: 0.85rem;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.mentor-bio {
    font-family: 'Inter', sans-serif;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 20px;
}

.social-links {
    display: flex;
    gap: 15px;
    color: rgba(255, 255, 255, 0.4);
}

.social-links svg {
    width: 18px;
    cursor: pointer;
    transition: color 0.3s ease;
}

.social-links svg:hover {
    color: #FFD700;
}

/* Terminal Form Styles */
.terminal-window {
    width: 100%;
    max-width: 600px;
    background: #0d0d0d;
    border-radius: 8px;
    overflow: hidden;
    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.5),
        0 0 15px rgba(255, 215, 0, 0.1);
    border: 1px solid #333;
}

.terminal-header {
    background: #1a1a1a;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #333;
}

.terminal-buttons {
    display: flex;
    gap: 6px;
}

.terminal-buttons .btn {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    cursor: pointer;
}

.terminal-buttons .btn.red {
    background: #ff5f56;
}

.terminal-buttons .btn.yellow {
    background: #ffbd2e;
}

.terminal-buttons .btn.green {
    background: #27c93f;
}

.terminal-title {
    margin-left: 20px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    color: #888;
}

.terminal-welcome {
    margin-bottom: 30px;
}

.status-line {
    color: #00FF41;
    margin-bottom: 5px;
    font-family: 'JetBrains Mono', monospace;
}

.instr {
    color: #fff;
    opacity: 0.8;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
}

.terminal-form .form-group {
    margin-bottom: 25px;
    display: flex;
    flex-direction: column;
}

.terminal-form .form-group label {
    color: #FFD700;
    font-size: 14px;
    margin-bottom: 10px;
    font-family: 'JetBrains Mono', monospace;
}

.terminal-form .form-group input,
.terminal-form .form-group select {
    background: #151515;
    border: 1px solid #333;
    padding: 12px;
    color: #fff;
    font-family: 'JetBrains Mono', monospace;
    outline: none;
    transition: all 0.3s;
}

.terminal-form .form-group input:focus,
.terminal-form .form-group select:focus {
    border-color: #FFD700;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.2);
}

.terminal-form .form-group input::placeholder {
    color: #444;
    font-family: 'JetBrains Mono', monospace;
}

.submit-btn {
    width: 100%;
    padding: 15px;
    background: #FFD700;
    color: #000;
    border: none;
    font-weight: bold;
    font-family: 'JetBrains Mono', monospace;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    text-transform: uppercase;
}

.submit-btn:hover {
    background: #fff;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

.blink-cursor {
    animation: blinker 1s linear infinite;
}

@keyframes blinker {
    50% {
        opacity: 0;
    }
}

/* Success Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(8px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    padding: 20px;
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    max-width: 500px;
    width: 100%;
    animation: modal-slide-in 0.4s cubic-bezier(0.18, 0.89, 0.32, 1.28);
}

@keyframes modal-slide-in {
    from {
        transform: translateY(30px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.success-header {
    text-align: center;
    margin-bottom: 30px;
}

.icon-wait {
    color: #FFD700;
    width: 40px;
    height: 40px;
    margin-bottom: 15px;
    animation: rotate-slow 4s linear infinite;
}

@keyframes rotate-slow {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.success-header h3 {
    font-family: 'Archivo Black', sans-serif;
    color: #fff;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.ref-code {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    color: #888;
}

.ref-code .highlight {
    color: #FFD700;
    font-weight: bold;
}

.payment-details {
    background: rgba(255, 255, 255, 0.03);
    padding: 20px;
    border-radius: 4px;
    border: 1px dashed #333;
    margin-bottom: 25px;
}

.info-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
}

.info-row .label {
    color: #888;
}

.info-row .value {
    color: #fff;
}

.info-row .select-all {
    user-select: all;
    color: #FFD700;
    cursor: pointer;
}

.info-row .select-all:hover {
    text-decoration: underline;
}

.whatsapp-box {
    text-align: center;
    border-top: 1px solid #222;
    padding-top: 20px;
}

.whatsapp-box p {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 15px;
    font-family: 'Inter', sans-serif;
}

.whatsapp-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #25D366;
    color: #fff;
    text-decoration: none;
    padding: 14px;
    border-radius: 4px;
    font-weight: bold;
    font-family: 'Inter', sans-serif;
    transition: transform 0.3s;
}

.whatsapp-btn:hover {
    transform: scale(1.02);
    box-shadow: 0 0 20px rgba(37, 211, 102, 0.3);
}

.whatsapp-btn svg {
    width: 20px;
    height: 20px;
}

.close-text-btn {
    background: transparent;
    border: none;
    color: #444;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    width: 100%;
    margin-top: 20px;
    cursor: pointer;
    padding: 10px;
    transition: color 0.3s;
}

.close-text-btn:hover {
    color: #fff;
}

.close-modal {
    cursor: pointer;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .glitch-title {
        font-size: 1.8rem;
    }

    .mentor-image-container {
        height: 250px;
    }

    .terminal-window {
        max-width: 100%;
    }
}

/* ========================================
   MODULE CARDS ICON STYLES
   ======================================== */

/* Icon Box - EXACT SPECIFICATIONS */
.icon-box {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 20px;
    position: relative;
    transition: all 0.3s ease;
    border-radius: 4px;
    /* Optional but looks better */
}

.icon-box svg {
    width: 24px;
    height: 24px;
    stroke-width: 1.5px;
}

/* Red Icon (Defesa) */
.icon-box.red-icon {
    border-color: rgba(255, 75, 75, 0.3);
}

.icon-box.red-icon svg {
    color: #FF4B4B;
    stroke: #FF4B4B;
    filter: drop-shadow(0 0 5px #FF4B4B);
}

/* Yellow/Gold Icon (Hacking) */
.icon-box.gold-icon {
    border-color: rgba(255, 215, 0, 0.3);
}

.icon-box.gold-icon svg {
    color: #FFD700;
    stroke: #FFD700;
    filter: drop-shadow(0 0 5px #FFD700);
}

/* Blue Icon (Mindset) */
.icon-box.blue-icon {
    border-color: rgba(0, 209, 255, 0.3);
}

.icon-box.blue-icon svg {
    color: #00D1FF;
    stroke: #00D1FF;
    filter: drop-shadow(0 0 5px #00D1FF);
}

/* Hover Effect for standard Card implementation */
.card:hover .icon-box,
.module-card:hover .icon-box {
    transform: scale(1.05);
}

/* ========================================
   GLITCH TEXT EFFECT
   ======================================== */

.hakyoff-glitch {
    font-family: 'Archivo Black', sans-serif;
    font-size: 3rem;
    position: relative;
    color: white;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 20px;
}

.hakyoff-glitch .gold {
    color: #FFD700;
}

/* Interference Layers */
.hakyoff-glitch::before,
.hakyoff-glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #0a0a0a;
    /* Matches background */
}

/* Red Interference Layer */
.hakyoff-glitch::before {
    left: 2px;
    text-shadow: -2px 0 #ff00c1;
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim 5s infinite linear alternate-reverse;
}

/* Cyan/Blue Interference Layer */
.hakyoff-glitch::after {
    left: -2px;
    text-shadow: -2px 0 #00fff9, 2px 2px #ff00c1;
    animation: glitch-anim2 1s infinite linear alternate-reverse;
}

@keyframes glitch-anim {
    0% {
        clip: rect(31px, 9999px, 94px, 0);
    }

    20% {
        clip: rect(62px, 9999px, 42px, 0);
    }

    40% {
        clip: rect(16px, 9999px, 78px, 0);
    }

    60% {
        clip: rect(87px, 9999px, 12px, 0);
    }

    80% {
        clip: rect(54px, 9999px, 63px, 0);
    }

    100% {
        clip: rect(29px, 9999px, 91px, 0);
    }
}

@keyframes glitch-anim2 {
    0% {
        clip: rect(10px, 9999px, 20px, 0);
        transform: skew(0.5deg);
    }

    100% {
        clip: rect(80px, 9999px, 100px, 0);
        transform: skew(-0.5deg);
    }
}

@media (max-width: 768px) {
    .hakyoff-glitch {
        font-size: 2rem;
    }
}