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

html, body {
    font-family: 'Times', 'Times New Roman', serif;
    background-color: #FAF9F5 !important;
    color: #1F1E1D;
    height: 100vh;
    width: 100vw;
    overflow: hidden;
    position: relative;
}

#visualization-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1;
    background-color: #FAF9F5;
}

.content-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 10;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 3rem;
    background: transparent;
}

header {
    position: absolute;
    top: 3rem;
    left: 3rem;
    z-index: 15;
}

.logo {
    font-size: 2.5rem;
    font-weight: 400;
    letter-spacing: -0.02em;
    color: #1F1E1D;
    margin: 0;
    text-align: left;
}

.main-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    max-width: 800px;
    width: 90%;
}

.hero-text {
    margin-bottom: 4rem;
}

.tagline {
    font-size: 3rem;
    font-weight: 300;
    line-height: 1.2;
    letter-spacing: -0.03em;
    color: #1F1E1D;
    margin: 0 0 2rem 0;
    opacity: 0.9;
}

.credibility {
    font-size: 1.1rem;
    font-weight: 400;
    line-height: 1.5;
    color: #1F1E1D;
    opacity: 0.7;
    max-width: 600px;
    margin: 0 auto;
    letter-spacing: 0.01em;
}

.contact-section {
    position: fixed !important;
    bottom: 3rem !important;
    right: 3rem !important;
    z-index: 20 !important;
    pointer-events: auto;
}

.contact-link {
    color: #1F1E1D;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 400;
    letter-spacing: 0.02em;
    transition: opacity 0.3s ease;
    border-bottom: 1px solid rgba(31, 30, 29, 0.3);
    padding-bottom: 2px;
}

.contact-link:hover {
    opacity: 0.6;
}

@media (max-width: 1024px) {
    .content-overlay {
        padding: 2rem;
    }
    
    .logo {
        font-size: 2rem;
    }
    
    .tagline {
        font-size: 2.5rem;
    }
    
    .contact-section {
        bottom: 2rem;
        right: 2rem;
    }
}

@media (max-width: 768px) {
    body {
        overflow-y: auto;
        overflow-x: hidden;
        height: auto;
        min-height: 100vh;
        min-height: 100dvh; /* Dynamic viewport height for mobile */
    }
    
    .content-overlay {
        position: relative;
        min-height: 100vh;
        min-height: 100dvh; /* Dynamic viewport height */
        display: flex;
        flex-direction: column;
        padding: max(1.5rem, env(safe-area-inset-top)) 1.5rem max(3rem, env(safe-area-inset-bottom)) 1.5rem;
    }
    
    header {
        position: static;
        text-align: center;
        margin-bottom: 1.5rem;
        order: 1;
    }
    
    .logo {
        font-size: 1.8rem;
        text-align: center;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        width: 100%;
    }
    
    .main-content {
        position: static;
        transform: none;
        width: 100%;
        max-width: none;
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: center;
        text-align: center;
        order: 2;
        margin-bottom: 2rem;
        min-height: 50vh;
    }
    
    .tagline {
        font-size: 1.8rem;
        line-height: 1.3;
        margin-bottom: 1.5rem;
    }
    
    .credibility {
        font-size: 0.95rem;
        line-height: 1.5;
        margin-bottom: 0;
        opacity: 0.8;
    }
    
    .contact-section {
        position: static !important;
        bottom: auto !important;
        left: auto !important;
        right: auto !important;
        transform: none !important;
        text-align: center;
        order: 3;
        margin-bottom: 0;
        padding-bottom: env(safe-area-inset-bottom, 1rem);
    }
    
    .contact-link {
        font-size: 1rem;
        padding: 0.85rem 1.5rem;
        background: rgba(31, 30, 29, 0.08);
        border-radius: 25px;
        border: 1px solid rgba(31, 30, 29, 0.2);
        display: inline-block;
        text-decoration: none;
        color: #1F1E1D;
        transition: all 0.3s ease;
        box-shadow: 0 2px 8px rgba(31, 30, 29, 0.1);
        font-weight: 400;
    }
    
    .contact-link:hover {
        background: rgba(31, 30, 29, 0.12);
        opacity: 0.8;
        transform: translateY(-1px);
    }
}

@media (max-width: 480px) {
    .content-overlay {
        padding: max(1.25rem, env(safe-area-inset-top)) 1rem max(2.5rem, env(safe-area-inset-bottom)) 1rem;
    }
    
    .logo {
        font-size: 1.5rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        width: 100%;
    }
    
    .tagline {
        font-size: 1.6rem;
        line-height: 1.35;
        margin-bottom: 1.25rem;
    }
    
    .credibility {
        font-size: 0.9rem;
        line-height: 1.5;
    }
    
    .contact-link {
        font-size: 0.9rem;
        padding: 0.8rem 1.2rem;
        margin-bottom: 0.5rem;
    }
}

@media (max-width: 320px) {
    .content-overlay {
        padding: max(1rem, env(safe-area-inset-top)) 0.75rem max(2rem, env(safe-area-inset-bottom)) 0.75rem;
    }
    
    .logo {
        font-size: 1.3rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        width: 100%;
    }
    
    .tagline {
        font-size: 1.4rem;
        line-height: 1.4;
        margin-bottom: 1rem;
    }
    
    .credibility {
        font-size: 0.85rem;
        line-height: 1.5;
    }
    
    .contact-link {
        font-size: 0.85rem;
        padding: 0.75rem 1rem;
        margin-bottom: 0.5rem;
    }
}