/* =========================================================
   MALJIANCX — MASTER STYLESHEET
   Structure:
   Reset → Tokens → Base → Layout → Components →
   Sections → Utilities → Responsive
========================================================= */

/* =========================================================
   1. RESET
========================================================= */

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* =========================================================
   2. DESIGN TOKENS
========================================================= */

:root {

    /* ===============================
       COLORS
    =============================== */

    --white: #ffffff;
    --off-white: #f8fafc;

    --navy-deep: #0a1628;
    --navy-light: #112240;

    --text-primary: #0a1628;
    --text-muted: #475569;

    --border: #e2e8f0;

    /* ===============================
       SHADOWS
    =============================== */

    --shadow-soft: 0 8px 24px rgba(10, 22, 40, 0.08);
    --shadow-card: 0 4px 12px rgba(10, 22, 40, 0.06);
    --shadow-button: 0 4px 10px rgba(10, 22, 40, 0.08);

    /* ===============================
       RADIUS
    =============================== */

    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;

    /* ===============================
       SPACING
    =============================== */

    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 2rem;
    --space-lg: 3rem;
    --space-xl: 4rem;
    --space-2xl: 6rem;
    --space-3xl: 8rem;

    /* ===============================
       TYPOGRAPHY
    =============================== */

    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-md: 1.05rem;
    --text-lg: 1.15rem;
    --text-xl: 1.3rem;
    --text-2xl: 1.8rem;
    --text-3xl: 2rem;

    --text-4xl: clamp(2rem, 4vw, 3rem);
    --text-5xl: clamp(2.4rem, 5vw, 4.2rem);

    /* ===============================
       LAYOUT
    =============================== */

    --container-max: 1400px;
    --content-max: 850px;
    --hero-content-max: 950px;

    /* ===============================
       TRANSITIONS
    =============================== */

    --transition-fast: 0.2s ease;
    --transition-smooth: 0.25s ease;

    /* ===============================
       HEADER
    =============================== */

    --header-logo-height: 90px;
    --header-logo-height-mobile: 72px;
}

/* =========================================================
   3. BASE ELEMENTS
========================================================= */

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
    background-color: var(--white);
    color: var(--text-primary);

    line-height: 1.7;

    min-height: 100vh;

    display: flex;
    flex-direction: column;

    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
textarea {
    font: inherit;
}

/* =========================================================
   4. ACCESSIBILITY
========================================================= */

a:focus-visible,
button:focus-visible,
.btn:focus-visible {
    outline: 3px solid rgba(17, 34, 64, 0.25);
    outline-offset: 3px;
}

/* =========================================================
   5. TYPOGRAPHY
========================================================= */

h1,
h2,
h3,
h4 {
    color: var(--navy-deep);
    line-height: 1.2;
    font-weight: 700;
}

p {
    color: var(--text-muted);
}

/* =========================================================
   6. LAYOUT
========================================================= */

.container {
    width: 100%;
    max-width: var(--container-max);

    margin: 0 auto;
    padding: 0 var(--space-md);
}

.content {
    width: 100%;
    max-width: var(--content-max);

    margin: 0 auto;
    padding-bottom: var(--space-xl);
}

/* =========================================================
   7. HEADER / NAVIGATION
========================================================= */

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;

    background-color: rgba(255, 255, 255, 0.95);

    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);

    border-bottom: 1px solid var(--border);
}

.site-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 1.1rem 0;
}

.site-logo img {
    width: auto;
    height: var(--header-logo-height);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: var(--space-md);

    list-style: none;
}

.nav-links a {
    color: var(--text-muted);

    font-size: var(--text-sm);
    font-weight: 500;

    transition: color var(--transition-fast);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--navy-deep);
}

/* =========================================================
   8. BUTTONS
========================================================= */

.btn {
    display: inline-block;

    background-color: var(--navy-deep);
    color: var(--white);

    border: 2px solid var(--navy-deep);
    border-radius: var(--radius-sm);

    padding: 0.9rem var(--space-md);

    font-size: var(--text-base);
    font-weight: 600;

    cursor: pointer;

    box-shadow: var(--shadow-button);

    transition:
        background-color var(--transition-smooth),
        border-color var(--transition-smooth),
        transform var(--transition-fast),
        box-shadow var(--transition-fast);
}

.btn--large {
    padding: 1rem 2.5rem;
    font-size: var(--text-md);
}

@media (hover: hover) {

    .btn:hover {
        background-color: var(--navy-light);
        border-color: var(--navy-light);

        transform: translateY(-2px);
    }
}

/* =========================================================
   9. HERO
========================================================= */

.hero {
    padding: var(--space-3xl) 0 var(--space-2xl);

    text-align: center;
}

.hero__title {
    max-width: var(--hero-content-max);

    margin: 0 auto 1.5rem;

    font-size: var(--text-5xl);
}

.hero__subtitle {
    max-width: 720px;

    margin: 0 auto 1.5rem;

    font-size: var(--text-lg);
}

.hero .btn {
    margin-top: 1rem;
}

.hero__image-wrapper {
    padding-bottom: var(--space-xl);

    text-align: center;
}

.hero__image {
    width: 100%;
    max-width: var(--hero-content-max);

    margin: 0 auto;

    border-radius: var(--radius-lg);

    box-shadow: var(--shadow-soft);
}

/* =========================================================
   10. CARD GRID
========================================================= */

.card-grid {
    display: grid;

    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));

    gap: var(--space-md);

    margin-bottom: var(--space-2xl);
}

.card {
    background-color: var(--off-white);

    padding: 2.5rem var(--space-md);

    border: 1px solid var(--border);
    border-radius: var(--radius-md);

    transition:
        transform var(--transition-fast),
        border-color var(--transition-fast),
        box-shadow var(--transition-fast);
}

.card__title {
    margin-bottom: var(--space-sm);

    font-size: var(--text-xl);
}

.card__text {
    line-height: 1.7;
}

@media (hover: hover) {

    .card:hover {
        transform: translateY(-5px);

        box-shadow: var(--shadow-soft);

        border-color: var(--navy-deep);
    }
}

/* =========================================================
   11. METRICS
========================================================= */

.metric-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;

    gap: var(--space-lg);

    padding: var(--space-lg) 0;
    margin-bottom: var(--space-xl);

    text-align: center;

    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.metric {
    flex: 1 1 200px;
    max-width: 250px;
}

.metric__number {
    display: block;

    margin-bottom: var(--space-xs);

    color: var(--navy-deep);

    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.1;
}

.metric__label {
    max-width: 220px;

    margin: 0 auto;

    font-size: var(--text-sm);
    color: var(--text-muted);
}

/* =========================================================
   12. CALLOUT
========================================================= */

.callout {
    margin-bottom: var(--space-2xl);

    padding: var(--space-xl) var(--space-lg);

    background-color: var(--off-white);

    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}

.callout__title {
    margin-bottom: 1.25rem;

    font-size: var(--text-3xl);
}

.callout__text {
    max-width: 720px;
    margin-bottom: 1.25rem;
}

.callout__text:last-of-type {
    margin-bottom: 0;
}

/* =========================================================
   13. PAGE HEADER
========================================================= */

.page-header {
    padding: var(--space-xl) 0 var(--space-md);
}

.page-header h1 {
    font-size: var(--text-4xl);
}

/* =========================================================
   14. ABOUT PAGE
========================================================= */

.about-content h2 {
    margin-top: var(--space-lg);
    margin-bottom: var(--space-sm);

    font-size: var(--text-2xl);
}

.about-content h2:first-child {
    margin-top: 0;
}

.about-content p {
    margin-bottom: 1.5rem;

    font-size: var(--text-md);
}

.about-content .btn {
    margin-top: var(--space-lg);
}

/* =========================================================
   15. CONTACT PAGE
========================================================= */

.contact-content {
    padding-top: var(--space-md);

    text-align: center;
}

.contact-content .btn {
    margin: var(--space-md) 0;
}

.contact-note {
    font-size: var(--text-sm);
}

.linkedin-wrapper {
    margin-top: var(--space-md);
}

.linkedin-link {
    color: var(--navy-deep);

    font-weight: 600;
    text-decoration: underline;
}

/* =========================================================
   16. FOOTER
========================================================= */

.site-footer {
    margin-top: auto;

    padding: var(--space-md);

    background-color: var(--off-white);

    border-top: 1px solid var(--border);

    text-align: center;

    font-size: var(--text-sm);
}

.site-footer p {
    color: var(--text-muted);
}

/* =========================================================
   17. RESPONSIVE — TABLET
========================================================= */

@media (max-width: 768px) {

    html {
        font-size: 15px;
    }

    .container {
        padding: 0 1.5rem;
    }

    .site-nav {
        padding: var(--space-sm) 0;
    }

    .nav-links {
        gap: 1.25rem;
    }

    .hero {
        padding: var(--space-xl) 0;
    }

    .card-grid {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));

        gap: 1.5rem;
    }

    .card {
        padding: var(--space-md) 1.5rem;
    }

    .callout {
        padding: var(--space-lg) var(--space-md);
    }

    .metric-row {
        gap: var(--space-md);
    }

    .metric__number {
        font-size: var(--text-3xl);
    }

    .page-header {
        padding: var(--space-xl) 0 var(--space-md);
    }
}

/* =========================================================
   18. RESPONSIVE — MOBILE
========================================================= */

@media (max-width: 480px) {

    html {
        font-size: 14px;
    }

    .container {
        padding: 0 1.25rem;
    }

    .site-nav {
        flex-direction: column;

        gap: var(--space-sm);
    }

    .nav-links {
        flex-wrap: wrap;
        justify-content: center;

        gap: var(--space-sm);
    }

    .site-logo img {
        height: var(--header-logo-height-mobile);
    }

    .hero {
        padding: var(--space-xl) 0 var(--space-lg);
    }

    .hero__subtitle {
        font-size: var(--text-base);
    }

    .btn {
        width: 100%;

        text-align: center;
    }

    .card-grid {
        grid-template-columns: 1fr;

        gap: var(--space-sm);

        margin-bottom: var(--space-xl);
    }

    .card {
        padding: 1.75rem 1.5rem;
    }

    .callout {
        padding: var(--space-md) 1.5rem;
    }

    .metric-row {
        flex-direction: column;
        align-items: center;

        gap: var(--space-md);

        padding: var(--space-md) 0;
        margin-bottom: var(--space-lg);
    }

    .about-content h2,
    .content h2 {
        font-size: 1.5rem;
    }

    .site-footer {
        padding: 1.5rem;
    }
}

/* =========================================================
   19. RESPONSIVE — LARGE SCREENS
========================================================= */

@media (min-width: 1800px) {

    html {
        font-size: 18px;
    }

    .card-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}