/* Import Google Font */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');

:root {
    /* Define primary colors. You can adjust these to match your theme better. */
    --primary-color: #7b68ee; /* A vibrant purple for primary actions */
    --primary-light: #9a88ff;
    --secondary-color: #5d5c61; /* A dark grey for subtle elements */
    --accent-color: #b0e0e6; /* A light blue for highlights */
    --text-color: #cdd6f4; /* Your existing text color */
    --input-bg: rgba(255, 255, 255, 0.1); /* Slightly transparent white for inputs */
    --button-text-color: #ffffff;
    --glass-background: rgba(255, 255, 255, 0.1); /* Lighter transparency for glass effect */
    --glass-border: rgba(255, 255, 255, 0.2);
    --shadow-light: rgba(0, 0, 0, 0.15);
    --shadow-strong: rgba(0, 0, 0, 0.3);
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-color);
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow-x: hidden; /* Prevent horizontal scroll */
}


/* --- Main Content Container --- */
.container {
    flex-grow: 1; /* Allows container to take available space */
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 100px 20px 20px; /* Adjust padding to account for fixed nav */
    text-align: center;
    position: relative;
    z-index: 1;
}

.overlay {
    /* Optional: A subtle overlay if you want to darken the background image slightly */
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.39); /* Adjust transparency */
    z-index: -1;
}

.container-inner {
    background-color: rgba(0, 0, 0, 0.4); /* Semi-transparent dark background for content block */
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 10px 30px var(--shadow-strong);
    max-width: 700px;
    width: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 25px; /* Space between elements within the container */
}

.container-inner h1 {
    font-size: 3.5em;
    font-weight: 700;
    margin-bottom: 5px;
    color: var(--primary-light); /* Highlight the main title */
    text-shadow: 0 2px 5px var(--shadow-strong);
}

.container-inner h2 {
    font-size: 1.5em;
    font-weight: 400;
    margin-top: 0;
    color: var(--text-color);
    opacity: 0.9;
}

/* --- Search Container --- */
.search-container {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.search-box {
    display: flex;
    width: 100%;
    max-width: 500px; /* Limit search box width */
    background-color: var(--input-bg);
    border-radius: 30px; /* More rounded search box */
    overflow: hidden;
    box-shadow: inset 0 2px 5px var(--shadow-light); /* Inner shadow for depth */
    border: 1px solid var(--glass-border);
}

.search-box form {
    display: flex;
    width: 100%;
}

.search-box .input {
    flex-grow: 1;
    border: none;
    background: transparent;
    padding: 15px 20px;
    font-size: 1.1em;
    color: var(--text-color);
    outline: none;
}

.search-box .input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.search-box .input:focus {
    background-color: rgba(255, 255, 255, 0.05); /* Slight change on focus */
}

.search-btn {
    background: linear-gradient(45deg, var(--primary-color), var(--primary-light));
    border: none;
    padding: 0 25px;
    color: var(--button-text-color);
    font-size: 1.2em;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-btn:hover {
    background: linear-gradient(45deg, var(--primary-light), var(--primary-color));
    transform: scale(1.05); /* Slight enlargement on hover */
}

/* --- Open Blank Button --- */
.open-blank-btn {
    background-color: var(--primary-color);
    color: var(--button-text-color);
    border: none;
    padding: 15px 30px;
    border-radius: 30px; /* Pill shape for the button */
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    margin-top: 20px;
    display: inline-flex; /* Align icon and text */
    align-items: center;
    gap: 10px;
    box-shadow: 0 5px 15px var(--shadow-strong);
}

.open-blank-btn:hover {
    background-color: var(--primary-light);
    transform: translateY(-3px); /* Lift effect */
    box-shadow: 0 8px 20px var(--shadow-strong);
}

/* --- Responsive Adjustments --- */
@media (max-width: 768px) {
    .container-inner {
        padding: 30px;
        margin-top: 80px; /* More space from top on smaller screens */
    }

    .container-inner h1 {
        font-size: 2.5em;
    }

    .container-inner h2 {
        font-size: 1.2em;
    }


}

@media (max-width: 480px) {


    .search-box .input {
        padding: 12px 15px;
        font-size: 1em;
    }

    .search-btn {
        padding: 0 15px;
        font-size: 1em;
    }

    .open-blank-btn {
        padding: 12px 20px;
        font-size: 1em;
    }
}
 /* --- Intro Animation CSS --- */
        #preloader {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.15); /* A dark background, adjust to match your theme */
            display: flex;
            justify-content: center;
            align-items: center;
            z-index: 9999;
            transition: opacity 0.5s ease-out;
            opacity: 1;
        }

        #preloader.hidden {
            opacity: 0;
            pointer-events: none; /* Allows clicks to pass through once hidden */
        }

        .spinner {
            border: 4px solid rgba(255, 255, 255, 0.3);
            border-top: 4px solid #fff;
            border-radius: 50%;
            width: 50px;
            height: 50px;
            animation: spin 1s linear infinite;
        }

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

/* Base animation style */
.animated-content {
    opacity: 0;
    transition: opacity 0.4s ease-out, transform 0.4s ease-out;
}




/* Container starts from +100px (bottom) */
.container.animated-content {
    transform: translateY(50px);
}

/* When show is added */
.animated-content.show {
    opacity: 1;
    transform: translateY(0);
}

        /* --- Live Clock Styles --- */
        #live-clock {
            font-family: 'Poppins', sans-serif; /* Ensure Poppins is used for the clock */
            font-size: 1.8em;
            font-weight: 600;
            color: var(--primary-light); /* Highlight color */
            text-shadow: 0 2px 5px var(--shadow-strong);
            margin-bottom: 25px; /* Space between clock and main title */
            background-color: var(--card-bg); /* Use a subtle glass background */
            border-radius: 10px;
            padding: 10px 20px;
            border: 1px solid var(--glass-border);
            display: inline-block; /* Wrap content tightly */
        }

        @media (max-width: 768px) {
            #live-clock {
                font-size: 1.4em;
                margin-bottom: 20px;
                padding: 8px 15px;
            }
        }