/* =========================================
   1. BASE & RESET (Common)
   ========================================= */
:root {
    --primary: #c6c6c6;
    --background: #0f1418;
    --surface: #1b2025;
    --on-surface: #dfe3e9;
    --on-surface-variant: #cfc4c5;
    --secondary: #adc6ff;
    --header-height: 80px;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--background);
    color: var(--on-surface);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

h1, h2, h3, .font-space {
    font-family: 'Space Grotesk', sans-serif;
    color: #ffffff;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

/* =========================================
   2. MOBILE STYLES (Default)
   ========================================= */

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

/* Header */
header {
    height: var(--header-height);
    display: flex;
    align-items: center;
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(15, 20, 24, 0.6);
    backdrop-filter: blur(20px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -1px;
}

header .btn {
    width: auto;
    padding: 0 16px;
    font-size: 13px;
    height: 32px; /* Matches the visual height of the logo */
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 20px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid transparent;
    height: 44px;
    font-size: 14px;
}

.btn-primary {
    background: #ffffff;
    color: #000000;
}

.btn-outline {
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.2);
}

/* Main Content */
main {
    flex-grow: 1;
    padding-top: calc(var(--header-height) + 60px);
    padding-bottom: 80px;
}

.careers-hero {
    text-align: center;
    margin-bottom: 60px;
}

.careers-hero h1 {
    font-size: clamp(32px, 8vw, 48px);
    margin-bottom: 20px;
}

.careers-hero p {
    font-size: 16px;
    color: var(--on-surface-variant);
    max-width: 600px;
    margin: 0 auto;
}

/* Jobs Grid */
.jobs-section {
    margin-top: 40px;
}

.jobs-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

.job-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 24px;
    transition: var(--transition);
}

.job-header {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
}

.job-tag {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(173, 198, 255, 0.1);
    color: var(--secondary);
    border-radius: 100px;
    font-size: 12px;
    text-transform: uppercase;
    width: fit-content;
}

.job-card h3 {
    font-size: 20px;
}

.job-meta {
    display: flex;
    gap: 16px;
    color: var(--on-surface-variant);
    font-size: 14px;
    margin-bottom: 16px;
}

.job-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.job-desc {
    color: var(--on-surface-variant);
    font-size: 14px;
    margin-bottom: 24px;
}

/* Footer */
footer {
    padding: 60px 0 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-logo-col {
    grid-column: 1 / -1;
    margin-bottom: 24px;
}

.footer-main-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    margin-bottom: 48px;
}

.footer-label {
    font-size: 14px;
    color: var(--on-surface-variant);
    margin-bottom: 20px;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    font-size: 15px;
    color: #ffffff;
    font-weight: 500;
}

.footer-connect-section {
    margin-bottom: 48px;
}

.footer-connect-header {
    display: flex;
    justify-content: flex-start;
    gap: 16px;
    align-items: center;
    margin-bottom: 20px;
}

.footer-connect-header .footer-label {
    margin-bottom: 0;
}

.footer-bottom {
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: var(--on-surface-variant);
}

.footer-bottom-left {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.desktop-only {
    display: none;
}

.footer-cert {
    display: flex;
    align-items: center;
    gap: 6px;
}

.footer-cert .material-symbols-outlined {
    font-size: 16px;
    color: var(--secondary);
}

.back-to-top {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #ffffff;
    font-weight: 500;
}

.back-to-top .material-symbols-outlined {
    font-size: 18px;
}

.footer-logo-img {
    height: 32px;
    width: auto;
    border-radius: 4px;
    margin-bottom: 24px;
}

.social-links {
    display: flex;
    gap: 24px;
}

/* Application Section */
.application-section {
    margin-top: 100px;
    padding-top: 100px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.form-container {
    max-width: 800px;
    margin: 0 auto;
    background: #000000;
    padding: 32px;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.form-header {
    text-align: center;
    margin-bottom: 40px;
}

.form-header h2 {
    font-size: 32px;
    margin-bottom: 12px;
}

.form-group {
    margin-bottom: 24px;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
}

label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #ffffff;
    margin-bottom: 8px;
    margin-left: 4px;
}

input, textarea {
    width: 100%;
    background: #121212;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 12px 16px;
    color: #ffffff;
    font-family: inherit;
    transition: var(--transition);
    outline: none;
}

input:focus, textarea:focus {
    border-color: rgba(173, 198, 255, 0.5);
}

textarea {
    resize: none;
}

/* File Upload */
.file-upload-wrapper {
    position: relative;
    width: 100%;
}

#resume-upload {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
}

.file-upload-trigger {
    width: 100%;
    background: #121212;
    border: 1px dashed rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    color: var(--on-surface-variant);
    transition: var(--transition);
}

.file-upload-wrapper:hover .file-upload-trigger {
    border-color: var(--secondary);
    background: rgba(173, 198, 255, 0.05);
}

.btn-submit {
    width: 100%;
    height: 52px;
    font-size: 16px;
}

/* =========================================
   3. DESKTOP STYLES (min-width: 1024px)
   ========================================= */
@media (min-width: 1024px) {
    .container {
        padding: 0 24px;
    }

    .logo {
        font-size: 24px;
    }

    header .btn {
        padding: 0 20px;
        font-size: 14px;
        height: 36px; /* Matches the visual height of the logo on desktop */
    }

    .btn-primary:hover {
        transform: scale(0.95);
        background: #e2e2e2;
    }

    .careers-hero {
        margin-bottom: 80px;
    }

    .careers-hero h1 {
        font-size: 64px;
    }

    .careers-hero p {
        font-size: 18px;
    }

    .jobs-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px;
    }

    .job-card:hover {
        transform: translateY(-4px);
        border-color: rgba(173, 198, 255, 0.2);
        background: rgba(255, 255, 255, 0.05);
    }

    .form-container {
        padding: 48px;
    }

    .grid-2 {
        grid-template-columns: 1fr 1fr;
        gap: 24px;
    }

    /* Footer */
    footer {
        padding: 80px 0 40px;
    }

    .footer-main-grid {
        grid-template-columns: 2fr 1fr 1fr 1fr;
        gap: 80px;
        margin-bottom: 80px;
    }

    .footer-logo-col {
        grid-column: auto;
        margin-bottom: 0;
    }

    .footer-connect-section {
        margin-bottom: 0;
        max-width: none;
    }

    .footer-connect-header {
        border-bottom: none;
        padding-bottom: 0;
        margin-bottom: 20px;
    }

    .footer-bottom {
        padding-top: 40px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 0;
        font-size: 14px;
    }

    .footer-bottom-left {
        flex-direction: row;
        gap: 24px;
    }

    .footer-bottom-right {
        justify-self: end;
    }

    .desktop-only {
        display: flex;
    }
}

