/* --- Global Reset & Typography --- */
body {
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
    color: #000000; 
    background-color: #FFFFFF;
    overflow: hidden; 
    height: 100vh; /* Full viewport height */
    
    /* Flexbox Centering */
    display: flex;
    justify-content: center; 
    align-items: center; 
}

/* --- 3D Parallax Background Setup --- */
#background-carousel {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: opacity 1s ease-in-out; /* Fade transition for carousel */
    z-index: -2; 
    
    /* SCALE UP for Parallax: Allows image to move without showing edges */
    transform: scale(1.1); 
    /* Will-change optimizes rendering performance */
    will-change: transform; 
}

/* --- White Overlay for Readability --- */
#overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.4); /* 40% Transparent White */
    z-index: -1;
    pointer-events: none; /* Let clicks pass through if needed */
}

/* --- Content Wrapper (Flexbox Item) --- */
#content-box {
    text-align: center;
    z-index: 1;
    max-width: 90%; 
    max-height: 90vh; /* Prevent it from being taller than screen */
    overflow-y: auto; /* Allow internal scrolling if screen is very short */
    /* Hide scrollbar for cleaner look */
    scrollbar-width: none; 
}

#content-box::-webkit-scrollbar { 
    display: none; 
}

/* --- Transparent White Container --- */
#main-content-wrapper {
    background-color: rgba(255, 255, 255, 0.85); 
    padding: 50px 40px;
    border-radius: 12px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15); /* Soft 3D shadow */
    max-width: 850px; 
    width: 90vw; 
    box-sizing: border-box; 
    margin: 0 auto; /* Ensure it centers in flex parent */
}

.headline {
    font-size: 3.5em; /* Slightly adjusted for better scaling */
    font-weight: 800; 
    margin-bottom: 0.1em;
    line-height: 1.1;
}

.sub-headline {
    font-size: 1.3em;
    font-weight: 400; 
    margin-top: 10px;
    margin-bottom: 40px;
    letter-spacing: 4px;
    text-transform: uppercase;
}

.cta-text {
    font-size: 1.1em;
    font-weight: 400;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    color: #333;
}

/* --- Button Styling --- */
.button-group {
    display: flex;
    flex-wrap: nowrap; /* Default: Side by Side */
    justify-content: center;
    gap: 20px;
    width: 100%;
}

.btn {
    display: inline-block;
    padding: 18px 30px;
    font-size: 1em;
    font-weight: 600;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 6px;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
}

/* 1. Real Estate Button (Sky Blue) */
.btn-realestate {
    background-color: #00BFFF; 
    color: #FFFFFF; 
    border: 2px solid #00BFFF;
}
.btn-realestate:hover {
    background-color: #0099cc; 
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 191, 255, 0.3);
}

/* 2. AI Button (Black & Electric Green) */
.btn-ai {
    background-color: #000000; 
    color: #FFFFFF;
    border: 2px solid #39FF14; 
}
.btn-ai:hover {
    background-color: #111; 
    color: #39FF14; 
    box-shadow: 0 0 15px rgba(57, 255, 20, 0.4); 
    transform: translateY(-2px);
}

/* --- Footer --- */
#page-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 12px 0;
    text-align: center;
    background-color: rgba(255, 255, 255, 0.9); 
    color: #444; 
    font-size: 0.85em;
    z-index: 10;
}

/* --- Mobile Responsiveness (Tablets & Phones) --- */
@media (max-width: 768px) {
    #main-content-wrapper {
        padding: 30px 20px; 
    }
    
    .headline {
        font-size: 2.2em; 
    }
    
    .sub-headline {
        font-size: 0.9em;
        letter-spacing: 2px;
    }

    /* Stack buttons vertically on mobile */
    .button-group {
        flex-direction: column; 
        gap: 15px;
    }

    .btn {
        width: 100%; 
        box-sizing: border-box; /* Ensures padding doesn't break width */
    }
}
