/* Monokai Color Palette */
:root {
    --monokai-bg: #272822; /* Dark Grey/Black - fallback if image fails */
    --monokai-text: #F8F8F2; /* Off-White */
    --monokai-red: #F92672;
    --monokai-orange: #FD971F;
    --monokai-yellow: #E6DB74;
    --monokai-green: #A6E22E;
    --monokai-blue: #66D9EF;
    --monokai-purple: #AE81FF;
}

/* Base Styles */
body {
    margin: 0;
    font-family: 'Roboto', sans-serif;
    color: var(--monokai-text);
    background-color: var(--monokai-bg); /* Fallback background color */
    min-height: 100vh; /* Ensure body takes full viewport height */
    display: flex;
    flex-direction: column;

    /* Static Background Image */
    background-image: url('AM_LoadingPage.jpg'); /* Your specified background image */
    background-size: cover; /* Ensures the image covers the entire background */
    background-position: center; /* Centers the image */
    background-repeat: no-repeat; /* Prevents the image from repeating */
    background-attachment: fixed; /* Keeps the background fixed while content scrolls */
    position: relative; /* Needed for the pseudo-element overlay */
}

/* Overlay for the background image to enhance text readability */
body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Adjust opacity as needed */
    z-index: -1; /* Place it behind the content but in front of the background image */
}

/* Header */
.main-header {
    background-color: rgba(0, 0, 0, 0.4);
    padding: 15px 40px;
    display: flex;
    justify-content: center;
    width: 100%;
    box-sizing: border-box;
    position: relative;
    z-index: 100;
}

.header-content {
    width: 100%;
    max-width: 1400px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.8em;
    color: var(--monokai-text);
}

.main-nav .nav-link {
    color: var(--monokai-text);
    text-decoration: none;
    margin-left: 25px;
    font-size: 1.1em;
    transition: color 0.3s ease;
}

.main-nav .nav-link:hover {
    color: var(--monokai-blue);
}

.main-nav .sign-up-btn {
    background-color: var(--monokai-red);
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: 700;
    transition: background-color 0.3s ease;
}

.main-nav .sign-up-btn:hover {
    background-color: var(--monokai-purple);
}

/* Hero Section (Main Content Area) */
.hero-section {
    flex-grow: 1;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-content {
    position: relative;
    z-index: 50;
    text-align: center;
    padding: 15px 30px; /* Adjusted padding for responsive "box" */
    background-color: rgba(0, 0, 0, 0.7); /* Slightly darker background for strong contrast */
    border-radius: 10px;
    max-width: fit-content; /* Allows box to fit its content */
    white-space: nowrap; /* Ensures the box only takes up space needed for one line of text */
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
    margin: 10px; /* Small margin for spacing on small screens */
}

.hero-content h1 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    color: var(--monokai-text);
    line-height: 1.2;
    margin: 0; /* Remove default margin from h1 */
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.7);

    white-space: nowrap; /* Force text to stay on a single line */
    /* Using clamp for responsive font size: min size, preferred size (based on viewport width), max size */
    font-size: clamp(1.8em, 5vw, 4em); /* Adjust these values as needed */
}

/* Media Queries for Responsiveness */
@media (max-width: 1024px) {
    .main-header {
        padding: 10px 20px;
    }
    .logo {
        font-size: 1.5em;
    }
    .main-nav .nav-link {
        margin-left: 15px;
        font-size: 1em;
    }
    .main-nav .sign-up-btn {
        padding: 8px 15px;
    }
}

@media (max-width: 768px) {
    /* No specific h1 font-size needed here as clamp handles it */
}

@media (max-width: 480px) {
    .main-header {
        flex-direction: column;
        padding: 10px;
    }
    .header-content {
        flex-direction: column;
        align-items: center;
    }
    .main-nav {
        margin-top: 10px;
    }
    .main-nav .nav-link {
        margin: 0 10px;
        padding: 5px 0;
    }
    .main-nav .sign-up-btn {
        margin-top: 10px;
        width: auto;
    }
}