/* ============================================
   HALOCORE - Shared Cyberpunk Stylesheet
   Theme: Cyan #00f0ff | Magenta #ff00ff
   Background: #050505 | Panels: rgba(10,10,15,0.9)
   Fonts: Orbitron (headings) | Rajdhani (body)
   ============================================ */

/* ---- Reset ---- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* ---- Base ---- */
body {
    font-family: 'Rajdhani', sans-serif;
    background: #050505;
    color: #fff;
    overflow-x: hidden;
    cursor: crosshair;
}

a, button, .clickable {
    cursor: pointer;
}

/* ---- Font Utilities ---- */
.font-orbitron {
    font-family: 'Orbitron', monospace;
}

.font-rajdhani {
    font-family: 'Rajdhani', sans-serif;
}

/* ---- Cyber Grid Overlay ---- */
.cyber-grid {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        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: 50px 50px;
    animation: gridMove 20s linear infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes gridMove {
    0% { transform: perspective(500px) rotateX(60deg) translateY(0); }
    100% { transform: perspective(500px) rotateX(60deg) translateY(50px); }
}

/* ---- CRT Scanline Effect ---- */
.scanlines::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0, 240, 255, 0.02) 2px,
        rgba(0, 240, 255, 0.02) 4px
    );
    pointer-events: none;
    z-index: 1000;
}

/* ---- Neon Text Glow ---- */
.neon-cyan {
    color: #00f0ff;
    text-shadow: 0 0 10px #00f0ff, 0 0 20px #00f0ff, 0 0 40px #00f0ff;
}

.neon-pink {
    color: #ff00ff;
    text-shadow: 0 0 10px #ff00ff, 0 0 20px #ff00ff, 0 0 40px #ff00ff;
}

/* ---- Cyber Panels ---- */
.cyber-panel {
    background: rgba(10, 10, 15, 0.9);
    border: 1px solid rgba(0, 240, 255, 0.3);
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.1), inset 0 0 20px rgba(0, 240, 255, 0.05);
    position: relative;
}

.cyber-panel::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    width: 10px;
    height: 10px;
    border-top: 2px solid #00f0ff;
    border-left: 2px solid #00f0ff;
}

.cyber-panel::after {
    content: '';
    position: absolute;
    bottom: -1px;
    right: -1px;
    width: 10px;
    height: 10px;
    border-bottom: 2px solid #00f0ff;
    border-right: 2px solid #00f0ff;
}

/* Pink variant */
.cyber-panel-pink {
    border-color: rgba(255, 0, 255, 0.3);
    box-shadow: 0 0 20px rgba(255, 0, 255, 0.1), inset 0 0 20px rgba(255, 0, 255, 0.05);
}

.cyber-panel-pink::before {
    border-top-color: #ff00ff;
    border-left-color: #ff00ff;
}

.cyber-panel-pink::after {
    border-bottom-color: #ff00ff;
    border-right-color: #ff00ff;
}

/* ---- Cyber Buttons ---- */
.cyber-btn {
    background: linear-gradient(45deg, transparent 5%, rgba(0, 240, 255, 0.1) 5%);
    border: 1px solid #00f0ff;
    color: #00f0ff;
    position: relative;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 2px;
    clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
}

.cyber-btn:hover {
    background: #00f0ff;
    color: #000;
    box-shadow: 0 0 30px #00f0ff;
}

/* Pink variant */
.cyber-btn-pink {
    background: linear-gradient(45deg, transparent 5%, rgba(255, 0, 255, 0.1) 5%);
    border-color: #ff00ff;
    color: #ff00ff;
}

.cyber-btn-pink:hover {
    background: #ff00ff;
    color: #000;
    box-shadow: 0 0 30px #ff00ff;
}

/* ---- Navigation ---- */
.nav-cyber {
    background: rgba(5, 5, 5, 0.95);
    border-bottom: 1px solid rgba(0, 240, 255, 0.3);
    backdrop-filter: blur(10px);
}

.nav-link-cyber {
    color: #888;
    transition: all 0.3s;
    position: relative;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 1px;
}

.nav-link-cyber:hover {
    color: #00f0ff;
    text-shadow: 0 0 10px #00f0ff;
}

.nav-link-cyber::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #00f0ff;
    transition: width 0.3s;
    box-shadow: 0 0 10px #00f0ff;
}

.nav-link-cyber:hover::after {
    width: 100%;
}

/* ---- Scroll Reveal Animation ---- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ---- Scroll Progress Bar ---- */
.progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, #00f0ff, #ff00ff);
    box-shadow: 0 0 10px #00f0ff;
    z-index: 9999;
    width: 0%;
    transition: width 0.1s;
}

/* ---- Form Inputs ---- */
.form-input {
    background: rgba(10, 10, 15, 0.8);
    border: 1px solid rgba(0, 240, 255, 0.3);
    color: #fff;
    transition: all 0.3s;
}

.form-input:focus {
    outline: none;
    border-color: #00f0ff;
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.3);
}

.form-input::placeholder {
    color: #555;
}

/* ---- Card Hover Effects ---- */
.service-card {
    transition: all 0.3s;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(0, 240, 255, 0.2);
}

.service-card.pink:hover {
    box-shadow: 0 10px 40px rgba(255, 0, 255, 0.2);
}

.pricing-card {
    transition: all 0.3s;
}

.pricing-card:hover {
    transform: translateY(-10px);
}

.pricing-card.featured {
    border-color: rgba(255, 0, 255, 0.6);
    box-shadow: 0 0 40px rgba(255, 0, 255, 0.2);
}

.agent-card {
    transition: all 0.3s;
}

.agent-card:hover {
    transform: translateY(-5px);
}

/* ---- Status Indicators ---- */
.status-live {
    color: #00ff00;
    text-shadow: 0 0 10px #00ff00;
}

.status-soon {
    color: #ff00ff;
    text-shadow: 0 0 10px #ff00ff;
}

.status-dot {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

/* ---- Division Cards (Index Page) ---- */
.division-card {
    background: rgba(10, 10, 15, 0.9);
    border: 1px solid rgba(0, 240, 255, 0.2);
    position: relative;
    transition: all 0.4s ease;
    overflow: hidden;
}

.division-card::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    width: 12px;
    height: 12px;
    border-top: 2px solid #00f0ff;
    border-left: 2px solid #00f0ff;
    transition: all 0.3s;
}

.division-card::after {
    content: '';
    position: absolute;
    bottom: -1px;
    right: -1px;
    width: 12px;
    height: 12px;
    border-bottom: 2px solid #00f0ff;
    border-right: 2px solid #00f0ff;
    transition: all 0.3s;
}

.division-card:hover {
    transform: translateY(-8px);
    border-color: rgba(0, 240, 255, 0.5);
    box-shadow: 0 0 30px rgba(0, 240, 255, 0.15), 0 15px 40px rgba(0, 0, 0, 0.4);
}

.division-card:hover::before,
.division-card:hover::after {
    width: 20px;
    height: 20px;
}

/* Pink division card variant */
.division-card-pink {
    border-color: rgba(255, 0, 255, 0.2);
}

.division-card-pink::before {
    border-top-color: #ff00ff;
    border-left-color: #ff00ff;
}

.division-card-pink::after {
    border-bottom-color: #ff00ff;
    border-right-color: #ff00ff;
}

.division-card-pink:hover {
    border-color: rgba(255, 0, 255, 0.5);
    box-shadow: 0 0 30px rgba(255, 0, 255, 0.15), 0 15px 40px rgba(0, 0, 0, 0.4);
}

/* ---- Typewriter Effect ---- */
.typewriter {
    overflow: hidden;
    border-right: 3px solid #00f0ff;
    white-space: nowrap;
    animation: typing 3.5s steps(40, end), blink-caret 0.75s step-end infinite;
}

@keyframes typing {
    from { width: 0; }
    to { width: 100%; }
}

@keyframes blink-caret {
    from, to { border-color: transparent; }
    50% { border-color: #00f0ff; }
}

/* ---- Logo Container ---- */
.logo-container {
    position: relative;
    width: 350px;
    height: 350px;
}

.logo-container img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 0 30px rgba(0, 240, 255, 0.5)) drop-shadow(0 0 60px rgba(255, 0, 255, 0.3));
}

/* ---- Terminal Easter Egg ---- */
.terminal-trigger {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 50px;
    height: 50px;
    background: rgba(0, 240, 255, 0.1);
    border: 1px solid #00f0ff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 100;
    transition: all 0.3s;
}

.terminal-trigger:hover {
    background: #00f0ff;
    box-shadow: 0 0 20px #00f0ff;
}

.terminal-trigger:hover i {
    color: #000;
}

.terminal-modal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    max-width: 700px;
    background: #0a0a0f;
    border: 1px solid #00f0ff;
    z-index: 2000;
    font-family: 'Courier New', monospace;
}

.terminal-modal.active {
    display: block;
}

.terminal-header {
    background: #00f0ff;
    color: #000;
    padding: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.terminal-body {
    padding: 20px;
    height: 400px;
    overflow-y: auto;
    color: #00f0ff;
}

.terminal-line {
    margin-bottom: 5px;
}

.terminal-input {
    background: transparent;
    border: none;
    color: #00f0ff;
    font-family: 'Courier New', monospace;
    width: 100%;
    outline: none;
}

/* ---- Lazy Loading Images ---- */
img[loading="lazy"] {
    opacity: 0;
    transition: opacity 0.3s;
}

img[loading="lazy"].loaded {
    opacity: 1;
}

/* ---- Footer ---- */
footer {
    border-top: 1px solid rgba(0, 240, 255, 0.3);
    background: rgba(5, 5, 5, 0.9);
    position: relative;
    z-index: 10;
}

footer a {
    transition: color 0.3s;
}

footer a:hover {
    color: #00f0ff;
    text-shadow: 0 0 10px #00f0ff;
}

/* ---- Mobile Menu ---- */
#mobile-menu {
    background: rgba(5, 5, 5, 0.98);
    border-top: 1px solid rgba(0, 240, 255, 0.3);
}

#mobile-menu a {
    display: block;
    padding: 0.5rem 0;
    color: #888;
    transition: color 0.3s;
}

#mobile-menu a:hover {
    color: #00f0ff;
}

/* ---- Responsive Adjustments ---- */
@media (max-width: 768px) {
    .logo-container {
        width: 220px;
        height: 220px;
    }

    .neon-cyan {
        text-shadow: 0 0 10px #00f0ff, 0 0 20px #00f0ff;
    }

    .neon-pink {
        text-shadow: 0 0 10px #ff00ff, 0 0 20px #ff00ff;
    }

    .cyber-grid {
        animation: none;
        background-size: 30px 30px;
    }

    .terminal-modal {
        width: 95%;
    }

    .terminal-body {
        height: 300px;
    }
}

@media (max-width: 480px) {
    .logo-container {
        width: 180px;
        height: 180px;
    }
}
