/* ROOT VARIABLES */
:root {
    --bg-dark: #07070d;
    --bg-grid: rgba(0, 255, 255, 0.05);
    --cyan: #00ffff;
    --magenta: #ff00ff;
    --blue: #0088ff;
    --purple: #8100ff;
    --text-main: #e0e0f0;
    --text-muted: #8b8b9a;
    
    --font-heading: 'Orbitron', monospace;
    --font-body: 'Inter', sans-serif;
}

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

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

a {
    text-decoration: none;
    color: inherit;
}

/* BACKGROUND GRID */
.cyber-grid {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: 
        linear-gradient(var(--bg-grid) 1px, transparent 1px),
        linear-gradient(90deg, var(--bg-grid) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: -1;
    pointer-events: none;
}
.cyber-grid::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(circle at center, transparent 0%, var(--bg-dark) 80%);
}

/* UTILITIES */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}
.text-cyan { color: var(--cyan); }
.text-magenta { color: var(--magenta); }
.text-blue { color: var(--blue); }

.section-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}
.section-subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 600px;
    margin-bottom: 3rem;
}
.center {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

/* BUTTONS */
.btn-neon {
    background: transparent;
    color: #fff;
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    padding: 1rem 2.5rem;
    border: 2px solid var(--cyan);
    border-radius: 4px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.2), inset 0 0 10px rgba(0, 255, 255, 0.1);
}
.btn-neon:hover {
    background: rgba(0, 255, 255, 0.1);
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.5), inset 0 0 15px rgba(0, 255, 255, 0.2);
    text-shadow: 0 0 8px rgba(0, 255, 255, 0.8);
}
.btn-neon i {
    margin-right: 10px;
}
.btn-neon.copied {
    border-color: #00ff88;
    color: #00ff88;
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.5);
    text-shadow: 0 0 8px rgba(0, 255, 136, 0.8);
}

/* HERO SECTION */
.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    text-align: center;
    padding: 2rem;
}
.hero-content {
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}
.hero-logo {
    max-width: 400px;
    width: 100%;
    filter: drop-shadow(0 0 15px rgba(0, 255, 255, 0.3));
    animation: floating 4s ease-in-out infinite;
}
.hero-slogan {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: #fff;
    letter-spacing: 4px;
    text-transform: uppercase;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

.ip-container {
    position: relative;
}
.feedback-msg {
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.9rem;
    color: #00ff88;
    opacity: 0;
    transition: opacity 0.3s ease;
    white-space: nowrap;
}
.feedback-msg.show {
    opacity: 1;
}

.server-status {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    letter-spacing: 1px;
    color: #00ff88;
    background: rgba(0, 255, 136, 0.05);
    padding: 0.5rem 1rem;
    border: 1px solid rgba(0, 255, 136, 0.2);
    border-radius: 20px;
}
.status-dot {
    width: 10px;
    height: 10px;
    background: #00ff88;
    border-radius: 50%;
    box-shadow: 0 0 10px #00ff88;
    animation: pulsegz 1.5s infinite;
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--cyan);
    font-size: 2rem;
    animation: bounce 2s infinite;
    opacity: 0.5;
}

/* PRESENTATION SECTION */
.presentation {
    padding: 100px 0;
    position: relative;
}
.presentation-layout {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: center;
}
.lead {
    font-size: 1.2rem;
    color: var(--text-main);
    margin-bottom: 2rem;
}
.feature-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}
.feature-list li {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}
.feature-list i {
    font-size: 2rem;
    margin-top: 5px;
    filter: drop-shadow(0 0 5px currentColor);
}
.feature-list h3 {
    font-family: var(--font-heading);
    color: #fff;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
    letter-spacing: 1px;
}
.feature-list p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.presentation-visual {
    position: relative;
    height: 100%;
    min-height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
}
.cyber-frame {
    width: 100%;
    height: 100%;
    border: 1px solid rgba(0, 255, 255, 0.2);
    background: rgba(0, 255, 255, 0.02);
    position: relative;
    padding: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
}
.cyber-frame::before, .cyber-frame::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid var(--cyan);
}
.cyber-frame::before { top: -2px; left: -2px; border-right: none; border-bottom: none; }
.cyber-frame::after { bottom: -2px; right: -2px; border-left: none; border-top: none; }

.terminal-container {
    width: 100%;
    height: 100%;
    min-height: 380px;
    background: rgba(4, 10, 15, 0.8);
    font-family: 'Consolas', 'Courier New', monospace; /* Cyber look */
    font-size: 0.85rem;
    color: var(--cyan);
    padding: 1.5rem;
    overflow-y: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    text-align: left;
    box-shadow: inset 0 0 20px rgba(0, 255, 255, 0.05);
}

.term-line {
    margin-bottom: 6px;
    line-height: 1.4;
    word-break: break-all;
    opacity: 0.9;
    text-shadow: 0 0 5px currentColor;
}
.term-line.sys { color: #88c0d0; opacity: 0.7; }
.term-line.cyan { color: var(--cyan); }
.term-line.magenta { color: var(--magenta); }
.term-line.warn { color: #ebcb8b; }
.term-line.err { color: #bf616a; }
.term-line.succ { color: #a3be8c; }

.term-cursor {
    display: inline-block;
    width: 8px;
    height: 15px;
    background: var(--cyan);
    animation: blink 1s step-end infinite;
    vertical-align: middle;
    margin-left: 5px;
}
@keyframes blink { 50% { opacity: 0; } }

/* GAMEPLAY SECTION */
.gameplay {
    padding: 100px 0;
    position: relative;
    background: linear-gradient(180deg, transparent, rgba(255, 0, 255, 0.02));
}
.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}
.cyber-card {
    background: rgba(10, 10, 20, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 2.5rem 2rem;
    border-radius: 4px;
    position: relative;
    transition: all 0.4s ease;
    overflow: hidden;
}
.cyber-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 2px;
    background: linear-gradient(90deg, transparent, var(--cyan), transparent);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}
.cyber-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}
.cyber-card:hover::before {
    transform: scaleX(1);
}
.cyber-card .card-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}
.card-icon.cyan { color: var(--cyan); text-shadow: 0 0 10px rgba(0, 255, 255, 0.5); }
.card-icon.green { color: #00ff88; text-shadow: 0 0 10px rgba(0, 255, 136, 0.5); }
.card-icon.magenta { color: var(--magenta); text-shadow: 0 0 10px rgba(255, 0, 255, 0.5); }

.cyber-card h3 {
    font-family: var(--font-heading);
    color: #fff;
    font-size: 1.4rem;
    margin-bottom: 1rem;
}
.cyber-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}
.cyber-card:nth-child(2):hover::before { background: linear-gradient(90deg, transparent, #00ff88, transparent); }
.cyber-card:nth-child(3):hover::before { background: linear-gradient(90deg, transparent, var(--magenta), transparent); }

/* PORTALS SECTION */
.portals {
    padding: 100px 0;
}
.portal-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}
.portal-banner {
    display: block;
    position: relative;
    padding: 4rem 2rem;
    text-align: center;
    border-radius: 4px;
    overflow: hidden;
    transition: transform 0.3s ease;
}
.portal-banner:hover {
    transform: scale(1.02);
}
.portal-content {
    position: relative;
    z-index: 2;
    color: #fff;
}
.portal-content i {
    font-size: 4rem;
    margin-bottom: 1rem;
}
.portal-content h2 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    letter-spacing: 2px;
}
.portal-content span {
    font-family: var(--font-body);
    font-size: 0.9rem;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.cyan-portal {
    background: linear-gradient(135deg, rgba(0, 255, 255, 0.1), rgba(0, 136, 255, 0.1));
    border: 1px solid rgba(0, 255, 255, 0.3);
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.05);
}
.cyan-portal:hover { box-shadow: 0 0 30px rgba(0, 255, 255, 0.15); border-color: var(--cyan); }
.cyan-portal i, .cyan-portal h2 { text-shadow: 0 0 10px rgba(0, 255, 255, 0.5); }

.magenta-portal {
    background: linear-gradient(135deg, rgba(255, 0, 255, 0.1), rgba(129, 0, 255, 0.1));
    border: 1px solid rgba(255, 0, 255, 0.3);
    box-shadow: 0 0 20px rgba(255, 0, 255, 0.05);
}
.magenta-portal:hover { box-shadow: 0 0 30px rgba(255, 0, 255, 0.15); border-color: var(--magenta); }
.magenta-portal i, .magenta-portal h2 { text-shadow: 0 0 10px rgba(255, 0, 255, 0.5); }

/* FOOTER */
.cyber-footer {
    background: #040408;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 60px 0 20px;
}
.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 40px;
}
.footer-logo {
    max-width: 150px;
    margin-bottom: 1rem;
    opacity: 0.8;
}
.footer-brand p {
    color: var(--text-muted);
    font-size: 0.9rem;
    max-width: 300px;
}
.cyber-footer h4 {
    color: #fff;
    font-family: var(--font-heading);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    letter-spacing: 1px;
}
.footer-links ul {
    list-style: none;
}
.footer-links li {
    margin-bottom: 0.8rem;
}
.footer-links a {
    color: var(--text-muted);
    transition: color 0.3s;
    font-size: 0.9rem;
}
.footer-links a:hover {
    color: var(--cyan);
}
.social-icons {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}
.social-icons a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    color: #fff;
    font-size: 1.2rem;
    transition: all 0.3s;
}
.social-icons a:hover {
    background: var(--cyan);
    color: #000;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 255, 255, 0.4);
}
.server-ip-mini {
    font-family: var(--font-heading);
    color: var(--cyan);
    font-size: 0.9rem;
    border: 1px solid rgba(0, 255, 255, 0.2);
    padding: 0.5rem 1rem;
    display: inline-block;
    border-radius: 4px;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* ANIMATIONS & EFFECTS */
@keyframes floating {
    0% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0); }
}
@keyframes pulsegz {
    0% { box-shadow: 0 0 0 0 rgba(0, 255, 136, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(0, 255, 136, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 255, 136, 0); }
}
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0) translateX(-50%); }
    40% { transform: translateY(-20px) translateX(-50%); }
    60% { transform: translateY(-10px) translateX(-50%); }
}

/* GLITCH EFFECT (HOVER) */
.glitch-hover {
    transition: all 0.2s;
}
.glitch-hover:hover {
    text-shadow: 
        2px 0 var(--cyan),
        -2px 0 var(--magenta);
    position: relative;
    left: 2px;
}

/* RESPONSIVE DESIGN */
@media (max-width: 992px) {
    .presentation-layout {
        grid-template-columns: 1fr;
    }
    .cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
}
@media (max-width: 768px) {
    .cards-grid {
        grid-template-columns: 1fr;
    }
    .portal-grid {
        grid-template-columns: 1fr;
    }
    .hero-slogan {
        font-size: 1.5rem;
    }
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .social-icons {
        justify-content: center;
    }
}
