:root {
    --primary: #ff4d4d;
    --primary-glow: rgba(255, 77, 77, 0.5);
    --secondary: #00f0ff;
    --bg-dark: #050a14;
    --bg-card: rgba(10, 20, 40, 0.7);
    --text-main: #e0e0e0;
    --text-muted: #8a9bb0;
    --border-color: rgba(255, 255, 255, 0.1);
    
    --font-sans: 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    --font-display: 'Space Mono', monospace;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: none !important; /* Hide default cursor */
}

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

/* --- Custom Cursor --- */
.cursor-dot {
    position: fixed;
    top: 0;
    left: 0;
    width: 8px;
    height: 8px;
    background-color: var(--primary);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    mix-blend-mode: difference;
}

.cursor-ring {
    position: fixed;
    top: 0;
    left: 0;
    width: 40px;
    height: 40px;
    border: 1px solid var(--primary);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    transition: width 0.2s, height 0.2s, border-color 0.2s;
}

.cursor-line {
    position: fixed;
    background-color: rgba(255, 77, 77, 0.2);
    pointer-events: none;
    z-index: 9990;
    opacity: 0;
    transition: opacity 0.2s;
}

.h-line { height: 1px; width: 100%; left: 0; }
.v-line { width: 1px; height: 100%; top: 0; }

body:hover .cursor-line { opacity: 1; }

/* --- Grid Background --- */
.grid-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: -1;
    pointer-events: none;
}

/* --- Typography & Utilities --- */
.text-primary { color: var(--primary); }
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* --- Navigation --- */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.5rem 0;
    background: rgba(5, 10, 20, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    z-index: 100;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: -0.05em;
}

.logo-icon {
    background: var(--primary);
    color: white;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

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

.nav-link {
    color: var(--text-muted);
    text-decoration: none;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: color 0.3s;
}

.nav-link:hover { color: var(--primary); }

/* --- Buttons --- */
.btn {
    padding: 0.75rem 1.5rem;
    font-family: var(--font-mono);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: none;
    outline: none;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: #ff3333;
    box-shadow: 0 0 15px var(--primary-glow);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-main);
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
}

/* --- Hero Section --- */
.hero {
    padding-top: 160px;
    padding-bottom: 100px;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.system-status {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: 1px solid var(--primary);
    padding: 0.25rem 0.75rem;
    margin-bottom: 2rem;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--primary);
}

.status-dot {
    width: 6px;
    height: 6px;
    background: var(--primary);
    box-shadow: 0 0 5px var(--primary);
}

.hero-title {
    font-family: var(--font-display);
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
}

.glitch-text {
    color: var(--secondary);
    position: relative;
}

.hero-description {
    font-size: 1.125rem;
    color: var(--text-muted);
    max-width: 500px;
    margin-bottom: 2.5rem;
    border-left: 2px solid rgba(255, 77, 77, 0.3);
    padding-left: 1.5rem;
}

.hero-actions {
    display: flex;
    gap: 1rem;
}

.hologram-container {
    position: relative;
    border: 1px solid var(--border-color);
    padding: 1rem;
    background: rgba(255, 255, 255, 0.02);
}

.hologram-image {
    width: 100%;
    height: auto;
    display: block;
    opacity: 0.8;
}

.scanline {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--secondary);
    opacity: 0.5;
    animation: scan 3s linear infinite;
    box-shadow: 0 0 10px var(--secondary);
}

@keyframes scan {
    0% { top: 0%; }
    100% { top: 100%; }
}

/* --- Services Section --- */
.services {
    padding: 100px 0;
}

.section-header {
    margin-bottom: 4rem;
}

.section-title {
    font-family: var(--font-display);
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-line {
    width: 100px;
    height: 4px;
    background: var(--primary);
}

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

.tech-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 2rem;
    position: relative;
    transition: transform 0.3s, border-color 0.3s;
}

.tech-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
}

.card-corner {
    position: absolute;
    width: 10px;
    height: 10px;
    border: 2px solid var(--primary);
    opacity: 0;
    transition: opacity 0.3s;
}

.tech-card:hover .card-corner { opacity: 1; }

.top-left { top: -1px; left: -1px; border-right: 0; border-bottom: 0; }
.top-right { top: -1px; right: -1px; border-left: 0; border-bottom: 0; }
.bottom-left { bottom: -1px; left: -1px; border-right: 0; border-top: 0; }
.bottom-right { bottom: -1px; right: -1px; border-left: 0; border-top: 0; }

.card-icon img {
    width: 64px;
    height: 64px;
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 0 10px rgba(0, 240, 255, 0.3));
}

.card-title {
    font-family: var(--font-display);
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
}

.card-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* --- Notifications --- */
.notification-container {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    z-index: 10000;
    pointer-events: none;
}

.alert {
    background: rgba(5, 10, 20, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid;
    padding: 1rem;
    width: 320px;
    pointer-events: auto;
    animation: slideIn 0.3s ease-out forwards;
    position: relative;
    overflow: hidden;
}

.alert-success { border-color: #22c55e; color: #22c55e; }
.alert-info { border-color: var(--secondary); color: var(--secondary); }

.alert-title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.85rem;
    margin-bottom: 0.25rem;
    text-transform: uppercase;
}

.alert-message {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-muted);
}

@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-description {
        margin: 0 auto 2.5rem;
        border-left: none;
        border-top: 2px solid rgba(255, 77, 77, 0.3);
        padding-top: 1rem;
        padding-left: 0;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .nav-links {
        display: none; /* Simple hide for mobile MVP */
    }
}

/* --- Philosophy Section --- */
.philosophy {
    padding: 100px 0;
    background: linear-gradient(to right, rgba(5, 10, 20, 0.9), rgba(5, 10, 20, 0.7));
}

.philosophy-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.philosophy-text {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.highlight {
    color: var(--text-main);
    font-weight: 600;
    border-bottom: 1px solid var(--primary);
}

.philosophy-list {
    list-style: none;
}

.philosophy-list li {
    margin-bottom: 1rem;
    font-family: var(--font-mono);
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.list-marker {
    color: var(--primary);
    font-weight: 700;
}

.code-block {
    background: #0d1117;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
    font-family: var(--font-mono);
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.code-header {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.red { background: #ff5f56; }
.yellow { background: #ffbd2e; }
.green { background: #27c93f; }

pre {
    color: #c9d1d9;
    font-size: 0.9rem;
    overflow-x: auto;
}

/* --- Process Section --- */
.process {
    padding: 100px 0;
}

.center-header {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.center-line {
    margin-top: 1rem;
}

.process-steps {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-top: 4rem;
    position: relative;
}

.step {
    flex: 1;
    text-align: center;
    padding: 0 1rem;
    position: relative;
    z-index: 2;
}

.step-number {
    font-family: var(--font-display);
    font-size: 3rem;
    color: rgba(255, 255, 255, 0.05);
    font-weight: 700;
    margin-bottom: -1.5rem;
    position: relative;
    z-index: -1;
}

.step-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--secondary);
}

.step-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.step-connector {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    margin-top: 2rem;
    opacity: 0.3;
}

/* --- Contact Section --- */
.contact {
    padding: 100px 0;
    background: rgba(5, 10, 20, 0.5);
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-desc {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 3rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.contact-label {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--primary);
    letter-spacing: 0.1em;
}

.contact-value {
    font-family: var(--font-display);
    font-size: 1.5rem;
}

.contact-form {
    background: var(--bg-card);
    padding: 2.5rem;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-muted);
    letter-spacing: 0.1em;
}

.form-group input,
.form-group textarea {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    padding: 1rem;
    color: var(--text-main);
    font-family: var(--font-sans);
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
}

/* --- Footer --- */
.footer {
    padding: 2rem 0;
    border-top: 1px solid var(--border-color);
    background: #020408;
}

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

.footer-logo {
    font-family: var(--font-display);
    font-weight: 700;
}

.footer-copyright {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* --- Responsive Updates --- */
@media (max-width: 768px) {
    .philosophy-grid,
    .contact-container {
        grid-template-columns: 1fr;
    }
    
    .process-steps {
        flex-direction: column;
        gap: 3rem;
    }
    
    .step-connector {
        display: none;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}
