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

:root {
    --primary: #00ff41;
    --secondary: #0f0;
    --dark: #0a0a0a;
    --darker: #000000;
    --white: #ffffff;
    --gray: #1a1a1a;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Courier New', monospace;
    background: var(--darker);
    color: var(--white);
    overflow-x: hidden;
    position: relative;
}

#matrix {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.15;
}

.glitch-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    animation: glitch-overlay 5s infinite;
}

@keyframes glitch-overlay {
    0%, 100% { opacity: 0; }
    50% {
        opacity: 0.1;
        background: linear-gradient(transparent 50%, rgba(0, 255, 65, 0.03) 50%);
        background-size: 100% 4px;
    }
}

.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--primary);
    animation: slideDown 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.logo {
    font-size: 24px;
    font-weight: bold;
    letter-spacing: 3px;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-link {
    color: var(--white);
    text-decoration: none;
    font-size: 14px;
    letter-spacing: 2px;
    position: relative;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-link:hover {
    color: var(--primary);
    text-shadow: 0 0 10px var(--primary);
}

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

.glitch {
    position: relative;
    color: var(--white);
    animation: glitch 3s infinite;
}

.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(--primary);
    clip: rect(24px, 550px, 90px, 0);
    animation: glitch-anim 2s infinite linear alternate-reverse;
}

.glitch::after {
    left: -2px;
    text-shadow: -2px 0 #00ffff;
    clip: rect(85px, 550px, 140px, 0);
    animation: glitch-anim 3s infinite linear alternate-reverse;
}

@keyframes glitch {
    0%, 100% { transform: translate(0); }
    20% { transform: translate(-2px, 2px); }
    40% { transform: translate(-2px, -2px); }
    60% { transform: translate(2px, 2px); }
    80% { transform: translate(2px, -2px); }
}

@keyframes glitch-anim {
    0% { clip: rect(10px, 9999px, 31px, 0); }
    20% { clip: rect(70px, 9999px, 71px, 0); }
    40% { clip: rect(30px, 9999px, 91px, 0); }
    60% { clip: rect(90px, 9999px, 20px, 0); }
    80% { clip: rect(50px, 9999px, 60px, 0); }
    100% { clip: rect(80px, 9999px, 40px, 0); }
}

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 100px 50px;
    position: relative;
    z-index: 1;
    transition: transform 0.1s ease-out;
}

.hero-content {
    flex: 1;
    max-width: 600px;
    animation: fadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.hero-title {
    font-size: 72px;
    line-height: 1.2;
    margin-bottom: 30px;
    display: flex;
    flex-direction: column;
}

.hero-subtitle {
    font-size: 20px;
    color: var(--primary);
    margin-bottom: 50px;
    letter-spacing: 2px;
    border-right: 2px solid var(--primary);
    white-space: nowrap;
    overflow: hidden;
    animation: typing 3s steps(40) 1s forwards, blink 0.75s step-end infinite;
    width: 0;
}

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

@keyframes blink {
    50% { border-color: transparent; }
}

.cta-buttons {
    display: flex;
    gap: 20px;
}

.btn {
    padding: 15px 40px;
    font-size: 16px;
    font-family: 'Courier New', monospace;
    letter-spacing: 2px;
    border: 2px solid var(--primary);
    background: transparent;
    color: var(--white);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn span {
    position: relative;
    z-index: 2;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--primary);
    transition: left 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1;
}

.btn:hover {
    color: var(--darker);
    box-shadow: 0 0 20px var(--primary);
}

.btn:hover::before {
    left: 0;
}

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

.btn-secondary::before {
    background: var(--white);
}

.hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.cube-container {
    perspective: 1000px;
    width: 300px;
    height: 300px;
}

.cube {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    animation: rotateCube 25s infinite cubic-bezier(0.45, 0, 0.55, 1);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes rotateCube {
    from { transform: rotateX(0deg) rotateY(0deg); }
    to { transform: rotateX(360deg) rotateY(360deg); }
}

.cube-face {
    position: absolute;
    width: 300px;
    height: 300px;
    border: 2px solid var(--primary);
    background: rgba(0, 255, 65, 0.05);
    box-shadow: 0 0 30px var(--primary);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.cube-face::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 80%;
    height: 80%;
    transform: translate(-50%, -50%);
    border: 1px solid var(--primary);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        opacity: 0.5;
        transform: translate(-50%, -50%) scale(0.9);
    }
}

.front { transform: rotateY(0deg) translateZ(150px); }
.back { transform: rotateY(180deg) translateZ(150px); }
.right { transform: rotateY(90deg) translateZ(150px); }
.left { transform: rotateY(-90deg) translateZ(150px); }
.top { transform: rotateX(90deg) translateZ(150px); }
.bottom { transform: rotateX(-90deg) translateZ(150px); }

.features {
    padding: 100px 50px;
    position: relative;
    z-index: 1;
}

.section-title {
    font-size: 48px;
    text-align: center;
    margin-bottom: 80px;
    letter-spacing: 5px;
    opacity: 0;
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: 0.2s;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    background: var(--gray);
    padding: 40px;
    border: 1px solid var(--primary);
    position: relative;
    overflow: hidden;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
    opacity: 0;
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.feature-card:nth-child(1) { animation-delay: 0.1s; }
.feature-card:nth-child(2) { animation-delay: 0.2s; }
.feature-card:nth-child(3) { animation-delay: 0.3s; }
.feature-card:nth-child(4) { animation-delay: 0.4s; }

.feature-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, var(--primary), transparent, var(--primary));
    z-index: -1;
    opacity: 0;
    transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.feature-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 15px 50px rgba(0, 255, 65, 0.4);
}

.feature-card:hover::before {
    opacity: 1;
    animation: borderRotate 2s linear infinite;
}

@keyframes borderRotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 30px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-circle {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 2px solid var(--primary);
    border-radius: 50%;
    animation: rotate 3s linear infinite;
}

.icon-circle::before {
    content: '';
    position: absolute;
    top: -2px;
    left: 50%;
    width: 10px;
    height: 10px;
    background: var(--primary);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--primary);
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.icon-text {
    font-size: 32px;
    z-index: 1;
}

.feature-card h3 {
    font-size: 20px;
    margin-bottom: 15px;
    letter-spacing: 2px;
    text-align: center;
}

.feature-card p {
    color: #aaa;
    text-align: center;
    line-height: 1.6;
}

.card-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
    opacity: 0;
    transform: translate(-50%, -50%);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
}

.feature-card:hover .card-glow {
    opacity: 0.3;
    animation: glow 2s infinite;
}

@keyframes glow {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-50%, -50%) scale(1.5); }
}

.tech-section {
    padding: 100px 50px;
    position: relative;
    z-index: 1;
}

.tech-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.terminal {
    background: var(--gray);
    border: 1px solid var(--primary);
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 0 30px rgba(0, 255, 65, 0.2);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    opacity: 0;
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: 0.3s;
}

.terminal:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(0, 255, 65, 0.3);
}

.terminal-header {
    background: #1a1a1a;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid var(--primary);
}

.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: 12px;
    color: var(--primary);
}

.terminal-body {
    padding: 20px;
    font-size: 14px;
    line-height: 1.8;
}

.terminal-line {
    margin-bottom: 10px;
    animation: fadeIn 0.5s;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.prompt {
    color: var(--primary);
    margin-right: 10px;
}

.command {
    color: #00ffff;
}

.output {
    color: #aaa;
    display: block;
    margin-left: 20px;
}

.output.success {
    color: var(--primary);
}

.cursor {
    animation: blink 1s infinite;
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.stat-card {
    background: var(--gray);
    padding: 30px;
    border: 1px solid var(--primary);
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    opacity: 0;
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.stat-card:nth-child(1) { animation-delay: 0.4s; }
.stat-card:nth-child(2) { animation-delay: 0.5s; }
.stat-card:nth-child(3) { animation-delay: 0.6s; }
.stat-card:nth-child(4) { animation-delay: 0.7s; }

.stat-card:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 10px 30px rgba(0, 255, 65, 0.3);
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 65, 0.1), transparent);
    animation: scan 3s infinite;
}

@keyframes scan {
    0% { left: -100%; }
    100% { left: 100%; }
}

.stat-value {
    font-size: 48px;
    color: var(--primary);
    font-weight: bold;
    margin-bottom: 10px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.stat-label {
    font-size: 12px;
    letter-spacing: 2px;
    color: #aaa;
}

.contact-section {
    padding: 100px 50px;
    position: relative;
    z-index: 1;
}

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

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.form-group {
    position: relative;
}

.form-input {
    width: 100%;
    padding: 15px 0;
    background: transparent;
    border: none;
    border-bottom: 2px solid #333;
    color: var(--white);
    font-family: 'Courier New', monospace;
    font-size: 16px;
    letter-spacing: 1px;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.form-input::placeholder {
    color: #555;
}

.input-line {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.form-input:focus + .input-line {
    width: 100%;
}

textarea.form-input {
    resize: none;
}

.footer {
    padding: 40px 50px;
    border-top: 1px solid var(--primary);
    text-align: center;
    position: relative;
    z-index: 1;
}

.footer p {
    margin-bottom: 20px;
    color: #aaa;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 30px;
}

.footer-links a {
    color: var(--white);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

@media (max-width: 768px) {
    .navbar {
        padding: 20px;
    }

    .nav-links {
        display: none;
    }

    .hero {
        flex-direction: column;
        padding: 100px 20px;
    }

    .hero-title {
        font-size: 48px;
    }

    .tech-container {
        grid-template-columns: 1fr;
    }

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