:root {
    --primary-color: #0a192f;
    --secondary-color: #112240;
    --accent-color: #64ffda;
    --text-primary: #ccd6f6;
    --text-secondary: #8892b0;
    --white: #ffffff;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
}

/* Custom Cursor Trailer */
#mouse-trailer {
    height: 20px;
    width: 20px;
    background-color: var(--accent-color);
    border-radius: 50%;
    position: fixed;
    left: 0;
    top: 0;
    z-index: 10000;
    pointer-events: none;
    opacity: 0;
    transition: opacity 500ms ease, transform 100ms ease;
    mix-blend-mode: difference;
}

#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

.scroll-progress-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: transparent;
    z-index: 2000;
}

.scroll-progress-bar {
    height: 100%;
    background: var(--accent-color);
    width: 0%;
    transition: width 0.1s ease;
}

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

body {
    background-color: var(--primary-color);
    color: var(--text-primary);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography */
h1,
h2,
h3 {
    font-weight: 700;
    color: var(--white);
    margin-bottom: 20px;
}

p {
    color: var(--text-secondary);
    margin-bottom: 15px;
}

/* Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

section {
    padding: 100px 0;
}

/* Header & Nav */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    backdrop-filter: blur(10px);
    background: rgba(10, 25, 47, 0.85);
    transition: var(--transition);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    background: var(--glass-bg);
    padding: 8px 16px;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    transition: var(--transition);
    gap: 12px;
}

.logo:hover {
    background: rgba(100, 255, 218, 0.08);
    border-color: var(--accent-color);
    box-shadow: 0 0 20px rgba(100, 255, 218, 0.1);
}

.logo img {
    height: 32px;
    filter: drop-shadow(0 0 8px rgba(100, 255, 218, 0.2));
}

.logo::after {
    content: "LOGIC AGENT";
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--white);
    transition: var(--transition);
}

.logo:hover::after {
    color: var(--accent-color);
}

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

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

.nav-links a {
    text-decoration: none;
    color: var(--text-primary);
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--accent-color);
}

/* Hero Section */
.hero {
    height: 100vh;
    background: linear-gradient(rgba(10, 25, 47, 0.8), rgba(10, 25, 47, 0.8)), url('assets/hero-bg.png');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: clamp(40px, 8vw, 80px);
    margin-bottom: 20px;
}

.hero-subline {
    font-size: 1.5rem;
    color: var(--text-primary);
    max-width: 700px;
    margin: 0 auto 40px;
    line-height: 1.4;
}

.hero-subline::after {
    content: "|";
    color: var(--accent-color);
    animation: blink 1s step-end infinite;
}

@keyframes blink {

    from,
    to {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

.authority-bar {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 0 auto 50px;
    flex-wrap: wrap;
    max-width: 900px;
}

.signal {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: var(--glass-bg);
    padding: 12px 24px;
    border-radius: 50px;
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(5px);
    transition: var(--transition);
}

.signal:hover {
    border-color: var(--accent-color);
    background: rgba(100, 255, 218, 0.05);
}

.signal-icon {
    font-size: 1.2rem;
    display: flex;
    align-items: center;
}

.signal-text {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-primary);
    white-space: nowrap;
}

/* Services Section */
.service-category {
    background: var(--secondary-color);
    padding: 40px;
    border-radius: 8px;
    border: 1px solid var(--glass-border);
    transition: var(--transition);
}

.service-category:hover {
    border-color: var(--accent-color);
    transform: translateY(-5px);
}

.category-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
}

.cat-icon {
    font-size: 2rem;
}

.service-category h3 {
    font-size: 1.4rem;
    margin-bottom: 0;
    color: var(--accent-color);
}

.service-list {
    list-style: none;
    text-align: left;
}

.service-list li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 12px;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.service-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--accent-color);
}

/* Clients Section */
.clients-section {
    background: var(--secondary-color);
}

.clients-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.client-list {
    list-style: none;
    margin-top: 25px;
}

.client-list li {
    margin-bottom: 15px;
    font-size: 1.1rem;
    color: var(--text-secondary);
}

.client-list strong {
    color: var(--white);
}

.cta-box {
    background: var(--primary-color);
    padding: 50px;
    border-radius: 8px;
    border: 1px solid var(--accent-color);
    text-align: center;
}

.cta-box h3 {
    margin-bottom: 30px;
    font-size: 1.8rem;
}

/* Projects Section */
.projects-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 50px;
}

.project-card {
    background: var(--secondary-color);
    padding: 40px;
    border-radius: 8px;
    border: 1px solid var(--glass-border);
    transition: var(--transition);
}

.project-card:hover {
    border-color: var(--accent-color);
}

.project-tag {
    display: inline-block;
    color: var(--accent-color);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.project-card h3 {
    margin-bottom: 25px;
}

.project-details {
    list-style: none;
}

.project-details li {
    margin-bottom: 15px;
    color: var(--text-secondary);
}

/* Responsive */
@media (max-width: 992px) {

    .clients-layout,
    .projects-grid {
        grid-template-columns: 1fr;
    }

    .authority-bar {
        gap: 20px;
    }
}

/* Contact Section */
.contact-container {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.contact-info {
    margin-top: 30px;
}

.contact-item {
    margin-bottom: 20px;
}

.contact-item a {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 1.1rem;
    transition: var(--transition);
}

.contact-item a:hover {
    color: var(--accent-color);
}

/* Footer */
footer {
    padding: 50px 0;
    text-align: center;
    border-top: 1px solid var(--glass-border);
}

.footer-content p {
    font-size: 0.9rem;
}

/* Animations */
.js-enabled [data-reveal] {
    opacity: 0;
    transform: translateY(30px);
}

[data-reveal] {
    transition: all 0.8s ease-out;
}

[data-reveal].active {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }

    .nav-links {
        display: none;
    }

    .hero h1 {
        font-size: 42px;
    }

    .hero-subline {
        font-size: 1.1rem;
        margin-bottom: 25px;
    }

    .authority-bar {
        flex-direction: column;
        align-items: center;
        gap: 12px;
        margin-bottom: 35px;
    }

    .signal {
        width: 100%;
        max-width: 320px;
        padding: 10px 15px;
    }

    section {
        padding: 60px 0;
    }

    .clients-layout,
    .projects-grid {
        grid-template-columns: 1fr;
    }

    .cta-box {
        padding: 30px;
    }
}