/* =========================================================
   EXCELL PORTFOLIO
   Main Stylesheet
========================================================= */


/* =========================================================
   RESET
========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Inter", sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    transition:
        background-color 0.35s ease,
        color 0.35s ease;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font-family: inherit;
}

img {
    max-width: 100%;
    display: block;
}


/* =========================================================
   VARIABLES
========================================================= */

:root {
    --bg: #090909;
    --bg-soft: #111111;
    --card: #151515;

    --text: #f5f5f5;
    --muted: #888888;

    --border: #262626;

    --accent: #7c5cff;

    --max-width: 1200px;

    --transition: 0.3s ease;
}


/* =========================================================
   LIGHT MODE
========================================================= */

body.light-mode {
    --bg: #f5f5f5;
    --bg-soft: #ffffff;
    --card: #ffffff;

    --text: #111111;
    --muted: #666666;

    --border: #dddddd;

    --accent: #6c4cff;
}


/* =========================================================
   GLOBAL
========================================================= */

.container {
    width: min(
        calc(100% - 48px),
        var(--max-width)
    );

    margin: 0 auto;
}

.section {
    padding: 120px 0;
}

.section-dark {
    background: var(--bg-soft);
}

.eyebrow {
    font-family: "DM Mono", monospace;
    font-size: 10px;
    letter-spacing: 2px;
    color: var(--muted);
    margin-bottom: 18px;
}

.section-heading {
    margin-bottom: 60px;
}

.section-heading h2 {
    font-size: clamp(42px, 6vw, 72px);
    line-height: 0.98;
    letter-spacing: -3px;
    font-weight: 600;
}

.section-heading h2 span,
.hero h1 span,
.contact-heading h2 span,
.github-content h2 span {
    color: var(--accent);
}

.section-description {
    max-width: 620px;
    margin-top: 24px;

    color: var(--muted);

    font-size: 15px;
    line-height: 1.8;
}


/* =========================================================
   BUTTONS
========================================================= */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 50px;
    padding: 0 24px;

    border: 1px solid var(--border);

    font-family: "DM Mono", monospace;
    font-size: 10px;
    letter-spacing: 1px;

    transition:
        transform var(--transition),
        background var(--transition),
        color var(--transition),
        border-color var(--transition);
}

.btn:hover {
    transform: translateY(-3px);
}

.btn-primary {
    background: var(--text);
    color: var(--bg);
    border-color: var(--text);
}

.btn-primary:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: #ffffff;
}

.btn-secondary {
    background: transparent;
    color: var(--text);
}

.btn-secondary:hover {
    background: var(--text);
    color: var(--bg);
    border-color: var(--text);
}


/* =========================================================
   NAVBAR
========================================================= */

.navbar {
    position: fixed;

    top: 0;
    left: 0;

    width: 100%;

    z-index: 1000;

    border-bottom: 1px solid transparent;

    background: rgba(9, 9, 9, 0.75);

    backdrop-filter: blur(15px);

    transition:
        background var(--transition),
        border-color var(--transition);
}

body.light-mode .navbar {
    background: rgba(245, 245, 245, 0.8);
}

.navbar.scrolled {
    border-color: var(--border);
}

.nav-container {
    min-height: 78px;

    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-family: "DM Mono", monospace;

    font-size: 16px;
    font-weight: 500;

    letter-spacing: -0.5px;
}

.logo span {
    color: var(--accent);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-menu a {
    position: relative;

    font-family: "DM Mono", monospace;
    font-size: 10px;
    letter-spacing: 1px;

    color: var(--muted);

    transition: color var(--transition);
}

.nav-menu a::after {
    content: "";

    position: absolute;

    left: 0;
    bottom: -8px;

    width: 0;
    height: 1px;

    background: var(--accent);

    transition: width var(--transition);
}

.nav-menu a:hover {
    color: var(--text);
}

.nav-menu a:hover::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.theme-btn,
.menu-btn {
    width: 38px;
    height: 38px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: transparent;
    color: var(--text);

    border: 1px solid var(--border);

    cursor: pointer;

    transition: var(--transition);
}

.theme-btn:hover,
.menu-btn:hover {
    background: var(--text);
    color: var(--bg);
    border-color: var(--text);
}

.menu-btn {
    display: none;
}


/* =========================================================
   HERO
========================================================= */

.hero {
    min-height: 100vh;

    padding-top: 150px;
    padding-bottom: 100px;

    display: flex;
    align-items: center;

    position: relative;
}

.hero::before {
    content: "";

    position: absolute;

    width: 500px;
    height: 500px;

    right: -250px;
    top: 20%;

    background: var(--accent);

    opacity: 0.06;

    filter: blur(100px);

    border-radius: 50%;

    pointer-events: none;
}

.hero-container {
    display: grid;

    grid-template-columns:
        minmax(0, 1.2fr)
        minmax(300px, 0.8fr);

    gap: 80px;

    align-items: center;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero h1 {
    max-width: 850px;

    font-size: clamp(55px, 8vw, 105px);

    line-height: 0.9;

    letter-spacing: -6px;

    font-weight: 600;

    margin-bottom: 28px;
}

.hero-status {
    display: inline-flex;
    align-items: center;

    gap: 9px;

    margin-bottom: 25px;

    font-family: "DM Mono", monospace;
    font-size: 9px;
    letter-spacing: 1.2px;

    color: var(--muted);
}

.status-dot {
    width: 7px;
    height: 7px;

    border-radius: 50%;

    background: #5cff9d;

    box-shadow: 0 0 10px rgba(92, 255, 157, 0.5);
}

.hero h2 {
    font-size: clamp(25px, 3vw, 38px);

    line-height: 1.15;

    letter-spacing: -1.5px;

    font-weight: 500;

    margin-bottom: 25px;
}

.hero-description {
    max-width: 620px;

    color: var(--muted);

    font-size: 15px;

    line-height: 1.8;

    margin-bottom: 35px;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;

    gap: 12px;

    margin-bottom: 35px;
}

.hero-meta {
    display: flex;
    align-items: center;

    gap: 10px;

    font-family: "DM Mono", monospace;

    font-size: 9px;

    letter-spacing: 1px;

    color: var(--muted);
}

.hero-image-wrapper {
    position: relative;

    width: 100%;
    max-width: 420px;

    justify-self: end;
}

.hero-image-frame {
    position: relative;

    width: 100%;

    aspect-ratio: 4 / 5;

    overflow: hidden;

    border: 1px solid var(--border);

    background: var(--bg-soft);
}

.hero-image {
    width: 100%;
    height: 100%;

    object-fit: cover;

    filter: grayscale(100%);

    transition:
        filter 0.5s ease,
        transform 0.5s ease;
}

.hero-image-frame:hover .hero-image {
    filter: grayscale(0%);
    transform: scale(1.03);
}

.hero-image-label {
    position: absolute;

    right: -1px;
    bottom: -38px;

    display: flex;
    gap: 15px;

    font-family: "DM Mono", monospace;

    font-size: 9px;

    letter-spacing: 1px;

    color: var(--muted);
}

.hero-image-label span {
    color: var(--accent);
}


/* =========================================================
   ABOUT
========================================================= */

.about-grid {
    display: grid;

    grid-template-columns:
        minmax(0, 1.4fr)
        minmax(280px, 0.6fr);

    gap: 100px;
}

.about-main {
    max-width: 700px;
}

.about-large {
    font-size: clamp(25px, 3vw, 36px);

    line-height: 1.3;

    letter-spacing: -1px;

    margin-bottom: 30px;

    color: var(--text);
}

.about-main > p:not(.about-large) {
    color: var(--muted);

    font-size: 15px;

    line-height: 1.9;

    margin-bottom: 20px;
}

.about-side {
    border-top: 1px solid var(--border);
}

.about-item {
    padding: 25px 0;

    border-bottom: 1px solid var(--border);
}

.about-item span {
    display: block;

    margin-bottom: 10px;

    font-family: "DM Mono", monospace;

    font-size: 9px;

    color: var(--accent);
}

.about-item strong {
    display: block;

    font-family: "DM Mono", monospace;

    font-size: 11px;

    letter-spacing: 1px;

    margin-bottom: 8px;
}

.about-item p {
    color: var(--muted);

    font-size: 13px;
}


/* =========================================================
   SKILLS
========================================================= */

.skills-grid {
    display: grid;

    grid-template-columns: repeat(4, 1fr);

    border-top: 1px solid var(--border);
    border-left: 1px solid var(--border);
}

.skill-card {
    position: relative;

    min-height: 280px;

    padding: 30px;

    border-right: 1px solid var(--border);
    border-bottom: 1px solid var(--border);

    background: transparent;

    transition:
        background var(--transition),
        transform var(--transition);
}

.skill-card:hover {
    background: var(--card);

    transform: translateY(-5px);
}

.skill-number {
    font-family: "DM Mono", monospace;

    font-size: 10px;

    color: var(--accent);

    margin-bottom: 70px;
}

.skill-card h3 {
    font-size: 22px;

    letter-spacing: -0.8px;

    margin-bottom: 22px;
}

.skill-list {
    display: flex;

    flex-wrap: wrap;

    gap: 8px;
}

.skill-list span {
    padding: 7px 10px;

    border: 1px solid var(--border);

    font-family: "DM Mono", monospace;

    font-size: 8px;

    color: var(--muted);
}


/* =========================================================
   PROJECT FILTER
========================================================= */

.project-filter {
    display: flex;

    flex-wrap: wrap;

    gap: 10px;

    margin-bottom: 45px;

    border-bottom: 1px solid var(--border);

    padding-bottom: 25px;
}

.filter-btn {
    padding: 10px 16px;

    background: transparent;

    border: 1px solid var(--border);

    color: var(--muted);

    font-family: "DM Mono", monospace;

    font-size: 10px;

    letter-spacing: 0.5px;

    cursor: pointer;

    transition: var(--transition);
}

.filter-btn:hover {
    color: var(--text);

    border-color: var(--text);
}

.filter-btn.active {
    background: var(--text);

    color: var(--bg);

    border-color: var(--text);
}

.project-card.hidden {
    display: none;
}

.project-card.project-show {
    animation: projectAppear 0.45s ease forwards;
}

@keyframes projectAppear {
    from {
        opacity: 0;
        transform: translateY(15px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* =========================================================
   PROJECT GRID
========================================================= */

.projects-grid {
    display: grid;

    grid-template-columns: repeat(2, 1fr);

    gap: 20px;
}

.project-card {
    overflow: hidden;

    border: 1px solid var(--border);

    background: var(--card);

    transition:
        transform var(--transition),
        border-color var(--transition);
}

.project-card:hover {
    transform: translateY(-7px);

    border-color: #444;
}

.project-thumbnail {
    height: 230px;

    position: relative;

    overflow: hidden;

    display: flex;

    align-items: center;
    justify-content: center;

    background: var(--bg-soft);

    border-bottom: 1px solid var(--border);
}

.project-number {
    position: absolute;

    top: 20px;
    right: 22px;

    font-family: "DM Mono", monospace;

    font-size: 11px;

    color: var(--muted);

    z-index: 5;
}


/* =========================================================
   PROJECT VISUAL — LIFE OS
========================================================= */

.thumbnail-visual {
    width: 75%;

    max-width: 330px;
}

.terminal {
    background: #0c0c0c;

    border: 1px solid #292929;

    border-radius: 8px;

    overflow: hidden;

    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

.terminal-top {
    height: 28px;

    display: flex;

    align-items: center;

    gap: 6px;

    padding-left: 12px;

    border-bottom: 1px solid #292929;
}

.terminal-top span {
    width: 6px;
    height: 6px;

    border-radius: 50%;

    background: #555;
}

.terminal-code {
    padding: 20px;

    display: flex;

    flex-direction: column;

    gap: 8px;

    font-family: "DM Mono", monospace;

    font-size: 9px;

    color: #aaa;
}


/* =========================================================
   PROJECT VISUAL — FINANCE
========================================================= */

.project-visual-finance {
    width: 70%;

    max-width: 300px;
}

.finance-card {
    padding: 25px;

    border: 1px solid var(--border);

    border-radius: 10px;

    background: var(--card);

    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
}

.finance-card small {
    display: block;

    font-family: "DM Mono", monospace;

    font-size: 8px;

    letter-spacing: 1px;

    color: var(--muted);

    margin-bottom: 12px;
}

.finance-card strong {
    font-size: 25px;

    font-weight: 600;
}

.finance-line {
    height: 1px;

    background: var(--border);

    margin: 20px 0;
}

.finance-stats {
    display: flex;

    justify-content: space-between;

    font-family: "DM Mono", monospace;

    font-size: 8px;

    color: var(--muted);
}


/* =========================================================
   PROJECT VISUAL — PORTFOLIO
========================================================= */

.browser-window {
    width: 75%;

    max-width: 350px;

    background: var(--card);

    border: 1px solid var(--border);

    border-radius: 8px;

    overflow: hidden;

    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.browser-top {
    height: 28px;

    display: flex;

    align-items: center;

    gap: 6px;

    padding-left: 12px;

    border-bottom: 1px solid var(--border);
}

.browser-top span {
    width: 6px;
    height: 6px;

    border-radius: 50%;

    background: var(--muted);
}

.browser-content {
    min-height: 145px;

    padding: 25px;
}

.browser-title {
    font-family: "DM Mono", monospace;

    font-size: 18px;

    font-weight: 500;

    margin-bottom: 15px;
}

.browser-line {
    width: 80%;
    height: 5px;

    background: var(--border);

    margin-bottom: 8px;
}

.browser-line.short {
    width: 50%;
}

.browser-button {
    display: inline-block;

    margin-top: 18px;

    padding: 7px 12px;

    border: 1px solid var(--border);

    font-family: "DM Mono", monospace;

    font-size: 8px;
}


/* =========================================================
   PROJECT VISUAL — LANDING PAGE
========================================================= */

.landing-visual {
    width: 75%;

    max-width: 320px;
}

.landing-title {
    font-size: 27px;

    line-height: 0.95;

    font-weight: 700;

    letter-spacing: -1px;
}

.landing-button {
    display: inline-block;

    margin-top: 20px;

    padding: 9px 14px;

    border: 1px solid var(--text);

    font-family: "DM Mono", monospace;

    font-size: 8px;

    letter-spacing: 0.5px;
}


/* =========================================================
   PROJECT CONTENT
========================================================= */

.project-content {
    padding: 30px;
}

.project-category {
    font-family: "DM Mono", monospace;

    font-size: 9px;

    letter-spacing: 1px;

    color: var(--accent);

    margin-bottom: 12px;
}

.project-content h3 {
    font-size: 25px;

    letter-spacing: -1px;

    margin-bottom: 12px;
}

.project-content > p:not(.project-category) {
    color: var(--muted);

    font-size: 13px;

    line-height: 1.8;

    margin-bottom: 22px;
}

.project-tech {
    display: flex;

    flex-wrap: wrap;

    gap: 7px;

    margin-bottom: 25px;
}

.project-tech span {
    padding: 6px 9px;

    border: 1px solid var(--border);

    color: var(--muted);

    font-family: "DM Mono", monospace;

    font-size: 8px;
}

.project-link {
    font-family: "DM Mono", monospace;

    font-size: 9px;

    letter-spacing: 0.5px;

    color: var(--text);

    transition: color var(--transition);
}

.project-link:hover {
    color: var(--accent);
}


/* =========================================================
   VIEW ALL PROJECTS
========================================================= */

.view-all-projects {
    width: 100%;

    display: flex;

    justify-content: center;

    align-items: center;

    margin-top: 50px;
}


/* =========================================================
   PROJECT STATS
========================================================= */

.stats-section {
    background: var(--bg);
}

.stats-grid {
    display: grid;

    grid-template-columns: repeat(4, 1fr);

    border-top: 1px solid var(--border);

    border-left: 1px solid var(--border);
}

.stat-card {
    min-height: 210px;

    padding: 35px;

    display: flex;

    flex-direction: column;

    justify-content: space-between;

    border-right: 1px solid var(--border);

    border-bottom: 1px solid var(--border);

    transition:
        background var(--transition),
        transform var(--transition);
}

.stat-card:hover {
    background: var(--card);

    transform: translateY(-5px);
}

.stat-card strong {
    font-size: clamp(45px, 5vw, 70px);

    line-height: 1;

    letter-spacing: -4px;

    font-weight: 600;

    color: var(--text);
}

.stat-card span {
    font-family: "DM Mono", monospace;

    font-size: 9px;

    letter-spacing: 1px;

    color: var(--muted);
}


/* =========================================================
   GITHUB
========================================================= */

.github-section {
    background: var(--bg-soft);
}

.github-wrapper {
    display: grid;

    grid-template-columns:
        minmax(0, 0.9fr)
        minmax(0, 1.1fr);

    gap: 80px;

    align-items: center;
}

.github-content h2 {
    font-size: clamp(45px, 6vw, 72px);

    line-height: 0.95;

    letter-spacing: -3px;

    font-weight: 600;

    margin-bottom: 25px;
}

.github-content > p:not(.eyebrow) {
    max-width: 520px;

    color: var(--muted);

    font-size: 14px;

    line-height: 1.8;

    margin-bottom: 30px;
}

.github-terminal {
    background: #0c0c0c;

    border: 1px solid #292929;

    border-radius: 10px;

    overflow: hidden;

    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
}

.github-terminal-top {
    height: 35px;

    display: flex;

    align-items: center;

    gap: 7px;

    padding-left: 15px;

    border-bottom: 1px solid #292929;
}

.github-terminal-top span {
    width: 7px;
    height: 7px;

    border-radius: 50%;

    background: #555;
}

.github-terminal-body {
    padding: 30px;

    font-family: "DM Mono", monospace;

    font-size: 11px;

    line-height: 2;

    color: #aaa;
}

.github-line {
    min-height: 22px;
}

.github-green {
    color: #7cffaa;
}


/* =========================================================
   SERVICES
========================================================= */

.services-grid {
    display: grid;

    grid-template-columns: repeat(2, 1fr);

    border-top: 1px solid var(--border);

    border-left: 1px solid var(--border);
}

.service-card {
    position: relative;

    min-height: 330px;

    padding: 35px;

    border-right: 1px solid var(--border);

    border-bottom: 1px solid var(--border);

    transition:
        background var(--transition),
        transform var(--transition);
}

.service-card:hover {
    background: var(--card);

    transform: translateY(-5px);
}

.service-number {
    position: absolute;

    top: 30px;
    right: 30px;

    font-family: "DM Mono", monospace;

    font-size: 10px;

    color: var(--muted);
}

.service-icon {
    width: 55px;
    height: 55px;

    display: flex;

    align-items: center;
    justify-content: center;

    margin-bottom: 55px;

    border: 1px solid var(--border);

    color: var(--accent);

    font-family: "DM Mono", monospace;

    font-size: 10px;

    transition: var(--transition);
}

.service-card:hover .service-icon {
    background: var(--accent);

    border-color: var(--accent);

    color: white;
}

.service-card h3 {
    font-size: 24px;

    letter-spacing: -1px;

    margin-bottom: 13px;
}

.service-card > p {
    max-width: 500px;

    color: var(--muted);

    font-size: 13px;

    line-height: 1.8;

    margin-bottom: 22px;
}

.service-tags {
    display: flex;

    flex-wrap: wrap;

    gap: 7px;
}

.service-tags span {
    padding: 6px 9px;

    border: 1px solid var(--border);

    font-family: "DM Mono", monospace;

    font-size: 8px;

    color: var(--muted);
}


/* =========================================================
   CONTACT
========================================================= */

.contact-section {
    background: var(--bg-soft);
}

.contact-wrapper {
    padding: 80px 0;
}

.contact-heading {
    max-width: 800px;

    margin-bottom: 60px;
}

.contact-heading h2 {
    font-size: clamp(50px, 7vw, 90px);

    line-height: 0.95;

    letter-spacing: -4px;

    font-weight: 600;

    margin-bottom: 25px;
}

.contact-heading > p:not(.eyebrow) {
    max-width: 650px;

    color: var(--muted);

    font-size: 15px;

    line-height: 1.8;
}

.contact-grid {
    display: grid;

    grid-template-columns: repeat(2, 1fr);

    border-top: 1px solid var(--border);

    border-left: 1px solid var(--border);
}

.contact-card {
    min-height: 220px;

    padding: 30px;

    display: flex;

    flex-direction: column;

    justify-content: space-between;

    border-right: 1px solid var(--border);

    border-bottom: 1px solid var(--border);

    transition:
        background var(--transition),
        transform var(--transition);
}

.contact-card:hover {
    background: var(--card);

    transform: translateY(-5px);
}

.contact-card-top {
    display: flex;

    align-items: center;

    justify-content: space-between;
}

.contact-label {
    font-family: "DM Mono", monospace;

    font-size: 9px;

    letter-spacing: 1.5px;

    color: var(--accent);
}

.contact-arrow {
    font-size: 20px;

    color: var(--muted);

    transition:
        color var(--transition),
        transform var(--transition);
}

.contact-card:hover .contact-arrow {
    color: var(--text);

    transform: translate(4px, -4px);
}

.contact-card h3 {
    font-size: 22px;

    letter-spacing: -0.8px;

    margin-top: auto;

    margin-bottom: 8px;

    word-break: break-word;
}

.contact-card p {
    color: var(--muted);

    font-size: 12px;
}


/* =========================================================
   FOOTER
========================================================= */

.footer {
    padding: 55px 0 25px;

    background: var(--bg);

    border-top: 1px solid var(--border);
}

.footer-container {
    display: flex;

    align-items: flex-start;

    justify-content: space-between;

    gap: 40px;

    padding-bottom: 50px;
}

.footer-left p {
    margin-top: 12px;

    color: var(--muted);

    font-size: 12px;
}

.footer-right {
    display: flex;

    gap: 25px;
}

.footer-right a {
    font-family: "DM Mono", monospace;

    font-size: 9px;

    letter-spacing: 1px;

    color: var(--muted);

    transition: color var(--transition);
}

.footer-right a:hover {
    color: var(--text);
}

.footer-bottom {
    padding-top: 20px;

    border-top: 1px solid var(--border);

    display: flex;

    justify-content: space-between;

    gap: 20px;

    font-family: "DM Mono", monospace;

    font-size: 8px;

    letter-spacing: 0.5px;

    color: var(--muted);
}


/* =========================================================
   SCROLL REVEAL
========================================================= */

.reveal {
    opacity: 0;

    transform: translateY(30px);

    transition:
        opacity 0.7s ease,
        transform 0.7s ease;
}

.reveal.active {
    opacity: 1;

    transform: translateY(0);
}


/* =========================================================
   SELECTION
========================================================= */

::selection {
    background: var(--accent);

    color: white;
}


/* =========================================================
   SCROLLBAR
========================================================= */

::-webkit-scrollbar {
    width: 7px;
}

::-webkit-scrollbar-track {
    background: var(--bg);
}

::-webkit-scrollbar-thumb {
    background: var(--border);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent);
}


/* =========================================================
   RESPONSIVE — TABLET
========================================================= */

@media (max-width: 1000px) {

    .section {
        padding: 90px 0;
    }

    .hero-container {
        grid-template-columns: 1fr;

        gap: 60px;
    }

    .hero-image-wrapper {
        justify-self: start;

        max-width: 360px;
    }

    .about-grid {
        grid-template-columns: 1fr;

        gap: 60px;
    }

    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .github-wrapper {
        grid-template-columns: 1fr;

        gap: 50px;
    }

}


/* =========================================================
   RESPONSIVE — MOBILE
========================================================= */

@media (max-width: 700px) {

    .container {
        width: min(
            calc(100% - 32px),
            var(--max-width)
        );
    }

    .section {
        padding: 75px 0;
    }

    .section-heading {
        margin-bottom: 40px;
    }

    .section-heading h2 {
        letter-spacing: -2px;
    }


    /* NAV */

    .nav-container {
        min-height: 70px;
    }

    .nav-menu {
        position: fixed;

        top: 70px;
        left: 16px;
        right: 16px;

        display: flex;

        flex-direction: column;

        align-items: stretch;

        gap: 0;

        padding: 10px;

        background: var(--card);

        border: 1px solid var(--border);

        opacity: 0;

        visibility: hidden;

        transform: translateY(-10px);

        transition:
            opacity var(--transition),
            visibility var(--transition),
            transform var(--transition);
    }

    .nav-menu.active {
        opacity: 1;

        visibility: visible;

        transform: translateY(0);
    }

    .nav-menu a {
        padding: 15px;

        border-bottom: 1px solid var(--border);
    }

    .nav-menu a:last-child {
        border-bottom: none;
    }

    .nav-menu a::after {
        display: none;
    }

    .menu-btn {
        display: flex;
    }


    /* HERO */

    .hero {
        padding-top: 120px;

        min-height: auto;
    }

    .hero h1 {
        font-size: clamp(48px, 15vw, 72px);

        letter-spacing: -4px;
    }

    .hero h2 {
        font-size: 25px;
    }

    .hero-description {
        font-size: 14px;
    }

    .hero-meta {
        flex-wrap: wrap;
    }

    .hero-image-wrapper {
        max-width: 100%;
    }

    .hero-image-frame {
        aspect-ratio: 1 / 1;
    }


    /* ABOUT */

    .about-large {
        font-size: 25px;
    }


    /* SKILLS */

    .skills-grid {
        grid-template-columns: 1fr;
    }

    .skill-card {
        min-height: 250px;
    }

    .skill-number {
        margin-bottom: 50px;
    }


    /* PROJECTS */

    .project-filter {
        overflow-x: auto;

        flex-wrap: nowrap;

        padding-bottom: 18px;
    }

    .filter-btn {
        flex-shrink: 0;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .project-thumbnail {
        height: 190px;
    }

    .thumbnail-visual,
    .project-visual-finance,
    .browser-window,
    .landing-visual {
        width: 78%;
    }

    .landing-title {
        font-size: 23px;
    }

    .project-content {
        padding: 25px;
    }


    /* STATS */

    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }

    .stat-card {
        min-height: 170px;

        padding: 25px;
    }

    .stat-card strong {
        font-size: 45px;

        letter-spacing: -3px;
    }


    /* GITHUB */

    .github-content h2 {
        font-size: 48px;

        letter-spacing: -2px;
    }

    .github-terminal-body {
        padding: 22px;

        font-size: 9px;
    }


    /* SERVICES */

    .services-grid {
        grid-template-columns: 1fr;
    }

    .service-card {
        min-height: 300px;

        padding: 28px;
    }


    /* CONTACT */

    .contact-wrapper {
        padding: 30px 0;
    }

    .contact-heading h2 {
        font-size: 52px;

        letter-spacing: -3px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .contact-card {
        min-height: 190px;
    }


    /* FOOTER */

    .footer-container {
        flex-direction: column;

        padding-bottom: 35px;
    }

    .footer-right {
        flex-wrap: wrap;
    }

    .footer-bottom {
        flex-direction: column;

        gap: 10px;
    }

}


/* =========================================================
   RESPONSIVE — SMALL PHONE
========================================================= */

@media (max-width: 420px) {

    .hero-buttons {
        flex-direction: column;

        align-items: stretch;
    }

    .hero-buttons .btn {
        width: 100%;
    }

    .hero h1 {
        font-size: 46px;

        letter-spacing: -3px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .stat-card {
        min-height: 150px;
    }

    .contact-heading h2 {
        font-size: 43px;
    }

    .contact-card h3 {
        font-size: 18px;
    }

}


/* =========================================================
   ACCESSIBILITY
========================================================= */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

}