/* Font Imports */
@font-face {
    font-family: 'PrimaryFont'; /* Name your primary font */
    src: url('../fonts/primary.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'SecondaryFont'; /* Name your secondary font */
    src: url('../fonts/secondary.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

/* Basic Resets & Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'SecondaryFont', sans-serif; /* Use your secondary font as default */
    line-height: 1.6;
    color: #333; /* Default text color for light sections */
    background-color: #f0f2f5; /* Global background for pages */
}

.container {
    max-width: 1200px; /* Adjust as needed */
    margin: 0 auto;
    padding: 0 20px; /* Default container padding for sides */
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* --- Top Bar (Dark) --- */
.top-bar-dark {
    background-color: #1a1a1a; /* Dark background */
    color: #fff;
    padding: 10px 0;
    text-align: center;
}

.top-bar-link {
    font-family: 'PrimaryFont', sans-serif;
    font-size: 0.9em;
    letter-spacing: 1px;
    text-transform: uppercase;
    display: inline-block;
    padding: 5px 15px;
    border: 1px solid #333; /* Example border */
    border-radius: 48px; /* Rounded corners for consistency */
    transition: background-color 0.3s ease;
}

.top-bar-link:hover {
    background-color: #333;
}

/* --- Hero Section (Dark Background) --- */
.hero-section {
    background-color: #222; /* Dark background similar to image */
    color: #fff;
    padding: 15px 0; /* Adjusted for a slightly shorter section */
    background-image: url('../images/background-hero.png'); /* Pulls image from 'images' folder */
    background-size: cover; /* Ensures the image covers the entire section */
    background-position: center; /* Centers the background image */
    display: flex; /* Enables Flexbox for centering content */
    flex-direction: column; /* Stacks children vertically */
    justify-content: center; /* Centers content vertically */
    align-items: center; /* Centers content horizontally */
}

.hero-section h1 {
    font-family: 'PrimaryFont', sans-serif;
    font-size: 3.5em; /* Adjust font size */
    line-height: 1.2;
    text-transform: uppercase; /* Looks like it's uppercase in the image */
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* --- Main Header (Light) --- */
.main-header {
    background-color: #fff;
    padding: 0; /* Padding is handled by the container */
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center; /* Vertically centers the container within the header */
    flex-wrap: wrap; /* Allows wrapping on smaller screens */
    max-height: 100px; /* Set your desired max height here */
    overflow: hidden; /* Hide overflowing content if the height is exceeded */
}

.main-header .container {
    display: flex;
    justify-content: space-between; /* This will push elements to the ends */
    align-items: center; /* Vertically centers all items inside the container */
    width: 100%;
    padding: 10px 20px; /* Provides vertical padding for the header, and 20px side padding */
}

.logo img {
    height: 60px; /* Set logo height to 60px */
    width: auto;
    display: block;
    margin-right: 25px; /* Space between logo and nav items for main page */
}

.main-nav {
    flex-grow: 1; /* Allows the nav to take up available space, pushing auth buttons to the right */
}

.main-nav ul {
    display: flex;
    gap: 30px; /* Space between nav items */
    align-items: center; /* Ensures nav items are vertically centered */
}

.main-nav a {
    font-family: 'SecondaryFont', sans-serif;
    font-weight: 500;
    color: #555;
    transition: color 0.3s ease;
}

.main-nav a:hover {
    color: #6720bd; /* Example hover color */
}

.auth-buttons {
    display: flex;
    gap: 15px;
    align-items: center; /* Centers the auth buttons vertically */
}

/* --- News Bar (Light) --- */
.news-bar {
    background-color: #f9f9f9;
    padding: 10px 0;
    text-align: center;
    border-bottom: 1px solid #eee;
}

.news-bar p {
    font-family: 'SecondaryFont', sans-serif;
    font-size: 0.9em;
    color: #666;
    display: inline-block;
    padding: 5px 15px;
    border: 1px solid #ddd;
    border-radius: 48px; /* Consistent rounding */
    background-color: #fff;
}

/* --- High-Performance Infrastructure Section (Light) --- */
.hp-infra-section {
    background-color: #fff;
    padding: 80px 0; /* Adjust padding */
    text-align: center;
    position: relative; /* For positioning the graphic */
}

.hp-infra-section h2 {
    font-family: 'PrimaryFont', sans-serif;
    font-size: 2.8em;
    margin-bottom: 20px;
    color: #333;
    text-transform: uppercase;
}

.hp-infra-section p {
    font-family: 'SecondaryFont', sans-serif;
    font-size: 1.1em;
    color: #666;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.hp-infra-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 50px;
}

.graphic-placeholder {
    margin-top: 50px;
}

.graphic-placeholder img {
    max-width: 100%;
    height: auto;
}


/* --- Buttons (General) --- */
.btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 12px; /* All buttons are now pill-shaped */
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease; /* Added box-shadow */
    font-family: 'PrimaryFont', sans-serif;
    text-transform: uppercase;
    font-size: 0.9em;
}

.btn-large {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 24px; /* All buttons are now pill-shaped */
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease; /* Added box-shadow */
    font-family: 'PrimaryFont', sans-serif;
    text-transform: uppercase;
    font-size: 0.9em;
}

.btn-primary {
    background-color: transparent;
    color: #4CAF50;
    border: 2px solid #4CAF50;
}

.btn-primary:hover {
    background-color: #4CAF50;
    color: #fff;
}

.btn-secondary {
    background-color: transparent;
    color: #fff;
    border: 2px solid #fff;
}

.btn-secondary:hover {
    background-color: #fff;
    color: #222;
}

.btn-login {
    background-color: transparent;
    color: #555;
    border: 1px solid #ccc;
    padding: 8px 18px; /* Adjusted padding for header buttons */
}
 
.btn-login:hover {
    background-color: #eee;
}


.btn-logout {
    background-color: transparent;
    color: #555;
    border: 1px solid #ccc;
    padding: 8px 18px; /* Adjusted padding for header buttons */
}

.btn-logout:hover {
    background-color: #eee;
}

.btn-signup {
    background-color: #6720bd;
    color: #fff;
    border: none;
    padding: 8px 18px; /* Adjusted padding for header buttons */
}

.btn-signup:hover {
    background-color: #4b138f;
}

.btn-dark {
    background-color: #333;
    color: #fff;
    border: none;
}

.btn-dark:hover {
    background-color: #555;
}

.btn-dark-secondary {
    background-color: transparent;
    color: #333;
    border: 1px solid #333;
}

.btn-dark-secondary:hover {
    background-color: #333;
    color: #fff;
}

/* Placeholder for footer */
footer {
    background-color: #f8f8f8;
    color: #777;
    text-align: center;
    padding: 20px 0;
    border-top: 1px solid #eee;
}


/* --- New Info Sections Styles --- */
.info-sections {
    padding: 60px 0;
    background-color: #f9f9f9;
}

.info-item {
    display: flex;
    align-items: center;
    margin-bottom: 50px;
    gap: 30px;
}

.info-item:last-child {
    margin-bottom: 0;
}

.info-image {
    flex: 1;
    min-width: 300px;
}

.info-image img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 8px; /* Keep regular image borders */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.info-content {
    flex: 1.5;
    text-align: left;
}

.info-content h3 {
    font-family: 'PrimaryFont', sans-serif;
    font-size: 2em;
    margin-bottom: 15px;
    color: #333;
}

.info-content p {
    font-size: 1.1em;
    line-height: 1.6;
    color: #555;
}

/* Specific styles for alternating layout */
.info-item.left-image {
    flex-direction: row;
}

.info-item.right-image {
    flex-direction: row-reverse;
}

.info-item.right-image .info-content {
    text-align: right;
}


/* --- Form Section Container (Login/Signup Pages) --- */
.form-section {
    padding: 60px 0;
    background-color: #f0f2f5;
    min-height: calc(100vh - 200px); /* Ensure content fills vertical space */
    display: flex;
    justify-content: center;
    align-items: center;
}

.auth-split-container {
    display: flex;
    gap: 40px; /* Space between the two halves */
    max-width: 1000px; /* Widescreen effect */
    width: 100%; /* Ensure it takes full width up to max-width */
    margin: 0 auto; /* Center the widescreen container */
    align-items: stretch; /* Make columns stretch to equal height */
    /* *** Framing for auth-split-container is now in login.html and signup.html *** */
}

.auth-column {
    flex: 1; /* Each column takes equal width */
    background-color: #fff; /* Individual column background */
    padding: 30px; /* Shorter vertical padding */
    border-radius: 48px; /* More rounded individual column frames */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1); /* Individual column shadow */
    display: flex; /* Use flex to align content within column */
    flex-direction: column; /* Stack content vertically */
    text-align: center; /* Center column titles/info */
}

.auth-column h2 {
    font-family: 'PrimaryFont', sans-serif;
    margin-bottom: 20px;
    color: #333;
    font-size: 2em;
}

.auth-column p {
    font-size: 1em;
    line-height: 1.6;
    color: #555;
    margin-bottom: 20px; /* Adjusted space before form/button */
    flex-grow: 1; /* Allow info text to grow and push button/form down if needed */
}

/* Styling for the actual email/password form within its column */
.email-password-form {
    text-align: left; /* Keep form inputs/labels left-aligned */
    margin-top: 10px; /* Slightly reduced space between info text and form */
}

.form-group {
    margin-bottom: 15px; /* Shorter vertical spacing between form groups */
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #555;
}

.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="text"] {
    width: 100%;
    padding: 10px 18px; /* Shorter vertical padding, adjusted horizontal padding */
    border: 1px solid #ddd;
    border-radius: 48px; /* Pill-shaped inputs */
    font-size: 1em;
}

.form-group input[type="email"]:focus,
.form-group input[type="password"]:focus,
.form-group input[type="text"]:focus {
    outline: none;
    border-color: #6720bd;
    box-shadow: 0 0 0 3px rgba(103, 32, 189, 0.2);
}

.email-password-form .btn-signup { /* For email/password submit button */
    width: 100%;
    padding: 12px 25px; /* Shorter padding for submit button */
    font-size: 1.1em;
    border-radius: 48px; /* Pill-shaped submit button */
    margin-top: 15px; /* Adjusted spacing */
}

.email-password-form p { /* For "Don't have an account?" text */
    margin-top: 15px; /* Adjusted spacing */
    font-size: 0.95em;
    color: #777;
    text-align: center; /* Center this specific paragraph */
}

/* Google button styling */
.btn-google {
    background-color: #f5f5f5; /* Light grey */
    color: #333; /* Black-grey text */
    border: 1px solid #ccc; /* Subtle border */
    width: 100%; /* Make it full width of its column */
    padding: 12px 25px; /* Shorter padding, consistent with other buttons */
    border-radius: 48px; /* Pill-shaped */
    font-family: 'PrimaryFont', sans-serif;
    text-transform: uppercase;
    font-size: 1em;
    transition: background-color 0.3s ease, box-shadow 0.3s ease, color 0.3s ease;
    display: flex; /* Ensures icon and text are aligned */
    align-items: center;
    justify-content: center;
    margin-top: auto; /* Push button to the bottom of the flex column */
}

.btn-google:hover,
.btn-google:focus {
    background-color: #e0e0e0; /* Slightly darker grey on hover */
    box-shadow: 0 0 0 4px rgba(66, 133, 244, 0.4); /* Google blue glow */
    outline: none; /* Remove default focus outline */
    color: #333; /* Ensure text color remains black-grey on hover */
}

.btn-google .material-icons {
    margin-right: 8px; /* Space between icon and text */
    font-size: 1.2em; /* Adjust icon size if needed */
}

/* --- Main Page Content Frame (for index.html) --- */
.main-page-content-wrapper {
    background-color: #fff; /* White background for the frame */
    border-radius: 16px; /* Rounded corners for the frame */
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1); /* Subtle shadow */
    padding: 40px; /* Padding inside the frame */
    margin: 40px auto; /* Space from top/bottom and center horizontally */
    max-width: 1200px; /* Aligns with .container width */
    overflow: hidden; /* Clear floats if any, ensures border-radius applies cleanly */
}


/* --- Responsive considerations --- */
@media (max-width: 992px) { /* Adjust breakpoint for widescreen to stacked */
    .auth-split-container {
        flex-direction: column;
        gap: 20px; /* Less gap when stacked */
        max-width: 600px; /* Narrower container when stacked */
        /* Padding and border-radius overridden in inline style for consistency */
    }

    .auth-column {
        padding: 20px; /* Shorter individual column padding when stacked */
        border-radius: 30px; /* Adjusted rounding for stacked view */
        text-align: left; /* Adjust text align for clarity when stacked */
    }

    .auth-column h2,
    .auth-column p {
        text-align: center; /* Center titles and main info in stacked view */
    }

    /* Ensure form-group labels/inputs remain left-aligned inside columns */
    .email-password-form {
        text-align: left;
    }

    .main-page-content-wrapper {
        margin: 20px; /* Reduce margin on smaller screens */
        padding: 20px; /* Reduce padding on smaller screens */
        border-radius: 8px; /* Slightly less rounded for smaller screens */
    }
}

@media (max-width: 768px) {
    .main-header .container {
        flex-direction: column; /* Stack elements vertically */
        justify-content: center; /* Center items when stacked */
        padding: 20px; /* Add vertical padding for stacked elements */
    }

    .logo {
        margin-right: 0; /* Remove right margin on mobile */
        margin-bottom: 15px; /* Space between logo and nav/auth buttons */
    }

    .main-nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
        margin-bottom: 15px; /* Space between nav and auth buttons */
    }

    .auth-buttons {
        justify-content: center; /* Center auth buttons horizontally */
        width: 100%; /* Make auth buttons full width */
    }

    .hero-section h1 {
        font-size: 2.5em;
    }
    .hp-infra-section h2 {
        font-size: 2em;
    }
    .hero-actions, .hp-infra-actions {
        flex-direction: column;
        gap: 10px;
    }
    .btn {
        width: 80%; /* Make buttons full width on small screens */
        max-width: 300px; /* Limit button width */
        margin: 0 auto;
    }

    /* Responsive adjustments for info sections */
    .info-item {
        flex-direction: column;
        text-align: center;
    }

    .info-item.right-image {
        flex-direction: column;
    }

    .info-image,
    .info-content {
        flex: none;
        width: 100%;
    }

    .info-image img {
        margin: 0 auto 20px auto;
    }

    .info-item .info-content {
        text-align: center;
    }
}

/* --- Dropdown Styles (For JS Positioning) --- */

/* The dropdown panel, now positioned by JS */
.dropdown-content {
    /* Hiding and Animation */
    display: block;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.25s ease-out, transform 0.25s ease-out, visibility 0.25s;
    font-family: 'SecondaryFont', sans-serif;

    /* Positioning: Absolute to the document. JS sets top/left. */
    position: absolute;
    z-index: 9999; /* Very high z-index to ensure it's on top */

    /* Visual Styling */
    background-color: #ffffff;
    min-width: 180px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-radius: 16px;
    overflow: hidden;
}

/* This class is added by JavaScript to show the menu */
.dropdown-content.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* The non-clickable header inside the dropdown */
.dropdown-header {
    padding: 12px 16px;
    font-family: 'PrimaryFont', sans-serif;
    color: #333;
    cursor: default;
}

/* The divider line */
.dropdown-divider {
    height: 1px;
    margin: 0 10px;
    border: none;
    background-color: #e0e0e0;
}

/* Links inside the dropdown */
.dropdown-content a {
    color: #333;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    text-align: left;
    background-color: transparent;
    transition: background-color 0.2s ease-in-out;
}

.dropdown-content a:hover {
    background-color: #f1f1f1;
}

/* The container for the dropdown trigger */
.main-nav .dropdown {
    position: relative;
}

/* The visible "MORE" text in the nav bar */
.main-nav .dropdown .dropbtn {
    cursor: default;
}
