/* ============================================================
NEURAL LOGIC APPLICATIONS - Main Stylesheet
============================================================ */

:root {
    --black: #000000;
    --accent: #00FFAA;
    --accent-dark: #00CC88;
    --accent-glow: rgba(0, 255, 170, 0.15);
    --gray: #333333;
    --light-gray: #999999;
    --white: #FFFFFF;
    --font-primary: 'Space Grotesk', sans-serif;
    --transition-fast: 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --transition-medium: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --transition-slow: 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ============ RESET & BASE STYLES ============ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

/* ============ TYPOGRAPHY ============ */
h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.2;
}

h1 {
    font-size: clamp(3rem, 8vw, 6rem);
    text-transform: uppercase;
    letter-spacing: -0.02em;
    margin-bottom: 2rem;
}

h2 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: 1.5rem;
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin-bottom: 1rem;
    text-transform: uppercase;
}

h4 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

p {
    margin-bottom: 1rem;
}

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

.large-text {
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 2rem;
}

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

/* ============ CUSTOM CURSOR ============ */
.cursor {
    position: fixed;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--accent);
    pointer-events: none;
    mix-blend-mode: difference;
    transform: translate(-50%, -50%);
    z-index: 9999;
    transition: opacity 0.3s ease, width 0.3s ease, height 0.3s ease, background-color 0.3s ease;
}

.cursor::after {
    content: '';
    position: absolute;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--accent);
    transform: translate(-50%, -50%);
    top: 50%;
    left: 50%;
    opacity: 0.5;
    transition: width 0.3s ease, height 0.3s ease, opacity 0.3s ease;
}

.cursor.hover {
    width: 24px;
    height: 24px;
    background-color: transparent;
}

.cursor.hover::after {
    width: 60px;
    height: 60px;
    opacity: 0.8;
}

.cursor.click {
    transform: translate(-50%, -50%) scale(0.7);
}

.cursor.click::after {
    transform: translate(-50%, -50%) scale(1.4);
    opacity: 0;
}

/* Hide custom cursor on mobile devices */
@media (max-width: 768px) {
    .cursor {
        display: none;
    }
    
    body {
        cursor: auto;
    }
}

/* ============ NAVIGATION ============ */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 0;
    position: absolute;
    width: 100%;
    z-index: 10;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.1em;
}

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

.nav-links a {
    color: var(--white);
    text-decoration: none;
    text-transform: uppercase;
    font-weight: 500;
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    position: relative;
    transition: all 0.3s ease;
}

.nav-links a:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--accent);
    transition: width 0.3s ease;
}

.nav-links a:hover:after {
    width: 100%;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
}

.bar {
    width: 30px;
    height: 2px;
    background-color: var(--white);
    transition: all 0.3s ease;
}

.menu-toggle.active .bar:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active .bar:nth-child(2) {
    transform: rotate(-45deg);
}

/* ============ HEADER/HERO ============ */
header {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: 80px;
    position: relative;
}

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

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

.line {
    width: 50px;
    height: 2px;
    background-color: var(--accent);
}

.cta {
    margin-top: 3rem;
}

.btn-primary {
    display: inline-block;
    padding: 1rem 2rem;
    background-color: var(--accent);
    color: var(--black);
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--white);
    transform: translateY(-3px);
}

/* ============ SECTIONS ============ */
section {
    padding: 6rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 4rem;
    text-transform: uppercase;
}

/* ============ PROBLEM/SOLUTION SECTION ============ */
.problem-section {
    background-color: var(--gray);
}

.problem-container, .solution-container {
    margin-bottom: 3rem;
}

/* ============ SERVICES SECTION ============ */
.category {
    margin-bottom: 5rem;
}

.category-title {
    border-bottom: 2px solid var(--accent);
    padding-bottom: 0.5rem;
    margin-bottom: 2rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 2rem;
}

.service-card {
    background-color: rgba(51, 51, 51, 0.5);
    padding: 2rem;
    border-left: 3px solid var(--accent);
    transition: all 0.3s ease;
    transform: perspective(1000px) rotateY(var(--rotate-y, 0deg));
}

.service-card:hover {
    transform: perspective(1000px) rotateY(var(--rotate-y, 0deg)) translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 255, 170, 0.1);
}

.service-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--accent);
    opacity: 0.3;
    margin-bottom: 1rem;
}

.keywords {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.keywords span {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    background-color: var(--gray);
    border-radius: 2px;
}

/* ============ CONTACT SECTION ============ */
.contact-section {
    background-color: var(--gray);
}

.contact-intro {
    text-align: center;
    margin-bottom: 3rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* ============ FOOTER ============ */
footer {
    background-color: var(--black);
    padding: 2rem 0;
}

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

.copyright {
    font-size: 0.875rem;
    color: var(--light-gray);
}

/* ============ RESPONSIVE ============ */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        background-color: rgba(0, 0, 0, 0.95);
        padding: 1.5rem;
        flex-direction: column;
        align-items: center;
        z-index: 100;
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .nav-links a {
        margin: 0.5rem 0;
        font-size: 1.2rem;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .service-card {
        min-height: 300px;
    }
    
    .services-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
    
    .footer-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    body.menu-open {
        overflow: hidden;
    }
}