/* =========================
   GLOBAL
========================= */

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    position: relative;

    font-family: Arial, sans-serif;
    color: white;

    background:
        radial-gradient(
            circle at 12% 18%,
            rgba(85, 214, 190, 0.11),
            transparent 28%
        ),
        radial-gradient(
            circle at 88% 32%,
            rgba(62, 199, 255, 0.08),
            transparent 30%
        ),
        radial-gradient(
            circle at 45% 80%,
            rgba(85, 214, 190, 0.04),
            transparent 35%
        ),
        linear-gradient(
            180deg,
            #081117 0%,
            #0a131a 45%,
            #071016 100%
        );

    background-attachment: fixed;
}


/* Faint grid over the global background */

body::before {
    content: "";
    position: fixed;
    inset: 0;

    background-image:
        linear-gradient(
            rgba(255, 255, 255, 0.018) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(255, 255, 255, 0.018) 1px,
            transparent 1px
        );

    background-size: 45px 45px;

    pointer-events: none;
    z-index: 0;
}


/* Keep page content above the grid */

header,
main,
footer {
    position: relative;
    z-index: 1;
}


p {
    font-size: 18px;
    line-height: 1.8;
    color: #a9b4bf;
    max-width: 650px;
}


/* =========================
   HEADER / NAVIGATION
========================= */

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

    padding: 24px 8%;

    background: rgba(8, 17, 23, 0.72);

    border-bottom: 1px solid rgba(255, 255, 255, 0.07);

    backdrop-filter: blur(10px);
}

.site-name {
    font-weight: 600;
    letter-spacing: 0.5px;
}

nav a {
    color: #b8c2cc;
    text-decoration: none;
    margin-left: 30px;

    transition: color 0.2s ease;
}

nav a:hover {
    color: #55d6be;
}


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

.hero {
    min-height: 82vh;

    display: flex;
    align-items: center;
    gap: 60px;

    padding: 40px 8%;

    position: relative;
    overflow: hidden;

    background:
        radial-gradient(
            circle at 82% 35%,
            rgba(85, 214, 190, 0.08),
            transparent 28%
        ),
        linear-gradient(
            180deg,
            rgba(8, 17, 23, 0.70),
            rgba(8, 17, 23, 0.30)
        );
}


/* Large decorative circle */

.hero::after {
    content: "";

    position: absolute;

    right: -120px;
    top: 80px;

    width: 420px;
    height: 420px;

    border: 1px solid rgba(85, 214, 190, 0.18);
    border-radius: 50%;

    box-shadow:
        0 0 80px rgba(85, 214, 190, 0.10),
        inset 0 0 80px rgba(85, 214, 190, 0.05);
}


.hero-text {
    max-width: 760px;

    position: relative;
    z-index: 1;
}


h1 {
    font-size: clamp(64px, 8vw, 110px);

    line-height: 0.95;

    margin: 0 0 24px;

    letter-spacing: -3px;
}


/* Hero subtitle only */

.hero h2 {
    color: #55d6be;

    font-size: 28px;
    line-height: 1.35;
    font-weight: 500;

    max-width: 680px;

    margin-bottom: 24px;
}


/* =========================
   BUTTONS
========================= */

.button {
    display: inline-block;

    padding: 14px 22px;

    margin-right: 12px;
    margin-top: 20px;

    border-radius: 6px;

    text-decoration: none;

    transition:
        transform 0.2s ease,
        background 0.2s ease,
        box-shadow 0.2s ease;
}


.button:hover {
    transform: translateY(-2px);
}


.primary {
    background: #55d6be;
    color: #081015;

    box-shadow:
        0 8px 24px rgba(85, 214, 190, 0.12);
}


.primary:hover {
    background: #6ee6d0;

    box-shadow:
        0 10px 28px rgba(85, 214, 190, 0.18);
}


.secondary {
    border: 1px solid #55d6be;

    color: #55d6be;

    background: rgba(85, 214, 190, 0.02);
}


.secondary:hover {
    background: rgba(85, 214, 190, 0.09);
}


/* =========================
   LIVE STATUS PANEL
========================= */

.status-panel {
    margin-left: auto;

    width: 420px;

    display: flex;
    flex-direction: column;

    gap: 20px;

    position: relative;
    z-index: 1;
}


.status-card {
    background:
        linear-gradient(
            145deg,
            rgba(18, 31, 41, 0.92),
            rgba(9, 18, 25, 0.94)
        );

    border: 1px solid rgba(85, 214, 190, 0.42);

    border-radius: 12px;

    padding: 22px;

    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.30),
        0 0 24px rgba(85, 214, 190, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.03);

    backdrop-filter: blur(8px);

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


.status-card:hover {
    transform: translateY(-3px);

    border-color: rgba(85, 214, 190, 0.78);

    box-shadow:
        0 22px 55px rgba(0, 0, 0, 0.34),
        0 0 30px rgba(85, 214, 190, 0.11);
}


.status-title {
    color: #55d6be;

    font-size: 13px;

    letter-spacing: 1.5px;

    margin-bottom: 18px;

    font-weight: bold;
}


.status-row {
    display: flex;

    justify-content: space-between;

    padding: 9px 0;

    font-family: Consolas, monospace;

    font-size: 14px;

    color: #b8c2cc;

    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}


.status-row:last-child {
    border-bottom: none;
}


.online {
    color: #55d6be;

    text-shadow:
        0 0 8px rgba(85, 214, 190, 0.20);
}


/* =========================
   METRIC CAPACITY BAR
========================= */

.metric-bar {
    width: 100%;
    height: 8px;

    background: rgba(255, 255, 255, 0.08);

    border-radius: 999px;

    overflow: hidden;

    margin-top: -2px;
    margin-bottom: 10px;
}


.metric-bar-fill {
    height: 100%;
    width: 0%;

    background:
        linear-gradient(
            90deg,
            #55d6be,
            #3ec7ff
        );

    border-radius: 999px;

    box-shadow:
        0 0 10px rgba(85, 214, 190, 0.25);

    transition: width 0.4s ease;
}


/* =========================
   SHARED SECTION ELEMENTS
========================= */

.section-heading {
    text-align: center;

    margin-bottom: 50px;
}


.section-heading h2 {
    color: white;

    font-size: 36px;

    margin: 0;

    max-width: none;
}


.section-line {
    width: 55px;
    height: 3px;

    background: #55d6be;

    margin: 14px auto 0;

    border-radius: 3px;

    box-shadow:
        0 0 12px rgba(85, 214, 190, 0.45);
}


.card-grid {
    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 24px;

    max-width: 1200px;

    margin: 0 auto;

    align-items: stretch;
}


/* =========================
   CORE AREAS
========================= */

.what-i-do {
    padding: 90px 8%;

    background:
        radial-gradient(
            circle at top left,
            rgba(85, 214, 190, 0.10),
            transparent 34%
        ),
        linear-gradient(
            180deg,
            rgba(13, 24, 32, 0.78),
            rgba(11, 21, 29, 0.70)
        );

    border-top: 1px solid rgba(255, 255, 255, 0.06);
}


.info-card {
    background:
        linear-gradient(
            145deg,
            rgba(19, 34, 44, 0.94),
            rgba(11, 22, 30, 0.94)
        );

    border: 1px solid rgba(85, 214, 190, 0.48);

    border-radius: 12px;

    padding: 30px;

    box-shadow:
        0 14px 32px rgba(0, 0, 0, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.03);

    backdrop-filter: blur(5px);

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


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

    border-color: #55d6be;

    box-shadow:
        0 20px 42px rgba(0, 0, 0, 0.32),
        0 0 30px rgba(85, 214, 190, 0.14);
}


.info-card h3 {
    margin-top: 0;
    margin-bottom: 14px;

    font-size: 21px;

    color: white;
}


.info-card p {
    font-size: 16px;

    line-height: 1.7;

    margin: 0;
}


/* =========================
   PERSONAL PROJECTS
========================= */

.projects {
    padding: 90px 8%;

    background:
        radial-gradient(
            circle at bottom right,
            rgba(62, 199, 255, 0.10),
            transparent 34%
        ),
        linear-gradient(
            180deg,
            rgba(8, 17, 23, 0.68),
            rgba(10, 22, 30, 0.78)
        );

    border-top: 1px solid rgba(255, 255, 255, 0.06);
}


.project-card {
    background:
        linear-gradient(
            145deg,
            rgba(17, 31, 41, 0.95),
            rgba(9, 19, 27, 0.96)
        );

    border: 1px solid rgba(85, 214, 190, 0.52);

    border-radius: 12px;

    padding: 30px;

    box-shadow:
        0 14px 32px rgba(0, 0, 0, 0.27),
        inset 0 1px 0 rgba(255, 255, 255, 0.03);

    backdrop-filter: blur(5px);

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


.project-card:hover {
    transform: translateY(-6px);

    border-color: #55d6be;

    box-shadow:
        0 22px 46px rgba(0, 0, 0, 0.34),
        0 0 32px rgba(85, 214, 190, 0.16);
}


.project-card h3 {
    margin-top: 0;
    margin-bottom: 14px;

    font-size: 21px;

    color: white;
}


.project-card p {
    font-size: 16px;

    line-height: 1.7;

    margin-bottom: 24px;
}


.project-tag {
    display: inline-block;

    padding: 6px 10px;

    border-radius: 20px;

    font-size: 12px;

    color: #55d6be;

    background: rgba(85, 214, 190, 0.09);

    border: 1px solid rgba(85, 214, 190, 0.34);
}


/* =========================
   CURRENT FOCUS
========================= */

.current-focus {
    padding: 90px 8%;

    background:
        radial-gradient(
            circle at center,
            rgba(85, 214, 190, 0.08),
            transparent 42%
        ),
        linear-gradient(
            180deg,
            rgba(13, 24, 32, 0.75),
            rgba(7, 16, 22, 0.78)
        );

    border-top: 1px solid rgba(255, 255, 255, 0.06);
}


.focus-grid {
    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 30px;

    max-width: 1200px;

    margin: 0 auto;
}


.focus-item {
    padding: 24px;

    border: 1px solid rgba(85, 214, 190, 0.42);

    border-left: 3px solid #55d6be;

    border-radius: 10px;

    background:
        linear-gradient(
            110deg,
            rgba(85, 214, 190, 0.09),
            rgba(10, 21, 29, 0.72)
        );

    box-shadow:
        0 12px 28px rgba(0, 0, 0, 0.20);

    backdrop-filter: blur(5px);

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


.focus-item:hover {
    transform: translateY(-4px);

    border-color: rgba(85, 214, 190, 0.80);

    border-left-color: #55d6be;

    box-shadow:
        0 18px 38px rgba(0, 0, 0, 0.28),
        0 0 26px rgba(85, 214, 190, 0.12);
}


.focus-item h3 {
    margin: 0 0 12px;

    font-size: 20px;

    color: white;
}


.focus-item p {
    margin: 0;

    font-size: 16px;

    line-height: 1.7;
}


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

footer {
    padding: 32px 8%;

    background: rgba(6, 14, 19, 0.88);

    border-top: 1px solid rgba(255, 255, 255, 0.07);

    backdrop-filter: blur(8px);
}


.footer-content {
    max-width: 1200px;

    margin: 0 auto;

    display: flex;

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

    gap: 30px;
}


.footer-brand span {
    font-weight: 600;

    letter-spacing: 0.5px;

    color: white;
}


.footer-brand p {
    margin: 6px 0 0;

    font-size: 14px;

    color: #7f8d98;
}


.footer-links {
    display: flex;

    gap: 24px;
}


.footer-links a {
    color: #b8c2cc;

    text-decoration: none;

    font-size: 14px;

    transition: color 0.2s ease;
}


.footer-links a:hover {
    color: #55d6be;
}


/* =========================
   TABLET / SMALL DESKTOP
========================= */

@media (max-width: 900px) {

    header {
        padding: 20px 5%;
    }

    nav {
        display: none;
    }

    .hero {
        flex-direction: column;

        align-items: flex-start;

        gap: 40px;

        padding: 70px 5%;

        min-height: auto;
    }

    .hero-text {
        max-width: 100%;
    }

    h1 {
        font-size: clamp(52px, 14vw, 80px);

        letter-spacing: -2px;
    }

    .hero h2 {
        font-size: 24px;
    }

    .status-panel {
        width: 100%;

        margin-left: 0;
    }

    .what-i-do,
    .projects,
    .current-focus {
        padding: 70px 5%;
    }

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

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

        gap: 24px;
    }

    .footer-content {
        flex-direction: column;

        align-items: flex-start;
    }

    .footer-links {
        flex-wrap: wrap;
    }
}


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

@media (max-width: 600px) {

    header {
        padding: 18px 5%;
    }

    .site-name {
        font-size: 15px;
    }

    .hero {
        padding-top: 55px;
        padding-bottom: 55px;
    }

    h1 {
        font-size: 52px;
    }

    .hero h2 {
        font-size: 21px;
    }

    p {
        font-size: 16px;
    }

    .button {
        display: block;

        width: fit-content;

        margin-top: 12px;
    }

    .status-card,
    .info-card,
    .project-card,
    .focus-item {
        padding: 22px;
    }

    .section-heading h2 {
        font-size: 30px;
    }

    footer {
        padding: 28px 5%;
    }
}
.project-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

/* Clickable project cards */

.project-link,
.project-link:visited,
.project-link:hover,
.project-link:active {
    text-decoration: none;
    color: inherit;
    display: flex;
    height: 100%;
}

.project-link .project-card {
    width: 100%;
    height: 100%;
    box-sizing: border-box;
}

/* =========================
   PROJECT DETAIL PAGES
========================= */

.project-page {
    max-width: 1100px;
    margin: 0 auto;
    padding: 70px 8% 100px;
}

.project-page-header {
    margin-top: 24px;
    margin-bottom: 60px;
}

.project-page-header h1 {
    font-size: clamp(52px, 7vw, 86px);
    line-height: 1;
    margin: 18px 0 24px;
}

.project-page-header p {
    font-size: 18px;
    max-width: 720px;
}

.back-link,
.back-link:visited,
.back-link:hover,
.back-link:active {
    color: #55d6be;
    text-decoration: none;
}

.back-link:hover {
    text-decoration: underline;
}

.site-name a,
.site-name a:visited,
.site-name a:hover,
.site-name a:active {
    color: white;
    text-decoration: none;
}

.project-content {
    display: grid;
    gap: 24px;
}

.project-section {
    padding: 30px;

    background: linear-gradient(
        145deg,
        rgba(18, 31, 41, 0.92),
        rgba(9, 18, 25, 0.94)
    );

    border: 1px solid rgba(85, 214, 190, 0.42);
    border-radius: 12px;

    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.24);
}

.project-section h2 {
    margin-top: 0;
    color: white;
    font-size: 24px;
}

.project-section p {
    margin-bottom: 0;
    font-size: 16px;
}