/* style.css - White Minimalist Theme for Future Fund */

/* --- Base & Typography --- */
body {
    font-family: "Inter", sans-serif;
    font-weight: 400;
    background-color: #ffffff;
    color: #1a1a1a;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    opacity: 0; 
    animation: fadeInPage 0.5s ease-out forwards;
    animation-delay: 2.8s; /* Adjusted to be longer than new loader animation */
}

@keyframes fadeInPage {
    to {
        opacity: 1;
    }
}

h1, h2, h3 {
    font-family: "Inter", sans-serif;
    font-weight: 500; /* Slightly bolder for headings */
    color: #000000;
}

p {
    font-family: "Inter", sans-serif;
    font-weight: 400;
    margin-bottom: 1.5em;
    font-size: 1.05em;
    color: #333333;
}

a {
    font-family: "Inter", sans-serif;
    font-weight: 400;
    color: #000000;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #555555;
    text-decoration: none;
}

/* --- Loader --- */
#loaderWrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 1;
    transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
    transition-delay: 2.5s; /* Match new loader text animation duration */
    visibility: visible;
}

#loaderWrapper.hidden {
    opacity: 0;
    visibility: hidden;
    transition-delay: 0s !important; 
}

.loader-content {
    text-align: center;
}

.loader-text {
    font-family: "Roboto Mono", monospace;
    font-weight: 300; /* Light weight to match screenshot */
    font-size: clamp(2.5rem, 8vw, 4rem);
    color: #000000;
    letter-spacing: -0.05em;
    animation: xxiLoaderAnimation 2.5s ease-in-out forwards; /* Slower animation */
}

@keyframes xxiLoaderAnimation {
    0% {
        opacity: 0.5;
        transform: scale(0.9);
        letter-spacing: -0.08em;
    }
    10% {
        opacity: 1;
        transform: scale(0.95);
        letter-spacing: -0.05em;
    }
    40% { 
        opacity: 1;
        transform: scale(1.05);
        letter-spacing: 0.12em;
    }
    70% { 
        opacity: 1;
        transform: scale(1.02);
        letter-spacing: 0.08em;
    }
    90% { 
        opacity: 0.5;
        transform: scale(0.95);
        letter-spacing: 0.0em;
    }
    100% { 
        opacity: 0;
        transform: scale(0.9);
        letter-spacing: -0.05em;
    }
}

/* --- Header & Navigation --- */
header {
    display: flex;
    justify-content: space-between; 
    align-items: center;
    padding: 25px 40px;
    background-color: #ffffff;
    border-bottom: 1px solid #eeeeee;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-nav-left {
    display: flex;
    align-items: center;
}

nav.desktop-nav a {
    font-family: "Inter", sans-serif;
    font-weight: 400;
    color: #000000; 
    margin-right: 35px;
    font-size: 1rem;
    text-decoration: none;
}

nav.desktop-nav a:last-child {
    margin-right: 0;
}

.logo-container {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.logo a {
    font-family: "Roboto Mono", monospace; /* To match loader text style */
    font-weight: 500; /* Slightly bolder than price, but can be adjusted */
    font-size: 2rem;
    color: #000000;
    text-decoration: none;
}

/* Mobile Navigation */
.mobile-nav-toggle {
    display: none; 
    background: none;
    border: none;
    font-size: 2.4em; /* Increased size for plus icon */
    color: #000000;
    cursor: pointer;
    z-index: 1002;
    padding: 10px;
    line-height: 1;
}

nav.mobile-nav {
    display: none; 
    position: fixed;
    top: 0;
    left: 0; 
    width: 250px;
    height: 100%;
    background-color: #ffffff;
    box-shadow: 3px 0 15px rgba(0,0,0,0.08);
    flex-direction: column;
    align-items: flex-start;
    padding-top: 70px; 
    padding-left: 25px;
    z-index: 1001;
    transform: translateX(-100%); 
    transition: transform 0.3s ease-in-out;
}

nav.mobile-nav.active {
    transform: translateX(0);
    display: flex; 
}

nav.mobile-nav a {
    font-family: "Inter", sans-serif;
    font-weight: 400;
    color: #000000;
    font-size: 1.2em;
    text-decoration: none;
    margin-bottom: 30px;
    display: block;
}

/* --- Main Content --- */
main.main-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 40px 20px;
}

#btc-price-value {
    font-family: "Roboto Mono", monospace;
    font-weight: 300; /* Light weight to match screenshot */
    font-size: clamp(3.5rem, 12vw, 6.5rem);
    color: #000000;
    margin: 5px 0;
    letter-spacing: -0.03em;
    transition: color 0.3s ease-out, transform 0.2s ease-out;
}

#btc-price-symbol {
    font-family: "Inter", sans-serif;
    font-weight: 400;
    font-size: clamp(0.9rem, 3vw, 1.3rem);
    color: #808080;
    margin-top: 8px;
    text-transform: uppercase;
}

.price-loader {
    width: 28px;
    height: 28px;
    border: 3px solid #e0e0e0;
    border-top: 3px solid #000000; 
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 20px auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.price-up {
    color: #00b164 !important; 
}

.price-down {
    color: #ff4d4d !important; 
}

/* Page Content (General for About, Contact Overlays) */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.97);
    z-index: 1001;
    display: none; 
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    overflow-y: auto; 
}

.overlay.active {
    display: flex;
    opacity: 1;
}

.overlay-content {
    background-color: #ffffff; 
    padding: 30px 40px;
    border-radius: 6px; 
    max-width: 550px;
    width: 90%;
    text-align: left;
    position: relative;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
}

.overlay-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 15px;
}

.overlay-header h1 {
    font-family: "Inter", sans-serif;
    font-weight: 500;
    font-size: 1.6em; 
    margin: 0;
}

.close-button {
    font-size: 1.6em;
    font-weight: normal;
    color: #777777;
    text-decoration: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    line-height: 1;
}

.close-button:hover {
    color: #000000;
}

.about-xxi-style p, .contact-form-style p {
    font-family: "Inter", sans-serif;
    font-weight: 400;
    font-size: 0.95rem;
    line-height: 1.75;
    margin-bottom: 1.3em;
    color: #333333;
}

/* --- Contact Form (within overlay) --- */
.contact-form-style .contact-subtitle {
    font-family: "Inter", sans-serif;
    font-weight: 400;
    font-size: 1rem;
    color: #555555;
    margin-bottom: 1.5em;
}

.contact-form-style .form-group {
    margin-bottom: 18px;
}

.contact-form-style label {
    font-family: "Inter", sans-serif;
    font-weight: 400;
    display: block;
    margin-bottom: 7px;
    color: #333333;
    font-size: 0.9rem;
}

.contact-form-style input[type="text"],
.contact-form-style input[type="email"],
.contact-form-style textarea {
    font-family: "Inter", sans-serif;
    font-weight: 400;
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #dcdcdc;
    border-radius: 4px;
    font-size: 0.95em;
    box-sizing: border-box; 
    transition: border-color 0.3s ease;
    background-color: #fdfdfd;
}

.contact-form-style input[type="text"]:focus,
.contact-form-style input[type="email"]:focus,
.contact-form-style textarea:focus {
    border-color: #000000;
    outline: none;
    background-color: #ffffff;
}

.contact-form-style .submit-button {
    font-family: "Inter", sans-serif;
    font-weight: 500;
    background-color: #000000;
    color: #ffffff;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    font-size: 1em;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    display: inline-block;
    margin-top: 10px; 
}

.contact-form-style .submit-button:hover {
    background-color: #333333;
    transform: translateY(-1px);
}

/* --- Footer --- */
footer {
    font-family: "Inter", sans-serif;
    font-weight: 400;
    text-align: center;
    padding: 25px 40px;
    background-color: #ffffff; 
    border-top: 1px solid #eeeeee;
    color: #999999;
    font-size: 0.78em;
    margin-top: auto;
    line-height: 1.5;
}

footer p {
    margin: 4px 0;
    color: #999999;
    font-size: 1em; 
}

/* --- Responsive Design --- */
@media (max-width: 768px) {
    header {
        padding: 20px 20px;
        position: relative;
    }

    .header-nav-left {
        display: none; 
    }

    .logo-container {
        position: static;
        transform: none;
        flex-grow: 1;
        text-align: center;
    }

    .logo a {
        font-size: 1.7em; 
    }

    .mobile-nav-toggle {
        display: block; 
        position: absolute;
        left: 20px; 
        top: 50%;
        transform: translateY(-50%);
    }
    
    .overlay-content {
        padding: 25px;
        width: calc(100% - 40px);
        max-height: 85vh;
    }

    .overlay-header h1 {
        font-size: 1.4em;
    }

    #btc-price-value {
        font-size: clamp(2.8rem, 15vw, 5rem);
    }

    #btc-price-symbol {
        font-size: clamp(0.8rem, 3.5vw, 1.2rem);
    }
    footer {
        font-size: 0.75em;
        padding: 20px;
    }

    footer p.footer-disclaimer-mobile br {
        display: initial; /* Show the BR on mobile */
    }

    footer p.footer-disclaimer-mobile {
        font-size: 0.9em; /* Slightly smaller as requested for mobile footer */
    }

}

