:root {
    --bg-primary: #0a0a0f;
    --text-primary: #e0e0e0;
    --accent-cyan: #0ff;
    --accent-magenta: #f0f;
    --font-mono: 'Space Mono', monospace;
    --font-sans: 'Inter', sans-serif;
}

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

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-sans);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
    background-image: 
        linear-gradient(to right, rgba(0, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(0, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
}

.grid-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(90deg, transparent 95%, rgba(0, 255, 255, 0.05) 95%),
        linear-gradient(transparent 95%, rgba(0, 255, 255, 0.05) 95%);
    background-size: 40px 40px;
    z-index: -1;
    transform: perspective(500px) rotateX(60deg);
    transform-origin: top;
    opacity: 0.3;
}

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

.particles::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(var(--accent-cyan) 1px, transparent 1px),
                      radial-gradient(var(--accent-magenta) 1px, transparent 1px);
    background-size: 50px 50px;
    background-position: 0 0, 25px 25px;
    animation: particleFloat 20s linear infinite;
    opacity: 0.1;
}

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

.scanline {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        transparent 50%,
        rgba(0, 255, 255, 0.02) 50%
    );
    background-size: 100% 4px;
    pointer-events: none;
    z-index: 100;
}

main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    position: relative;
}

/* Hero Section */
.hero {
    height: 90vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
}

.cyber-corner {
    position: absolute;
    width: 50px;
    height: 50px;
    border: 2px solid var(--accent-cyan);
    opacity: 0.5;
}

.cyber-corner::before,
.cyber-corner::after {
    content: '';
    position: absolute;
    background: var(--accent-cyan);
}

.cyber-corner::before {
    width: 10px;
    height: 2px;
}

.cyber-corner::after {
    width: 2px;
    height: 10px;
}

.top-left {
    top: 20px;
    left: 20px;
    border-right: 0;
    border-bottom: 0;
}

.top-right {
    top: 20px;
    right: 20px;
    border-left: 0;
    border-bottom: 0;
}

.bottom-left {
    bottom: 20px;
    left: 20px;
    border-right: 0;
    border-top: 0;
}

.bottom-right {
    bottom: 20px;
    right: 20px;
    border-left: 0;
    border-top: 0;
}

.circuit-decoration {
    position: absolute;
    width: 100%;
    height: 2px;
    background: var(--accent-cyan);
    bottom: 100px;
    opacity: 0.3;
}

.circuit-decoration::before,
.circuit-decoration::after {
    content: '';
    position: absolute;
    width: 2px;
    height: 20px;
    background: var(--accent-cyan);
}

.circuit-decoration::before {
    left: 30%;
    top: 0;
}

.circuit-decoration::after {
    right: 30%;
    top: 0;
}

.glitch-container {
    position: relative;
}

.glitch {
    font-family: var(--font-mono);
    font-size: clamp(2rem, 8vw, 6rem);
    font-weight: 700;
    text-transform: uppercase;
    position: relative;
    text-shadow: 0.05em 0 0 var(--accent-cyan),
                -0.05em -0.025em 0 var(--accent-magenta);
    animation: glitch 725ms infinite;
}

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

.glitch::before {
    animation: glitch-top 700ms infinite;
    clip-path: polygon(0 0, 100% 0, 100% 33%, 0 33%);
    opacity: 0.75;
}

.glitch::after {
    animation: glitch-bottom 700ms infinite;
    clip-path: polygon(0 67%, 100% 67%, 100% 100%, 0 100%);
    opacity: 0.75;
}

.subheading {
    font-family: var(--font-mono);
    font-size: clamp(1rem, 3vw, 1.5rem);
    margin-top: 1rem;
    opacity: 0.8;
}

/* Manifesto Section */
.manifesto {
    padding: 6rem 0;
    max-width: 650px;
    margin: 0 auto;
    position: relative;
}

.section-decoration {
    position: absolute;
    width: 2px;
    height: 80%;
    background: var(--accent-magenta);
    opacity: 0.3;
    top: 10%;
}

.section-decoration.left {
    left: -40px;
}

.section-decoration.right {
    right: -40px;
}

.section-decoration::before,
.section-decoration::after {
    content: '';
    position: absolute;
    width: 10px;
    height: 2px;
    background: var(--accent-magenta);
}

.section-decoration::before {
    top: 20%;
}

.section-decoration::after {
    bottom: 20%;
}

.manifesto h2 {
    font-family: var(--font-mono);
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--accent-cyan);
    position: relative;
    display: inline-block;
}

.manifesto h2::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 100%;
    height: 2px;
    background: var(--accent-cyan);
    opacity: 0.5;
}

.text-content {
    font-size: 1.1rem;
    opacity: 0.9;
    position: relative;
}

.text-content p {
    margin-bottom: 2.5rem;
    font-size: 1.1rem;
    line-height: 1.7;
}

.manifesto-section {
    margin: 3rem 0;
    padding-left: 1rem;
    border-left: 2px solid var(--accent-cyan);
}

.manifesto-section h3 {
    color: var(--accent-cyan);
    font-family: var(--font-mono);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.manifesto-section p {
    margin-bottom: 0;
}

.manifesto-closing {
    margin-top: 6rem;
    margin-bottom: 0;
    text-align: center;
    font-family: var(--font-mono);
    color: var(--accent-magenta);
    font-size: 1.2rem;
    line-height: 2;
    letter-spacing: 0.02em;
    opacity: 0.9;
    text-shadow: 0 0 5px var(--accent-magenta);
    position: relative;
    padding: 2rem;
}

/* Features Section */
.features {
    padding: 8rem 0;
    position: relative;
}

.features h2 {
    font-family: var(--font-mono);
    font-size: 2rem;
    color: var(--accent-cyan);
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.features h2::after {
    content: '';
    position: absolute;
    left: -20%;
    right: -20%;
    bottom: -10px;
    height: 2px;
    background: linear-gradient(
        90deg,
        transparent,
        var(--accent-cyan),
        transparent
    );
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    padding: 0 1rem;
}

.feature-card {
    background: rgba(26, 26, 46, 0.5);
    border: 1px solid rgba(0, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 8px;
    transition: all 0.5s ease;
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(20px);
}

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

.feature-card:hover {
    transform: translateY(-5px) !important;
    border-color: var(--accent-cyan);
    box-shadow: 0 5px 15px rgba(0, 255, 255, 0.1);
}

.feature-card:hover::before {
    transform: translateX(100%);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.feature-card h3 {
    font-family: var(--font-mono);
    color: var(--accent-cyan);
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.feature-card p {
    position: relative;
    z-index: 1;
    opacity: 0.8;
    line-height: 1.6;
}

/* Contact Form */
.contact {
    padding: 8rem 0;
    max-width: 600px;
    margin: 0 auto;
    position: relative;
}

.contact h2 {
    font-family: var(--font-mono);
    font-size: 2rem;
    margin-bottom: 3rem;
    color: var(--accent-magenta);
    text-align: center;
}

.form-group {
    position: relative;
    margin-bottom: 2rem;
}

input, textarea {
    width: 100%;
    padding: 0.5rem 0;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 1rem;
    transition: all 0.3s ease;
}

textarea {
    min-height: 100px;
    resize: vertical;
}

label {
    position: absolute;
    left: 0;
    top: 0.5rem;
    color: rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
    pointer-events: none;
}

input:focus,
textarea:focus {
    outline: none;
    border-bottom-color: var(--accent-cyan);
    box-shadow: 0 1px 0 0 var(--accent-cyan);
}

input:focus ~ label,
textarea:focus ~ label,
input:not(:placeholder-shown) ~ label,
textarea:not(:placeholder-shown) ~ label {
    top: -1.5rem;
    font-size: 0.8rem;
    color: var(--accent-cyan);
}

button {
    background: transparent;
    border: 1px solid var(--accent-cyan);
    color: var(--accent-cyan);
    padding: 1rem 2rem;
    font-family: var(--font-mono);
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: block;
    margin: 2rem auto 0;
}

button:hover {
    background: var(--accent-cyan);
    color: var(--bg-primary);
}

button::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 200%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transform: translateX(-100%);
}

button:hover::after {
    transform: translateX(100%);
    transition: transform 0.6s ease;
}

@keyframes glitch {
    0% {
        text-shadow: 0.05em 0 0 var(--accent-cyan),
                    -0.05em -0.025em 0 var(--accent-magenta);
    }
    14% {
        text-shadow: 0.05em 0 0 var(--accent-cyan),
                    -0.05em -0.025em 0 var(--accent-magenta);
    }
    15% {
        text-shadow: -0.05em -0.025em 0 var(--accent-cyan),
                    0.025em 0.025em 0 var(--accent-magenta);
    }
    49% {
        text-shadow: -0.05em -0.025em 0 var(--accent-cyan),
                    0.025em 0.025em 0 var(--accent-magenta);
    }
    50% {
        text-shadow: 0.025em 0.05em 0 var(--accent-cyan),
                    0.05em 0 0 var(--accent-magenta);
    }
    99% {
        text-shadow: 0.025em 0.05em 0 var(--accent-cyan),
                    0.05em 0 0 var(--accent-magenta);
    }
    100% {
        text-shadow: -0.025em 0 0 var(--accent-cyan),
                    -0.025em -0.025em 0 var(--accent-magenta);
    }
}

@keyframes glitch-top {
    0% {
        transform: translate(0);
    }
    30% {
        transform: translate(-5px, 2px);
    }
    60% {
        transform: translate(3px, -1px);
    }
}

@keyframes glitch-bottom {
    0% {
        transform: translate(0);
    }
    30% {
        transform: translate(5px, -2px);
    }
    60% {
        transform: translate(-3px, 1px);
    }
}

@media (max-width: 768px) {
    main {
        padding: 1rem;
    }
    
    .hero {
        height: 80vh;
    }
    
    .manifesto,
    .contact {
        padding: 4rem 0;
    }
    
    .cyber-corner {
        width: 30px;
        height: 30px;
    }
    
    .section-decoration {
        display: none;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        padding: 0;
    }
    
    .features h2::after {
        left: 0;
        right: 0;
    }

    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 2rem;
    }
}

/* Footer Styles */
.site-footer {
    background: rgba(26, 26, 46, 0.5);
    border-top: 1px solid var(--accent-cyan);
    padding: 3rem 0;
    margin-top: 6rem;
}

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

.footer-info h4 {
    font-family: var(--font-mono);
    color: var(--accent-cyan);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.footer-info p {
    color: var(--text-primary);
    opacity: 0.8;
    line-height: 1.6;
}

.social-link {
    color: var(--accent-magenta);
    text-decoration: none;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    position: relative;
    transition: all 0.3s ease;
}

.social-link:hover {
    text-shadow: 0 0 8px var(--accent-magenta);
}

.social-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--accent-magenta);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.social-link:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}
