:root {
    --bg: #0a0a0a;
    --surface: #111111;
    --primary: #ff4500;
    /* Orange Red */
    --secondary: #ff0000;
    /* Red */
    --text: #e0e0e0;
    --dim: #666666;
    --code: #00ff00;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Fira Code', monospace;
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.5;
    overflow-x: hidden;
}

/* Noise Overlay */
.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI1IiBoZWlnaHQ9IjUiPgo8cmVjdCB3aWR0aD0iNSIgaGVpZ2h0PSI1IiBmaWxsPSIjZmZmIiBmaWxsLW9wYWNpdHk9IjAuMDUiLz4KPC9zdmc+');
    opacity: 0.1;
    z-index: -1;
    pointer-events: none;
}

.scanline {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 50%, rgba(0, 0, 0, 0.5) 50%);
    background-size: 100% 4px;
    z-index: 9999;
    pointer-events: none;
    opacity: 0.2;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Navbar */
.navbar {
    position: fixed;
    width: 100%;
    top: 0;
    background: rgba(10, 10, 10, 0.9);
    border-bottom: 1px solid var(--dim);
    z-index: 1000;
    padding: 1rem 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -1px;
}

.bracket {
    color: var(--primary);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: var(--dim);
    font-weight: 500;
    transition: 0.2s;
}

.nav-link:hover {
    color: var(--primary);
    text-shadow: 0 0 10px var(--primary);
}

.burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.burger span {
    width: 25px;
    height: 3px;
    background: var(--primary);
}

/* Hero */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255, 69, 0, 0.1) 0%, transparent 70%);
    z-index: -1;
}

.status-bar {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: 1px solid var(--dim);
    padding: 5px 15px;
    font-size: 0.8rem;
    color: var(--code);
    margin-bottom: 2rem;
    background: rgba(0, 255, 0, 0.05);
}

.status-dot {
    width: 8px;
    height: 8px;
    background: var(--code);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--code);
    animation: blink 1s infinite;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.3;
    }
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 5rem);
    line-height: 1;
    margin-bottom: 2rem;
    position: relative;
    color: var(--text);
}

/* Glitch Effect */
.glitch {
    position: relative;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.glitch::before {
    left: 2px;
    text-shadow: -1px 0 var(--secondary);
    clip: rect(24px, 550px, 90px, 0);
    animation: glitch-anim-2 3s infinite linear alternate-reverse;
}

.glitch::after {
    left: -2px;
    text-shadow: -1px 0 var(--primary);
    clip: rect(85px, 550px, 140px, 0);
    animation: glitch-anim 2.5s infinite linear alternate-reverse;
}

@keyframes glitch-anim {
    0% {
        clip: rect(10px, 9999px, 30px, 0);
    }

    20% {
        clip: rect(80px, 9999px, 100px, 0);
    }

    40% {
        clip: rect(10px, 9999px, 50px, 0);
    }

    60% {
        clip: rect(60px, 9999px, 80px, 0);
    }

    80% {
        clip: rect(120px, 9999px, 150px, 0);
    }

    100% {
        clip: rect(40px, 9999px, 60px, 0);
    }
}

@keyframes glitch-anim-2 {
    0% {
        clip: rect(60px, 9999px, 90px, 0);
    }

    20% {
        clip: rect(10px, 9999px, 40px, 0);
    }

    40% {
        clip: rect(100px, 9999px, 130px, 0);
    }

    60% {
        clip: rect(30px, 9999px, 50px, 0);
    }

    80% {
        clip: rect(140px, 9999px, 160px, 0);
    }

    100% {
        clip: rect(20px, 9999px, 40px, 0);
    }
}

.hero-text {
    font-size: 1.1rem;
    color: var(--dim);
    margin-bottom: 3rem;
    border-left: 2px solid var(--primary);
    padding-left: 1rem;
}

.hero-actions {
    display: flex;
    gap: 1rem;
}

.btn {
    padding: 1rem 2rem;
    font-family: 'Fira Code', monospace;
    font-weight: 700;
    text-decoration: none;
    border: 1px solid transparent;
    transition: 0.2s;
    cursor: pointer;
    text-transform: uppercase;
}

.btn-danger {
    background: var(--primary);
    color: #000;
    box-shadow: 0 0 20px rgba(255, 69, 0, 0.3);
}

.btn-danger:hover {
    background: var(--secondary);
    box-shadow: 0 0 30px rgba(255, 0, 0, 0.5);
}

.btn-outline {
    background: transparent;
    border-color: var(--dim);
    color: var(--dim);
}

.btn-outline:hover {
    border-color: var(--text);
    color: var(--text);
    background: rgba(255, 255, 255, 0.05);
}

/* Services */
section {
    padding: 100px 0;
}

.section-title {
    font-size: 2rem;
    margin-bottom: 4rem;
    border-bottom: 1px solid var(--dim);
    display: inline-block;
    padding-right: 2rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--surface);
    border: 1px solid var(--dim);
    padding: 2rem;
    transition: 0.3s;
    position: relative;
    overflow: hidden;
}

.service-card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
}

.service-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: 0.3s;
}

.service-card:hover::after {
    transform: scaleX(1);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.card-id {
    color: var(--dim);
    font-size: 0.8rem;
}

.card-header i {
    font-size: 1.5rem;
    color: var(--primary);
}

.service-card h3 {
    margin-bottom: 1rem;
    color: var(--text);
}

.service-card p {
    color: var(--dim);
    font-size: 0.9rem;
}

/* Tech */
.tech-terminal {
    background: #000;
    border: 1px solid var(--dim);
    border-radius: 5px;
    overflow: hidden;
}

.terminal-header {
    background: var(--surface);
    padding: 10px;
    border-bottom: 1px solid var(--dim);
    display: flex;
    align-items: center;
}

.terminal-dots {
    display: flex;
    gap: 5px;
    margin-right: 15px;
}

.terminal-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--dim);
}

.terminal-title {
    font-size: 0.8rem;
    color: var(--dim);
}

.terminal-body {
    padding: 2rem;
}

.cmd-line {
    margin-bottom: 2rem;
    color: var(--code);
}

.prompt {
    color: var(--primary);
    margin-right: 10px;
}

.output-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.tech-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.tech-name {
    width: 120px;
    color: var(--primary);
}

.tech-ver {
    width: 80px;
    color: var(--dim);
    font-size: 0.8rem;
}

.progress-bar {
    flex-grow: 1;
    height: 4px;
    background: var(--surface);
    position: relative;
}

.fill {
    height: 100%;
    background: var(--primary);
    box-shadow: 0 0 10px var(--primary);
}

/* Contact */
.contact-terminal {
    max-width: 600px;
    margin: 0 auto;
    border: 1px solid var(--primary);
    padding: 2rem;
    background: rgba(255, 69, 0, 0.02);
}

.form-row {
    margin-bottom: 1.5rem;
}

.form-row label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--primary);
    font-size: 0.9rem;
}

.form-row input,
.form-row textarea {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--dim);
    color: var(--text);
    font-family: 'Fira Code', monospace;
    padding: 10px 0;
    outline: none;
}

.form-row input:focus,
.form-row textarea:focus {
    border-bottom-color: var(--primary);
}

.contact-terminal button {
    width: 100%;
    margin-top: 1rem;
}

/* Footer */
.footer {
    padding: 2rem 0;
    text-align: center;
    border-top: 1px solid var(--surface);
    color: var(--dim);
    font-size: 0.8rem;
}

/* Animations */
[data-aos] {
    opacity: 0;
    transform: translateY(20px);
    transition: 0.5s ease;
}

[data-aos].aos-animate {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: var(--bg);
        width: 100%;
        padding: 2rem;
        border-bottom: 1px solid var(--dim);
        transition: 0.3s;
    }

    .nav-menu.active {
        left: 0;
    }

    .burger {
        display: flex;
    }

    .output-grid {
        font-size: 0.8rem;
    }

    .tech-item {
        flex-wrap: wrap;
    }

    .progress-bar {
        width: 100%;
        margin-top: 5px;
    }
}