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

:root {
    --primary-color: #00ff41;
    --secondary-color: #00d4ff;
    --accent-color: #ff00ff;
    --bg-dark: #0a0e27;
    --bg-darker: #050810;
    --text-light: #ffffff;
    --text-dim: #8892b0;
    --card-bg: rgba(15, 23, 42, 0.8);
    --glow: 0 0 20px rgba(0, 255, 65, 0.5);
}

body {
    font-family: 'Courier New', monospace;
    background: var(--bg-darker);
    color: var(--text-light);
    overflow-x: hidden;
    line-height: 1.6;
}

.matrix-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    opacity: 0.3;
}

#particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

/* Header Styles */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(10, 14, 39, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 255, 65, 0.2);
    animation: slideDown 0.5s ease-out;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.bracket {
    color: var(--primary-color);
    font-size: 1.8rem;
    animation: pulse 2s ease-in-out infinite;
}

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

.logo-text {
    color: var(--text-light);
    text-shadow: 0 0 10px rgba(0, 255, 65, 0.5);
}

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

.nav-link {
    color: var(--text-dim);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

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

.nav-link:hover::after {
    width: 80%;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(0, 255, 65, 0.1);
    border-radius: 20px;
    border: 1px solid var(--primary-color);
}

.status-dot {
    width: 10px;
    height: 10px;
    background: var(--primary-color);
    border-radius: 50%;
    animation: blink 1.5s ease-in-out infinite;
    box-shadow: 0 0 10px var(--primary-color);
}

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

.status-text {
    color: var(--primary-color);
    font-size: 0.9rem;
    font-weight: bold;
}

.ping {
    animation: bounce 1s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8rem 5% 4rem;
    position: relative;
    overflow: hidden;
}

.hero-content {
    text-align: center;
    z-index: 2;
    animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.glitch-wrapper {
    margin-bottom: 1rem;
}

.glitch {
    font-size: 5rem;
    font-weight: bold;
    color: var(--text-light);
    text-shadow: 
        0 0 10px var(--primary-color),
        0 0 20px var(--primary-color),
        0 0 30px var(--primary-color);
    position: relative;
    animation: glitch 3s infinite;
}

@keyframes glitch {
    0%, 90%, 100% {
        transform: translate(0);
    }
    91% {
        transform: translate(-2px, 2px);
    }
    92% {
        transform: translate(2px, -2px);
    }
    93% {
        transform: translate(-2px, 2px);
    }
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.glitch::before {
    left: 2px;
    text-shadow: -2px 0 var(--secondary-color);
    clip: rect(24px, 550px, 90px, 0);
    animation: glitch-anim 2s infinite linear alternate-reverse;
}

.glitch::after {
    left: -2px;
    text-shadow: -2px 0 var(--accent-color);
    clip: rect(85px, 550px, 140px, 0);
    animation: glitch-anim2 2s infinite linear alternate-reverse;
}

@keyframes glitch-anim {
    0% { clip: rect(31px, 9999px, 94px, 0); }
    10% { clip: rect(112px, 9999px, 76px, 0); }
    20% { clip: rect(85px, 9999px, 23px, 0); }
    30% { clip: rect(44px, 9999px, 61px, 0); }
    40% { clip: rect(26px, 9999px, 88px, 0); }
    50% { clip: rect(91px, 9999px, 35px, 0); }
    60% { clip: rect(67px, 9999px, 52px, 0); }
    70% { clip: rect(19px, 9999px, 99px, 0); }
    80% { clip: rect(73px, 9999px, 15px, 0); }
    90% { clip: rect(58px, 9999px, 41px, 0); }
    100% { clip: rect(22px, 9999px, 83px, 0); }
}

@keyframes glitch-anim2 {
    0% { clip: rect(65px, 9999px, 119px, 0); }
    10% { clip: rect(90px, 9999px, 46px, 0); }
    20% { clip: rect(13px, 9999px, 78px, 0); }
    30% { clip: rect(102px, 9999px, 31px, 0); }
    40% { clip: rect(49px, 9999px, 95px, 0); }
    50% { clip: rect(76px, 9999px, 18px, 0); }
    60% { clip: rect(34px, 9999px, 107px, 0); }
    70% { clip: rect(88px, 9999px, 55px, 0); }
    80% { clip: rect(21px, 9999px, 92px, 0); }
    90% { clip: rect(61px, 9999px, 38px, 0); }
    100% { clip: rect(97px, 9999px, 14px, 0); }
}

.tagline {
    font-size: 1.5rem;
    color: var(--text-dim);
    margin-bottom: 2rem;
    min-height: 40px;
}

.typing-text {
    color: var(--primary-color);
}

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

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

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin: 2rem 0;
}

.btn {
    padding: 1rem 2rem;
    font-size: 1rem;
    font-family: 'Courier New', monospace;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--bg-dark);
    box-shadow: 0 0 20px rgba(0, 255, 65, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 30px rgba(0, 255, 65, 0.5);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background: rgba(0, 255, 65, 0.1);
    transform: translateY(-3px);
}

.btn-icon {
    transition: transform 0.3s ease;
}

.btn:hover .btn-icon {
    transform: translateX(5px);
}

.floating-code {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.code-snippet {
    position: absolute;
    padding: 1rem;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid var(--primary-color);
    border-radius: 5px;
    font-size: 0.9rem;
    color: var(--primary-color);
    white-space: nowrap;
    animation: float 20s ease-in-out infinite;
    animation-delay: var(--delay, 0s);
    backdrop-filter: blur(5px);
}

.code-snippet:nth-child(1) {
    top: 10%;
    left: 10%;
}

.code-snippet:nth-child(2) {
    top: 20%;
    right: 15%;
}

.code-snippet:nth-child(3) {
    bottom: 20%;
    left: 15%;
}

.code-snippet:nth-child(4) {
    top: 60%;
    right: 10%;
}

.code-snippet:nth-child(5) {
    bottom: 10%;
    right: 20%;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
        opacity: 0.6;
    }
    25% {
        transform: translateY(-20px) rotate(2deg);
        opacity: 0.8;
    }
    50% {
        transform: translateY(-10px) rotate(-2deg);
        opacity: 1;
    }
    75% {
        transform: translateY(-30px) rotate(1deg);
        opacity: 0.8;
    }
}

/* Stats Section */
.stats-section {
    padding: 4rem 5%;
    background: linear-gradient(180deg, transparent, rgba(0, 255, 65, 0.05), transparent);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.stat-card {
    text-align: center;
    padding: 2rem;
    background: var(--card-bg);
    border: 1px solid rgba(0, 255, 65, 0.3);
    border-radius: 10px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 65, 0.2), transparent);
    transition: left 0.5s ease;
}

.stat-card:hover::before {
    left: 100%;
}

.stat-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(0, 255, 65, 0.3);
}

.stat-number {
    font-size: 3rem;
    font-weight: bold;
    color: var(--primary-color);
    text-shadow: 0 0 20px rgba(0, 255, 65, 0.5);
}

.stat-label {
    font-size: 1rem;
    color: var(--text-dim);
    margin-top: 0.5rem;
}

/* Terminal Section */
.terminal-section {
    padding: 4rem 5%;
}

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

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--text-light);
}

.terminal-window {
    background: var(--card-bg);
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--primary-color);
    box-shadow: 0 10px 50px rgba(0, 255, 65, 0.2);
    max-width: 900px;
    margin: 0 auto;
}

.terminal-window.interactive {
    animation: terminal-glow 2s ease-in-out infinite;
}

@keyframes terminal-glow {
    0%, 100% {
        box-shadow: 0 10px 50px rgba(0, 255, 65, 0.2);
    }
    50% {
        box-shadow: 0 10px 50px rgba(0, 255, 65, 0.4);
    }
}

.terminal-header {
    background: rgba(10, 14, 39, 0.8);
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-bottom: 1px solid rgba(0, 255, 65, 0.3);
}

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

.terminal-dot.red {
    background: #ff5f56;
}

.terminal-dot.yellow {
    background: #ffbd2e;
}

.terminal-dot.green {
    background: #27c93f;
}

.terminal-title {
    margin-left: auto;
    font-size: 0.9rem;
    color: var(--text-dim);
}

.terminal-body {
    padding: 1.5rem;
    min-height: 300px;
    max-height: 400px;
    overflow-y: auto;
    font-family: 'Courier New', monospace;
    font-size: 0.95rem;
}

.terminal-body::-webkit-scrollbar {
    width: 8px;
}

.terminal-body::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
}

.terminal-body::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

.terminal-line {
    margin-bottom: 0.5rem;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

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

.output {
    color: var(--text-light);
}

.command {
    color: var(--secondary-color);
}

.error {
    color: #ff5f56;
}

.success {
    color: #27c93f;
}

.terminal-input-line {
    padding: 1rem 1.5rem;
    border-top: 1px solid rgba(0, 255, 65, 0.3);
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(0, 0, 0, 0.3);
}

.terminal-input {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-light);
    font-family: 'Courier New', monospace;
    font-size: 0.95rem;
    outline: none;
}

.terminal-input::placeholder {
    color: var(--text-dim);
}

/* Features Section */
.features {
    padding: 4rem 5%;
    background: linear-gradient(180deg, transparent, rgba(0, 212, 255, 0.05), transparent);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 10px;
    border: 1px solid rgba(0, 255, 65, 0.2);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, transparent, rgba(0, 255, 65, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: var(--primary-color);
    box-shadow: 0 15px 40px rgba(0, 255, 65, 0.3);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: inline-block;
    transition: transform 0.3s ease;
}

.feature-card:hover .feature-icon {
    transform: scale(1.2) rotate(10deg);
}

.feature-card h3 {
    font-size: 1.5rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.feature-card p {
    color: var(--text-dim);
    line-height: 1.6;
}

.feature-shine {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: rotate(45deg);
    transition: all 0.6s ease;
    opacity: 0;
}

.feature-card:hover .feature-shine {
    opacity: 1;
    left: 100%;
}

/* Code Showcase */
.code-showcase {
    padding: 4rem 5%;
}

.code-editor {
    max-width: 900px;
    margin: 0 auto;
    background: var(--card-bg);
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--primary-color);
}

.code-tabs {
    display: flex;
    background: rgba(10, 14, 39, 0.8);
    border-bottom: 1px solid rgba(0, 255, 65, 0.3);
}

.code-tab {
    padding: 1rem 2rem;
    background: transparent;
    border: none;
    color: var(--text-dim);
    font-family: 'Courier New', monospace;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 2px solid transparent;
}

.code-tab:hover {
    color: var(--primary-color);
    background: rgba(0, 255, 65, 0.05);
}

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

.code-content {
    position: relative;
}

.code-block {
    display: none;
    padding: 2rem;
    margin: 0;
    overflow-x: auto;
}

.code-block.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.code-block code {
    font-family: 'Courier New', monospace;
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-light);
}

.keyword {
    color: #ff79c6;
}

.function {
    color: #50fa7b;
}

.string {
    color: #f1fa8c;
}

.property {
    color: #8be9fd;
}

.comment {
    color: #6272a4;
    font-style: italic;
}

.boolean {
    color: #bd93f9;
}

/* Footer */
footer {
    background: rgba(10, 14, 39, 0.8);
    border-top: 1px solid rgba(0, 255, 65, 0.2);
    padding: 2rem 5%;
    margin-top: 4rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-brand {
    font-size: 1.2rem;
    font-weight: bold;
}

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

.footer-link {
    color: var(--text-dim);
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-link:hover {
    color: var(--primary-color);
    text-shadow: 0 0 10px rgba(0, 255, 65, 0.5);
}

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

.separator {
    margin: 0 0.5rem;
    color: var(--primary-color);
}

/* Easter Egg */
.easter-egg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    animation: fadeIn 0.3s ease;
}

.easter-egg.active {
    display: flex;
}

.easter-egg-content {
    text-align: center;
    padding: 3rem;
    background: var(--card-bg);
    border: 2px solid var(--primary-color);
    border-radius: 15px;
    max-width: 500px;
    animation: scaleIn 0.5s ease;
    box-shadow: 0 0 50px rgba(0, 255, 65, 0.5);
}

@keyframes scaleIn {
    from {
        transform: scale(0.5);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.easter-egg-content h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

.ascii-art {
    color: var(--primary-color);
    font-size: 0.8rem;
    margin: 2rem 0;
    line-height: 1.2;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .glitch {
        font-size: 3rem;
    }

    .tagline {
        font-size: 1.2rem;
    }

    .cta-buttons {
        flex-direction: column;
    }

    .code-snippet {
        font-size: 0.7rem;
        padding: 0.5rem;
    }

    .stats-grid,
    .feature-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* Utility Animations */
@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.fade-in-left {
    animation: fadeInLeft 0.6s ease-out;
}

.fade-in-right {
    animation: fadeInRight 0.6s ease-out;
}
