/* --- Variable Definitions --- */
:root {
    --primary-color: #00A8FF; /* Electric Blue */
    --glow-color: rgba(0, 168, 255, 0.7);
    --background-color: #010409; /* Very Dark Blue/Black */
    --surface-color-rgb: 16, 22, 32; /* For RGBA usage */
    --border-color: rgba(0, 168, 255, 0.2);
    --text-color: #c9d1d9;
    --heading-color: #ffffff;
    --text-muted: #8b949e;
}

/* --- General & Reset Styles --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

/* --- Scan Lines & Vignette Overlay --- */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(ellipse at center, rgba(0,0,0,0) 0%, rgba(1,4,9,1) 80%),
        repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.02) 1px, transparent 1px, transparent 3px);
    z-index: 1;
    pointer-events: none;
}

/* --- Animated Background Canvas --- */
#matrix-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

/* All content lives above the overlays and canvas */
header, main, footer {
    position: relative;
    z-index: 2;
}

/* --- Reusable Container --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- Header & Navigation --- */
header {
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    background: rgba(var(--surface-color-rgb), 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
}

nav.container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--heading-color);
    text-decoration: none;
    text-shadow: 0 0 10px var(--glow-color);
}
.logo img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.nav-links { list-style: none; display: flex; gap: 30px; }
.nav-links a { color: var(--text-color); text-decoration: none; font-weight: 600; transition: color 0.3s ease, text-shadow 0.3s ease; }
.nav-links a:hover { color: var(--primary-color); text-shadow: 0 0 10px var(--glow-color); }

/* --- Hero Section --- */
#hero { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; padding-top: 70px; }
.hero-avatar { width: 150px; height: 150px; border-radius: 50%; border: 3px solid var(--primary-color); box-shadow: 0 0 30px var(--glow-color), 0 0 50px var(--glow-color) inset; animation: pulse 2.5s infinite ease-in-out; }
.hero-title { font-size: 4rem; font-weight: 700; color: var(--heading-color); margin: 20px 0 10px; letter-spacing: 2px; text-shadow: 0 0 15px var(--glow-color); }
.hero-subtitle { font-size: 1.2rem; color: var(--text-muted); max-width: 600px; margin-bottom: 30px; }
.hero-buttons { display: flex; gap: 20px; }

.btn { padding: 12px 28px; border-radius: 8px; text-decoration: none; font-weight: 600; font-size: 1rem; display: inline-flex; align-items: center; gap: 10px; transition: all 0.3s ease; border: 2px solid; position: relative; overflow: hidden; }
.btn-primary { background-color: var(--primary-color); color: white; border-color: var(--primary-color); }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 10px 20px rgba(0, 168, 255, 0.3); }
.btn-secondary { background-color: transparent; color: var(--text-color); border-color: var(--border-color); }
.btn-secondary:hover { background-color: rgba(var(--surface-color-rgb), 0.5); border-color: var(--primary-color); color: var(--primary-color); }

/* --- Sections --- */
section { padding: 80px 0; }
.section-title { text-align: center; font-size: 2.5rem; margin-bottom: 50px; color: var(--heading-color); }

/* --- Upgraded Cards with Glow Effect --- */
.feature-card, .team-card {
    background-color: rgba(var(--surface-color-rgb), 0.7);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease;
    text-align: center;
}
.feature-card:hover, .team-card:hover {
    transform: translateY(-5px);
}
.card-content {
    padding: 30px;
    position: relative;
    z-index: 2;
}

.feature-card::before, .team-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(400px circle at var(--mouse-x) var(--mouse-y), var(--glow-color), transparent 40%);
    opacity: 0;
    transition: opacity 0.5s;
    z-index: 1;
}
.feature-card:hover::before, .team-card:hover::before {
    opacity: 1;
}

/* --- Features Grid --- */
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; }
.feature-card i { font-size: 2.5rem; color: var(--primary-color); margin-bottom: 20px; }
.feature-card h3 { font-size: 1.5rem; color: var(--heading-color); margin-bottom: 10px; }
.feature-card p { color: var(--text-muted); }

/* --- Team Section Styles --- */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}
.team-card {
    padding: 20px;
}
.team-card img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 3px solid var(--primary-color);
    margin-bottom: 15px;
}
.team-card h4 {
    font-size: 1.2rem;
    color: var(--heading-color);
    margin-bottom: 5px;
}
.team-card p {
    color: var(--text-muted);
    margin-bottom: 15px;
}
.social-link {
    color: var(--text-color);
    font-size: 1.5rem;
    text-decoration: none;
    transition: color 0.3s ease;
}
.social-link:hover {
    color: var(--primary-color);
}

/* --- Command Builder --- */
.builder-tool {
    background: rgba(var(--surface-color-rgb), 0.7);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 30px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}
.input-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 15px;
}
.input-group label {
    color: var(--text-muted);
    margin-bottom: 5px;
    font-weight: 600;
}
.input-group select, .input-group input {
    width: 100%;
    background: var(--background-color);
    border: 1px solid var(--border-color);
    color: var(--text-color);
    padding: 10px;
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
}
.output-code-wrapper {
    position: relative;
}
.output-code-wrapper pre {
    background: var(--background-color);
    padding: 15px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    white-space: pre-wrap;
    word-break: break-all;
    min-height: 100px;
}
.output-code-wrapper code {
    font-family: monospace;
    color: var(--primary-color);
}
#copy-button {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1.2rem;
    transition: color 0.3s;
}
#copy-button:hover {
    color: var(--primary-color);
}

/* --- Command Browser --- */
.command-browser {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 30px;
    background: rgba(var(--surface-color-rgb), 0.7);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    min-height: 500px;
}
.command-categories { display: flex; flex-direction: column; gap: 10px; }
.category-btn { background: none; border: 1px solid var(--border-color); color: var(--text-color); padding: 10px; border-radius: 8px; cursor: pointer; text-align: left; font-weight: 600; transition: background-color 0.3s, color 0.3s; }
.category-btn:hover { background-color: var(--primary-color); color: white; }
.category-btn.active { background-color: var(--primary-color); color: white; box-shadow: 0 0 15px var(--glow-color); }
.command-list { display: flex; flex-direction: column; gap: 15px; }
.command-item { border-left: 3px solid var(--primary-color); padding-left: 15px; }
.command-item h4 { color: var(--heading-color); font-size: 1.1rem; }
.command-item p { color: var(--text-muted); }
.command-item code { background: var(--background-color); padding: 2px 6px; border-radius: 4px; font-family: monospace; }

/* --- FAQ Section --- */
.faq-accordion {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.faq-item {
    background: rgba(var(--surface-color-rgb), 0.7);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
}
.faq-question {
    width: 100%;
    background: none;
    border: none;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--heading-color);
}
.faq-question i {
    transition: transform 0.3s ease;
}
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}
.faq-answer p {
    padding: 0 20px 20px;
    color: var(--text-muted);
}
.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

/* --- Footer --- */
footer { padding: 30px 0; text-align: center; border-top: 1px solid var(--border-color); color: var(--text-muted); background: rgba(var(--surface-color-rgb), 0.5); }

/* --- Animations --- */
@keyframes pulse { 0% { transform: scale(1); } 50% { transform: scale(1.05); } 100% { transform: scale(1); } }
.animate-on-scroll { opacity: 0; transform: translateY(30px); transition: opacity 0.6s ease-out, transform 0.6s ease-out; }
.animate-on-scroll.visible { opacity: 1; transform: translateY(0); }

/* --- Responsive --- */
@media (max-width: 768px) {
    .nav-links { display: none; }
    .hero-title { font-size: 3rem; }
    .hero-buttons { flex-direction: column; }
    .command-browser { grid-template-columns: 1fr; }
    .builder-tool { grid-template-columns: 1fr; }
}