:root {
    --primary-color: #0a0a0a;
    --accent-color: #00ff88;
    --text-color: #ffffff;
    --glow-color: rgba(0, 255, 136, 0.5);
}

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

body {
    font-family: 'Arial', sans-serif;
    background: var(--primary-color);
    color: var(--text-color);
    overflow-x: hidden;
}

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

.gate {
    position: absolute;
    width: 50%;
    height: 100%;
    background: linear-gradient(45deg, 
        rgba(0, 0, 0, 0.6),
        rgba(26, 26, 26, 0.4)
    );
    transition: transform 1.5s cubic-bezier(0.7, 0, 0.3, 1);
    box-shadow: 0 0 50px rgba(0, 255, 136, 0.2);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(0, 255, 136, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.gate-content {
    position: relative;
    text-align: center;
    padding: 2rem;
    color: var(--accent-color);
    transform: translateY(-50%);
    opacity: 0;
    animation: fadeInUp 1.5s forwards;
}

.gate-content.left {
    margin-right: -50%;
}

.gate-content.right {
    margin-left: -50%;
}

.gate-content h2 {
    font-size: 5rem;
    font-weight: bold;
    letter-spacing: 1rem;
    text-shadow: 0 0 20px var(--accent-color);
}

.gate-line {
    width: 0;
    height: 2px;
    background: var(--accent-color);
    margin: 1rem auto;
    box-shadow: 0 0 10px var(--accent-color);
    animation: expandLine 2s forwards;
}

.gate-content p {
    font-size: 1.2rem;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s 1s forwards;
}

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

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

/* Add pulsing arrows pointing down */
.gate::after {
    content: '↓';
    position: absolute;
    bottom: 2rem;
    font-size: 2rem;
    color: var(--accent-color);
    animation: pulseArrow 2s infinite;
}

.left-gate::after {
    right: 2rem;
}

.right-gate::after {
    left: 2rem;
}

@keyframes pulseArrow {
    0%, 100% {
        transform: translateY(0);
        opacity: 1;
    }
    50% {
        transform: translateY(10px);
        opacity: 0.5;
    }
}

.left-gate {
    left: 0;
    transform: translateX(0);
}

.right-gate {
    right: 0;
    transform: translateX(0);
}

.gate-opened .left-gate {
    transform: translateX(-100%);
}

.gate-opened .right-gate {
    transform: translateX(100%);
}

.content {
    min-height: 300vh;
}

.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem;
}

.hero-content {
    position: relative;
    z-index: 1;
}

h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
    color: var(--accent-color);
}

.subtitle {
    font-size: 1.5rem;
    opacity: 0.8;
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.mouse {
    width: 30px;
    height: 50px;
    border: 2px solid var(--accent-color);
    border-radius: 20px;
    position: relative;
    margin-bottom: 10px;
}

.mouse-wheel {
    width: 4px;
    height: 8px;
    background-color: var(--accent-color);
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
    animation: mouse-wheel 1.5s infinite;
}

@keyframes mouse-wheel {
    0% {
        top: 8px;
        opacity: 1;
    }
    100% {
        top: 30px;
        opacity: 0;
    }
}

.scroll-indicator p {
    font-size: 1.2rem;
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 2px;
    animation: pulse-text 2s infinite;
}

.scroll-indicator i {
    font-size: 1.5rem;
    color: var(--accent-color);
    animation: bounce 2s infinite;
}

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

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-30px);
    }
    60% {
        transform: translateY(-15px);
    }
}

.messages-container {
    padding: 4rem 2rem;
}

.message {
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    opacity: 0;
    transform: translateY(50px);
    transition: all 1s ease;
    background: rgba(0, 0, 0, 0.6);
    padding: 3rem;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    box-shadow: 0 0 30px rgba(0, 255, 136, 0.1);
    border: 1px solid rgba(0, 255, 136, 0.1);
}

.message.visible {
    opacity: 1;
    transform: translateY(0);
}

.message h2 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    color: var(--accent-color);
    text-shadow: 0 0 10px var(--glow-color);
}

.message p {
    font-size: 1.5rem;
    opacity: 0.8;
}

.cta-section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem;
}

.join-button {
    margin-top: 2rem;
    padding: 1rem 2rem;
    font-size: 1.5rem;
    background: var(--accent-color);
    border: none;
    border-radius: 50px;
    color: var(--primary-color);
    cursor: pointer;
    transition: all 0.3s ease;
}

.join-button:hover {
    transform: scale(1.1);
    box-shadow: 0 0 20px var(--accent-color);
}

/* Stars background */
.stars {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000 url('https://s3-us-west-2.amazonaws.com/s.cdpn.io/1231630/stars.png') repeat;
    z-index: -2;
}

.twinkling {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent url('https://s3-us-west-2.amazonaws.com/s.cdpn.io/1231630/twinkling.png') repeat;
    z-index: -1;
    animation: move-background 70s linear infinite;
}

@keyframes move-background {
    from {
        transform: translate3d(0, 0, 0);
    }
    to { 
        transform: translate3d(1000px, 0, 0);
    }
}

.glowing-text {
    font-size: 4.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-color);
    text-shadow: 0 0 10px var(--glow-color),
                 0 0 20px var(--glow-color),
                 0 0 30px var(--glow-color);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        text-shadow: 0 0 10px var(--glow-color),
                     0 0 20px var(--glow-color);
    }
    50% {
        text-shadow: 0 0 20px var(--glow-color),
                     0 0 30px var(--glow-color),
                     0 0 40px var(--glow-color);
    }
    100% {
        text-shadow: 0 0 10px var(--glow-color),
                     0 0 20px var(--glow-color);
    }
}

/* Add responsive font sizes */
@media (max-width: 768px) {
    .gate-content h2 {
        font-size: 3rem;
        letter-spacing: 0.5rem;
    }

    .gate-content p {
        font-size: 1rem;
    }

    .glowing-text {
        font-size: 2.5rem;
    }

    .message h2 {
        font-size: 2rem;
    }

    .message p {
        font-size: 1.2rem;
    }

    .message {
        padding: 2rem;
        min-height: 60vh;
    }

    .join-button {
        font-size: 1.2rem;
        padding: 0.8rem 1.6rem;
    }
}

@media (max-width: 480px) {
    .gate-content h2 {
        font-size: 2rem;
        letter-spacing: 0.3rem;
    }

    .gate-content p {
        font-size: 0.9rem;
    }

    .glowing-text {
        font-size: 2rem;
    }

    .subtitle {
        font-size: 1rem;
    }

    .message h2 {
        font-size: 1.5rem;
    }

    .message p {
        font-size: 1rem;
    }

    .scroll-indicator p {
        font-size: 0.9rem;
    }

    /* Adjust mouse indicator size */
    .mouse {
        width: 24px;
        height: 40px;
    }

    /* Make gates take full width on mobile */
    .gate {
        width: 100%;
        height: 50%;
    }

    .left-gate {
        top: 0;
        transform: translateY(0);
    }

    .right-gate {
        bottom: 0;
        top: auto;
        transform: translateY(0);
    }

    /* Adjust gate opening animation for mobile */
    .gate-opened .left-gate {
        transform: translateY(-100%);
    }

    .gate-opened .right-gate {
        transform: translateY(100%);
    }

    /* Adjust gate content margins for vertical layout */
    .gate-content.left {
        margin-right: 0;
        margin-bottom: -50%;
    }

    .gate-content.right {
        margin-left: 0;
        margin-top: -50%;
    }

    /* Adjust arrow positions */
    .left-gate::after {
        right: 50%;
        bottom: 1rem;
        transform: translateX(50%);
    }

    .right-gate::after {
        left: 50%;
        top: 1rem;
        transform: translateX(-50%) rotate(180deg);
    }
}

/* Add touch device optimization */
@media (hover: none) {
    .join-button:hover {
        transform: none;
    }

    .join-button:active {
        transform: scale(0.95);
    }
}

/* Add Earth styles */
.earth-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

#earthCanvas {
    width: 100%;
    height: 100%;
}

.play-voice {
    position: fixed;
    top: 20px;
    right: 20px;
    background: transparent;
    border: 2px solid var(--accent-color);
    color: var(--accent-color);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 1000;
    opacity: 0;
    transform: translateY(-20px);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.play-voice:hover {
    background: var(--accent-color);
    color: var(--primary-color);
    box-shadow: 0 0 20px var(--accent-color);
}

.play-voice.visible {
    opacity: 1;
    transform: translateY(0);
}

.play-voice .tooltip {
    position: absolute;
    right: 60px;
    background: var(--primary-color);
    color: var(--accent-color);
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.9rem;
    opacity: 0;
    transition: opacity 0.3s ease;
    white-space: nowrap;
}

.play-voice:hover .tooltip {
    opacity: 1;
}

.newsletter-container {
    margin: 2rem 0;
}

.newsletter-form {
    display: flex;
    gap: 1rem;
    justify-content: center;
    max-width: 500px;
    margin: 0 auto;
}

#emailInput {
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    border: 2px solid var(--accent-color);
    background: rgba(0, 0, 0, 0.3);
    color: var(--text-color);
    font-size: 1rem;
    width: 300px;
    transition: all 0.3s ease;
}

#emailInput:focus {
    outline: none;
    box-shadow: 0 0 15px var(--accent-color);
}

.newsletter-button {
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    border: none;
    background: var(--accent-color);
    color: var(--primary-color);
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.newsletter-button:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px var(--accent-color);
}

#newsletterMessage {
    margin-top: 1rem;
    text-align: center;
    font-size: 0.9rem;
    min-height: 20px;
}

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

.message-error {
    color: #ff4444;
}

.success-animation {
    animation: successPulse 1s ease;
}

@keyframes successPulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
        box-shadow: 0 0 30px var(--accent-color);
    }
    100% {
        transform: scale(1);
    }
} 