/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #f0e8ff;
    background-color: #06000d;
}


/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #06000d 0%, #0e0018 100%);
    overflow: hidden;
}

.hero-content {
    text-align: center;
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 2rem;
}

.hero-text {
    font-size: clamp(2.5rem, 8vw, 6rem);
    font-weight: 300;
    letter-spacing: -0.02em;
    margin-bottom: 2rem;
    line-height: 1.3;
}

.static-text {
    display: block;
    color: #f0e8ff;
    margin-bottom: 0.5rem;
    opacity: 0;
    animation: assembleFromDots 1.2s ease-out 0.3s forwards;
}

.dynamic-text {
    display: block;
    color: #f0e8ff;
    font-weight: 400;
    opacity: 0;
}

@keyframes assembleFromDots {
    0% {
        opacity: 0;
        text-shadow:
            0 0 0 transparent,
            0.2em 0 0 #f0e8ff,
            0.4em 0 0 #f0e8ff,
            0.6em 0 0 #f0e8ff,
            0.8em 0 0 #f0e8ff,
            1em 0 0 #f0e8ff,
            1.2em 0 0 #f0e8ff,
            1.4em 0 0 #f0e8ff,
            1.6em 0 0 #f0e8ff,
            1.8em 0 0 #f0e8ff,
            2em 0 0 #f0e8ff;
        filter: blur(3px);
        transform: scale(1.1);
    }
    25% {
        opacity: 0.3;
        text-shadow:
            0.05em 0.05em 0 #f0e8ff,
            0.15em 0.05em 0 #f0e8ff,
            0.35em 0.05em 0 #f0e8ff,
            0.55em 0.05em 0 #f0e8ff,
            0.75em 0.05em 0 #f0e8ff,
            0.95em 0.05em 0 #f0e8ff,
            1.15em 0.05em 0 #f0e8ff,
            1.35em 0.05em 0 #f0e8ff,
            1.55em 0.05em 0 #f0e8ff,
            1.75em 0.05em 0 #f0e8ff;
        filter: blur(2px);
        transform: scale(1.05);
    }
    50% {
        opacity: 0.6;
        text-shadow:
            0.02em 0.02em 0 #f0e8ff,
            0.12em 0.02em 0 #f0e8ff,
            0.32em 0.02em 0 #f0e8ff,
            0.52em 0.02em 0 #f0e8ff,
            0.72em 0.02em 0 #f0e8ff,
            0.92em 0.02em 0 #f0e8ff,
            1.12em 0.02em 0 #f0e8ff;
        filter: blur(1px);
        transform: scale(1.02);
    }
    75% {
        opacity: 0.8;
        text-shadow:
            0.01em 0.01em 0 #f0e8ff,
            0.11em 0.01em 0 #f0e8ff,
            0.31em 0.01em 0 #f0e8ff;
        filter: blur(0.5px);
        transform: scale(1.01);
    }
    100% {
        opacity: 1;
        text-shadow: none;
        filter: blur(0);
        transform: scale(1);
    }
}

@keyframes spiralIn {
    0% {
        opacity: 0;
        transform: rotate(-180deg) scale(0.3);
        filter: blur(2px);
    }
    50% {
        opacity: 0.7;
        transform: rotate(-90deg) scale(0.7);
        filter: blur(1px);
    }
    100% {
        opacity: 1;
        transform: rotate(0deg) scale(1);
        filter: blur(0);
    }
}

@keyframes typewriter {
    0% {
        width: 0;
        opacity: 1;
    }
    1% {
        opacity: 1;
    }
    100% {
        opacity: 1;
    }
}

@keyframes glitchIn {
    0%, 100% {
        opacity: 1;
        transform: translate(0);
    }
    10% {
        opacity: 0.8;
        transform: translate(-2px, 1px);
    }
    20% {
        opacity: 0.9;
        transform: translate(1px, -1px);
    }
    30% {
        opacity: 0.7;
        transform: translate(-1px, 2px);
    }
    40% {
        opacity: 1;
        transform: translate(1px, 1px);
    }
    50% {
        opacity: 0.9;
        transform: translate(-2px, -1px);
    }
    60% {
        opacity: 1;
        transform: translate(2px, 1px);
    }
    70% {
        opacity: 0.8;
        transform: translate(-1px, -2px);
    }
    80% {
        opacity: 1;
        transform: translate(1px, 2px);
    }
    90% {
        opacity: 0.9;
        transform: translate(-1px, 1px);
    }
}

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

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

/* Hero Controls */
.hero-controls {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    justify-content: center;
    align-items: center;
    margin-top: 3rem;
    opacity: 0;
    animation: assembleFromDots 1s ease-out 2.8s forwards;
}

/* Interaction Dot */
.interaction-dot {
    position: relative;
    display: inline-block;
    cursor: pointer;
    isolation: isolate;
}

.dot {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2d0040, #7200a0);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

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

.interaction-dot:hover .dot {
    transform: scale(1.1);
    box-shadow: 0 5px 28px rgba(130,0,180,0.55);
}

.interaction-dot:hover .dot::before {
    left: 100%;
}

.interaction-dot::after {
    content: attr(data-tooltip);
    position: absolute;
    top: 50%;
    left: 120px;
    transform: translateY(-50%);
    background: #333;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    white-space: nowrap;
    z-index: 100;
}

.interaction-dot:hover::after {
    opacity: 1;
}

.content-input-square {
    position: relative;
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #2d0040, #7200a0);
    border-radius: 10px;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.content-input-square:hover {
    transform: scale(1.1);
}

.content-input-square::after {
    content: attr(data-tooltip);
    position: absolute;
    top: 50%;
    left: 120px;
    transform: translateY(-50%);
    background: #333;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    white-space: nowrap;
    z-index: 100;
}

.content-input-square:hover::after {
    opacity: 1;
}

/* Content Input Modal */
.content-input-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(2,0,8,0.8);
    animation: fadeIn 0.3s ease;
}

.content-input-modal.show {
    display: block;
}

.content-input-modal-content {
    background-color: #0e0018;
    margin: 15% auto;
    padding: 2rem;
    border-radius: 10px;
    width: 90%;
    max-width: 400px;
    position: relative;
    animation: slideIn 0.3s ease;
    border: 1px solid #2a0038;
}

.content-input-modal h3 {
    margin-bottom: 1rem;
    color: #f0e8ff;
    font-weight: 300;
}

.content-input-modal .close {
    position: absolute;
    right: 1rem;
    top: 1rem;
    font-size: 1.5rem;
    font-weight: bold;
    cursor: pointer;
    color: #7a5a9a;
    transition: color 0.3s ease;
}

.content-input-modal .close:hover {
    color: #f0e8ff;
}

.content-modal-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.content-modal-form input {
    padding: 1rem;
    border: 2px solid #2a0038;
    border-radius: 10px;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s ease;
    font-family: inherit;
    background: #06000d;
    color: #f0e8ff;
}

.content-modal-form input:focus {
    border-color: #8a00b8;
}

.content-modal-form button {
    padding: 1rem 2rem;
    background: #3d0055;
    color: #f0e8ff;
    border: none;
    border-radius: 30px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.content-modal-form button:hover {
    background: #5a0078;
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(130,0,180,0.45);
}

.content-modal-status {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 10px;
    font-weight: 500;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.content-modal-status.show {
    opacity: 1;
}

.content-modal-status.success {
    background: rgba(0, 80, 30, 0.35);
    color: #7fe0a0;
    border: 1px solid rgba(0, 140, 60, 0.3);
}

.content-modal-status.error {
    background: rgba(100, 0, 30, 0.35);
    color: #e07090;
    border: 1px solid rgba(150, 0, 50, 0.3);
}



/* Signup Section */
.signup-section {
    position: relative;
    background: linear-gradient(135deg, #0e0018 0%, #180028 100%);
    padding: 4rem 2rem;
    text-align: center;
}

.signup-content {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.signup-section h2 {
    font-size: 2.5rem;
    font-weight: 300;
    margin-bottom: 1rem;
    color: #f0e8ff;
}

.signup-section p {
    font-size: 1.2rem;
    color: #b090cc;
    margin-bottom: 2rem;
}

.email-form {
    display: flex;
    gap: 1rem;
    max-width: 400px;
    margin: 0 auto;
}

.email-form input {
    flex: 1;
    padding: 1rem;
    border: 2px solid #2a0038;
    border-radius: 30px;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s ease;
    background: #06000d;
    color: #f0e8ff;
}

.email-form input::placeholder {
    color: #7a5a9a;
}

.email-form input:focus {
    border-color: #8a00b8;
}

.email-form button {
    padding: 1rem 2rem;
    background: #3d0055;
    color: #f0e8ff;
    border: none;
    border-radius: 30px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.email-form button:hover {
    background: #5a0078;
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(130,0,180,0.45);
}

.email-status {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 10px;
    font-weight: 500;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.email-status.show {
    opacity: 1;
}

.email-status.success {
    background: rgba(0, 80, 30, 0.35);
    color: #7fe0a0;
    border: 1px solid rgba(0, 140, 60, 0.3);
}

.email-status.error {
    background: rgba(100, 0, 30, 0.35);
    color: #e07090;
    border: 1px solid rgba(150, 0, 50, 0.3);
}

/* Footer */
.footer {
    background: #030006;
    color: #f0e8ff;
    padding: 2rem;
    text-align: center;
}

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

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    align-items: center;
}

.footer-links a {
    color: #f0e8ff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #c090e0;
}

.contact-btn {
    background: none;
    border: 1px solid rgba(240,232,255,0.35);
    color: #f0e8ff;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.contact-btn:hover {
    background: #f0e8ff;
    color: #06000d;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(2,0,8,0.8);
    animation: fadeIn 0.3s ease;
}

.modal.show {
    display: block;
}

.modal-content {
    background-color: #0e0018;
    margin: 10% auto;
    padding: 2rem;
    border-radius: 10px;
    width: 90%;
    max-width: 500px;
    position: relative;
    animation: slideIn 0.3s ease;
    border: 1px solid #2a0038;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.close {
    position: absolute;
    right: 1rem;
    top: 1rem;
    font-size: 1.5rem;
    font-weight: bold;
    cursor: pointer;
    color: #7a5a9a;
    transition: color 0.3s ease;
}

.close:hover {
    color: #f0e8ff;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-form input,
.contact-form textarea {
    padding: 1rem;
    border: 2px solid #2a0038;
    border-radius: 10px;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s ease;
    font-family: inherit;
    background: #06000d;
    color: #f0e8ff;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: #7a5a9a;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: #8a00b8;
}

.contact-form button {
    padding: 1rem 2rem;
    background: #3d0055;
    color: #f0e8ff;
    border: none;
    border-radius: 30px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.contact-form button:hover {
    background: #5a0078;
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(130,0,180,0.45);
}

.contact-status {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 10px;
    font-weight: 500;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.contact-status.show {
    opacity: 1;
}

.contact-status.success {
    background: rgba(0, 80, 30, 0.35);
    color: #7fe0a0;
    border: 1px solid rgba(0, 140, 60, 0.3);
}

.contact-status.error {
    background: rgba(100, 0, 30, 0.35);
    color: #e07090;
    border: 1px solid rgba(150, 0, 50, 0.3);
}

/* Travel Animation */
html {
    scroll-snap-type: y mandatory;
}

.hero,
.travel-section,
.signup-section {
    scroll-snap-align: start;
    scroll-snap-stop: always;
}

.travel-canvas {
    position: relative;
    height: 600vh;
}

.travel-section {
    height: 100vh;
    background: linear-gradient(135deg, #06000d 0%, #0e0018 100%);
    position: relative;
}

#travel-lines-svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: visible;
    z-index: 2;
}

.hero-controls {
    transition: opacity 0.4s ease;
}

/* No CSS transitions on left/top — spring loop sets these directly each frame */
#travel-circle {
    position: fixed;
    z-index: 10;
    pointer-events: none;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2d0040, #7200a0);
    transform: translate(-50%, -50%);
    opacity: 0;
    will-change: left, top, opacity;
    transition: opacity 0.4s ease;
}

#travel-square {
    position: fixed;
    z-index: 10;
    pointer-events: none;
    width: 100px;
    height: 100px;
    border-radius: 10px;
    background: linear-gradient(135deg, #2d0040, #7200a0);
    transform: translate(-50%, -50%);
    opacity: 0;
    will-change: left, top, opacity;
    transition: opacity 0.4s ease;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-content {
        padding: 1rem;
    }

    .hero-controls {
        gap: 1rem;
    }

    .email-form {
        flex-direction: column;
        max-width: 300px;
    }

    .footer-links {
        flex-direction: column;
        gap: 1rem;
    }

    .modal-content {
        margin: 20% auto;
        padding: 1.5rem;
    }

    .signup-section {
        padding: 3rem 1rem;
    }

    .signup-section h2 {
        font-size: 2rem;
    }
}
