/* =========================================
   MILSERVE PORTAL
   TRACK APPLICATION PAGE
========================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Oswald:wght@400;500;600&display=swap');


/* =========================================
   RESET
========================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Inter", sans-serif;
    background: #f4f6f2;
    color: #182018;
    line-height: 1.6;
    overflow-x: hidden;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.018;

    background-image:
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 3px,
            rgba(0, 0, 0, 0.15) 4px
        );
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input {
    font-family: inherit;
}

.container {
    width: min(1180px, 90%);
    margin: 0 auto;
}


/* =========================================
   NAVIGATION
========================================= */

.navbar {
    position: relative;
    z-index: 1000;

    padding: 22px 0;

    background:
        linear-gradient(
            180deg,
            rgba(255, 255, 255, 0.98),
            rgba(255, 255, 255, 0.94)
        );

    border-bottom: 1px solid rgba(30, 45, 30, 0.10);

    backdrop-filter: blur(10px);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-symbol {
    width: 44px;
    height: 44px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #3d5135;
    color: #ffffff;

    font-family: "Oswald", sans-serif;
    font-size: 18px;
    font-weight: 600;

    clip-path: polygon(
        50% 0%,
        93% 25%,
        93% 75%,
        50% 100%,
        7% 75%,
        7% 25%
    );
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.brand-text span {
    font-family: "Oswald", sans-serif;
    font-size: 21px;
    font-weight: 600;
    letter-spacing: 1px;
    color: #172018;
}

.brand-text small {
    margin-top: 5px;
    color: #6c756b;
    font-size: 8px;
    letter-spacing: 2px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-links a {
    position: relative;

    color: #344034;

    font-size: 13px;
    font-weight: 600;

    transition: 0.3s ease;
}

.nav-links a::after {
    content: "";

    position: absolute;

    left: 0;
    bottom: -7px;

    width: 0;
    height: 2px;

    background: #687d55;

    transition: width 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: #3d5135;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-button {
    padding: 11px 19px;

    border: 1px solid #536a48;

    color: #3d5135 !important;
}

.nav-button::after {
    display: none;
}

.nav-button:hover {
    background: #3d5135;
    color: #ffffff !important;
}

.menu-toggle {
    display: none;

    background: none;
    border: none;

    color: #263126;

    font-size: 28px;

    cursor: pointer;
}


/* =========================================
   PAGE HERO
========================================= */

.page-hero {
    position: relative;

    padding: 115px 0 100px;

    overflow: hidden;

    background:
        linear-gradient(
            135deg,
            #253225,
            #344533
        );

    color: #ffffff;
}

.page-hero::before {
    content: "";

    position: absolute;

    inset: 0;

    opacity: 0.08;

    background-image:
        linear-gradient(
            rgba(220, 225, 200, 0.35) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(220, 225, 200, 0.35) 1px,
            transparent 1px
        );

    background-size: 70px 70px;
}

.hero-grid {
    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            90deg,
            rgba(216, 200, 117, 0.08),
            transparent 55%
        );
}

.hero-content {
    position: relative;

    max-width: 760px;
}

.hero-label {
    display: block;

    margin-bottom: 18px;

    color: #d8c875;

    font-size: 10px;
    font-weight: 800;

    letter-spacing: 3px;
}

.hero-content h1 {
    font-family: "Oswald", sans-serif;

    font-size: clamp(52px, 7vw, 82px);

    font-weight: 500;

    line-height: 1;

    text-transform: uppercase;
}

.hero-content h1 span {
    color: #d8c875;
}

.hero-content p {
    max-width: 650px;

    margin-top: 25px;

    color: rgba(255, 255, 255, 0.78);

    font-size: 15px;

    line-height: 1.8;
}


/* =========================================
   TRACKING SECTION
========================================= */

.tracking-section {
    padding: 110px 0;

    background:
        linear-gradient(
            180deg,
            #ffffff,
            #f1f4ef
        );
}

.tracking-layout {
    display: grid;

    grid-template-columns: 0.9fr 1.1fr;

    gap: 80px;

    align-items: center;
}

.section-label {
    display: block;

    margin-bottom: 15px;

    color: #65794f;

    font-size: 10px;
    font-weight: 800;

    letter-spacing: 3px;
}

.tracking-info h2 {
    font-family: "Oswald", sans-serif;

    font-size: clamp(40px, 5vw, 60px);

    font-weight: 500;

    line-height: 1.05;

    text-transform: uppercase;

    color: #202920;
}

.tracking-info h2 span {
    color: #65794f;
}

.tracking-info > p {
    margin-top: 20px;

    color: #697269;

    font-size: 15px;
}


/* =========================================
   TRACKING POINTS
========================================= */

.tracking-points {
    margin-top: 40px;
}

.tracking-point {
    display: flex;

    gap: 20px;

    padding: 20px 0;

    border-top:
        1px solid rgba(40, 60, 40, 0.10);
}

.point-number {
    color: #687d54;

    font-family: "Oswald", sans-serif;

    font-size: 15px;

    min-width: 30px;
}

.tracking-point strong {
    display: block;

    color: #2e392e;

    font-size: 13px;

    text-transform: uppercase;

    letter-spacing: 0.5px;
}

.tracking-point p {
    margin-top: 5px;

    color: #747b74;

    font-size: 12px;
}


/* =========================================
   TRACKING CARD
========================================= */

.tracking-card {
    position: relative;

    padding: 45px;

    background:
        linear-gradient(
            145deg,
            #ffffff,
            #f1f4ef
        );

    border:
        1px solid rgba(65, 85, 60, 0.18);

    box-shadow:
        0 25px 70px rgba(35, 50, 35, 0.10);

    overflow: hidden;
}

.tracking-card::before {
    content: "";

    position: absolute;

    top: 0;
    left: 0;

    width: 100%;
    height: 3px;

    background: #687d54;
}

.card-header {
    display: flex;

    align-items: center;
    justify-content: space-between;

    padding-bottom: 25px;

    border-bottom:
        1px solid rgba(40, 60, 40, 0.10);

    color: #65794f;

    font-size: 9px;
    font-weight: 800;

    letter-spacing: 2px;
}

.status-light {
    width: 8px;
    height: 8px;

    border-radius: 50%;

    background: #687d54;

    box-shadow:
        0 0 0 5px rgba(104, 125, 84, 0.10);
}


/* =========================================
   FORM
========================================= */

.tracking-form {
    padding-top: 35px;
}

.tracking-form label {
    display: block;

    margin-bottom: 10px;

    color: #52604f;

    font-size: 10px;
    font-weight: 800;

    letter-spacing: 1.5px;
}

.input-box {
    display: flex;

    align-items: center;

    height: 58px;

    border:
        1px solid rgba(45, 65, 45, 0.16);

    background: #ffffff;

    transition:
        border-color 0.3s ease,
        box-shadow 0.3s ease;
}

.input-box:focus-within {
    border-color: #65794f;

    box-shadow:
        0 0 20px rgba(100, 120, 80, 0.10);
}

.input-box span {
    padding-left: 18px;

    color: #879087;

    font-family: "Oswald", sans-serif;

    font-size: 18px;
}

.input-box input {
    width: 100%;
    height: 100%;

    padding: 0 15px;

    border: none;
    outline: none;

    background: transparent;

    color: #253025;

    font-size: 14px;
}

.input-box input::placeholder {
    color: #a0a6a0;
}


/* =========================================
   BUTTON
========================================= */

.track-button {
    width: 100%;

    height: 56px;

    margin-top: 15px;

    display: flex;

    align-items: center;
    justify-content: space-between;

    padding: 0 22px;

    border: none;

    background: #3d5135;

    color: #ffffff;

    font-size: 11px;
    font-weight: 800;

    letter-spacing: 1px;

    text-transform: uppercase;

    cursor: pointer;

    transition:
        background 0.3s ease,
        transform 0.3s ease;
}

.track-button:hover {
    background: #536a48;

    transform: translateY(-2px);
}

.track-button span {
    font-size: 20px;
}


/* =========================================
   RESULT
========================================= */

.tracking-result {
    margin-top: 25px;
}

.security-note {
    margin-top: 25px;

    padding-top: 20px;

    border-top:
        1px solid rgba(40, 60, 40, 0.10);

    color: #7b837b;

    font-size: 10px;
}

.security-note span {
    color: #687d54;
}


/* =========================================
   STATUS SECTION
========================================= */

.status-section {
    padding: 110px 0;

    background: #e9ede7;
}

.section-heading {
    max-width: 650px;

    margin-bottom: 55px;
}

.section-heading h2 {
    font-family: "Oswald", sans-serif;

    font-size: clamp(40px, 5vw, 60px);

    font-weight: 500;

    line-height: 1.05;

    text-transform: uppercase;

    color: #202920;
}

.section-heading h2 span {
    color: #65794f;
}

.section-heading p {
    margin-top: 15px;

    color: #697269;

    font-size: 14px;
}

.status-grid {
    display: grid;

    grid-template-columns: repeat(4, 1fr);

    gap: 20px;
}

.status-item {
    padding: 30px;

    background: #ffffff;

    border:
        1px solid rgba(50, 70, 50, 0.10);

    box-shadow:
        0 15px 35px rgba(35, 50, 35, 0.06);
}

.status-number {
    margin-bottom: 25px;

    color: #687d54;

    font-family: "Oswald", sans-serif;

    font-size: 13px;

    letter-spacing: 2px;
}

.status-item h3 {
    margin-bottom: 10px;

    font-family: "Oswald", sans-serif;

    font-size: 25px;

    font-weight: 500;

    text-transform: uppercase;

    color: #263026;
}

.status-item p {
    color: #737a73;

    font-size: 12px;

    line-height: 1.7;
}

/* =========================================
   APPLICATION RESULT
========================================= */

.result-message {
    padding: 15px;

    font-size: 12px;
}

.result-message.error {
    background: #f8e9e7;
    border: 1px solid #e2c4bf;
    color: #8a4036;
}

.result-message.loading {
    background: #eef1eb;
    border: 1px solid #d5dccf;
    color: #65794f;
}

.application-result {
    border:
        1px solid rgba(65, 85, 60, 0.15);

    background: #ffffff;
}

.result-header {
    display: flex;

    align-items: center;
    justify-content: space-between;

    padding: 18px;

    background: #263425;

    color: #ffffff;
}

.result-header span {
    color: #d8c875;

    font-size: 9px;
    font-weight: 800;

    letter-spacing: 2px;
}

.result-header strong {
    color: #ffffff;

    font-size: 10px;

    text-transform: uppercase;
}

.result-details {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 20px;

    padding: 25px;
}

.result-details small,
.result-remarks small {
    display: block;

    margin-bottom: 5px;

    color: #7b837b;

    font-size: 8px;
    font-weight: 800;

    letter-spacing: 1.5px;
}

.result-details strong {
    color: #2d372d;

    font-size: 12px;
}

.result-remarks {
    padding: 20px 25px;

    border-top:
        1px solid rgba(40, 60, 40, 0.10);
}

.result-remarks p {
    color: #697269;

    font-size: 12px;
}

@media (max-width: 600px) {

    .result-details {
        grid-template-columns: 1fr;
    }

}


/* =========================================
   FOOTER
========================================= */

footer {
    position: relative;

    padding-top: 80px;

    background:
        linear-gradient(
            180deg,
            #20291f,
            #151c15
        );

    color: #ffffff;
}

footer::before {
    content: "";

    position: absolute;

    top: 0;
    left: 0;

    width: 100%;
    height: 1px;

    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(210, 190, 100, 0.45),
            transparent
        );
}

.footer-grid {
    display: grid;

    grid-template-columns: 2fr 1fr 1fr;

    gap: 60px;

    padding-bottom: 70px;
}

.footer-brand p {
    max-width: 280px;

    margin-top: 20px;

    color: #a0aaa0;

    font-size: 13px;
}

.footer-column {
    display: flex;

    flex-direction: column;

    gap: 12px;
}

.footer-column h4 {
    margin-bottom: 10px;

    color: #d2c37c;

    font-family: "Oswald", sans-serif;

    font-size: 16px;

    font-weight: 500;

    text-transform: uppercase;
}

.footer-column a {
    color: #a0aaa0;

    font-size: 12px;

    transition:
        color 0.3s ease,
        transform 0.3s ease;
}

.footer-column a:hover {
    color: #d8c875;

    transform: translateX(3px);
}

.footer-bottom {
    padding: 22px 0;

    border-top:
        1px solid rgba(255, 255, 255, 0.08);
}

.footer-bottom .container {
    display: flex;

    align-items: center;
    justify-content: space-between;
}

.footer-bottom p,
.footer-bottom span {
    color: #788078;

    font-size: 10px;
}


/* =========================================
   TABLET
========================================= */

@media (max-width: 1000px) {

    .tracking-layout {
        grid-template-columns: 1fr;

        gap: 60px;
    }

    .status-grid {
        grid-template-columns: 1fr 1fr;
    }

    .nav-links {
        gap: 20px;
    }

}


/* =========================================
   MOBILE NAVIGATION
========================================= */

@media (max-width: 900px) {

    .nav-links {
        position: absolute;

        top: 88px;

        left: 5%;
        right: 5%;

        display: none;

        flex-direction: column;

        align-items: stretch;

        padding: 25px;

        background: #ffffff;

        border:
            1px solid rgba(40, 60, 40, 0.12);

        box-shadow:
            0 25px 60px rgba(30, 45, 30, 0.15);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links a {
        padding: 10px 0;
    }

    .nav-links a::after {
        display: none;
    }

    .menu-toggle {
        display: block;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }

}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 600px) {

    .container {
        width: min(92%, 1180px);
    }

    .navbar {
        padding: 18px 0;
    }

    .brand-symbol {
        width: 40px;
        height: 40px;

        font-size: 16px;
    }

    .brand-text span {
        font-size: 18px;
    }

    .page-hero {
        padding: 85px 0 75px;
    }

    .hero-content h1 {
        font-size: 50px;
    }

    .tracking-section,
    .status-section {
        padding: 80px 0;
    }

    .tracking-card {
        padding: 30px 22px;
    }

    .status-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .footer-brand {
        grid-column: auto;
    }

    .footer-bottom .container {
        flex-direction: column;

        align-items: flex-start;

        gap: 8px;
    }

}


/* =========================================
   SMALL MOBILE
========================================= */

@media (max-width: 380px) {

    .hero-content h1 {
        font-size: 44px;
    }

    .tracking-info h2,
    .section-heading h2 {
        font-size: 36px;
    }

}