/* © 2027 GioCombo Studios | Cyber-Dev V5.0 */

/* =========================================
   VARIABLES & NEON THEME
   ========================================= */
:root {
    --bg-main: #050505;
    --bg-alt: #0a0a0c;
    --bg-glass: rgba(5, 5, 5, 0.7);
    
    --neon-cyan: #00f0ff;
    --neon-purple: #8a2be2;
    --neon-pink: #ff003c;
    
    --text-main: #e2e8f0;
    --text-muted: #64748b;
    --text-terminal: #00f0ff;
    
    --border-light: rgba(0, 240, 255, 0.15);
    --border-glow: rgba(0, 240, 255, 0.5);
    
    --font-sys: 'Space Grotesk', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}

/* =========================================
   RESET & BASE
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    font-family: var(--font-sys);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Grid Background */
.grid-bg {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background-image: 
        linear-gradient(rgba(0, 240, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 240, 255, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    z-index: -2;
    pointer-events: none;
    perspective: 1000px;
}

/* Custom Cursor Glow */
.cursor-glow {
    position: fixed;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(0, 240, 255, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: -1;
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul { list-style: none; }

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

/* =========================================
   CYBER UTILITIES
   ========================================= */
.cyber-glass {
    background: var(--bg-glass);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-light);
}

.cyber-border {
    position: relative;
    background: var(--bg-alt);
    border: 1px solid var(--border-light);
    transition: all 0.4s ease;
}

.cyber-border:hover {
    border-color: var(--neon-cyan);
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.2), inset 0 0 15px rgba(0, 240, 255, 0.05);
}

/* Glitch Effect */
.glitch {
    position: relative;
    color: var(--text-main);
}
.glitch::before, .glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.8;
}
.glitch::before {
    left: 2px;
    text-shadow: -2px 0 var(--neon-pink);
    clip: rect(24px, 550px, 90px, 0);
    animation: glitch-anim 3s infinite linear alternate-reverse;
}
.glitch::after {
    left: -2px;
    text-shadow: -2px 0 var(--neon-cyan);
    clip: rect(85px, 550px, 140px, 0);
    animation: glitch-anim 2.5s infinite linear alternate-reverse;
}

@keyframes glitch-anim {
    0% { clip: rect(10px, 9999px, 86px, 0); }
    20% { clip: rect(32px, 9999px, 14px, 0); }
    40% { clip: rect(98px, 9999px, 50px, 0); }
    60% { clip: rect(40px, 9999px, 98px, 0); }
    80% { clip: rect(2px, 9999px, 60px, 0); }
    100% { clip: rect(80px, 9999px, 34px, 0); }
}

.text-neon {
    color: var(--neon-cyan);
    text-shadow: 0 0 10px var(--border-glow);
}

/* =========================================
   CUSTOM SCROLLBAR & SELECTION
   ========================================= */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-main); border-left: 1px solid var(--border-light); }
::-webkit-scrollbar-thumb { background: var(--neon-cyan); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #fff; box-shadow: 0 0 10px var(--neon-cyan); }
::selection { background: var(--neon-cyan); color: var(--bg-main); }
::-moz-selection { background: var(--neon-cyan); color: var(--bg-main); }

/* =========================================
   PAGE TRANSITION
   ========================================= */
.page-transition-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    background: var(--bg-main);
    z-index: 99999;
    opacity: 1;
    pointer-events: none;
    transition: opacity 0.4s ease;
}
.page-transition-overlay.loaded {
    opacity: 0;
}

/* =========================================
   TERMINAL FOOTER
   ========================================= */
.terminal-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(2, 2, 3, 0.95);
    border-top: 1px solid var(--border-light);
    backdrop-filter: blur(10px);
    z-index: 900;
    padding: 8px 0;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    box-shadow: 0 -5px 20px rgba(0, 240, 255, 0.05);
}

.terminal-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-muted);
}

.tb-prompt { color: #00ff00; margin-right: 8px; }
.tb-cmd { color: var(--text-main); }

.tb-right {
    display: flex;
    gap: 20px;
    align-items: center;
}

.tb-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.tb-item i { color: var(--neon-cyan); }
#live-ping { color: var(--neon-cyan); font-weight: bold; }
#live-uptime { color: var(--neon-purple); font-weight: bold; }

.tb-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 1.1rem;
    transition: 0.3s;
}
.tb-link:hover {
    color: var(--neon-cyan);
    transform: translateY(-2px);
}
.tb-link.btn-discord:hover { color: #5865F2; }
.tb-link.btn-ts:hover { color: #2589CC; }

/* =========================================
   HEADER & NAVIGATION
   ========================================= */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: all 0.4s ease;
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-mono);
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 2px;
}

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-item {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--text-muted);
    position: relative;
    padding: 5px 10px;
}

.nav-prefix {
    color: var(--neon-purple);
    margin-right: 5px;
}

.nav-item:hover, .nav-item.active {
    color: var(--neon-cyan);
    background: rgba(0, 240, 255, 0.05);
}

.lang-switch {
    display: flex;
    gap: 10px;
    font-family: var(--font-mono);
    font-size: 0.85rem;
}

.lang-opt { color: var(--text-muted); }
.lang-opt:hover, .lang-opt.active { color: var(--neon-cyan); text-shadow: 0 0 5px var(--neon-cyan); }

.mobile-toggle {
    display: none;
    font-size: 1.2rem;
    color: var(--neon-cyan);
    cursor: pointer;
}

/* =========================================
   LAYOUT
   ========================================= */
main {
    min-height: 80vh;
}

/* =========================================
   FOOTER (SYS STATUS)
   ========================================= */
.footer {
    margin-top: 100px;
    padding: 30px 0;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    border-top: 1px solid var(--border-light);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.sys-status {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #00ff00;
}

.status-indicator {
    width: 8px;
    height: 8px;
    background: #00ff00;
    border-radius: 50%;
    box-shadow: 0 0 10px #00ff00;
}

.blink { animation: blink 2s infinite; }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }

.footer-links {
    display: flex;
    gap: 20px;
}

.cyber-link {
    color: var(--text-muted);
}
.cyber-link:hover { color: var(--neon-cyan); }

.sys-copyright {
    display: flex;
    gap: 20px;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* =========================================
   UPLINK MODAL (CONTACT & NETWORKS)
   ========================================= */
.cyber-modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.cyber-modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.cyber-modal-box {
    width: 90%;
    max-width: 800px;
    background: linear-gradient(145deg, rgba(15, 15, 18, 0.95), rgba(5, 5, 8, 0.98));
    padding: 50px;
    border-radius: 12px;
    position: relative;
    transform: scale(0.9) translateY(20px);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 0 50px rgba(0, 240, 255, 0.1);
}

.cyber-modal-overlay.active .cyber-modal-box {
    transform: scale(1) translateY(0);
}

.modal-close {
    position: absolute;
    top: 25px; right: 25px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 100;
}

.modal-close:hover {
    color: var(--neon-pink);
    transform: rotate(90deg);
}

.modal-title {
    font-size: 2.2rem;
    margin-bottom: 10px;
}

.modal-desc {
    color: var(--neon-cyan);
    font-family: var(--font-mono);
    margin-bottom: 40px;
}

.modal-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.ms-title {
    font-family: var(--font-sys);
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border-light);
    padding-bottom: 10px;
}

.cyber-modal-btn {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    margin-bottom: 15px;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-main);
    font-family: var(--font-mono);
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.cyber-modal-btn i { font-size: 1.5rem; }

/* Custom Brand Colors for Modal Buttons */
.btn-discord:hover {
    background: rgba(88, 101, 242, 0.15);
    border-color: #5865F2;
    box-shadow: 0 0 15px rgba(88, 101, 242, 0.3);
    color: #5865F2;
}
.btn-ts:hover {
    background: rgba(37, 137, 204, 0.15);
    border-color: #2589CC;
    box-shadow: 0 0 15px rgba(37, 137, 204, 0.3);
    color: #2589CC;
}
.btn-web:hover {
    background: rgba(0, 240, 255, 0.1);
    border-color: var(--neon-cyan);
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.3);
    color: var(--neon-cyan);
}

.modal-footer {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid var(--border-light);
    font-family: var(--font-mono);
    color: var(--text-muted);
}
.modal-footer a { color: var(--neon-purple); text-decoration: none; }
.modal-footer a:hover { color: var(--text-main); text-shadow: 0 0 10px var(--neon-purple); }

/* =========================================
   ANIMATIONS
   ========================================= */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* =========================================
   SCROLL NAV BUTTONS
   ========================================= */
.scroll-nav-btns {
    position: fixed;
    bottom: 50px;
    right: 30px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 1500;
}

.scroll-btn {
    width: 35px;
    height: 35px;
    border-radius: 5px;
    background: rgba(10, 10, 12, 0.6);
    border: 1px solid var(--border-light);
    color: var(--text-muted);
    font-size: 0.85rem;
    cursor: pointer;
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
}

.scroll-btn:hover {
    background: rgba(0, 240, 255, 0.1);
    color: var(--neon-cyan);
    border-color: var(--neon-cyan);
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.3);
}

/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 768px) {
    .container { padding: 0 20px; }
    .mobile-toggle { display: block; }
    .nav-links {
        position: fixed;
        top: 0; left: 0; width: 100vw; height: 100vh;
        background: var(--bg-main);
        flex-direction: column;
        justify-content: center;
        gap: 30px;
        opacity: 0;
        pointer-events: none;
        transition: 0.4s ease;
        z-index: 999;
    }
    .nav-links.active { opacity: 1; pointer-events: all; }
    
    /* Footer Mobile */
    .terminal-footer { font-size: 0.75rem; padding: 10px 0; }
    .tb-left { display: none; }
    .tb-right { 
        justify-content: center; 
        width: 100%; 
        gap: 15px; 
        flex-wrap: wrap; 
    }
    
    /* Modal Mobile */
    .cyber-modal-box { padding: 30px 20px; }
    .modal-grid { grid-template-columns: 1fr; gap: 20px; }
    .modal-title { 
        font-size: 1.2rem; 
        word-wrap: break-word;
        padding-right: 30px; /* Space for close button */
    }
    .cyber-modal-btn { font-size: 0.8rem; padding: 12px 15px; }
}

/* =========================================
   CYBER LIGHTBOX (IMAGE VIEWER)
   ========================================= */
.cyber-lightbox {
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(5, 5, 5, 0.95);
    backdrop-filter: blur(10px);
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.cyber-lightbox.active {
    opacity: 1;
    pointer-events: all;
}

.lightbox-content {
    max-width: 90vw;
    max-height: 90vh;
    border: 2px solid var(--neon-cyan);
    box-shadow: 0 0 50px rgba(0, 240, 255, 0.2);
    border-radius: 8px;
    transform: scale(0.8);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.cyber-lightbox.active .lightbox-content {
    transform: scale(1);
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 40px;
    font-size: 2rem;
    color: var(--neon-pink);
    cursor: pointer;
    transition: transform 0.3s ease, color 0.3s ease;
}

.lightbox-close:hover {
    color: var(--neon-cyan);
    transform: rotate(90deg);
}