:root {
    --bg-primary: #0a0e27;
    --bg-secondary: #0f1419;
    --bg-terminal: #1a1f2e;
    --text-primary: #00ff41;
    --text-secondary: #0dff00;
    --text-muted: #7f8c8d;
    --accent: #00d9ff;
    --accent-glow: rgba(0, 217, 255, 0.5);
    --border: #1e3a5f;
    --success: #00ff41;
    --warning: #ffaa00;
    --danger: #ff0040;
}

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

body {
    font-family: 'Courier New', monospace;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Scanlines effect */
.scanlines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        0deg,
        rgba(0, 0, 0, 0.1),
        rgba(0, 0, 0, 0.1) 1px,
        transparent 1px,
        transparent 2px
    );
    pointer-events: none;
    z-index: 9999;
    animation: scanline 8s linear infinite;
}

@keyframes scanline {
    0% { transform: translateY(0); }
    100% { transform: translateY(10px); }
}

/* Noise effect */
.noise {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        90deg,
        rgba(0, 255, 65, 0.03),
        rgba(0, 255, 65, 0.03) 1px,
        transparent 1px,
        transparent 2px
    );
    pointer-events: none;
    z-index: 9998;
    opacity: 0.5;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(10, 14, 39, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 2px 20px rgba(0, 255, 65, 0.1);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo .prompt {
    font-size: 1.2rem;
    color: var(--text-primary);
    text-shadow: 0 0 10px var(--text-primary);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border: 1px solid transparent;
}

.nav-links a:hover {
    color: var(--accent);
    border: 1px solid var(--accent);
    box-shadow: 0 0 10px var(--accent-glow);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 20px 50px;
}

.terminal-window {
    background: var(--bg-terminal);
    border-radius: 8px;
    border: 1px solid var(--border);
    box-shadow: 0 10px 50px rgba(0, 255, 65, 0.2);
    overflow: hidden;
    max-width: 900px;
    min-width: 900px;
    width: 100%;
    margin: 0 auto;
}

.terminal-header {
    background: var(--bg-secondary);
    padding: 0.8rem 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    border-bottom: 1px solid var(--border);
}

.terminal-buttons {
    display: flex;
    gap: 0.5rem;
}

.terminal-buttons .btn {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.btn.close { background: var(--danger); }
.btn.minimize { background: var(--warning); }
.btn.maximize { background: var(--success); }

.terminal-title {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.terminal-body {
    padding: 2rem;
    font-size: 0.95rem;
}

.prompt {
    color: var(--text-secondary);
    font-weight: bold;
}

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

.output {
    color: var(--text-muted);
    margin: 0.3rem 0;
}

.glitch {
    font-size: 3rem;
    font-weight: bold;
    color: var(--text-primary);
    text-shadow: 
        0 0 10px var(--text-primary),
        0 0 20px var(--text-primary),
        0 0 30px var(--text-primary);
    margin: 1rem 0;
    position: relative;
    animation: glitch 3s infinite;
}

@keyframes glitch {
    0%, 90%, 100% {
        transform: translate(0);
    }
    92% {
        transform: translate(-2px, 2px);
    }
    94% {
        transform: translate(2px, -2px);
    }
    96% {
        transform: translate(-2px, -2px);
    }
    98% {
        transform: translate(2px, 2px);
    }
}

.typing-text {
    color: var(--text-primary);
    font-size: 1.1rem;
    margin: 1rem 0;
    min-height: 2rem;
}

.success {
    color: var(--success);
    text-shadow: 0 0 5px var(--success);
}

.info {
    color: var(--accent);
    text-shadow: 0 0 5px var(--accent);
}

.cta-button {
    display: inline-block;
    margin-top: 1.5rem;
    padding: 1rem 2rem;
    background: transparent;
    color: var(--accent);
    text-decoration: none;
    border: 2px solid var(--accent);
    transition: all 0.3s ease;
    font-size: 1.1rem;
    box-shadow: 0 0 10px var(--accent-glow);
}

.cta-button:hover {
    background: var(--accent);
    color: var(--bg-primary);
    box-shadow: 0 0 20px var(--accent-glow), inset 0 0 20px rgba(0, 0, 0, 0.3);
    transform: translateY(-2px);
}

/* Services Section */
.services {
    padding: 80px 20px;
    background: var(--bg-secondary);
}

.section-title {
    font-size: 1.8rem;
    margin-bottom: 3rem;
    text-align: center;
    color: var(--text-primary);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.service-card {
    background: var(--bg-terminal);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 2rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    transition: left 0.5s ease;
}

.service-card:hover::before {
    left: 100%;
}

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

.card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.card-header .icon {
    font-size: 2.5rem;
    filter: grayscale(1) brightness(1.2);
}

.card-header h3 {
    color: var(--text-primary);
    font-size: 1.3rem;
}

.command-line {
    color: var(--text-muted);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border);
}

.service-list {
    list-style: none;
    margin: 1rem 0;
}

.service-list li {
    color: var(--text-muted);
    margin: 0.8rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.bullet {
    color: var(--accent);
    position: absolute;
    left: 0;
}

.output-status {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
    font-size: 0.9rem;
}

/* About Section */
.about {
    padding: 80px 20px;
    background: var(--bg-primary);
}

.about-content {
    max-width: 900px;
    margin: 0 auto;
}

.highlight {
    color: var(--accent);
    font-weight: bold;
}

/* Contact Section */
.contact {
    padding: 80px 20px;
    background: var(--bg-secondary);
}

.contact-content {
    max-width: 700px;
    margin: 0 auto;
}

.contact-info {
    margin: 1.5rem 0;
    font-size: 1.1rem;
}

.contact-info a {
    color: var(--accent);
    text-decoration: none;
    border-bottom: 1px dotted var(--accent);
    transition: all 0.3s ease;
}

.contact-info a:hover {
    color: var(--text-primary);
    border-bottom-color: var(--text-primary);
    text-shadow: 0 0 10px var(--text-primary);
}

/* Footer */
footer {
    padding: 2rem 20px;
    background: var(--bg-primary);
    border-top: 1px solid var(--border);
    text-align: center;
}

footer p {
    color: var(--text-muted);
    margin: 0.5rem 0;
}

.footer-note {
    font-size: 0.9rem;
    color: var(--text-muted);
    opacity: 0.7;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        gap: 1rem;
    }
    
    .nav-links a {
        font-size: 0.9rem;
        padding: 0.3rem 0.5rem;
    }
    
    .glitch {
        font-size: 2rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .terminal-body {
        padding: 1.5rem;
        font-size: 0.85rem;
    }
    
    .logo .prompt {
        font-size: 0.9rem;
    }
}

@media (max-width: 640px) {
    .terminal-window {
        min-width: 0;
        width: 100%;
    }
}

@media (max-width: 480px) {
    .navbar .container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Selection */
::selection {
    background: var(--accent);
    color: var(--bg-primary);
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent);
}
