:root {
    --bg-color: #000000;
    --accent-color: #FF0033;
    --text-color: #a0a0a0;
    --heading-color: #ffffff;
    --glass-bg: rgba(10, 10, 10, 0.9);
    --glass-border: rgba(255, 0, 51, 0.3);
    --font-main: 'Fira Code', monospace;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: none;
    /* Custom cursor everywhere */
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-main);
    overflow-x: hidden;
    line-height: 1.6;
}

/* --- CUSTOM CURSOR --- */
#cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 20px;
    height: 20px;
    border: 1px solid var(--accent-color);
    border-radius: 50%;
    pointer-events: none;
    z-index: 10000;
    transform: translate(-50%, -50%);
    transition: width 0.2s, height 0.2s, background-color 0.2s;
    mix-blend-mode: difference;
}

#cursor.active {
    width: 50px;
    height: 50px;
    background-color: rgba(255, 0, 51, 0.2);
    border-color: #fff;
}

/* --- OVERLAYS --- */
#scanlines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: linear-gradient(to bottom,
            rgba(255, 255, 255, 0),
            rgba(255, 255, 255, 0) 50%,
            rgba(0, 0, 0, 0.2) 50%,
            rgba(0, 0, 0, 0.2));
    background-size: 100% 4px;
    pointer-events: none;
    z-index: 9998;
    opacity: 0.4;
}

#matrix-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.2;
}

#canvas-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

/* --- HEADER --- */
header {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    border-bottom: 1px solid rgba(255, 0, 51, 0.1);
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--heading-color);
    text-decoration: none;
    letter-spacing: 2px;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

nav a {
    color: var(--heading-color);
    text-decoration: none;
    font-size: 0.9rem;
    text-transform: uppercase;
    transition: color 0.3s;
}

nav a:hover {
    color: var(--accent-color);
    text-shadow: 0 0 10px var(--accent-color);
}

/* --- HERO SECTION --- */
.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 0 10%;
}

h1 {
    font-size: 4rem;
    color: var(--heading-color);
    margin-bottom: 2rem;
    line-height: 1.1;
    text-transform: uppercase;
}

.glitch {
    position: relative;
    color: var(--heading-color);
}

.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: -2px 0 #ff00c1;
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim 5s infinite linear alternate-reverse;
}

.glitch::after {
    left: -2px;
    text-shadow: -2px 0 #00fff9;
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim 5s infinite linear alternate-reverse;
}

@keyframes glitch-anim {
    0% {
        clip: rect(10px, 9999px, 30px, 0);
        transform: skew(0.5deg);
    }

    20% {
        clip: rect(80px, 9999px, 10px, 0);
        transform: skew(-0.5deg);
    }

    40% {
        clip: rect(40px, 9999px, 60px, 0);
        transform: skew(0.5deg);
    }

    60% {
        clip: rect(20px, 9999px, 90px, 0);
        transform: skew(-0.5deg);
    }

    80% {
        clip: rect(60px, 9999px, 20px, 0);
        transform: skew(0.5deg);
    }

    100% {
        clip: rect(30px, 9999px, 50px, 0);
        transform: skew(-0.5deg);
    }
}

.btn-cta {
    padding: 15px 40px;
    background: transparent;
    border: 1px solid var(--accent-color);
    color: var(--accent-color);
    font-family: var(--font-main);
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    overflow: hidden;
}

.btn-cta:hover {
    background: var(--accent-color);
    color: #000;
    box-shadow: 0 0 20px var(--accent-color);
}

/* --- SECTIONS --- */
.section {
    padding: 100px 10%;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.section-title {
    font-size: 2.5rem;
    color: var(--heading-color);
    margin-bottom: 50px;
    border-left: 4px solid var(--accent-color);
    padding-left: 20px;
}

/* --- SERVICES GRID --- */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 30px;
    transition: transform 0.3s, border-color 0.3s;
}

.card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.card h3 {
    color: var(--heading-color);
    margin-bottom: 15px;
    font-size: 1.5rem;
}

/* --- TESTIMONIALS (TERMINAL STYLE) --- */
.testimonial-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.terminal-log {
    background: #0a0a0a;
    border-left: 2px solid var(--accent-color);
    padding: 20px;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    color: #00ff00;
    /* Terminal Green text for contrast */
}

.terminal-log .user {
    color: var(--accent-color);
    font-weight: bold;
}

.terminal-log .timestamp {
    color: #555;
    font-size: 0.8rem;
    margin-bottom: 5px;
    display: block;
}

/* --- CONTACT FORM --- */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 600px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid #333;
    color: #fff;
    font-family: var(--font-main);
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--accent-color);
}

/* --- FOOTER --- */
footer {
    padding: 50px 10%;
    background: #000;
    border-top: 1px solid #333;
    text-align: center;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 30px;
}

.social-icon {
    font-size: 1.5rem;
    color: #555;
    text-decoration: none;
    transition: color 0.3s, text-shadow 0.3s;
}

.social-icon:hover {
    color: var(--accent-color);
    text-shadow: 0 0 15px var(--accent-color);
}

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    header {
        padding: 20px;
    }

    nav {
        display: none;
    }

    .section {
        padding: 80px 20px;
    }
}