/* ========================================= */
/* RESET */
/* ========================================= */

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

html {
    scroll-behavior: smooth;
}

body {
    background: #050505;
    color: white;
    font-family: Inter, Helvetica, Arial, sans-serif;
    overflow-x: hidden;
}

:root {
    --background: #050505;
    --background-light: #101010;
    --white: #ffffff;
    --gray: #9b9b9b;
    --border: rgba(255,255,255,.08);
    --red: #d62f2a;
    --transition: .3s ease;
}

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

img {
    display: block;
    max-width: 100%;
}

button,
input,
textarea,
select {
    font: inherit;
}

/* ========================================= */
/* NAVBAR */
/* ========================================= */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 90px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding-right: 7%;
    background: rgba(5,5,5,.72);
    backdrop-filter: blur(22px);
    border-bottom: 1px solid rgba(255,255,255,.20);
    box-shadow: 0 6px 30px rgba(0,0,0,.35);
    z-index: 1000;
}

.logo {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.logo img {
    height: 7.5vh;
    width: auto;
}

nav {
    display: flex;
    align-items: center;
    gap: 40px;
}

nav a {
    font-size: .95rem;
    letter-spacing: 1px;
    transition: var(--transition);
}

nav a:hover {
    color: var(--gray);
}

.button {
    padding: 14px 28px;
    border: 1px solid white;
    border-radius: 999px;
}

.button:hover {
    background: white;
    color: black;
    transform: translateY(-4px);
}

/* ========================================= */
/* INDEX PAGE */
/* ========================================= */

.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

.hero-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    animation: heroZoom 18s ease-in-out infinite alternate;
}

.overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(0,0,0,.55), rgba(0,0,0,.65));
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 750px;
    height: 100%;
    margin-left: 7%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-content p:first-child {
    color: var(--gray);
    font-size: .9rem;
    letter-spacing: 4px;
    margin-bottom: 28px;
}

.hero h1 {
    font-size: clamp(4rem, 10vw, 8rem);
    line-height: .9;
    font-weight: 700;
    letter-spacing: -4px;
    margin-bottom: 50px;
}

.hero-button {
    width: fit-content;
    padding: 18px 38px;
    border-radius: 999px;
    border: none;
    background: white;
    color: black;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.hero-button:hover {
    transform: translateY(-3px);
    background: #d9d9d9;
}

section {
    padding: 140px 7%;
}

.section-title {
    color: var(--gray);
    letter-spacing: 4px;
    font-size: .85rem;
    margin-bottom: 35px;
}

section h2 {
    font-size: clamp(2.5rem,5vw,4.5rem);
    line-height: 1;
    margin-bottom: 35px;
}

section p {
    color: var(--gray);
    font-size: 1.1rem;
    line-height: 1.8;
    max-width: 750px;
}

.about { background: var(--background); }
.about h2 { max-width: 700px; }
.about p { max-width: 750px; }

.model { background: #090909; }
.model h2 { max-width: 700px; margin-bottom: 30px; }
.model-description { max-width: 700px; margin-bottom: 80px; }

.cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 35px;
}

.card {
    padding: 45px;
    background: rgba(255,255,255,.03);
    border: 1px solid var(--border);
    border-radius: 24px;
    transition: .35s ease;
}

.card:hover {
    transform: translateY(-8px);
    border-color: rgba(255,255,255,.2);
    background: rgba(255,255,255,.05);
    box-shadow: 0 20px 50px rgba(0,0,0,.35);
}

.card span {
    display: inline-block;
    margin-bottom: 25px;
    font-size: .85rem;
    color: var(--gray);
    letter-spacing: 3px;
}

.card h3 {
    font-size: 2rem;
    margin-bottom: 20px;
    font-weight: 600;
}

.card p {
    color: var(--gray);
    line-height: 1.8;
    font-size: 1rem;
}

.cta {
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 180px;
    padding-bottom: 180px;
}

.cta-box {
    width: 100%;
    max-width: 1100px;
    padding: 90px;
    text-align: center;
    background: linear-gradient(145deg, rgba(255,255,255,.03), rgba(255,255,255,.01));
    border: 1px solid var(--border);
    border-radius: 30px;
}

.cta-box p:first-child {
    color: var(--gray);
    letter-spacing: 4px;
    font-size: .9rem;
    margin: 0 auto 25px;
    text-align: center;
}

.cta-box h2 {
    font-size: clamp(2.8rem,6vw,5rem);
    line-height: 1;
    margin-bottom: 35px;
}

/* ========================================= */
/* SUBPAGE BACKGROUNDS */
/* ========================================= */

.inquiry-page-body,
.login-page-body {
    min-height: 100vh;
    background-color: #050505;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

.inquiry-page-body {
    background-image:
        linear-gradient(90deg, rgba(0,0,0,.82), rgba(0,0,0,.56), rgba(0,0,0,.78)),
        url("../images/inquiryBackground.png");
}

.login-page-body {
    background-image:
        linear-gradient(90deg, rgba(0,0,0,.82), rgba(0,0,0,.50), rgba(0,0,0,.80)),
        url("../images/loginBackground.png");
}

.subpage {
    min-height: 100vh;
}

/* ========================================= */
/* INQUIRY PAGE */
/* ========================================= */

.inquiry-hero {
    min-height: 58vh;
    padding: 180px 7% 70px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.inquiry-hero h1 {
    font-size: clamp(3.2rem, 7vw, 6rem);
    line-height: .92;
    letter-spacing: -3px;
    margin-bottom: 35px;
    max-width: 800px;
}

.inquiry-hero p:last-child {
    max-width: 650px;
    color: var(--gray);
    line-height: 1.8;
}

.inquiry-section {
    display: flex;
    justify-content: center;
    padding: 20px 7% 130px;
}

.inquiry-box,
.login-card {
    background: linear-gradient(145deg, rgba(255,255,255,.08), rgba(255,255,255,.025));
    border: 1px solid rgba(255,255,255,.14);
    box-shadow: 0 30px 90px rgba(0,0,0,.55);
    backdrop-filter: blur(18px);
}

.inquiry-box {
    width: 100%;
    max-width: 680px;
    border-radius: 28px;
    padding: 45px;
}

.inquiry-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.inquiry-form input,
.inquiry-form select,
.inquiry-form textarea,
.login-form input {
    width: 100%;
    padding: 18px 20px;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,.14);
    background: rgba(0,0,0,.42);
    color: white;
    font-size: 1rem;
    outline: none;
    transition: var(--transition);
}

.inquiry-form input::placeholder,
.inquiry-form textarea::placeholder {
    color: rgba(255,255,255,.42);
}

.inquiry-form input:focus,
.inquiry-form select:focus,
.inquiry-form textarea:focus,
.login-form input:focus {
    border-color: rgba(255,255,255,.75);
    background: rgba(0,0,0,.62);
}

.inquiry-form select {
    color: rgba(255,255,255,.82);
    cursor: pointer;
}

.inquiry-form option {
    background: #101010;
    color: white;
}

.inquiry-form textarea {
    resize: vertical;
    min-height: 180px;
}

#positionContainer {
    display: none;
}

.inquiry-form button {
    margin-top: 12px;
    padding: 18px 20px;
    border-radius: 999px;
    border: 1px solid white;
    background: white;
    color: black;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

.inquiry-form button:hover {
    transform: translateY(-4px);
    background: #d9d9d9;
}

.success-message h2 {
    font-size: clamp(2.4rem, 5vw, 4rem);
    margin-bottom: 20px;
}

.success-message p {
    margin-bottom: 30px;
}

.role-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.role-options input {
    display: none;
}

.role-options span {
    display: block;
    padding: 18px 20px;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,.08);
    background: rgba(255,255,255,.04);
    color: #777;
    text-align: center;
    cursor: pointer;
    transition: .25s ease;
}

.role-options input:checked + span {
    border-color: white;
    background: white;
    color: black;
}

.form-label {
    display: block;
    color: var(--gray);
    font-size: 0.9rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 600;
    padding: 0;
}

.position-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.position-options input {
    display: none;
}

.position-options span {
    display: block;
    padding: 18px 20px;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,.08);
    background: rgba(255,255,255,.04);
    color: #777;
    text-align: center;
    cursor: pointer;
    transition: .25s ease;
}

.position-options input:checked + span {
    background: white;
    color: black;
    border-color: white;
}

/* ========================================= */
/* LOGIN PAGE */
/* ========================================= */

.login-page {
    min-height: 100vh;
    padding: 160px 7% 80px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.login-card {
    width: 100%;
    max-width: 540px;
    padding: 60px;
    border-radius: 28px;
}

.login-card h1 {
    font-size: clamp(2.8rem, 5vw, 4.5rem);
    line-height: .95;
    letter-spacing: -2px;
    margin-bottom: 25px;
}

.login-description {
    color: var(--gray);
    line-height: 1.7;
    margin-bottom: 40px;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.input-group label {
    color: rgba(255,255,255,.72);
    font-size: .85rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.login-form .hero-button {
    width: 100%;
    margin-top: 10px;
    text-align: center;
}

.login-footer {
    margin-top: 35px;
    padding-top: 25px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    gap: 20px;
    font-size: .95rem;
}

.login-footer p {
    color: var(--gray);
}

.login-footer a {
    color: white;
    transition: var(--transition);
}

.login-footer a:hover {
    color: var(--gray);
}

.login-message {
    margin-bottom: 25px;
    padding: 16px 18px;
    border-radius: 14px;
    font-size: .95rem;
    line-height: 1.5;
    display: none;
}

.login-message.error {
    display: block;
    background: rgba(255, 70, 70, .12);
    border: 1px solid rgba(255, 70, 70, .25);
    color: #ff8b8b;
}

.login-message.success {
    display: block;
    background: rgba(70, 255, 130, .10);
    border: 1px solid rgba(70, 255, 130, .22);
    color: #8bffb0;
}

/* ========================================= */
/* FOOTER */
/* ========================================= */

footer {
    padding: 70px 7%;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
    background: rgba(5,5,5,.92);
}

footer h3 {
    font-size: 1.6rem;
    margin-bottom: 12px;
}

footer p,
footer a {
    color: var(--gray);
}

footer div:last-child {
    display: flex;
    gap: 35px;
}

footer a {
    transition: var(--transition);
}

footer a:hover {
    color: white;
}

.footer-logo {
    width: min(30vw, 320px);
    height: auto;
}

.footer-text {
    margin-left: .75vw;
}

/* ========================================= */
/* ANIMATIONS */
/* ========================================= */

@keyframes heroZoom {
    from { transform: scale(1); }
    to { transform: scale(1.08); }
}

.fade {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity .8s ease, transform .8s ease;
}

.fade.show {
    opacity: 1;
    transform: translateY(0);
}

::selection {
    background: white;
    color: black;
}

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: #050505; }
::-webkit-scrollbar-thumb { background: #333; border-radius: 50px; }
::-webkit-scrollbar-thumb:hover { background: #666; }

/* ========================================= */
/* RESPONSIVE */
/* ========================================= */

@media (max-width: 1100px) {
    .cards {
        grid-template-columns: 1fr;
    }

    .cta-box {
        padding: 70px;
    }
}

@media (max-width: 800px) {
    .navbar {
        justify-content: flex-end;
        height: 90px;
        padding-right: 6%;
    }

    .logo img {
        height: 58px;
    }

    nav {
        gap: 20px;
    }

    .hero-content {
        margin-left: 6%;
        margin-right: 6%;
        text-align: center;
        align-items: center;
    }

    .hero h1,
    .inquiry-hero h1 {
        letter-spacing: -2px;
    }

    section {
        padding: 100px 6%;
    }

    .inquiry-hero {
        padding: 150px 6% 55px;
    }

    .inquiry-section {
        padding: 10px 6% 100px;
    }

    .cta {
        padding-top: 120px;
        padding-bottom: 120px;
    }

    .cta-box,
    .login-card,
    .inquiry-box {
        padding: 45px 35px;
    }

    footer {
        flex-direction: column;
        text-align: center;
    }

    footer div:last-child {
        justify-content: center;
    }
}

@media (max-width: 500px) {
    .navbar {
        padding: 0 5%;
    }

    .logo {
        left: 5%;
    }

    .logo img {
        height: 48px;
    }

    nav {
        gap: 14px;
    }

    nav a {
        font-size: .82rem;
    }

    .button {
        padding: 12px 18px;
    }

    .hero h1 {
        font-size: clamp(3rem, 14vw, 4.5rem);
    }

    .inquiry-hero h1 {
        font-size: 2.8rem;
    }

    .hero-button,
    .button {
        width: 100%;
        text-align: center;
    }

    .card,
    .inquiry-box,
    .login-card {
        padding: 32px 24px;
    }

    .login-footer {
        flex-direction: column;
    }
}
