/* --- Global and Layout Styles (from temphome.css) --- */
@import url("https://fonts.googleapis.com/css2?family=Racing+Sans+One&display=swap");

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    background-color: #121212;
    background-image: url('../img/lightning.jfif'); /* Set background image */
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: #e0e0e0; /* Light text */
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
    padding: 80px 2em 2em 2em; /* Add top padding to account for fixed navbar */
    box-sizing: border-box;
}

.container {
    flex-grow: 1; /* Allows container to take up available space */
    display: flex;
    flex-direction: column;
    justify-content: center; /* Center content vertically */
    align-items: center; /* Center content horizontally */
    text-align: center;
    max-width: 800px;
    margin: 0 auto; /* Center the container itself */
}

p {
    margin-bottom: 1em;
    font-size: 1.1em;
}

a {
    color: #33c1ff; /* Link color */
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.footer {
    position: fixed; /* Fix footer to the bottom */
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 1em;
    text-align: center;
    font-size: 0.9em;
    color: #aaa;
    background-color: rgba(18, 18, 18, 0.8); /* Semi-transparent background */
    z-index: 20; /* Ensure it's above the carousel */
}

/* --- Navbar and Brand Styles --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px 1rem; /* Increased padding for more vertical space */
    background-color: #2c3e50; /* A solid, dark slate-blue grey */
    z-index: 1050;
}

.navbar-brand, .brand {
    font-family: 'Racing Sans One', sans-serif;
    font-weight: 400;
    color: #f5f5f5;
}

.navbar-brand {
    font-size: 30px;
    line-height: 1; /* Ensure line height doesn't add extra space */
}
.brand-grey { color: #A9B8CC; }

.launch-announcement {
    text-align: center;
    margin-top: 1em;
    margin-bottom: 1em;
    color: #f5f5f5;
}

/* --- Carousel Styles (from home.css) --- */
.carousel-container {
    position: relative; /* Keep the carousel in the normal page flow */
    width: 800px; /* Set fixed width */
    max-width: 100%; /* Ensure it doesn't overflow on very small screens */
    height: 400px; /* Increased height to fit all text */
    margin: 0 auto 2em auto; /* Center it and remove large top margin */
    overflow: hidden;
    box-shadow: 0 8px 16px rgba(0,0,0,0.3); /* Add a subtle shadow for depth */
}

.carousel-slides {
    display: flex; /* This will lay out the slides in a row */
    height: 100%;
    transition: transform 0.5s ease-in-out; /* Animate the sliding effect */
}

.carousel-slide {
    position: relative; /* Change from absolute to relative */
    width: 100%;
    flex-shrink: 0; /* Prevent slides from shrinking */
    height: 100%;
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: flex-start; /* Align content to the left */
    align-items: center;
    text-align: left; /* Align text to the left */
    padding: 0; /* Remove padding from the slide itself */
    box-sizing: border-box;
    border-radius: 10px; /* Apply rounded corners to the slides themselves */
}

.hero-box {
    background-color: rgba(0, 0, 0, 0.6);
    border-radius: 10px;
    color: #fff;
    width: 100%; /* Make hero box take full width of its parent */
    height: 100%; /* Make hero box take full height of its parent */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-text-content {
    /* This container holds the text and provides the necessary padding */
    padding: 2em 4em; /* 4em on sides for buttons, 2em top/bottom for dots */
    box-sizing: border-box;
    line-height: 1.2; /* Adjust line spacing for better readability */
}

.carousel-slide .brand { color: #f5f5f5; } /* Changed from blue to light grey */
.carousel-slide .brand-grey { color: #999; }
.carousel-slide .spaced { letter-spacing: 1px; }
.carousel-slide .h1-brand {
    font-family: 'Racing Sans One', sans-serif; /* Apply brand font */
    font-size: 4rem;
}

/* Style for both h1 and h2 inside the carousel for consistency */
.carousel-slide h1,
.carousel-slide h2 {
    font-size: 2.5em; margin-bottom: 0.5em;
}
.carousel-slide p { font-size: 1.2em; }

/* Background images for each slide */
.simplified { background-image: url('../img/silas.jpg'); }
.spreadsheet { background-image: url('../img/spreadsheet.png'); }
.integration { background-image: url('../img/wheels.png'); }
.startorder { background-image: url('../img/tt.jpg'); }
.team { background-image: url('../img/team.jpg'); }
.rack { background-image: url('../img/rack.jpg'); }
.pricing { background-image: url('../img/pricing.jpg'); }
.entrant { background-image: url('../img/suffer.jpg'); }
.partner { background-image: url('../img/podium.jpg'); }

/* Carousel Navigation */
.carousel-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    font-size: 1.5rem;
    z-index: 10;
    border-radius: 5px;
}

.carousel-button.prev { left: 15px; }
.carousel-button.next { right: 15px; }

.carousel-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    z-index: 10;
}

.dot {
    height: 12px;
    width: 12px;
    margin: 0 5px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    border: none;
    padding: 0;
    cursor: pointer;
    transition: background-color 0.6s ease;
}

.dot.active {
    background-color: #fff;
}

/* --- 404 Page Styles --- */
.not-found-container {
    text-align: center;
    padding: 3em;
    background-color: rgba(0, 0, 0, 0.7);
    border-radius: 10px;
    max-width: 600px;
    margin: 0 auto;
    border: 1px solid #444;
}

.not-found-container h1 {
    font-size: 6rem;
    margin: 0;
    color: #e74c3c; /* A reddish error color */
    line-height: 1;
}

.not-found-container .home-link {
    display: inline-block;
    margin-top: 1.5em;
    padding: 0.8em 1.5em;
    background-color: #33c1ff;
    color: #121212;
    border-radius: 5px;
    font-weight: bold;
    text-decoration: none;
    transition: background-color 0.2s;
}

.not-found-container .home-link:hover {
    background-color: #5bcaff;
}