:root {
    --background: #0d1117;
    --surface: #161b22;
    --surface-light: #21262d;
    --text: #c9d1d9;
    --muted: #8b949e;
    --blue: #58a6ff;
    --green: #7ee787;
    --yellow: #d29922;
    --red: #ff7b72;
    --border: #30363d;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

    background-color: var(--background);
    color: var(--text);
    font-family: Consolas, "Courier New", monospace;
    line-height: 1.7;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -3;
    pointer-events: none;

    background:
        radial-gradient(circle at 72% 35%,
            rgba(25, 104, 210, 0.16),
            transparent 42%),
        linear-gradient(90deg,
            #030914 0%,
            #061124 48%,
            #07152b 100%);
}

.home-page::before {
    background-image:
        linear-gradient(90deg,
            rgba(3, 9, 20, 0.42) 0%,
            rgba(3, 9, 20, 0.08) 54%,
            rgba(3, 9, 20, 0.16) 100%),
        url("images/social-preview.png");
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

body::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;

    background:
        radial-gradient(circle at 72% 35%,
            rgba(30, 116, 255, 0.09),
            transparent 38%),
        linear-gradient(90deg,
            rgba(3, 9, 20, 0.96) 0%,
            rgba(5, 12, 25, 0.9) 27%,
            rgba(5, 13, 28, 0.42) 55%,
            rgba(3, 10, 22, 0.18) 100%),
        linear-gradient(180deg,
            rgba(3, 8, 18, 0.16),
            rgba(3, 8, 18, 0.72));

    animation: glow-shift 10s ease-in-out infinite alternate;
}

/* Animated cloud network background */

#network-background {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    pointer-events: none;
    opacity: 0.88;
}

a {
    color: var(--blue);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Header and navigation */

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    padding: 20px 60px;
    background-color: rgba(13, 17, 23, 0.95);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(10px);
}

.site-header::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 100%;
    height: 2px;

    background: linear-gradient(90deg,
            transparent,
            rgba(88, 166, 255, 0.8),
            rgba(126, 231, 135, 0.5),
            transparent);

    opacity: 0.8;
    pointer-events: none;
}

.logo {
    margin: 0;
    color: var(--green);
    font-weight: bold;
}

nav {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
}

.menu-toggle {
    display: none;
    width: 46px;
    height: 42px;
    padding: 10px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    background: rgba(88, 166, 255, 0.08);
    border: 1px solid rgba(88, 166, 255, 0.42);
    border-radius: 8px;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    margin: 0;
    flex: 0 0 2px;
    background: var(--blue);
    border-radius: 2px;
    transition: transform 0.25s ease, opacity 0.2s ease;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Main page layout */

main,
footer {
    width: min(1000px, calc(100% - 40px));
    margin: 0 auto;
}

section {
    padding: 90px 0;
    border-bottom: 1px solid var(--border);
}

.hero {
    min-height: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 80px 0;
}

/* Cloud status dashboard */

.cloud-status {
    padding-top: 30px;
}

.status-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 20px;
    margin-bottom: 25px;
}

.status-header h2 {
    margin-bottom: 0;
}

.online-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 12px;
    color: var(--green);
    background-color: rgba(126, 231, 135, 0.08);
    border: 1px solid rgba(126, 231, 135, 0.35);
    border-radius: 999px;
    font-size: 13px;
    font-weight: bold;
    text-transform: uppercase;
}

.online-dot {
    width: 9px;
    height: 9px;
    background-color: var(--green);
    border-radius: 50%;
    box-shadow: 0 0 12px rgba(126, 231, 135, 0.8);
    animation: status-pulse 2s infinite;
}

.status-in-progress {
    color: var(--yellow);
    background-color: rgba(210, 153, 34, 0.08);
    border-color: rgba(210, 153, 34, 0.35);
}

.status-in-progress .online-dot {
    background-color: var(--yellow);
    box-shadow: 0 0 12px rgba(210, 153, 34, 0.8);
}

.status-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.status-card {
    position: relative;
    overflow: hidden;
    padding: 22px;
    background: rgba(22, 27, 34, 0.88);
    border: 1px solid var(--border);
    border-radius: 10px;
    backdrop-filter: blur(6px);
    transition:
        transform 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.status-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg,
            var(--blue),
            var(--green));
    opacity: 0.65;
}

.status-card:hover {
    transform: translateY(-3px);
    border-color: rgba(88, 166, 255, 0.65);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.28);
}

.status-label {
    display: block;
    margin-bottom: 8px;
    color: var(--muted);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.status-card strong {
    display: block;
    color: var(--blue);
    font-size: 18px;
}

.status-card small {
    display: block;
    margin-top: 5px;
    color: var(--muted);
}

@keyframes status-pulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.55;
        transform: scale(0.8);
    }
}

/* Typography */

.terminal-command {
    color: var(--green);
}

h1 {
    margin: 10px 0;
    color: var(--blue);
    font-size: clamp(50px, 9vw, 90px);
    line-height: 1.05;
}

h2 {
    margin-top: 0;
    font-size: 30px;
}

h3 {
    margin-top: 0;
}

.hero-text {
    max-width: 750px;
    color: var(--muted);
    font-size: 20px;
}

/* Buttons */

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 25px;
}

.primary-button,
.secondary-button {
    display: inline-block;
    padding: 12px 18px;
    border-radius: 6px;
    font-weight: bold;
}

.primary-button,
.secondary-button,
.project-card,
.skill-list span {
    transition:
        transform 0.2s ease,
        border-color 0.2s ease,
        background-color 0.2s ease,
        box-shadow 0.2s ease;
}

.primary-button {
    background-color: var(--green);
    color: var(--background);
}

.primary-button:hover {
    transform: translateY(-2px);
    text-decoration: none;
    box-shadow: 0 8px 22px rgba(126, 231, 135, 0.18);
}

.secondary-button {
    color: var(--blue);
    border: 1px solid var(--blue);
}

.secondary-button:hover {
    transform: translateY(-2px);
    background-color: rgba(88, 166, 255, 0.08);
    text-decoration: none;
}

/* Skill tags */

.skill-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.skill-list span {
    padding: 8px 12px;
    background-color: var(--surface);
    border: 1px solid var(--border);
    border-radius: 6px;
}

.skill-list span:hover {
    transform: translateY(-2px);
    border-color: var(--green);
}

.skill-categories {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.skill-category,
.education-card,
.highlight-grid article {
    padding: 22px;
    background: rgba(22, 27, 34, 0.88);
    border: 1px solid var(--border);
    border-radius: 10px;
}

.skill-category h3 {
    margin-top: 0;
    color: var(--blue);
}

/* Portfolio highlights and education */

.highlight-grid,
.education-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.highlight-grid article {
    display: flex;
    min-height: 130px;
    flex-direction: column;
    justify-content: center;
    text-align: center;
}

.highlight-grid strong {
    color: var(--green);
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.1;
}

.highlight-grid span {
    margin-top: 9px;
    color: var(--muted);
    font-size: 13px;
}

.education-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.education-card h3 {
    margin: 9px 0;
    color: var(--text);
}

.education-card p {
    color: var(--muted);
}

.education-card small,
.education-year {
    color: var(--green);
}

/* Project controls and visuals */

.project-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 24px 0;
}

.filter-button {
    padding: 8px 14px;
    color: var(--muted);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 999px;
    font: inherit;
    font-size: 13px;
    cursor: pointer;
}

.filter-button:hover,
.filter-button:focus-visible,
.filter-button.active {
    color: var(--background);
    background: var(--green);
    border-color: var(--green);
}

.project-card.is-hidden {
    display: none;
}

.project-icon {
    display: grid;
    width: 46px;
    height: 46px;
    margin: 0;
    place-items: center;
    color: var(--blue);
    background: rgba(88, 166, 255, 0.08);
    border: 1px solid rgba(88, 166, 255, 0.35);
    border-radius: 10px;
    font-size: 11px;
    font-weight: bold;
    letter-spacing: 0.05em;
}

.project-visual {
    margin: 32px 0;
}

.project-visual img {
    display: block;
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.3);
}

.project-visual figcaption {
    margin-top: 10px;
    color: var(--muted);
    font-size: 13px;
    text-align: center;
}

/* Accessible scroll reveal */

.reveal-ready {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal-ready.is-visible {
    opacity: 1;
    transform: none;
}

/* Project cards */

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

.project-card {
    display: flex;
    flex-direction: column;
    padding: 24px;
    background-color: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
}

.project-card:hover {
    transform: translateY(-4px);
    border-color: var(--blue);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}

.project-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.project-icon {
    margin: 0;
    color: var(--blue);
    font-size: 11px;
    line-height: 1;
}

.status-badge {
    padding: 4px 9px;
    border: 1px solid var(--border);
    border-radius: 999px;
    font-size: 12px;
    font-weight: bold;
}

.status-progress {
    color: var(--yellow);
    border-color: rgba(210, 153, 34, 0.5);
    background-color: rgba(210, 153, 34, 0.08);
}

.status-complete {
    color: var(--green);
    border-color: rgba(126, 231, 135, 0.5);
    background-color: rgba(126, 231, 135, 0.08);
}

.project-description {
    flex-grow: 1;
    color: var(--muted);
}

.tech-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 18px 0 22px;
}

.tech-list span {
    padding: 4px 8px;
    color: var(--blue);
    background-color: rgba(88, 166, 255, 0.08);
    border: 1px solid rgba(88, 166, 255, 0.25);
    border-radius: 5px;
    font-size: 12px;
}

.project-link {
    margin: auto 0 0;
    color: var(--blue);
    font-weight: bold;
}

.disabled-link {
    color: var(--muted);
}

/* Learning journey */

.journey-box {
    background-color: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 25px;
    margin-top: 25px;
}

.journey-box p {
    margin: 10px 0;
}

.journey-list {
    display: grid;
    gap: 9px;
    margin: 18px 0;
}

.journey-box .journey-item {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) 28px;
    align-items: center;
    gap: 13px;
    margin: 0;
    padding: 10px 12px;
    background: rgba(13, 17, 23, 0.5);
    border: 1px solid rgba(48, 54, 61, 0.85);
    border-radius: 8px;
}

.journey-icon {
    display: grid;
    width: 42px;
    height: 30px;
    place-items: center;
    color: var(--blue);
    background: rgba(88, 166, 255, 0.1);
    border: 1px solid rgba(88, 166, 255, 0.42);
    border-radius: 6px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.04em;
    box-shadow: inset 0 -3px rgba(88, 166, 255, 0.08);
}

.journey-icon.aws {
    color: #ffb84d;
    background: rgba(255, 153, 0, 0.09);
    border-color: rgba(255, 153, 0, 0.48);
    box-shadow: inset 0 -3px rgba(255, 153, 0, 0.08);
}

.status-mark {
    display: grid;
    width: 25px;
    height: 25px;
    place-items: center;
    border-radius: 50%;
    font-weight: 700;
}

.journey-item.complete .status-mark {
    color: #07120a;
    background: var(--green);
    box-shadow: 0 0 13px rgba(126, 231, 135, 0.36);
}

.journey-item.active {
    border-color: rgba(255, 184, 77, 0.55);
}

.journey-item.active .status-mark {
    color: #ffb84d;
    background: rgba(255, 153, 0, 0.12);
    animation: status-pulse 1.8s ease-in-out infinite;
}

.journey-item.pending {
    opacity: 0.65;
}

.journey-item.pending .status-mark {
    color: var(--muted);
    border: 1px solid var(--border);
}

.journey-box hr {
    border: none;
    border-top: 1px solid var(--border);
    margin: 20px 0;
}

/* Typing cursor */

.cursor {
    color: var(--green);
    animation: blink 1s infinite;
}

@keyframes blink {

    0%,
    50% {
        opacity: 1;
    }

    51%,
    100% {
        opacity: 0;
    }
}

/* Terminal hero */

.terminal-window {
    overflow: hidden;
    width: 100%;
    background-color: rgba(22, 27, 34, 0.92);
    border: 1px solid var(--border);
    border-radius: 14px;

    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.45),
        0 0 35px rgba(88, 166, 255, 0.08);

    backdrop-filter: blur(4px);
}

.terminal-bar {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 12px 18px;
    background-color: var(--surface-light);
    border-bottom: 1px solid var(--border);
}

.terminal-bar p {
    margin: 0 0 0 10px;
    color: var(--muted);
    font-size: 14px;
}

.terminal-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--muted);
}

.terminal-dot:nth-child(1) {
    background-color: var(--red);
}

.terminal-dot:nth-child(2) {
    background-color: var(--yellow);
}

.terminal-dot:nth-child(3) {
    background-color: var(--green);
}

.terminal-content {
    padding: 55px;
}

.current-focus {
    margin-top: 28px;
    color: var(--text);
}

.current-focus p {
    margin: 7px 0;
}

.current-focus span {
    color: var(--green);
}

/* Footer */

footer {
    padding: 50px 0;
    color: var(--muted);
}

footer p {
    margin: 4px 0;
}

/* Responsive design */

@media (max-width: 750px) {
    .site-header {
        position: relative;
        align-items: center;
        flex-direction: row;
        padding: 16px 20px;
    }

    .menu-toggle {
        display: flex;
        margin-left: auto;
    }

    #primary-navigation {
        position: absolute;
        top: calc(100% + 1px);
        left: 0;
        right: 0;
        display: grid;
        gap: 0;
        padding: 10px 20px 18px;
        background: rgba(13, 17, 23, 0.98);
        border-bottom: 1px solid var(--border);
        box-shadow: 0 18px 35px rgba(0, 0, 0, 0.35);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-8px);
        transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
    }

    #primary-navigation.is-open {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    #primary-navigation a {
        padding: 12px 4px;
        border-bottom: 1px solid rgba(48, 54, 61, 0.65);
    }

    #primary-navigation a:last-child {
        border-bottom: 0;
    }

    section {
        padding: 60px 0;
    }

    h1 {
        font-size: clamp(42px, 14vw, 64px);
    }

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

    .skill-categories,
    .education-grid,
    .highlight-grid {
        grid-template-columns: 1fr;
    }

    .terminal-content {
        padding: 30px 22px;
    }

    .terminal-bar p {
        display: none;
    }

    .status-header {
        flex-direction: column;
        align-items: flex-start;
    }

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



@keyframes glow-shift {
    from {
        opacity: 0.75;
        transform: scale(1);
    }

    to {
        opacity: 1;
        transform: scale(1.05);
    }
}

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

    body::before,
    body::after,
    .online-dot,
    .cursor {
        animation: none;
    }

    .reveal-ready {
        opacity: 1;
        transform: none;
        transition: none;
    }

    html {
        scroll-behavior: auto;
    }
}

@keyframes status-pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(255, 184, 77, 0.1);
    }

    50% {
        box-shadow: 0 0 0 7px rgba(255, 184, 77, 0.08);
    }
}
