/* Ultra Modern Game/Cyberpunk Style for ScriptIrc */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700;900&family=Rajdhani:wght@300;500;600;700&family=JetBrains+Mono:wght@400;700&display=swap');

:root {
    --bg-dark: #0a0b10;
    --bg-darker: #050507;
    --bg-card: rgba(16, 20, 29, 0.7);
    --primary: #00f3ff; /* Cyan */
    --primary-dim: rgba(0, 243, 255, 0.15);
    --secondary: #bc13fe; /* Neon Purple */
    --accent: #ff0055; /* Glitch Red */
    --text-main: #ffffff;
    --text-muted: #8b9bb4;
    --border-color: rgba(0, 243, 255, 0.2);
    --glass-border: 1px solid rgba(255, 255, 255, 0.08);
    
    --glow-primary: 0 0 15px rgba(0, 243, 255, 0.5), 0 0 30px rgba(0, 243, 255, 0.2);
    --glow-secondary: 0 0 15px rgba(188, 19, 254, 0.5);
    --glow-text: 0 0 10px rgba(0, 243, 255, 0.8);
}

body.home, body.front-page {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: 'Rajdhani', sans-serif;
    margin: 0;
    overflow-x: hidden;
    line-height: 1.6;
}

/* Reset Layout Conflict */
body.home .site-header, body.front-page .site-header,
body.home .primary-nav, body.front-page .primary-nav {
    display: none !important;
}

/* --- Utilities --- */
.si-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    position: relative;
    z-index: 10;
}

/* --- Glitch Button --- */
.si-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 40px;
    font-family: 'Orbitron', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--bg-darker);
    background: var(--primary);
    border: none;
    clip-path: polygon(10% 0, 100% 0, 100% 70%, 90% 100%, 0 100%, 0 30%);
    text-decoration: none;
    position: relative;
    transition: all 0.2s ease;
    cursor: pointer;
    box-shadow: var(--glow-primary);
}

.si-btn:hover {
    transform: translateY(-2px);
    background: #fff;
    box-shadow: 0 0 30px var(--primary);
    color: #000;
}

.si-btn::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.8), transparent);
    transition: 0.5s;
    transform: skewX(-25deg);
}

.si-btn:hover::before {
    left: 100%;
}

.si-btn-outline {
    background: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
    box-shadow: none;
    clip-path: polygon(10% 0, 100% 0, 100% 70%, 90% 100%, 0 100%, 0 30%);
}

.si-btn-outline:hover {
    background: var(--primary-dim);
    color: #fff;
    box-shadow: inset 0 0 20px rgba(0, 243, 255, 0.3);
}

/* --- Dynamic Background --- */
.bg-scanlines {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: linear-gradient(to bottom, rgba(255,255,255,0), rgba(255,255,255,0) 50%, rgba(0,0,0,0.1) 50%, rgba(0,0,0,0.1));
    background-size: 100% 4px;
    z-index: 2;
    pointer-events: none;
    opacity: 0.6;
}

.bg-cyber-grid {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    background-image: 
        linear-gradient(rgba(0, 243, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 243, 255, 0.05) 1px, transparent 1px);
    background-size: 50px 50px;
    transform: perspective(500px) rotateX(60deg) translateY(-100px) scale(2);
    transform-origin: top center;
    z-index: 0;
    animation: grid-move 20s linear infinite;
    opacity: 0.4;
}

@keyframes grid-move {
    0% { background-position: 0 0; }
    100% { background-position: 0 50px; }
}

.bg-orb {
    position: fixed;
    width: 800px; height: 800px;
    border-radius: 50%;
    filter: blur(80px);
    z-index: 0;
    opacity: 0.3;
}

.orb-1 {
    background: radial-gradient(circle, var(--secondary), transparent 70%);
    top: -200px; right: -200px;
    animation: pulse 8s ease-in-out infinite alternate;
}

.orb-2 {
    background: radial-gradient(circle, var(--primary), transparent 70%);
    bottom: -200px; left: -200px;
    animation: pulse 10s ease-in-out infinite alternate-reverse;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 0.2; }
    100% { transform: scale(1.2); opacity: 0.4; }
}

/* --- Navigation --- */
.si-nav-wrapper {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    z-index: 50;
    padding: 30px 0;
}

.si-nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.si-logo {
    font-family: 'Orbitron', sans-serif;
    font-size: 2rem;
    font-weight: 900;
    color: #fff;
    text-decoration: none;
    letter-spacing: 2px;
    text-shadow: var(--glow-text);
}

.si-logo span { color: var(--primary); }

/* --- Hero Section --- */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 60px;
}

.hero-content {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 80px;
    align-items: center;
}

.hero-text h1 {
    font-family: 'Orbitron', sans-serif;
    font-size: 4rem;
    line-height: 1;
    margin-bottom: 30px;
    font-weight: 900;
    text-transform: uppercase;
    position: relative;
}

/* Glitch Effect for Title */
.glitch-text {
    position: relative;
    color: var(--text-main);
}

.glitch-text::before,
.glitch-text::after {
    content: attr(data-text);
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-dark);
}

.glitch-text::before {
    left: 2px;
    text-shadow: -1px 0 var(--accent);
    clip: rect(24px, 550px, 90px, 0);
    animation: glitch-anim 3s infinite linear alternate-reverse;
}

.glitch-text::after {
    left: -2px;
    text-shadow: -1px 0 var(--primary);
    clip: rect(85px, 550px, 140px, 0);
    animation: glitch-anim 2.5s infinite linear alternate-reverse;
}

@keyframes glitch-anim {
    0% { clip: rect(10px, 9999px, 80px, 0); }
    5% { clip: rect(95px, 9999px, 15px, 0); }
    10% { clip: rect(40px, 9999px, 120px, 0); }
    15% { clip: rect(110px, 9999px, 5px, 0); }
    20% { clip: rect(60px, 9999px, 90px, 0); }
    25% { clip: rect(15px, 9999px, 100px, 0); }
    100% { clip: rect(5px, 9999px, 125px, 0); }
}

.hero-text .sub-highlight {
    color: var(--primary);
    display: block;
    font-size: 2.8rem;
    margin-top: 10px;
    text-shadow: var(--glow-text);
}

.hero-text p {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 50px;
    border-left: 2px solid var(--primary);
    padding-left: 20px;
    background: linear-gradient(90deg, rgba(0,243,255,0.05), transparent);
}

.hero-stats {
    display: flex;
    gap: 40px;
    margin-bottom: 40px;
    font-family: 'Orbitron', sans-serif;
}

.stat-item .stat-val { font-size: 2rem; color: #fff; font-weight: bold; }
.stat-item .stat-label { font-size: 0.8rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; }

/* HUD / Code Window */
.hud-window {
    background: rgba(10, 13, 20, 0.85);
    border: 1px solid var(--primary);
    position: relative;
    backdrop-filter: blur(10px);
    box-shadow: 0 0 50px rgba(0,0,0,0.5), inset 0 0 30px rgba(0, 243, 255, 0.05);
    transform: perspective(1000px) rotateY(-10deg);
    transition: transform 0.5s ease;
}

.hud-window::before {
    content: '';
    position: absolute;
    top: -2px; left: -2px; right: -2px; bottom: -2px;
    background: linear-gradient(45deg, var(--primary), transparent, var(--secondary));
    z-index: -1;
    opacity: 0.5;
}

.hud-window:hover {
    transform: perspective(1000px) rotateY(0deg);
}

.hud-header {
    background: rgba(0, 243, 255, 0.1);
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--primary);
    font-family: 'Orbitron', sans-serif;
    font-size: 0.8rem;
    color: var(--primary);
    letter-spacing: 1px;
}

.hud-body {
    padding: 30px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.95rem;
    color: #e0e0e0;
    line-height: 1.5;
}

.code-line { display: block; margin-bottom: 6px; position: relative; padding-left: 20px; }
.code-line::before { 
    content: '>'; 
    position: absolute; left: 0; 
    color: var(--text-muted); opacity: 0.5; 
}

.cl-1 { color: #ff79c6; } /* pink */
.cl-2 { color: #8be9fd; } /* cyan */
.cl-3 { color: #50fa7b; } /* green */
.cl-4 { color: #f1fa8c; } /* yellow */
.cl-cmd { color: #fff; font-weight: bold; }
.cl-comment { color: #6272a4; font-style: italic; }

/* --- Features Section --- */
.features-section {
    padding: 120px 0;
    position: relative;
    z-index: 5;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}

.feature-card {
    background: rgba(16, 20, 29, 0.4);
    border: 1px solid rgba(255,255,255,0.05);
    padding: 40px;
    position: relative;
    overflow: hidden;
    transition: 0.3s;
}

/* Corner Accents */
.feature-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 20px; height: 20px;
    border-top: 2px solid var(--primary);
    border-left: 2px solid var(--primary);
    transition: 0.3s;
}

.feature-card::after {
    content: '';
    position: absolute;
    bottom: 0; right: 0; width: 20px; height: 20px;
    border-bottom: 2px solid var(--secondary);
    border-right: 2px solid var(--secondary);
    transition: 0.3s;
}

.feature-card:hover {
    background: rgba(16, 20, 29, 0.8);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.feature-card:hover::before, .feature-card:hover::after {
    width: 100%; height: 100%;
    opacity: 0.1;
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    text-shadow: 0 0 20px rgba(255,255,255,0.2);
}

.feature-card h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: #fff;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 1rem;
}

/* --- Command Matrix Section (New) --- */
.cmd-section {
    padding: 100px 0;
    border-top: 1px solid rgba(255,255,255,0.05);
    background: rgba(0,0,0,0.3);
}

.section-title {
    text-align: center;
    margin-bottom: 80px;
}

.section-title h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: 3rem;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: transparent;
    -webkit-text-stroke: 1px rgba(255,255,255,0.3);
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: attr(data-title);
    position: absolute;
    top: 0; left: 0;
    color: #fff;
    clip-path: polygon(0 0, 100% 0, 100% 40%, 0 40%);
    text-shadow: var(--glow-text);
}

.cmd-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.cmd-list {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 30px;
    font-family: 'JetBrains Mono', monospace;
}

.cmd-item {
    display: flex;
    justify-content: space-between;
    padding: 15px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.cmd-item:last-child { border-bottom: none; }
.cmd-syntax { color: var(--primary); font-weight: bold; }
.cmd-desc { color: var(--text-muted); text-align: right; }

.file-tree {
    font-family: 'JetBrains Mono', monospace;
    color: var(--text-muted);
    background: rgba(0,0,0,0.5);
    padding: 30px;
    border: 1px solid var(--glass-border);
}

.tree-item { margin-bottom: 8px; }
.tree-dir { color: var(--secondary); font-weight: bold; }
.tree-file { color: #e0e0e0; }

/* --- Footer --- */
.si-footer {
    padding: 80px 0 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
    margin-top: 0;
    background: var(--bg-darker);
    border-top: 1px solid var(--border-color);
}

.footer-glow {
    position: absolute;
    bottom: 0; left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    box-shadow: 0 0 50px var(--primary);
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-family: 'Orbitron', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    transition: 0.3s;
}

.footer-links a:hover {
    color: var(--primary);
    text-shadow: 0 0 10px var(--primary);
}

/* Responsive */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 50px;
    }
    
    .hero-text h1 {
        font-size: 3rem;
    }
    
    .hero-text .sub-highlight {
        font-size: 2rem;
    }
    
    .hud-window {
        transform: none;
        margin: 0 20px;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .hero-text p {
        border-left: none;
        border-top: 2px solid var(--primary);
        padding-top: 20px;
        padding-left: 0;
        margin: 0 auto 40px;
    }

    .cmd-container {
        grid-template-columns: 1fr;
    }
}
