:root {
    --bg-dark: #070913;
    --card-bg: rgba(15, 23, 42, 0.65);
    --card-border: rgba(0, 240, 255, 0.18);
    --primary-cyan: #00F0FF;
    --primary-purple: #8B5CF6;
    --accent-glow: rgba(139, 92, 246, 0.35);
    --text-main: #F1F5F9;
    --text-muted: #94A3B8;
    --font-heading: 'Outfit', sans-serif;
    --font-code: 'Fira Code', monospace;
}

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

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

#canvas-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    pointer-events: none;
}

/* Glassmorphism Panel Utility */
.glass-panel {
    background: var(--card-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.glass-panel:hover {
    border-color: var(--primary-cyan);
    box-shadow: 0 12px 40px 0 rgba(0, 240, 255, 0.2);
}

/* Header & Nav */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(7, 9, 19, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 1rem 2rem;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand-logo {
    font-family: var(--font-code);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-cyan);
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    gap: 1.8rem;
    align-items: center;
}

.nav-item {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

.nav-item:hover {
    color: var(--primary-cyan);
}

.lua-tag {
    color: #F59E0B;
}

.btn-contact, .btn-primary {
    background: linear-gradient(135deg, var(--primary-cyan), var(--primary-purple));
    color: #000;
    font-weight: 700;
    padding: 0.65rem 1.4rem;
    border-radius: 8px;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: none;
    cursor: pointer;
    display: inline-block;
}

.btn-primary:hover, .btn-contact:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 240, 255, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
    border: 1px solid var(--card-border);
    padding: 0.65rem 1.4rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.btn-secondary:hover {
    background: rgba(0, 240, 255, 0.1);
    border-color: var(--primary-cyan);
}

/* Layout Container */
.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 5rem;
}

/* Hero Section */
.hero-section {
    padding: 2rem 0;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 3rem;
    align-items: center;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: rgba(0, 240, 255, 0.08);
    border: 1px solid rgba(0, 240, 255, 0.25);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    margin-bottom: 1.5rem;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background-color: var(--primary-cyan);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--primary-cyan);
    animation: pulse 1.8s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 240, 255, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(0, 240, 255, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 240, 255, 0); }
}

.status-text {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary-cyan);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1rem;
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary-cyan), var(--primary-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    max-width: 600px;
}

.initials-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border-left: 4px solid var(--primary-cyan);
    padding: 0.8rem 1.2rem;
    border-radius: 0 8px 8px 0;
    margin-bottom: 2rem;
}

.initials-badge {
    font-family: var(--font-code);
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--primary-cyan);
}

.initials-desc {
    font-size: 0.95rem;
    color: var(--text-muted);
}

.hero-actions {
    display: flex;
    gap: 1rem;
}

.img-wrapper {
    position: relative;
    padding: 1rem;
    overflow: hidden;
}

.hero-img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    display: block;
    object-fit: cover;
}

/* UNMSM Section */
.unmsm-card {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 2.5rem;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.8), rgba(88, 28, 135, 0.2));
    border-color: rgba(139, 92, 246, 0.4);
}

.shield-icon {
    font-size: 3.5rem;
    background: rgba(139, 92, 246, 0.15);
    padding: 1rem;
    border-radius: 16px;
    border: 1px solid rgba(139, 92, 246, 0.3);
}

.unmsm-tag {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--primary-purple);
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.unmsm-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0.3rem 0 0.5rem 0;
}

.unmsm-desc {
    color: var(--text-muted);
    font-size: 1.05rem;
}

/* Section Header */
.section-header {
    margin-bottom: 2.5rem;
}

.text-center {
    text-align: center;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-top: 0.5rem;
}

/* Cards Grid */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.card {
    padding: 2rem;
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
}

.card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Lua Section */
.lua-panel {
    padding: 2.5rem;
}

.lua-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.lua-badge {
    font-size: 0.75rem;
    font-weight: 700;
    background: rgba(245, 158, 11, 0.15);
    color: #F59E0B;
    padding: 0.3rem 0.8rem;
    border-radius: 12px;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.lua-desc {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.console-wrapper {
    background: #030712;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
}

.console-bar {
    background: #111827;
    padding: 0.6rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}
.dot.red { background: #EF4444; }
.dot.yellow { background: #F59E0B; }
.dot.green { background: #10B981; }

.console-title {
    margin-left: 0.5rem;
    font-family: var(--font-code);
    font-size: 0.8rem;
    color: var(--text-muted);
}

.console-output {
    padding: 1.5rem;
    font-family: var(--font-code);
    font-size: 0.9rem;
    color: var(--primary-cyan);
    overflow-x: auto;
    white-space: pre-wrap;
}

/* Footer */
.footer {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 2rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-sub {
    margin-top: 0.4rem;
    font-size: 0.8rem;
    opacity: 0.7;
}

/* Responsive Breakpoints */
@media (max-width: 900px) {
    .hero-grid {
        grid-template-columns: 1fr;
    }
    .hero-title {
        font-size: 2.8rem;
    }
    .unmsm-card {
        flex-direction: column;
        text-align: center;
    }
    .nav-links {
        display: none;
    }
}
