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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #0a0e27 0%, #1a237e 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: background 0.5s ease;
}

.header {
    position: fixed;
    top: 40px;
    left: 40px;
    right: 40px;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-section {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}

.site-logo {
    height: 110px;
    width: auto;
    opacity: 0.95;
    transition: opacity 0.3s ease;
}

.site-logo:hover {
    opacity: 1;
}

.tagline {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: 0.1em;
    font-weight: 300;
    margin-left: 2px;
}

.header-contact-btn {
    background: rgba(0, 229, 255, 0.1);
    border: 1px solid rgba(0, 229, 255, 0.3);
    color: white;
    padding: 12px 24px;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 300;
    text-decoration: none;
    outline: none;
}

.header-contact-btn:hover {
    background: rgba(0, 229, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 229, 255, 0.3);
}

.container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    position: relative;
}

.thought-display {
    max-width: 1400px;
    width: 100%;
    text-align: center;
    position: relative;
    height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.thought {
    position: absolute;
    font-size: clamp(2.5rem, 7vw, 5.5rem);
    color: white;
    font-weight: 200;
    letter-spacing: -0.02em;
    line-height: 1.3;
    padding: 0 40px;
    opacity: 0;
    transform: translateX(100px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    text-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

.thought.active {
    opacity: 1;
    transform: translateX(0);
}

.thought.exit-left {
    opacity: 0;
    transform: translateX(-100px);
}

.thought-number {
    position: absolute;
    top: 40px;
    right: 40px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 300;
    letter-spacing: 0.1em;
}

.principle-indicator {
    position: absolute;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    font-weight: 300;
    padding: 8px 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.05);
}

.timeline-container {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px 40px 40px;
    background: linear-gradient(to top, rgba(0,0,0,0.2), transparent);
}

.timeline {
    position: relative;
    height: 2px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    cursor: pointer;
    transition: height 0.3s ease;
}

.timeline:hover {
    height: 4px;
}

.timeline-progress {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    background: linear-gradient(90deg, #00bcd4, #00e5ff);
    border-radius: 2px;
    transition: width 0.3s ease;
    box-shadow: 0 0 20px rgba(0, 229, 255, 0.5);
}

.timeline-dots {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
}

.timeline-dot {
    position: absolute;
    width: 8px;
    height: 8px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.3s ease;
}

.timeline-dot.active {
    width: 12px;
    height: 12px;
    background: #00e5ff;
    box-shadow: 0 0 20px rgba(0, 229, 255, 0.8);
}

.controls {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
    position: relative;
}

.control-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 12px 24px;
    border-radius: 30px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 300;
    position: relative;
    overflow: hidden;
}

.control-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    border-color: rgba(0, 229, 255, 0.5);
}

.control-btn.active {
    background: rgba(0, 229, 255, 0.1);
    border-color: rgba(0, 229, 255, 0.5);
}

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

.play-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 2px;
    background: linear-gradient(90deg, #00bcd4, #00e5ff);
    border-radius: 2px;
    transition: width linear;
    transform-origin: left;
    z-index: 1;
}

.keyboard-hint {
    position: fixed;
    bottom: 120px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.4);
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

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

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

.loading {
    animation: pulse 2s infinite;
}

/* Contact Overlay */
.contact-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.contact-overlay.active {
    display: flex;
    animation: fadeIn 0.3s ease;
}

.contact-modal {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 40px;
    width: 90%;
    max-width: 500px;
    backdrop-filter: blur(20px);
    position: relative;
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 32px;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.close-btn:hover {
    color: white;
    transform: rotate(90deg);
}

.contact-modal h2 {
    color: white;
    font-size: 2rem;
    font-weight: 200;
    margin-bottom: 30px;
    letter-spacing: -0.02em;
}

.contact-info {
    margin-bottom: 25px;
}

.contact-label {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 8px;
}

.contact-email {
    color: #00e5ff;
    font-size: 1.2rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.contact-email:hover {
    color: white;
    text-shadow: 0 0 20px rgba(0, 229, 255, 0.5);
}

.contact-info p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    line-height: 1.5;
}

/* Legal Footer */
.legal-footer {
    position: fixed;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    display: flex;
    gap: 10px;
    align-items: center;
}

.legal-link {
    color: rgba(255, 255, 255, 0.4);
    text-decoration: none;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    transition: color 0.3s ease;
}

.legal-link:hover {
    color: rgba(255, 255, 255, 0.7);
}

.legal-separator {
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.75rem;
}



@media (max-width: 768px) {
    .header {
        top: 20px;
        left: 20px;
        right: 20px;
    }
    
    .thought {
        font-size: clamp(1.8rem, 10vw, 3rem);
    }
    
    .site-logo {
        height: 90px;
    }
    
    .tagline {
        font-size: 0.85rem;
    }
    
    .header-contact-btn {
        display: none;
    }
}