/* Reset and Variables */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Colors */
    --primary: #00ff41;
    --primary-dark: #00cc33;
    --secondary: #ff0040;
    --accent: #ffff00;
    --warning: #ff8000;
    --bg-dark: #000000;
    --bg-darker: #0a0a0a;
    --bg-light: #111111;
    --text-primary: #ffffff;
    --text-secondary: #cccccc;
    --text-muted: #888888;
    --border: #333333;
    --border-active: #00ff41;
    
    /* Typography */
    --font-mono: 'JetBrains Mono', monospace;
    --font-display: 'Space Grotesk', sans-serif;
    
    /* Layout */
    --container-width: 1200px;
    --section-padding: clamp(60px, 8vh, 120px);
    --card-padding: clamp(16px, 3vw, 24px);
    --border-width: 2px;
    
    /* Animations */
    --transition: all 0.2s ease;
    --glitch-duration: 0.3s;
}

/* Base Styles */
html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-mono);
    background: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.4;
    overflow-x: hidden;
    font-size: 14px;
    letter-spacing: 0.05em;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 2px,
            rgba(0, 255, 65, 0.03) 2px,
            rgba(0, 255, 65, 0.03) 4px
        );
    pointer-events: none;
    z-index: 10000;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 clamp(16px, 4vw, 32px);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: var(--bg-darker);
    border-bottom: var(--border-width) solid var(--border);
    z-index: 1000;
    padding: 12px 0;
}

.nav-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 clamp(16px, 4vw, 32px);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo h1 {
    font-size: clamp(14px, 2.5vw, 18px);
    color: var(--primary);
    font-weight: 800;
    text-shadow: 0 0 10px var(--primary);
}

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

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 600;
    padding: 8px 16px;
    border: var(--border-width) solid transparent;
    transition: var(--transition);
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.1em;
}

.nav-link:hover {
    color: var(--primary);
    border-color: var(--primary);
    background: rgba(0, 255, 65, 0.1);
    text-shadow: 0 0 5px var(--primary);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 3px;
}

.hamburger .bar {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: var(--transition);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 80px 0 var(--section-padding);
    position: relative;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(2rem, 6vw, 4rem);
    align-items: center;
    width: 100%;
}

.status-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 8px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.status-item {
    color: var(--primary);
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 900;
    line-height: 0.9;
    margin-bottom: 2rem;
    font-family: var(--font-display);
}

.title-line {
    display: block;
    position: relative;
}

.title-line.accent {
    color: var(--primary);
    text-shadow: 0 0 20px var(--primary);
}

.terminal-window {
    background: var(--bg-light);
    border: var(--border-width) solid var(--border);
    margin-bottom: 2rem;
    font-family: var(--font-mono);
}

.terminal-header {
    background: var(--bg-darker);
    padding: 8px 12px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 8px;
}

.terminal-button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
}

.terminal-button.red { background: #ff5f56; }
.terminal-button.yellow { background: #ffbd2e; }
.terminal-button.green { background: #27ca3f; }

.terminal-title {
    margin-left: auto;
    font-size: 11px;
    color: var(--text-muted);
}

.terminal-content {
    padding: 16px;
    font-size: 13px;
    line-height: 1.6;
}

.terminal-content p {
    margin-bottom: 4px;
}

.prompt {
    color: var(--primary);
    font-weight: bold;
}

.cursor {
    color: var(--primary);
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    background: var(--bg-light);
    border: var(--border-width) solid var(--border);
    color: var(--text-primary);
    text-decoration: none;
    font-family: var(--font-mono);
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: var(--transition);
    min-width: 160px;
}

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

.btn-primary:hover {
    background: var(--primary);
    color: var(--bg-dark);
    text-shadow: none;
}

.btn-secondary:hover {
    border-color: var(--text-primary);
    background: var(--text-primary);
    color: var(--bg-dark);
}

.btn-arrow {
    font-weight: 900;
    font-size: 14px;
}

/* Hero Visual */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    padding: 20px;
    border: var(--border-width) solid var(--border);
    background: var(--bg-light);
}

.grid-item {
    aspect-ratio: 1;
    background: var(--bg-darker);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 700;
    color: var(--text-muted);
    transition: var(--transition);
    text-transform: uppercase;
}

.grid-item.active {
    background: var(--primary);
    color: var(--bg-dark);
    border-color: var(--primary);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(0, 255, 65, 0.4); }
    50% { box-shadow: 0 0 0 8px rgba(0, 255, 65, 0); }
}

/* Section Headers */
.section-header {
    margin-bottom: 3rem;
}

.section-title {
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    margin-bottom: 0.5rem;
    color: var(--primary);
    font-weight: 900;
}

.section-subtitle {
    font-family: var(--font-mono);
    font-size: 14px;
    color: var(--text-secondary);
}

.bracket { color: var(--accent); }
.key { color: var(--secondary); }
.colon { color: var(--text-muted); }

.command-line {
    font-family: var(--font-mono);
    font-size: 13px;
    background: var(--bg-light);
    padding: 12px 16px;
    border: 1px solid var(--border);
    margin-top: 1rem;
}

.prompt {
    color: var(--primary);
}

.command {
    color: var(--text-primary);
    margin-left: 8px;
}

/* Values Section */
.values {
    padding: var(--section-padding) 0;
    background: var(--bg-darker);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
}

.value-card {
    background: var(--bg-light);
    border: var(--border-width) solid var(--border);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

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

.card-header {
    background: var(--bg-darker);
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.card-id {
    font-size: 10px;
    color: var(--accent);
    font-weight: 700;
}

.card-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
}

.card-status {
    font-size: 10px;
    padding: 2px 6px;
    border: 1px solid var(--border);
    color: var(--text-muted);
}

.card-status.active {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(0, 255, 65, 0.1);
}

.card-content {
    padding: 16px;
}

.card-description {
    font-size: 12px;
    line-height: 1.5;
    margin-bottom: 16px;
    color: var(--text-secondary);
}

.progress-bar {
    height: 4px;
    background: var(--bg-darker);
    border: 1px solid var(--border);
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--primary);
    transition: width 2s ease;
}

.section-footer {
    margin-top: 2rem;
    text-align: right;
    font-family: var(--font-mono);
    font-size: 14px;
}

/* Products Section */
.products {
    padding: var(--section-padding) 0;
}

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

.product-card {
    background: var(--bg-light);
    border: var(--border-width) solid var(--border);
    transition: var(--transition);
}

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

.product-header {
    background: var(--bg-darker);
    border-bottom: 1px solid var(--border);
}

.product-window {
    display: flex;
    align-items: center;
    padding: 8px 12px;
}

.window-controls {
    display: flex;
    gap: 4px;
    margin-right: 12px;
}

.control {
    width: 12px;
    height: 12px;
    background: var(--border);
    color: var(--bg-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 8px;
    font-weight: 900;
}

.control.minimize { background: var(--accent); }
.control.maximize { background: var(--primary); }
.control.close { background: var(--secondary); }

.window-title {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 600;
}

.product-body {
    padding: var(--card-padding);
}

.product-icon {
    width: 48px;
    height: 48px;
    background: var(--primary);
    color: var(--bg-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 16px;
    border: 2px solid var(--primary);
}

.product-name {
    font-size: 16px;
    margin-bottom: 12px;
    color: var(--text-primary);
    font-weight: 700;
}

.product-description {
    font-size: 12px;
    line-height: 1.5;
    margin-bottom: 20px;
    color: var(--text-secondary);
}

.product-specs {
    margin-bottom: 20px;
}

.spec-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 11px;
    padding: 4px 0;
    border-bottom: 1px solid var(--bg-darker);
}

.spec-label {
    color: var(--text-muted);
    font-weight: 600;
}

.spec-value {
    color: var(--primary);
    font-weight: 700;
}

.product-link {
    background: var(--bg-darker);
    border: 1px solid var(--border);
    color: var(--text-primary);
    padding: 12px 16px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    cursor: pointer;
    transition: var(--transition);
}

.product-link:hover {
    border-color: var(--primary);
    background: var(--primary);
    color: var(--bg-dark);
}

.link-arrow {
    font-size: 12px;
    font-weight: 900;
}

/* About Section */
.about {
    padding: var(--section-padding) 0;
    background: var(--bg-darker);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.code-block {
    background: var(--bg-light);
    border: var(--border-width) solid var(--border);
    font-family: var(--font-mono);
    overflow: hidden;
}

.code-header {
    background: var(--bg-darker);
    padding: 8px 12px;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.file-name {
    font-size: 11px;
    color: var(--text-secondary);
    font-weight: 600;
}

.file-status {
    font-size: 10px;
    color: var(--primary);
    font-weight: 700;
}

.code-content {
    padding: 16px;
    font-size: 12px;
    line-height: 1.6;
}

.code-line {
    display: flex;
    margin-bottom: 2px;
}

.line-number {
    color: var(--text-muted);
    margin-right: 16px;
    font-weight: 600;
    min-width: 20px;
}

.keyword { color: var(--secondary); font-weight: 700; }
.class-name { color: var(--accent); font-weight: 700; }
.method { color: var(--primary); font-weight: 700; }
.string { color: var(--warning); }

.stats-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.stat-block {
    background: var(--bg-light);
    border: var(--border-width) solid var(--border);
    padding: 16px;
    text-align: center;
}

.stat-header {
    font-size: 10px;
    color: var(--text-muted);
    margin-bottom: 8px;
    font-weight: 700;
}

.stat-value {
    font-size: 2rem;
    font-weight: 900;
    color: var(--primary);
    margin-bottom: 12px;
    font-family: var(--font-display);
}

.stat-bar {
    height: 4px;
    background: var(--bg-darker);
    border: 1px solid var(--border);
    overflow: hidden;
}

.stat-fill {
    height: 100%;
    background: var(--primary);
    width: 100%;
    animation: fillBar 2s ease;
}

.stat-fill.infinite {
    background: linear-gradient(90deg, var(--primary), var(--accent), var(--primary));
    background-size: 200% 100%;
    animation: rainbow 2s linear infinite;
}

.stat-fill.complete {
    background: var(--primary);
}

@keyframes fillBar {
    from { width: 0; }
    to { width: 100%; }
}

@keyframes rainbow {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

/* Contact Section */
.contact {
    padding: var(--section-padding) 0;
}

.interface-status {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 0.5rem;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--text-muted);
}

.status-dot.active {
    background: var(--primary);
    animation: pulse 2s infinite;
}

.status-text {
    font-size: 10px;
    color: var(--text-muted);
    font-weight: 600;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.info-panel {
    background: var(--bg-light);
    border: var(--border-width) solid var(--border);
    overflow: hidden;
}

.panel-header {
    background: var(--bg-darker);
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    font-size: 12px;
    font-weight: 700;
    color: var(--primary);
}

.info-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 16px;
    border-bottom: 1px solid var(--bg-darker);
    font-size: 11px;
}

.info-label {
    color: var(--text-muted);
    font-weight: 600;
}

.info-value {
    color: var(--text-primary);
    font-weight: 700;
}

.info-value.status-active {
    color: var(--primary);
}

.form-panel {
    background: var(--bg-light);
    border: var(--border-width) solid var(--border);
    overflow: hidden;
}

.form-header {
    background: var(--bg-darker);
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.form-title {
    font-size: 12px;
    font-weight: 700;
    color: var(--primary);
}

.form-status {
    font-size: 10px;
    color: var(--accent);
    font-weight: 700;
}

.contact-form {
    padding: 16px;
}

.input-group {
    margin-bottom: 16px;
}

.input-label {
    display: block;
    font-size: 10px;
    color: var(--text-muted);
    margin-bottom: 4px;
    font-weight: 700;
    text-transform: uppercase;
}

.form-input,
.form-textarea {
    width: 100%;
    background: var(--bg-darker);
    border: 1px solid var(--border);
    color: var(--text-primary);
    font-family: var(--font-mono);
    font-size: 12px;
    padding: 8px 12px;
    transition: var(--transition);
}

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

.form-submit {
    background: var(--bg-darker);
    border: 1px solid var(--border);
    color: var(--text-primary);
    padding: 12px 16px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    cursor: pointer;
    transition: var(--transition);
}

.form-submit:hover {
    border-color: var(--primary);
    background: var(--primary);
    color: var(--bg-dark);
}

/* Footer */
.footer {
    background: var(--bg-darker);
    border-top: var(--border-width) solid var(--border);
    padding: 2rem 0 1rem;
    margin-top: var(--section-padding);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-title {
    font-size: 16px;
    margin-bottom: 1rem;
    color: var(--primary);
    font-weight: 900;
}

.footer-subtitle {
    font-size: 12px;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    font-weight: 700;
}

.footer-description {
    font-size: 11px;
    line-height: 1.5;
    color: var(--text-secondary);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.25rem;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 11px;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.copyright {
    font-size: 10px;
    color: var(--text-muted);
}

.system-info {
    display: flex;
    gap: 1rem;
    font-size: 9px;
    color: var(--text-muted);
}

/* Responsive Design */
@media (max-width: 768px) {
    .navbar {
        padding: 8px 0;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 60px;
        flex-direction: column;
        background: var(--bg-darker);
        width: 100%;
        height: calc(100vh - 60px);
        transition: 0.3s;
        border-top: 1px solid var(--border);
        padding: 1rem 0;
        gap: 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .hamburger {
        display: flex;
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(5px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-5px) rotate(-45deg);
    }

    .hero {
        padding: 100px 0 60px;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .hero-visual {
        order: -1;
    }

    .grid-container {
        max-width: 200px;
        margin: 0 auto;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .system-info {
        justify-content: center;
    }

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

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

    .status-bar {
        flex-direction: column;
        gap: 0.5rem;
    }

    :root {
        --section-padding: clamp(40px, 6vh, 80px);
        --card-padding: 16px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .terminal-content {
        padding: 12px;
        font-size: 11px;
    }
    
    .btn {
        min-width: 140px;
        padding: 10px 16px;
        font-size: 11px;
    }
    
    .grid-container {
        max-width: 160px;
        padding: 12px;
        gap: 4px;
    }
    
    .grid-item {
        font-size: 8px;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .product-card {
        min-width: 0;
    }
}