:root {
    --bg-dark: #0a0a0f;
    --text-primary: #ffffff;
    --text-secondary: #a0a0b0;
    --accent-cyan: #00f3ff;
    --accent-purple: #bc13fe;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.1);
    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Outfit', sans-serif;
}

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

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

/* Background Effects */
.background-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    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: -2;
    mask-image: linear-gradient(to bottom, black 40%, transparent 100%);
}

.glow-orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(100px);
    z-index: -1;
    opacity: 0.4;
}

.orb-1 {
    width: 400px;
    height: 400px;
    background: var(--accent-purple);
    top: -100px;
    left: -100px;
    animation: float 10s infinite ease-in-out;
}

.orb-2 {
    width: 300px;
    height: 300px;
    background: var(--accent-cyan);
    bottom: -50px;
    right: -50px;
    animation: float 12s infinite ease-in-out reverse;
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(30px, 50px);
    }
}

/* Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 5%;
    backdrop-filter: blur(10px);
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

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

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

nav a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s;
}

nav a:hover {
    color: var(--text-primary);
}

/* Buttons */
.btn-primary {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--glass-border);
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    color: var(--text-primary);
    transition: all 0.3s;
}

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

.btn-hero {
    background: linear-gradient(90deg, var(--accent-purple), var(--accent-cyan));
    color: white;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    box-shadow: 0 0 20px rgba(188, 19, 254, 0.4);
    transition: transform 0.3s;
}

.btn-hero:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(188, 19, 254, 0.6);
}

.btn-secondary {
    padding: 1rem 2.5rem;
    color: var(--text-primary);
    text-decoration: none;
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    transition: background 0.3s;
}

.btn-secondary:hover {
    background: white;
    color: black;
}

/* Hero Section */
.hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    min-height: 80vh;
    padding: 0 5%;
    gap: 4rem;
}

.hero-content h1 {
    font-family: var(--font-heading);
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.gradient-text {
    background: linear-gradient(to right, var(--accent-cyan), var(--accent-purple));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-content p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
    max-width: 500px;
}

.badge {
    display: inline-block;
    background: rgba(0, 243, 255, 0.1);
    color: var(--accent-cyan);
    padding: 0.4rem 1rem;
    border-radius: 4px;
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    font-weight: 600;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(0, 243, 255, 0.2);
}

.cta-group {
    display: flex;
    gap: 1.5rem;
}

/* Visual / Code Card */
.glass-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 2rem;
    backdrop-filter: blur(20px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    position: relative;
    transform: perspective(1000px) rotateY(-10deg) rotateX(5deg);
    transition: transform 0.5s;
}

.glass-card:hover {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
}

.code-block {
    font-family: 'Fira Code', monospace;
    font-size: 0.9rem;
    color: #e0e0e0;
}

.keyword {
    color: #c678dd;
}

.string {
    color: #98c379;
}

.variable {
    color: #e06c75;
}

.comment {
    color: #5c6370;
    display: block;
    margin-top: 1rem;
}

footer {
    text-align: center;
    padding: 2rem;
    color: var(--text-secondary);
    font-size: 0.85rem;
    border-top: 1px solid var(--glass-border);
    margin-top: 2rem;
}

@media (max-width: 768px) {
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
        padding-top: 4rem;
    }

    .hero-content p {
        margin: 0 auto 2.5rem;
    }

    .cta-group {
        justify-content: center;
    }

    .glass-card {
        transform: none;
        margin-top: 3rem;
    }
}

/* Terminal Styles */
.terminal-window {
    padding: 0;
    /* Override default card padding */
    width: 100%;
    max-width: 600px;
    height: 400px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: rgba(10, 10, 15, 0.85);
    /* Darker opacity for terminal */
}

.terminal-header {
    background: rgba(255, 255, 255, 0.05);
    padding: 10px 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid var(--glass-border);
}

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

.red {
    background: #ff5f56;
}

.yellow {
    background: #ffbd2e;
}

.green {
    background: #27c93f;
}

.terminal-title {
    margin-left: 10px;
    font-family: 'Fira Code', monospace;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.terminal-body {
    flex: 1;
    padding: 20px;
    font-family: 'Fira Code', monospace;
    font-size: 0.9rem;
    color: #e0e0e0;
    overflow-y: auto;
    cursor: text;
}

.input-line {
    display: flex;
    align-items: center;
    margin-top: 5px;
}

.prompt {
    color: var(--accent-cyan);
    margin-right: 10px;
    font-weight: bold;
}

#cmd-input {
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-family: 'Fira Code', monospace;
    font-size: 0.9rem;
    flex: 1;
    outline: none;
    caret-color: var(--accent-purple);
}

.output-line {
    margin-bottom: 5px;
    line-height: 1.4;
    white-space: pre-wrap;
}

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

.error {
    color: #ff5f56;
}

.info {
    color: var(--text-secondary);
}

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

/* Scrollbar for terminal */
.terminal-body::-webkit-scrollbar {
    width: 8px;
}

.terminal-body::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}