:root {
    --primary-color: #00e0ff; /* Neon Blue */
    --secondary-color: #ff00e0; /* Neon Pink/Magenta */
    --text-color: #e0e0e0; /* Light Grey */
    --dark-bg: #1a1a2e; /* Dark Blue-Purple */
    --darker-bg: #0f0f1a; /* Even darker */
    --font-heading: 'Orbitron', sans-serif;
    --font-body: 'Share Tech Mono', monospace;
    --border-color: rgba(0, 224, 255, 0.5);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text-color);
    background-color: var(--darker-bg);
    background-image: url('background.png');
    background-size: cover;
    background-attachment: fixed;
    line-height: 1.6;
    overflow-x: hidden; /* Prevent horizontal scroll from glitch effect */
}

/* Glitch/Scanline Overlay */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        transparent 0,
        transparent 2px,
        rgba(0, 255, 255, 0.05) 3px,
        transparent 4px
    );
    pointer-events: none;
    z-index: 9999;
    animation: scanline 8s infinite linear;
}

@keyframes scanline {
    0% { background-position: 0 0; }
    100% { background-position: 0 100%; }
}

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

.header {
    background-color: rgba(15, 15, 26, 0.8);
    padding: 20px 0;
    border-bottom: 2px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(5px);
}

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

.logo {
    font-family: var(--font-heading);
    font-size: 2.5em;
    color: var(--primary-color);
    text-shadow: 0 0 10px var(--primary-color), 0 0 20px var(--primary-color);
    letter-spacing: 3px;
    animation: neon-pulse 1.5s infinite alternate;
}

@keyframes neon-pulse {
    from {
        text-shadow: 0 0 5px var(--primary-color), 0 0 10px var(--primary-color);
    }
    to {
        text-shadow: 0 0 10px var(--primary-color), 0 0 20px var(--primary-color), 0 0 30px var(--primary-color);
    }
}

.nav-list {
    list-style: none;
    display: flex;
}

.nav-list li {
    margin-left: 30px;
}

.nav-list a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 1.1em;
    padding: 5px 10px;
    transition: color 0.3s, text-shadow 0.3s, border-bottom 0.3s;
    border-bottom: 2px solid transparent;
}

.nav-list a:hover {
    color: var(--primary-color);
    text-shadow: 0 0 8px var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.8em;
    color: var(--primary-color);
}

.nav-toggle-icon {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
    position: relative;
    transition: background-color 0.3s;
}

.nav-toggle-icon::before,
.nav-toggle-icon::after {
    content: '';
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
    position: absolute;
    transition: transform 0.3s;
}

.nav-toggle-icon::before {
    top: -8px;
}

.nav-toggle-icon::after {
    top: 8px;
}

.nav.active .nav-toggle-icon {
    background-color: transparent;
}

.nav.active .nav-toggle-icon::before {
    transform: translateY(8px) rotate(45deg);
}

.nav.active .nav-toggle-icon::after {
    transform: translateY(-8px) rotate(-45deg);
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 20px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4); /* Dark overlay */
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 2;
    max-width: 900px;
}

.hero-headline {
    font-family: var(--font-heading);
    font-size: 4em;
    color: var(--primary-color);
    text-shadow: 0 0 15px var(--primary-color), 0 0 30px var(--primary-color), 0 0 45px var(--primary-color);
    margin-bottom: 20px;
    line-height: 1.2;
    animation: fade-in 1s ease-out forwards;
}

.hero-subheadline {
    font-size: 1.5em;
    color: var(--text-color);
    margin-bottom: 40px;
    opacity: 0;
    animation: fade-in 1s ease-out 0.5s forwards;
}

@keyframes fade-in {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--darker-bg);
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 5px;
    font-family: var(--font-heading);
    font-size: 1.2em;
    transition: background-color 0.3s, transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 0 15px rgba(0, 224, 255, 0.6);
    position: relative;
    overflow: hidden;
    z-index: 1;
    opacity: 0;
    animation: fade-in 1s ease-out 1s forwards;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s ease;
    z-index: -1;
}

.btn:hover {
    background-color: var(--secondary-color);
    transform: translateY(-5px);
    box-shadow: 0 0 25px rgba(255, 0, 224, 0.8);
}

.btn:hover::before {
    left: 100%;
}

.secondary-btn {
    background-color: transparent;
    border: 2px solid var(--secondary-color);
    color: var(--secondary-color);
    box-shadow: 0 0 15px rgba(255, 0, 224, 0.6);
}

.secondary-btn:hover {
    background-color: var(--secondary-color);
    color: var(--darker-bg);
    box-shadow: 0 0 25px rgba(255, 0, 224, 0.8);
}


/* Sections */
section {
    padding: 100px 0;
    background-color: rgba(15, 15, 26, 0.8); /* Semi-transparent background for content sections */
    margin: 40px 0;
    border-top: 2px solid var(--border-color);
    border-bottom: 2px solid var(--border-color);
    box-shadow: 0 0 20px rgba(0, 224, 255, 0.2);
}

.section-title {
    font-family: var(--font-heading);
    font-size: 3em;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 60px;
    text-shadow: 0 0 10px var(--primary-color);
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background: linear-gradient(to right, transparent, var(--secondary-color), transparent);
    margin: 20px auto 0;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.service-card {
    background-color: rgba(26, 26, 46, 0.9);
    padding: 30px;
    border-radius: 10px;
    border: 1px solid rgba(0, 224, 255, 0.3);
    text-align: center;
    box-shadow: 0 0 15px rgba(0, 224, 255, 0.2);
    transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 0 25px rgba(0, 224, 255, 0.6);
    border-color: var(--primary-color);
}

.card-title {
    font-family: var(--font-heading);
    font-size: 1.8em;
    color: var(--secondary-color);
    margin-bottom: 15px;
    text-shadow: 0 0 8px var(--secondary-color);
}

.card-description {
    font-size: 1em;
    color: var(--text-color);
}

/* About Section */
.about {
    text-align: center;
}

.about-description {
    font-size: 1.3em;
    max-width: 800px;
    margin: 0 auto 50px;
    color: var(--text-color);
}

/* Footer */
.footer {
    background-color: rgba(15, 15, 26, 0.8);
    padding: 30px 0;
    text-align: center;
    font-size: 0.9em;
    border-top: 2px solid var(--border-color);
    color: rgba(224, 224, 224, 0.7);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .header .container {
        flex-wrap: wrap;
    }

    .nav-toggle {
        display: block;
    }

    .nav-list {
        display: none;
        flex-direction: column;
        width: 100%;
        background-color: rgba(15, 15, 26, 0.9);
        border-top: 1px solid var(--border-color);
        padding: 20px 0;
        margin-top: 20px;
    }

    .nav.active .nav-list {
        display: flex;
    }

    .nav-list li {
        margin: 10px 0;
        text-align: center;
    }

    .nav-list a {
        font-size: 1.3em;
    }

    .hero-headline {
        font-size: 3em;
    }

    .hero-subheadline {
        font-size: 1.2em;
    }

    .btn {
        padding: 12px 25px;
        font-size: 1em;
    }

    .section-title {
        font-size: 2.5em;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .service-card {
        padding: 25px;
    }

    .card-title {
        font-size: 1.5em;
    }

    .about-description {
        font-size: 1.1em;
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: 2em;
    }

    .hero-headline {
        font-size: 2.2em;
    }

    .hero-subheadline {
        font-size: 1em;
    }

    .section-title {
        font-size: 2em;
    }
}

