@import url('https://fonts.googleapis.com/css2?family=Space+Mono:wght@400;700&family=Bebas+Neue&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: none;
}

:root {
    --glitch1: #ff00ff;
    --glitch2: #00ffff;
    --accent: #ff3e00;
    --bg: #0a0a0a;
}

body {
    background: var(--bg);
    color: #fff;
    font-family: 'Space Mono', monospace;
    overflow-x: hidden;
    min-height: 100vh;
}

/* Custom Cursor */
.cursor {
    width: 20px;
    height: 20px;
    border: 2px solid var(--accent);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    mix-blend-mode: difference;
    transition: transform 0.1s;
}

.cursor-follower {
    width: 40px;
    height: 40px;
    background: var(--accent);
    opacity: 0.3;
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9998;
    transition: transform 0.3s ease-out;
}

/* Noise Overlay */
.noise {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1000;
    opacity: 0.05;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%' height='100%' filter='url(%23noise)'/%3E%3C/svg%3E");
}

/* Glitch Lines */
.glitch-lines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 999;
    overflow: hidden;
}

.glitch-line {
    position: absolute;
    width: 100%;
    height: 2px;
    background: var(--glitch1);
    opacity: 0;
    animation: glitchLine 3s infinite;
}

@keyframes glitchLine {
    0%, 90%, 100% { opacity: 0; }
    91% { opacity: 1; top: 20%; }
    92% { opacity: 0; }
    93% { opacity: 1; top: 50%; }
    94% { opacity: 0; }
    95% { opacity: 1; top: 80%; }
}

/* Floating Chaos Elements */
.chaos-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.chaos-element {
    position: absolute;
    font-size: clamp(1rem, 3vw, 2rem);
    opacity: 0.15;
    animation: float-chaos 20s infinite linear;
    font-family: 'Bebas Neue', sans-serif;
}

@keyframes float-chaos {
    0% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(100px, -100px) rotate(90deg); }
    50% { transform: translate(-50px, 50px) rotate(180deg); }
    75% { transform: translate(-100px, -50px) rotate(270deg); }
    100% { transform: translate(0, 0) rotate(360deg); }
}

/* Main Portal Section */
.portal-section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 10;
}

/* Main Title Chaos */
.title-container {
    text-align: center;
    margin-bottom: 3rem;
}

.main-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(3rem, 15vw, 12rem);
    letter-spacing: -0.05em;
    line-height: 0.9;
    position: relative;
    display: inline-block;
}

.main-title .word {
    display: block;
    position: relative;
    animation: wordShake 0.1s infinite;
    animation-play-state: paused;
}

.main-title:hover .word {
    animation-play-state: running;
}

.main-title .word:nth-child(1) { color: var(--glitch1); }
.main-title .word:nth-child(2) { color: var(--glitch2); }
.main-title .word:nth-child(3) { color: var(--accent); }

@keyframes wordShake {
    0%, 100% { transform: translate(0); }
    25% { transform: translate(-2px, 2px); }
    50% { transform: translate(2px, -2px); }
    75% { transform: translate(-2px, -2px); }
}

/* Scramble Text */
.scramble-text {
    font-size: clamp(1rem, 2vw, 1.5rem);
    text-transform: uppercase;
    letter-spacing: 0.5em;
    opacity: 0.7;
    margin-top: 1rem;
}

/* Site Branding */
.site-branding {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(2rem, 8vw, 5rem);
    letter-spacing: 0.1em;
    margin-bottom: 2rem;
    position: relative;
    display: inline-block;
}

.site-branding .zero {
    color: var(--glitch1);
}

.site-branding .a {
    color: var(--glitch2);
}

.site-branding .uno {
    color: var(--accent);
}

.site-branding .dot {
    color: #fff;
    opacity: 0.5;
}

/* Interactive Idea Portal */
.idea-portal {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    border: 3px solid var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin: 3rem auto;
    cursor: pointer;
    pointer-events: auto;
    transition: all 0.3s ease;
    animation: portalPulse 2s infinite;
}

.idea-portal::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 1px solid var(--glitch1);
    animation: portalSpin 10s linear infinite;
}

.idea-portal::after {
    content: '';
    position: absolute;
    width: 80%;
    height: 80%;
    border-radius: 50%;
    border: 1px dashed var(--glitch2);
    animation: portalSpin 7s linear infinite reverse;
}

@keyframes portalPulse {
    0%, 100% { box-shadow: 0 0 20px var(--accent), inset 0 0 30px rgba(255,62,0,0.2); }
    50% { box-shadow: 0 0 50px var(--accent), inset 0 0 50px rgba(255,62,0,0.4); }
}

@keyframes portalSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.portal-text {
    text-align: center;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.5rem;
    z-index: 2;
    pointer-events: none;
}

.portal-text span {
    display: block;
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.idea-portal:hover {
    transform: scale(1.1);
    border-color: var(--glitch1);
}

/* Floating Ideas */
.floating-ideas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 5;
}

.floating-idea {
    position: absolute;
    padding: 1rem 2rem;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.1);
    backdrop-filter: blur(5px);
    font-size: 0.9rem;
    max-width: 250px;
    opacity: 0;
    animation: floatIdea 15s infinite;
    pointer-events: auto;
    cursor: pointer;
    transition: all 0.3s ease;
}

.floating-idea:hover {
    background: rgba(255,62,0,0.2);
    border-color: var(--accent);
    transform: scale(1.1) !important;
}

.floating-idea.saved {
    border-color: var(--glitch2);
}

.floating-idea.saved::after {
    content: '💾';
    position: absolute;
    top: -8px;
    right: -8px;
    font-size: 0.7rem;
}

@keyframes floatIdea {
    0%, 100% { opacity: 0; transform: translateY(50px); }
    10%, 90% { opacity: 1; }
    50% { transform: translateY(-50px); }
}

/* Reveal Sections */
.reveal-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 10;
    padding: 2rem;
}

.reveal-content {
    max-width: 1200px;
    width: 100%;
}

.reveal-text {
    font-size: clamp(1.5rem, 4vw, 3rem);
    line-height: 1.4;
    font-weight: 700;
    opacity: 0.1;
    transition: opacity 0.5s ease;
}

.reveal-text.active {
    opacity: 1;
}

.reveal-text .highlight {
    color: var(--accent);
    position: relative;
}

.reveal-text .highlight::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 30%;
    background: var(--accent);
    opacity: 0.2;
    transform: skewX(-15deg);
}

/* Brutal Grid */
.brutal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0;
    margin-top: 4rem;
}

.brutal-cell {
    aspect-ratio: 1;
    border: 1px solid rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 2rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    pointer-events: auto;
}

.brutal-cell::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    transition: left 0.5s ease;
}

.brutal-cell:hover::before {
    left: 100%;
}

.brutal-cell:hover {
    background: var(--accent);
    transform: scale(1.05);
    z-index: 10;
}

.brutal-cell h3 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.brutal-cell p {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    opacity: 0.7;
}

/* Contact Chaos */
.contact-chaos {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 10;
    padding: 2rem;
}

.contact-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(3rem, 10vw, 8rem);
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
}

.contact-title::before {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    color: var(--glitch1);
    clip-path: inset(0 0 50% 0);
    animation: contactGlitch 2s infinite;
}

@keyframes contactGlitch {
    0%, 100% { transform: translate(0); }
    20% { transform: translate(-3px, 3px); }
    40% { transform: translate(3px, -3px); }
    60% { transform: translate(-3px, -3px); }
    80% { transform: translate(3px, 3px); }
}

.contact-links {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-items: center;
}

.contact-link {
    font-family: 'Space Mono', monospace;
    font-size: clamp(1.2rem, 3vw, 2rem);
    color: #fff;
    text-decoration: none;
    padding: 1rem 3rem;
    border: 2px solid #fff;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.contact-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--accent);
    z-index: -1;
    transition: left 0.3s ease;
}

.contact-link:hover::before {
    left: 0;
}

.contact-link:hover {
    color: #000;
    border-color: var(--accent);
}

/* Marquee */
.marquee-container {
    width: 100%;
    overflow: hidden;
    padding: 2rem 0;
    border-top: 1px solid rgba(255,255,255,0.1);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    margin: 4rem 0;
}

.marquee {
    display: flex;
    animation: marquee 20s linear infinite;
    width: max-content;
}

.marquee span {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 4rem;
    white-space: nowrap;
    padding: 0 2rem;
    opacity: 0.3;
}

@keyframes marquee {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* Idea Input */
.idea-input-container {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    width: 90%;
    max-width: 600px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s ease;
}

.idea-input-container.active {
    opacity: 1;
    visibility: visible;
}

.idea-input {
    width: 100%;
    padding: 1.5rem 2rem;
    background: rgba(0,0,0,0.9);
    border: 2px solid var(--accent);
    color: #fff;
    font-family: 'Space Mono', monospace;
    font-size: 1rem;
    outline: none;
}

.idea-input::placeholder {
    color: rgba(255,255,255,0.5);
}

/* Ideas Counter */
.ideas-counter {
    position: fixed;
    top: 1rem;
    right: 1rem;
    background: rgba(0,0,0,0.8);
    border: 1px solid var(--accent);
    padding: 0.5rem 1rem;
    font-family: 'Space Mono', monospace;
    font-size: 0.8rem;
    z-index: 100;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.ideas-counter .count {
    color: var(--accent);
    font-weight: bold;
}

/* Submitted Ideas */
.submitted-idea {
    position: fixed;
    padding: 1rem 2rem;
    background: var(--accent);
    color: #000;
    font-weight: 700;
    pointer-events: none;
    z-index: 50;
    animation: ideaFly 3s forwards;
}

@keyframes ideaFly {
    0% { 
        transform: scale(1) rotate(0deg); 
        opacity: 1;
    }
    100% { 
        transform: scale(0) rotate(720deg) translateY(-500px); 
        opacity: 0;
    }
}

/* Footer */
footer {
    text-align: center;
    padding: 3rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.8rem;
    opacity: 0.5;
    position: relative;
    z-index: 10;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .cursor, .cursor-follower {
        display: none;
    }
    
    * {
        cursor: auto;
    }
    
    .brutal-cell {
        aspect-ratio: auto;
        min-height: 150px;
    }
    
    .ideas-counter {
        top: auto;
        bottom: 5rem;
        right: 1rem;
    }
}
