:root {
    --bg-color: #0a0a0a;
    --card-bg: #121212;
    --text-primary: #e0e0e0;
    --accent: #00ffcc;
    --accent-glow: rgba(0, 255, 204, 0.4);
    --danger: #ff4d4d;
    --font-head: 'Orbitron', sans-serif;
    --font-body: 'Rajdhani', sans-serif;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-weight: 400;
    overflow-x: hidden;
}

/* Loader */
#loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: opacity 1s ease;
}

.scanner {
    width: 200px;
    height: 2px;
    background: var(--accent);
    animation: scan 1.5s infinite linear;
    box-shadow: 0 0 10px var(--accent);
}

@keyframes scan {
    0% { transform: scaleX(0); opacity: 0; }
    50% { transform: scaleX(1); opacity: 1; }
    100% { transform: scaleX(0); opacity: 0; }
}

.status {
    margin-top: 20px;
    font-family: var(--font-head);
    font-size: 0.8rem;
    letter-spacing: 2px;
    color: var(--accent);
    animation: blink 1s infinite;
}

@keyframes blink {
    50% { opacity: 0; }
}

/* Nav */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    background: rgba(10, 10, 10, 0.9);
    position: fixed;
    width: 100%;
    z-index: 100;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.logo {
    font-family: var(--font-head);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: #fff;
}

.dot {
    color: var(--accent);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 30px;
}

.nav-links li a {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s;
}

.nav-links li a:hover {
    color: var(--accent);
    text-shadow: 0 0 8px var(--accent-glow);
}

.cta-btn {
    border: 1px solid var(--accent);
    padding: 8px 20px;
    color: var(--accent) !important;
    transition: all 0.3s ease;
}

.cta-btn:hover {
    background: var(--accent);
    color: #000 !important;
    box-shadow: 0 0 15px var(--accent-glow);
}

/* Hero */
#home {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: radial-gradient(circle at center, #1a1a1a 0%, #000 100%);
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://images.unsplash.com/photo-1550751827-4bd374c3f58b?ixlib=rb-1.2.1&auto=format&fit=crop&w=1950&q=80') center/cover;
    opacity: 0.2;
    filter: grayscale(100%) contrast(1.2);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    padding: 0 20px;
}

h1 {
    font-family: var(--font-head);
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 4px;
    position: relative;
    color: #fff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

/* Glitch Effect */
.glitch {
    position: relative;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-color);
}

.glitch::before {
    left: 2px;
    text-shadow: -1px 0 var(--accent);
    clip: rect(24px, 550px, 90px, 0);
    animation: glitch-anim-1 2.5s infinite linear alternate-reverse;
}

.glitch::after {
    left: -2px;
    text-shadow: -1px 0 var(--danger);
    clip: rect(85px, 550px, 140px, 0);
    animation: glitch-anim-2 3s infinite linear alternate-reverse;
}

@keyframes glitch-anim-1 {
    0% { clip: rect(20px, 9999px, 80px, 0); }
    100% { clip: rect(40px, 9999px, 120px, 0); }
}

@keyframes glitch-anim-2 {
    0% { clip: rect(60px, 9999px, 100px, 0); }
    100% { clip: rect(10px, 9999px, 150px, 0); }
}

.sub-hero {
    font-size: 1.5rem;
    color: #aaa;
    margin-bottom: 40px;
    letter-spacing: 1px;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 50px;
    margin-bottom: 50px;
}

.stat {
    text-align: center;
}

.stat .number {
    display: block;
    font-family: var(--font-head);
    font-size: 2rem;
    color: var(--accent);
    font-weight: 700;
}

.stat .label {
    font-size: 0.9rem;
    text-transform: uppercase;
    color: #666;
    letter-spacing: 1px;
}

.primary-btn {
    display: inline-block;
    padding: 15px 40px;
    background: transparent;
    border: 1px solid var(--accent);
    color: var(--accent);
    text-decoration: none;
    font-family: var(--font-head);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.primary-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--accent);
    transition: left 0.3s ease;
    z-index: -1;
}

.primary-btn:hover {
    color: #000;
}

.primary-btn:hover::before {
    left: 0;
}

/* Services */
#services {
    padding: 100px 5%;
    background: #0f0f0f;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-family: var(--font-head);
    font-size: 2.5rem;
    color: #fff;
    margin-bottom: 10px;
    letter-spacing: 3px;
}

.line {
    width: 100px;
    height: 3px;
    background: var(--accent);
    margin: 0 auto;
    box-shadow: 0 0 10px var(--accent-glow);
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.card {
    background: var(--card-bg);
    border: 1px solid #333;
    padding: 40px;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 2px;
    height: 100%;
    background: var(--accent);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.card:hover::before {
    transform: scaleY(1);
}

.card-icon {
    font-size: 2rem;
    color: var(--accent);
    margin-bottom: 20px;
}

.card h3 {
    font-family: var(--font-head);
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #fff;
}

.card p {
    color: #aaa;
    line-height: 1.6;
    margin-bottom: 20px;
}

.card-details {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease;
}

.card:hover .card-details {
    max-height: 200px;
}

.card-details ul {
    list-style: none;
    padding-top: 20px;
    border-top: 1px solid #333;
}

.card-details li {
    padding: 5px 0;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 10px;
}

.card-details li::before {
    content: '>';
    color: var(--accent);
    font-family: monospace;
}

/* Contact / Terminal */
#contact {
    padding: 100px 5%;
    display: flex;
    justify-content: center;
    background: #0a0a0a;
}

.terminal-window {
    width: 100%;
    max-width: 800px;
    background: #000;
    border: 1px solid #333;
    border-radius: 5px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
    font-family: 'Courier New', monospace;
    overflow: hidden;
}

.terminal-header {
    background: #1a1a1a;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid #333;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.red { background: #ff5f56; }
.yellow { background: #ffbd2e; }
.green { background: #27c93f; }

.title {
    margin-left: 15px;
    color: #888;
    font-size: 0.9rem;
}

.terminal-body {
    padding: 20px;
    color: var(--accent);
    height: 400px;
    overflow-y: auto;
}

.output p {
    margin-bottom: 10px;
    opacity: 0;
    animation: type 0.5s forwards;
}

@keyframes type {
    to { opacity: 1; }
}

.input-line {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
    border-top: 1px solid #333;
    padding-top: 20px;
}

.prompt {
    color: #fff;
    font-weight: bold;
}

#user-input {
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 1rem;
    width: 100%;
    outline: none;
}

/* Footer */
footer {
    padding: 40px;
    text-align: center;
    background: #000;
    border-top: 1px solid #1a1a1a;
    color: #444;
    font-size: 0.8rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* Responsive */
@media (max-width: 768px) {
    h1 { font-size: 2.5rem; }
    .hero-stats { flex-direction: column; gap: 20px; }
    .nav-links { display: none; }
    .menu-btn { display: block; color: #fff; cursor: pointer; }
}
