:root {
    --bg1: #070b14;
    --bg2: #10182a;

    --glass: rgba(255, 255, 255, 0.055);
    --glass-hover: rgba(255, 255, 255, 0.085);

    --border: rgba(255, 255, 255, 0.11);
    --border-hover: rgba(77, 163, 255, 0.55);

    --text: #ffffff;
    --text-soft: rgba(255, 255, 255, 0.72);
    --text-muted: rgba(255, 255, 255, 0.50);

    --primary: #4da3ff;
    --primary-soft: rgba(77, 163, 255, 0.14);

    --radius: 22px;

    --shadow: 0 18px 50px rgba(0, 0, 0, 0.24);
    --shadow-hover: 0 25px 65px rgba(0, 0, 0, 0.38);

    --transition: 0.25s ease;
}

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

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

html {
    width: 100%;
    min-height: 100%;

    scroll-behavior: smooth;
}

body {
    width: 100%;
    min-height: 100vh;

    font-family: 'Inter', sans-serif;

    color: var(--text);

    text-align: center;

    background:
        radial-gradient(
            circle at 50% -10%,
            rgba(77, 163, 255, 0.13),
            transparent 35%
        ),
        linear-gradient(
            135deg,
            var(--bg1),
            var(--bg2)
        );

    overflow-x: hidden;
}

/* =========================
   MAIN CONTAINER
========================= */

.container {
    width: 100%;
    max-width: 1000px;

    margin: 0 auto;

    padding: 70px 24px 80px;

    display: flex;
    flex-direction: column;
    align-items: center;
}

/* =========================
   HERO
========================= */

.hero {
    width: 100%;

    margin-bottom: 52px;

    display: flex;
    flex-direction: column;
    align-items: center;

    text-align: center;
}

.hero h1 {
    margin-bottom: 14px;

    font-size: clamp(2.5rem, 6vw, 4rem);

    font-weight: 800;

    line-height: 1.05;

    letter-spacing: -0.045em;

    background:
        linear-gradient(
            135deg,
            #ffffff 20%,
            #b9dcff 100%
        );

    -webkit-background-clip: text;
    background-clip: text;

    -webkit-text-fill-color: transparent;
}

.subtitle {
    margin-bottom: 8px;

    color: var(--text-soft);

    font-size: 1.08rem;

    font-weight: 600;

    line-height: 1.5;
}

.semi-subtitle {
    color: var(--text-muted);

    font-size: 0.93rem;

    line-height: 1.5;

    letter-spacing: 0.2px;
}

/* =========================
   STANDARD CARDS
========================= */

.container > .card {
    position: relative;

    width: 100%;

    margin: 0 0 26px;

    padding: 32px 38px;

    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, 0.075),
            rgba(255, 255, 255, 0.035)
        );

    border: 1px solid var(--border);

    border-radius: var(--radius);

    box-shadow: var(--shadow);

    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);

    text-align: center;

    transition:
        transform var(--transition),
        border-color var(--transition),
        background var(--transition),
        box-shadow var(--transition);

    overflow: hidden;
}

/* subtle glow */

.container > .card::before {
    content: "";

    position: absolute;

    top: -130px;
    left: 50%;

    width: 260px;
    height: 260px;

    transform: translateX(-50%);

    background:
        radial-gradient(
            circle,
            rgba(77, 163, 255, 0.10),
            transparent 70%
        );

    pointer-events: none;
}

.container > .card:hover {
    transform: translateY(-5px);

    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, 0.09),
            rgba(255, 255, 255, 0.045)
        );

    border-color: var(--border-hover);

    box-shadow: var(--shadow-hover);
}

/* =========================
   IMPORTANT TEXT
========================= */

.important-text {
    position: relative;

    max-width: 850px;

    margin: 0 auto;

    color: rgba(255, 255, 255, 0.88);

    font-size: 1.05rem;

    line-height: 1.7;

    font-weight: 500;

    text-align: center;
}

/* =========================
   ENGINEERING PROFILE
========================= */

.container > .card h2 {
    position: relative;

    margin-bottom: 18px;

    font-size: 1.35rem;

    font-weight: 700;

    letter-spacing: -0.02em;
}

.container > .card p {
    position: relative;

    margin: 7px 0;

    color: var(--text-soft);

    font-size: 0.96rem;

    line-height: 1.6;
}

.container > .card strong {
    color: var(--text);
}

/* =========================
   ACHIEVEMENTS
========================= */

.container > .card ul {
    position: relative;

    width: 100%;
    max-width: 800px;

    margin: 0 auto;

    padding: 0;

    list-style: none;

    display: flex;
    flex-direction: column;

    gap: 9px;

    text-align: center;
}

.container > .card li {
    color: var(--text-soft);

    font-size: 0.94rem;

    line-height: 1.5;
}

.container > .card li::before {
    content: "•";

    margin-right: 8px;

    color: var(--primary);

    font-weight: 800;
}

/* =========================
   PROJECT GRID
========================= */

.grid {
    width: 100%;

    margin-top: 2px;

    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    column-gap: 28px;
    row-gap: 28px;

    align-items: stretch;
}

/* =========================
   GRID CARDS
========================= */

.grid .card {
    position: relative;

    width: 100%;

    min-height: 190px;

    padding: 32px;

    display: flex;
    flex-direction: column;

    justify-content: center;
    align-items: center;

    text-align: center;

    color: var(--text);

    text-decoration: none;

    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, 0.075),
            rgba(255, 255, 255, 0.035)
        );

    border: 1px solid var(--border);

    border-radius: var(--radius);

    box-shadow: var(--shadow);

    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);

    overflow: hidden;

    transition:
        transform 0.3s ease,
        border-color 0.3s ease,
        background 0.3s ease,
        box-shadow 0.3s ease;
}

.grid .card::before {
    content: "";

    position: absolute;

    top: -100px;
    left: 50%;

    width: 220px;
    height: 220px;

    transform: translateX(-50%);

    background:
        radial-gradient(
            circle,
            rgba(77, 163, 255, 0.12),
            transparent 70%
        );

    pointer-events: none;
}

.grid .card:hover {
    transform: translateY(-7px);

    background: var(--glass-hover);

    border-color: var(--border-hover);

    box-shadow: var(--shadow-hover);
}

.card-title {
    position: relative;

    margin-bottom: 9px;

    font-size: 1.2rem;

    font-weight: 700;

    line-height: 1.3;
}

.grid .card > div:last-child {
    position: relative;

    color: var(--text-soft);

    font-size: 0.94rem;

    line-height: 1.6;
}

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

footer {
    width: 100%;

    padding: 34px 24px 28px;

    border-top: 1px solid var(--border);

    display: flex;
    flex-direction: column;

    align-items: center;

    justify-content: center;

    text-align: center;

    background: rgba(0, 0, 0, 0.08);
}

.footer-links {
    display: flex;

    justify-content: center;
    align-items: center;

    flex-wrap: wrap;

    gap: 20px;

    margin-bottom: 13px;
}

.footer-links a {
    color: var(--text-soft);

    text-decoration: none;

    font-size: 0.9rem;

    transition:
        color var(--transition),
        opacity var(--transition);
}

.footer-links a:hover {
    color: var(--primary);

    opacity: 1;
}

footer p {
    color: var(--text-muted);

    font-size: 0.82rem;
}

/* =========================
   TABLET
========================= */

@media (max-width: 800px) {

    .container {
        padding: 55px 20px 65px;
    }

    .hero {
        margin-bottom: 42px;
    }

    .container > .card {
        margin-bottom: 20px;

        padding: 28px;
    }

    .grid {
        grid-template-columns: 1fr;

        max-width: 620px;

        row-gap: 20px;
    }

    .grid .card {
        min-height: 180px;
    }

    footer {
        padding-top: 30px;
    }
}

/* =========================
   MOBILE
========================= */

@media (max-width: 500px) {

    .container {
        padding: 42px 15px 50px;
    }

    .hero {
        margin-bottom: 34px;
    }

    .hero h1 {
        font-size: 2.35rem;

        letter-spacing: -0.035em;

        margin-bottom: 12px;
    }

    .subtitle {
        font-size: 0.98rem;
    }

    .semi-subtitle {
        font-size: 0.84rem;
    }

    .container > .card {
        margin-bottom: 16px;

        padding: 25px 20px;

        border-radius: 19px;
    }

    .important-text {
        font-size: 0.96rem;

        line-height: 1.65;
    }

    .container > .card h2 {
        font-size: 1.2rem;

        margin-bottom: 15px;
    }

    .container > .card p {
        font-size: 0.9rem;

        margin: 6px 0;
    }

    .container > .card ul {
        gap: 8px;
    }

    .container > .card li {
        font-size: 0.86rem;
    }

    .grid {
        row-gap: 16px;
    }

    .grid .card {
        min-height: 165px;

        padding: 24px 20px;

        border-radius: 19px;
    }

    .card-title {
        font-size: 1.08rem;
    }

    .grid .card > div:last-child {
        font-size: 0.88rem;
    }

    footer {
        padding: 28px 15px 22px;
    }

    .footer-links {
        gap: 14px;
        margin-bottom: 11px;
    }

    .footer-links a {
        font-size: 0.85rem;
    }

    footer p {
        font-size: 0.78rem;
    }
}

/* =========================
   ACCESSIBILITY
========================= */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition: none !important;
    }
}