@import url('https://fonts.googleapis.com/css2?family=Roboto+Mono:wght@300;400;700&display=swap');

:root {
    --bg-color: #0a0a14;
    --primary-color: #00f7ff;
    --secondary-color: #ff00ff;
    --text-color: #e0e0ff;
    --glow-color-primary: rgba(0, 247, 255, 0.5);
    --glow-color-secondary: rgba(255, 0, 255, 0.4);
    --panel-bg-color: rgba(20, 20, 40, 0.3);
    --border-color: rgba(0, 247, 255, 0.2);
}

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

body {
    font-family: 'Roboto Mono', monospace;
    background-color: var(--bg-color);
    color: var(--text-color);
    overflow-x: hidden;
}

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

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 100px 0;
    position: relative;
    z-index: 2;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 10;
    background: linear-gradient(to bottom, var(--bg-color) 70%, transparent);
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    text-shadow: 0 0 10px var(--glow-color-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-icon {
    height: 1.5em;
    width: auto;
    vertical-align: middle;
    filter: drop-shadow(0 0 10px var(--glow-color-primary));
}

.btn {
    display: inline-block;
    padding: 12px 28px;
    border: 2px solid var(--primary-color);
    border-radius: 5px;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
    box-shadow: 0 0 15px var(--glow-color-primary);
}

.btn:hover {
    background-color: var(--primary-color);
    color: var(--bg-color);
    box-shadow: 0 0 25px var(--glow-color-primary);
}

.hero {
    text-align: center;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 20px;
    line-height: 1.2;
    color: #fff;
}

.hero h1 .highlight {
    color: var(--primary-color);
    text-shadow: 0 0 15px var(--glow-color-primary);
}

.hero .typing-cursor {
    display: inline-block;
    width: 3px;
    height: 3.5rem;
    background-color: var(--primary-color);
    animation: blink 0.7s infinite;
}

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

.hero p {
    font-size: 1.2rem;
    max-width: 700px;
    margin-bottom: 40px;
    line-height: 1.6;
}

.section {
    padding: 80px 0;
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.section.visible {
    opacity: 1;
    transform: translateY(0);
}

.section h2 {
    text-align: center;
    font-size: 2.8rem;
    margin-bottom: 60px;
    color: #fff;
    text-shadow: 0 0 10px var(--glow-color-secondary);
}

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

.feature-card {
    background-color: var(--panel-bg-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 30px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px var(--glow-color-primary);
}

.feature-card .icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #fff;
}

.feature-card p {
    font-size: 1rem;
    line-height: 1.6;
}

.visually-hidden {
    position: absolute;
    left: -10000px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* Custom bolding for key phrases */
.bold-text {
    font-weight: 700;
    color: var(--primary-color);
    text-shadow: 0 0 15px var(--glow-color-primary);
}

/* Demo Terminal styles */
.demo-terminal {
    background-color: rgba(0,0,0,0.5);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 20px;
    font-family: 'Roboto Mono', monospace;
    color: #e0e0ff;
    backdrop-filter: blur(10px);
    margin-top: 30px;
}

.demo-terminal-header {
    display: flex;
    align-items: center;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 15px;
}

.demo-terminal-dot {
    height: 12px;
    width: 12px;
    border-radius: 50%;
    margin-right: 8px;
}
.demo-terminal-dot.red { background-color: #ff5f56; }
.demo-terminal-dot.yellow { background-color: #ffbd2e; }
.demo-terminal-dot.green { background-color: #27c93f; }

.demo-terminal-title {
    color: #aaa;
}

.demo-terminal-body {
    white-space: pre-wrap;
    line-height: 1.5;
}

.demo-terminal-body .prompt {
    color: var(--primary-color);
}
.demo-terminal-body .command {
    color: #fff;
}
.demo-terminal-body .comment {
    color: #888;
}
.demo-terminal-body .output {
    color: #bbb;
}
.demo-terminal-body .typing-cursor {
    display: inline-block;
    width: 8px;
    background-color: var(--primary-color);
    animation: blink 0.7s infinite;
}


.cta-section {
    text-align: center;
    background-color: var(--panel-bg-color);
    padding: 60px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
}

.cta-section h2 {
    margin-bottom: 20px;
}

.cta-section p {
    font-size: 1.1rem;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

footer {
    text-align: center;
    padding: 40px 0;
    border-top: 1px solid var(--border-color);
}

footer a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

footer a:hover {
    text-shadow: 0 0 10px var(--glow-color-primary);
}

.back-to-home {
    margin-bottom: 30px;
    text-align: left;
}

.back-to-home a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.back-to-home a:hover {
    text-shadow: 0 0 10px var(--glow-color-primary);
    transform: translateX(-5px);
}

/* Responsive Design - Tablet */
@media screen and (max-width: 1024px) {
    .container {
        width: 95%;
        padding: 80px 0;
    }

    .hero h1 {
        font-size: 3rem;
    }

    .hero p {
        font-size: 1.1rem;
        padding: 0 20px;
    }

    .section h2 {
        font-size: 2.2rem;
        margin-bottom: 40px;
    }

    .feature-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 25px;
    }

    .cta-section {
        padding: 50px 30px;
    }
}

/* Responsive Design - Mobile */
@media screen and (max-width: 768px) {
    header {
        padding: 15px 4%;
        flex-wrap: wrap;
    }

    .logo {
        font-size: 1.4rem;
    }

    .logo-icon {
        height: 1.2em;
    }

    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    .container {
        width: 95%;
        padding: 60px 0;
    }

    .hero {
        padding: 0 20px;
        min-height: 100vh;
    }

    .hero h1 {
        font-size: 2rem;
        margin-bottom: 15px;
        line-height: 1.3;
    }

    .hero .typing-cursor {
        height: 2.5rem;
    }

    .hero p {
        font-size: 1rem;
        margin-bottom: 30px;
        padding: 0 10px;
    }

    .section {
        padding: 50px 0;
    }

    .section h2 {
        font-size: 1.8rem;
        margin-bottom: 30px;
        padding: 0 20px;
    }

    .feature-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 15px;
    }

    .feature-card {
        padding: 25px 20px;
    }

    .feature-card .icon {
        font-size: 2rem;
        margin-bottom: 15px;
    }

    .feature-card h3 {
        font-size: 1.3rem;
        margin-bottom: 12px;
    }

    .feature-card p {
        font-size: 0.95rem;
    }

    .cta-section {
        padding: 40px 20px;
        margin: 0 15px;
    }

    .cta-section h2 {
        font-size: 1.8rem;
        margin-bottom: 15px;
    }

    .cta-section p {
        font-size: 1rem;
        margin-bottom: 30px;
    }

    .demo-terminal {
        padding: 15px;
        margin-top: 20px;
        font-size: 0.85rem;
    }

    .demo-terminal-header {
        padding-bottom: 10px;
        margin-bottom: 10px;
    }

    .demo-terminal-dot {
        height: 10px;
        width: 10px;
        margin-right: 6px;
    }

    footer {
        padding: 30px 20px;
    }

    footer p {
        font-size: 0.9rem;
        line-height: 1.6;
    }
}

/* Responsive Design - Small Mobile */
@media screen and (max-width: 480px) {
    header {
        padding: 12px 3%;
    }

    .logo {
        font-size: 1.2rem;
    }

    .logo-icon {
        height: 1em;
    }

    .btn {
        padding: 8px 16px;
        font-size: 0.85rem;
    }

    .hero h1 {
        font-size: 1.6rem;
    }

    .hero .typing-cursor {
        height: 2rem;
    }

    .hero p {
        font-size: 0.95rem;
    }

    .section h2 {
        font-size: 1.5rem;
    }

    .feature-card {
        padding: 20px 15px;
    }

    .cta-section {
        padding: 30px 15px;
    }

    .cta-section h2 {
        font-size: 1.5rem;
    }
}
