/* Custom Blue Theme Color Variables */
:root {
    --primary-blue: #4169E1; /* Royal Blue / Indigo */
    --light-gray: #f4f4f9;
    --dark-text: #333;
    --light-text: #fff;
    --secondary-blue: #F0F4FF; /* Very light blue for background contrast */
}

/* ---------------------------------------------------- */
/* 1. CSS Reset & Base for Fixed Layout (UPDATED) */
/* ---------------------------------------------------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Ensure these two are set to 100% of the viewport */
html, body {
    height: 100%; 
    width: 100%;
    margin: 0; /* Ensures no default body margin is present */
    overflow: hidden; /* Prevents whole-page scrolling */
}

/* Use 100vh for the main layout container */
.page-layout {
    /* REPLACE 'height: 100vh;' with the line below: */
    height: calc(var(--vh, 1vh) * 100); 

    display: flex;
    flex-direction: column;
    
    /* ... other styles ... */
}

/* ---------------------------------------------------- */
/* 2. Header Styling (Fixed Top) */
/* ---------------------------------------------------- */
.page-header {
    background: var(--light-text);
    padding: 15px 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
    /* CHANGE 1: Set header content to left-align */
    text-align: left; 
}

/* UPDATED Logo Styling */
.header-logo {
    /* CHANGE 2: Set the desired size */
    width: 200px; /* Adjust this value (e.g., 100px, 150px) for your preferred fixed width */
    height: 75px; 
    
    /* CHANGE 3: Remove centering properties */
    display: inline-block; /* Changed from 'block' to allow text-align to work */
    margin: 0; /* Ensures no automatic horizontal margin is applied */
}

/* ---------------------------------------------------- */
/* 3. Main Content Styling (Scrollable Middle with 3D Look) */
/* ---------------------------------------------------- */
.page-content {
    flex-grow: 1; /* Takes up all vertical space */
    overflow-y: auto; /* Enables scrolling for this section only */
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 40px 20px;
}

.launch-card {
    max-width: 650px; 
    width: 100%; 
    padding: 40px;
    background: var(--light-text);
    border-radius: 10px;
    
    /* 3D Shadow on the Main Card */
    box-shadow: 
        0 8px 15px rgba(0, 0, 0, 0.1), 
        0 15px 30px rgba(0, 0, 0, 0.05), 
        0 1px 3px rgba(0, 0, 0, 0.2); 
    
    transition: box-shadow 0.3s ease; 
    text-align: center;
}

.launch-card:hover {
    box-shadow: 
        0 10px 20px rgba(0, 0, 0, 0.15),
        0 20px 40px rgba(0, 0, 0, 0.08),
        0 1px 5px rgba(0, 0, 0, 0.3);
}

.launch-card h2 {
    /* INCREASED FONT SIZE for weight, scalable for mobile/desktop */
    font-size: 2.8em; 
    
    /* ADDED BOLDNESS */
    font-weight: 800; 
    
    /* Ensure color remains the strong blue */
    color: var(--primary-blue);
    
    /* Added padding/margin to give it more breathing room */
    padding-bottom: 5px; 
    margin-bottom: 25px;
    
    /* Ensures it remains centered */
    text-align: left; 
}

/* For better scalability on very small screens, let's slightly reduce the size */
@media (max-width: 500px) {
    .launch-card h2 {
        font-size: 2em; /* Drops back to a more appropriate size for phones */
        margin-bottom: 15px;
    }
}

.launch-card .tagline {
    /* CHANGE 1: Set desired font style with fallbacks */
    font-family: Candara, "Segoe UI", Calibri, sans-serif;
    
    /* CHANGE 2: Left Align the text */
    text-align: left;
    
    /* Other visual styles */
    font-style: italic; /* Optional: Adds flair, feel free to remove */
    font-weight: normal; /* Normal weight for a lighter feel */
    font-size: 1.2em;
    margin-bottom: 25px;
    color: #555;
    
    /* Ensure it takes up the full width of the card */
    display: block; 
}

/* ---------------------------------------------------- */
/* 4. Feature Category Blocks Styling (3D, Hover-to-Reveal) */
/* ---------------------------------------------------- */

.feature-categories {
    display: flex;
    gap: 20px;
    margin: 30px 0;
    flex-wrap: wrap; 
    justify-content: center;
}

.feature-block {
    flex: 1; 
    min-width: 250px; 
    padding: 25px;
    background-color: var(--secondary-blue);
    border-radius: 8px;
    border: 1px solid var(--primary-blue);
    
    /* 3D Shadow on Blocks */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); 

    transition: all 0.3s ease;
    min-height: 120px; /* Base height when description is hidden */
    overflow: hidden; 
    position: relative;
}

.feature-block h3 {
    font-size: 1.5em;
    color: var(--primary-blue);
    margin-bottom: 0;
    transition: color 0.3s ease;
}

/* Description is initially hidden */
.feature-description {
    max-height: 0; 
    opacity: 0;
    transition: max-height 0.4s ease-in-out, opacity 0.4s ease-in-out;
}

.feature-description p {
    font-size: 0.95em;
    line-height: 1.5;
    margin-top: 10px; 
    margin-bottom: 0;
}

/* Hover Effect: Display Description, Inverse Colors, Enhanced 3D Lift */
.feature-block:hover {
    background-color: var(--primary-blue);
    
    /* ENHANCED 3D SHADOW on hover */
    box-shadow: 
        0 10px 25px rgba(65, 105, 225, 0.5), 
        0 5px 15px rgba(0, 0, 0, 0.2); 

    transform: translateY(-5px); 
    min-height: 180px; /* Expanded height to fit description */
}

.feature-block:hover h3 {
    color: var(--light-text);
}

.feature-block:hover .feature-description {
    max-height: 200px; 
    opacity: 1;
    color: var(--light-text);
}

/* ---------------------------------------------------- */
/* 5. Form, Footer, and Countdown Styling */
/* ---------------------------------------------------- */
.countdown {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 30px;
}

.countdown-item {
    display: flex;
    flex-direction: column;
}

.countdown-item span {
    font-size: 3em;
    font-weight: bold;
    color: var(--primary-blue);
}

.countdown-item label {
    font-size: 0.8em;
    text-transform: uppercase;
    color: #666;
}

.subscribe-form {
    display: flex;
    margin-top: 20px;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.subscribe-form input[type="email"] {
    flex-grow: 1;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 4px 0 0 4px;
    font-size: 1em;
}

.subscribe-form button {
    padding: 12px 20px;
    background-color: var(--primary-blue);
    color: var(--light-text);
    border: none;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    font-size: 1em;
    transition: background-color 0.3s;
}

.subscribe-form button:hover {
    background-color: #3354B8;
}

.page-footer {
    background: var(--light-text);
    padding: 10px 20px;
    
    /* REMOVED: text-align: left; */
    
    font-size: 0.85em;
    color: #6c757d;
    border-top: 1px solid #eee;
    flex-shrink: 0;
}

/* NEW: Flexbox to control alignment of child items */
.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    
    /* CRITICAL FIX: Ensures items wrap to the next line on mobile */
    flex-wrap: wrap; 
}

/* CRITICAL MOBILE ADJUSTMENT: 
   Force stacking and center alignment on very small screens (phones) 
*/
@media (max-width: 480px) {
    .footer-content {
        /* Forces the email and copyright to stack vertically */
        flex-direction: column; 
        
        /* Centers content when stacked */
        text-align: center; 
        
        /* Adds internal padding to prevent contact from touching edges */
        padding: 5px 0;
    }
    
    /* Ensure no margins are pushing elements out */
    .footer-content p {
        margin: 5px 0;
    }
}
/* ---------------------------------------------------- */
/* 6. Footer Contact Link Styling (SLIGHTLY MODIFIED) */
/* ---------------------------------------------------- */

/* Reset margins on the paragraph tags inside the footer content */
.footer-content p {
    margin: 0; 
}

.page-footer a {
    color: var(--primary-blue);
    text-decoration: none;
    transition: text-decoration 0.2s;
}

.page-footer a:hover {
    text-decoration: underline;
}