/* =========================================
   SEMAJ MORRIS PORTFOLIO V2
========================================= */


/* =========================================
   ROOT VARIABLES
========================================= */

:root {
    --bg: #07090d;
    --panel: #0d1117;
    --panel-2: #111720;
    --panel-3: #161b25;

    --border: #252b35;
    --border-light: #343b48;

    --text: #f4f7fb;
    --muted: #9ca5b5;

    --purple: #8b5cf6;
    --purple-light: #a78bfa;

    --green: #34d399;

    --max-width: 1180px;
}


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

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

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg);
    color: var(--text);

    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.6;

    overflow-x: hidden;
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}


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

.navbar {
    position: sticky;
    top: 0;

    width: 100%;

    z-index: 1000;

    background: rgba(7, 9, 13, 0.9);

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

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

.navbar.scrolled {
    background: rgba(7, 9, 13, 0.97);

    border-bottom-color: rgba(139, 92, 246, 0.22);

    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.22);
}

.nav-container {
    max-width: var(--max-width);

    min-height: 78px;

    margin: 0 auto;

    padding: 0 28px;

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

.logo,
.footer-logo {
    font-size: 1.3rem;

    font-weight: 900;

    letter-spacing: -0.8px;
}

.logo span,
.footer-logo span {
    color: var(--purple);
}

.nav-links {
    display: flex;

    align-items: center;

    gap: 28px;
}

.nav-links a {
    color: var(--muted);

    font-size: 0.86rem;

    transition: color 0.25s ease;
}

.nav-links a:hover,
.nav-links a.active-link {
    color: var(--purple-light);
}

.resume-nav {
    padding: 9px 16px;

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

    border-radius: 999px;
}

.resume-nav:hover {
    border-color: var(--purple);
}

.mobile-menu-btn {
    display: none;

    background: transparent;

    border: none;

    color: var(--text);

    font-size: 1.5rem;

    cursor: pointer;
}


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

.hero {
    max-width: var(--max-width);

    margin: 0 auto;

    padding: 100px 28px 82px;
}

.hero-container {
    display: grid;

    grid-template-columns: minmax(0, 1.3fr) minmax(320px, 0.7fr);

    align-items: center;

    gap: 64px;
}

.hero-content {
    min-width: 0;
}

.eyebrow,
.section-label {
    color: var(--purple-light);

    font-size: 0.75rem;

    font-weight: 800;

    letter-spacing: 2px;

    margin-bottom: 18px;
}

.hero h1 {
    max-width: 760px;

    margin-bottom: 28px;

    font-size: clamp(3.5rem, 7vw, 5.4rem);

    line-height: 0.98;

    letter-spacing: -4px;
}

.hero h1 span,
.section h2 span,
.contact-section h2 span,
.about-heading h2 span {
    color: var(--purple);
}

.hero-description {
    max-width: 660px;

    margin-bottom: 30px;

    color: var(--muted);

    font-size: 1.05rem;

    line-height: 1.8;
}

.hero-buttons {
    display: flex;

    flex-wrap: wrap;

    gap: 12px;
}


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

.primary-btn,
.secondary-btn {
    min-height: 46px;

    padding: 12px 19px;

    display: inline-flex;

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

    border-radius: 10px;

    font-size: 0.84rem;

    font-weight: 800;

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

.primary-btn {
    background: var(--purple);

    color: #ffffff;
}

.primary-btn:hover {
    background: #7c3aed;

    transform: translateY(-2px);
}

.secondary-btn {
    border: 1px solid var(--border);

    color: var(--text);
}

.secondary-btn:hover {
    color: var(--purple-light);

    border-color: var(--purple);

    transform: translateY(-2px);
}


/* =========================================
   DEVELOPER CARD
========================================= */

.developer-card {
    min-width: 0;

    padding: 24px;

    background: var(--panel);

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

    border-radius: 22px;

    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.28);

    transform: rotate(2deg);
}

.code-window-top {
    display: flex;

    gap: 7px;

    margin-bottom: 22px;
}

.code-window-top span {
    width: 9px;
    height: 9px;

    border-radius: 50%;

    background: #586170;
}

.code-content {
    color: #aab3c2;

    font-family: "Courier New", monospace;

    font-size: 0.82rem;

    line-height: 1.9;
}

.code-content p {
    margin: 0;
}

.indent {
    padding-left: 20px;
}

.double-indent {
    padding-left: 40px;
}

.code-purple {
    color: var(--purple-light);
}

.code-green {
    color: var(--green);
}


/* =========================================
   STATS
========================================= */

.stats-section {
    max-width: var(--max-width);

    margin: 0 auto;

    padding: 0 28px 90px;
}

.stats-container {
    display: grid;

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

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

.stat {
    padding: 28px 15px;

    text-align: center;

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

.stat:last-child {
    border-right: none;
}

.stat h2 {
    margin-bottom: 4px;

    font-size: 1.8rem;
}

.stat p {
    color: var(--muted);

    font-size: 0.67rem;

    font-weight: 700;

    letter-spacing: 1.4px;
}


/* =========================================
   GENERAL SECTIONS
========================================= */

.section {
    max-width: var(--max-width);

    margin: 0 auto;

    padding: 90px 28px;
}

.section-heading {
    display: flex;

    align-items: flex-end;
    justify-content: space-between;

    gap: 50px;

    margin-bottom: 38px;
}

.section-heading h2,
.about-heading h2 {
    font-size: clamp(2.4rem, 5vw, 3.4rem);

    line-height: 1.05;

    letter-spacing: -2px;
}

.section-description {
    max-width: 430px;

    color: var(--muted);

    font-size: 0.9rem;

    line-height: 1.7;
}


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

.projects-grid {
    display: grid;

    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);

    gap: 22px;
}

.project-card {
    min-width: 0;

    overflow: hidden;

    background: var(--panel);

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

    border-radius: 22px;

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

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

    border-color: #3d4655;
}

.featured-project {
    grid-row: span 2;
}


/* =========================================
   REAL PROJECT SCREENSHOTS
========================================= */

.project-preview {
    width: 100%;

    padding: 24px;

    background:
        radial-gradient(
            circle at top left,
            rgba(139, 92, 246, 0.15),
            transparent 35%
        ),
        var(--panel-3);
}

.project-browser {
    width: 100%;
    max-width: 100%;

    overflow: hidden;

    background: #0b0e13;

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

    border-radius: 12px;

    box-shadow: 0 22px 50px rgba(0, 0, 0, 0.35);
}

.project-browser-top {
    width: 100%;

    min-height: 40px;

    padding: 0 14px;

    display: flex;

    align-items: center;

    gap: 14px;

    background: #0e1218;

    border-bottom: 1px solid #262d38;
}

.browser-dots {
    display: flex;

    gap: 5px;

    flex-shrink: 0;
}

.browser-dots span {
    width: 7px;
    height: 7px;

    border-radius: 50%;

    background: #4e5866;
}

.browser-address {
    min-width: 0;

    overflow: hidden;

    color: #7f8998;

    font-size: 0.7rem;

    white-space: nowrap;

    text-overflow: ellipsis;
}

.project-screenshot {
    width: 100%;

    height: auto;

    display: block;

    object-fit: contain;
}


/* IMPORTANT:
   keep screenshots natural size.
   no forced aspect ratio.
*/

.featured-project .project-screenshot,
.project-card:not(.featured-project) .project-screenshot {
    width: 100%;

    height: auto;

    aspect-ratio: auto;

    object-fit: contain;
}


/* =========================================
   PROJECT TEXT
========================================= */

.project-content,
.coming-project-content {
    padding: 27px;
}

.project-title-row {
    display: flex;

    justify-content: space-between;

    align-items: flex-start;

    gap: 20px;
}

.project-number,
.skill-number,
.leadership-number {
    margin-bottom: 7px;

    color: var(--purple-light);

    font-size: 0.65rem;

    font-weight: 800;

    letter-spacing: 1.5px;
}

.project-card h3 {
    margin-bottom: 12px;

    font-size: 1.45rem;
}

.project-content > p,
.coming-project-content > p {
    margin-bottom: 14px;

    color: var(--muted);

    font-size: 0.86rem;

    line-height: 1.75;
}

.project-arrow {
    color: var(--purple-light);

    font-size: 1.4rem;
}

.tech-tags {
    display: flex;

    flex-wrap: wrap;

    gap: 7px;

    margin-top: 18px;
}

.tech-tags span {
    padding: 6px 9px;

    background: #181e27;

    border: 1px solid #242d39;

    border-radius: 999px;

    color: #aab3c1;

    font-size: 0.65rem;
}

.project-links {
    display: flex;

    flex-wrap: wrap;

    gap: 20px;

    margin-top: 22px;
}

.project-links a {
    color: var(--purple-light);

    font-size: 0.78rem;

    font-weight: 800;
}

.project-links a:hover {
    color: #ffffff;
}


/* =========================================
   COMING PROJECT
========================================= */

.coming-project {
    display: flex;

    align-items: center;

    background:
        radial-gradient(
            circle at top left,
            rgba(139, 92, 246, 0.14),
            transparent 40%
        ),
        var(--panel);
}

.coming-badge,
.achievement {
    display: inline-block;

    margin-bottom: 17px;

    padding: 6px 10px;

    background: rgba(139, 92, 246, 0.12);

    border: 1px solid rgba(139, 92, 246, 0.32);

    border-radius: 999px;

    color: var(--purple-light);

    font-size: 0.64rem;

    font-weight: 800;

    letter-spacing: 0.8px;
}


/* =========================================
   ABOUT
========================================= */

.about-section {
    border-top: 1px solid var(--border);
}

.about-grid {
    display: grid;

    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);

    gap: 90px;
}

.about-copy p {
    margin-bottom: 18px;

    color: var(--muted);

    font-size: 0.95rem;

    line-height: 1.9;
}


/* =========================================
   SKILLS
========================================= */

.skills-section {
    border-top: 1px solid var(--border);
}

.skills-grid {
    display: grid;

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

    gap: 18px;
}

.skill-group {
    padding: 25px;

    background: var(--panel);

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

    border-radius: 18px;
}

.skill-group h3 {
    margin-bottom: 20px;

    font-size: 1.1rem;
}

.skill-list {
    display: flex;

    flex-wrap: wrap;

    gap: 8px;
}

.skill-list span {
    padding: 7px 10px;

    background: #171d26;

    border: 1px solid #252e39;

    border-radius: 8px;

    color: #aeb6c2;

    font-size: 0.72rem;
}


/* =========================================
   EXPERIENCE
========================================= */

.experience-section {
    border-top: 1px solid var(--border);
}

.experience-list {
    border-top: 1px solid var(--border);
}

.experience-item {
    display: grid;

    grid-template-columns: 120px minmax(0, 1fr) 170px;

    gap: 35px;

    padding: 32px 0;

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

.experience-year {
    color: var(--purple-light);

    font-size: 0.78rem;

    font-weight: 800;
}

.experience-main h3 {
    margin-bottom: 4px;

    font-size: 1.2rem;
}

.experience-role {
    margin-bottom: 14px !important;

    color: var(--purple-light) !important;

    font-weight: 700;
}

.experience-main p {
    margin-bottom: 10px;

    color: var(--muted);

    font-size: 0.85rem;

    line-height: 1.75;
}

.experience-location {
    display: flex;

    flex-direction: column;

    align-items: flex-end;

    gap: 5px;

    color: #818b99;

    font-size: 0.72rem;

    text-align: right;
}


/* =========================================
   LEADERSHIP
========================================= */

.leadership-section {
    border-top: 1px solid var(--border);
}

.leadership-grid {
    display: grid;

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

    gap: 14px;
}

.leadership-card {
    padding: 21px;

    background: var(--panel);

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

    border-radius: 15px;

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

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

    border-color: #3c4553;
}

.leadership-card h3 {
    margin-bottom: 8px;

    font-size: 0.9rem;

    line-height: 1.4;
}

.leadership-card > p:last-child {
    color: var(--muted);

    font-size: 0.72rem;
}


/* =========================================
   CONTACT
========================================= */

.contact-section {
    max-width: var(--max-width);

    margin: 0 auto;

    padding: 105px 28px;

    text-align: center;

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

.contact-container {
    max-width: 730px;

    margin: 0 auto;
}

.contact-section h2 {
    margin-bottom: 20px;

    font-size: clamp(2.6rem, 6vw, 4.2rem);

    line-height: 1;

    letter-spacing: -3px;
}

.contact-description {
    max-width: 570px;

    margin: 0 auto 28px;

    color: var(--muted);

    font-size: 0.92rem;

    line-height: 1.7;
}

.contact-buttons {
    display: flex;

    flex-wrap: wrap;

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

    gap: 12px;
}


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

.footer {
    border-top: 1px solid var(--border);
}

.footer-container {
    max-width: var(--max-width);

    margin: 0 auto;

    padding: 30px 28px;

    display: flex;

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

    gap: 20px;

    color: #7f8997;

    font-size: 0.72rem;
}


/* =========================================
   SCROLL REVEAL
========================================= */

.reveal {
    opacity: 0;

    transform: translateY(28px);

    transition:
        opacity 0.7s ease,
        transform 0.7s ease;
}

.reveal.show {
    opacity: 1;

    transform: translateY(0);
}


/* =========================================
   SCROLLBAR
========================================= */

::-webkit-scrollbar {
    width: 9px;
}

::-webkit-scrollbar-track {
    background: var(--bg);
}

::-webkit-scrollbar-thumb {
    background: #282f3a;

    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #384150;
}


/* =========================================
   TEXT SELECTION
========================================= */

::selection {
    background: var(--purple);

    color: #ffffff;
}


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

@media (max-width: 950px) {

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

        gap: 50px;
    }

    .developer-card {
        max-width: 620px;

        transform: none;
    }

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

    .featured-project {
        grid-row: auto;
    }

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

        gap: 38px;
    }

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

    .experience-item {
        grid-template-columns: 90px minmax(0, 1fr);
    }

    .experience-location {
        grid-column: 2;

        align-items: flex-start;

        margin-top: -15px;

        text-align: left;
    }

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

}


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

@media (max-width: 720px) {

    .nav-container {
        min-height: 70px;

        padding: 0 20px;
    }

    .mobile-menu-btn {
        display: block;
    }

    .nav-links {
        position: absolute;

        top: 70px;
        left: 0;

        width: 100%;

        display: none;

        flex-direction: column;

        align-items: flex-start;

        gap: 18px;

        padding: 18px 20px 24px;

        background: #090c11;

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

    .nav-links.active {
        display: flex;
    }

    .hero {
        padding: 75px 20px 60px;
    }

    .hero h1 {
        font-size: clamp(3rem, 16vw, 4.2rem);

        letter-spacing: -3px;
    }

    .hero-description {
        font-size: 0.95rem;
    }

    .developer-card {
        width: 100%;

        padding: 20px;
    }

    .code-content {
        font-size: 0.72rem;
    }

    .stats-section {
        padding: 0 20px 65px;
    }

    .stats-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .stat {
        border-right: none;

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

    .stat:nth-last-child(-n + 2) {
        border-bottom: none;
    }

    .section {
        padding: 72px 20px;
    }

    .section-heading {
        flex-direction: column;

        align-items: flex-start;

        gap: 18px;
    }

    .section-heading h2,
    .about-heading h2 {
        font-size: 2.5rem;
    }

    .project-preview {
        padding: 14px;
    }

    .project-browser-top {
        min-height: 36px;
    }

    .project-screenshot {
        width: 100%;

        height: auto;

        object-fit: contain;
    }

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

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

        gap: 12px;
    }

    .experience-location {
        grid-column: auto;

        margin-top: 0;

        align-items: flex-start;

        text-align: left;
    }

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

    .contact-section {
        padding: 82px 20px;
    }

    .contact-section h2 {
        font-size: 3rem;

        letter-spacing: -2px;
    }

    .footer-container {
        flex-direction: column;

        padding: 28px 20px;

        text-align: center;
    }

}


/* =========================================
   SMALL PHONES
========================================= */

@media (max-width: 430px) {

    .hero h1 {
        font-size: 3rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .primary-btn,
    .secondary-btn {
        width: 100%;
    }

}


/* =========================================
   REDUCED MOTION
========================================= */

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

    html {
        scroll-behavior: auto;
    }

    .reveal {
        opacity: 1;

        transform: none;

        transition: none;
    }

    .project-card,
    .leadership-card,
    .primary-btn,
    .secondary-btn {
        transition: none;
    }

}
/* =========================================
   ABOUT POLISH
========================================= */

.about-heading h2 {
    max-width: 420px;
}

.about-copy {
    max-width: 680px;
}

.about-copy p:first-child {
    color: var(--text);
    font-size: 1rem;
}


/* =========================================
   SKILLS POLISH
========================================= */

.skill-group {
    position: relative;
    overflow: hidden;

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

.skill-group::before {
    content: "";

    position: absolute;
    top: 0;
    left: 0;

    width: 100%;
    height: 2px;

    background: linear-gradient(
        90deg,
        transparent,
        var(--purple),
        transparent
    );

    opacity: 0;

    transition: opacity 0.25s ease;
}

.skill-group:hover {
    transform: translateY(-4px);
    border-color: #3d4655;
    background: #0f141c;
}

.skill-group:hover::before {
    opacity: 1;
}

.skill-list span {
    transition:
        border-color 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease;
}

.skill-list span:hover {
    color: var(--text);
    border-color: rgba(139, 92, 246, 0.45);
    transform: translateY(-1px);
}
/* =========================================
   EXPERIENCE POLISH
========================================= */

.experience-item {
    position: relative;
    transition:
        background 0.25s ease,
        padding 0.25s ease,
        border-color 0.25s ease;
}

.experience-item::before {
    content: "";
    position: absolute;

    left: 0;
    top: 18px;
    bottom: 18px;

    width: 2px;

    background: linear-gradient(
        to bottom,
        var(--purple),
        var(--purple-light)
    );

    opacity: 0;

    transition: opacity 0.25s ease;
}

.experience-item:hover {
    background: rgba(255, 255, 255, 0.015);
    padding-left: 20px;
    padding-right: 20px;
}

.experience-item:hover::before {
    opacity: 1;
}

.experience-main h3 {
    transition: color 0.2s ease;
}

.experience-item:hover .experience-main h3 {
    color: var(--purple-light);
}

.experience-role {
    color: var(--purple-light);
    font-weight: 600;
}

.achievement {
    display: inline-flex;
    align-items: center;

    margin-top: 12px;
    padding: 7px 12px;

    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 999px;

    background: rgba(139, 92, 246, 0.07);

    color: var(--purple-light);

    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.experience-location span {
    transition: color 0.2s ease;
}

.experience-item:hover .experience-location span:first-child {
    color: var(--text);
}


/* Keep hover movement clean on phones */
@media (max-width: 720px) {

    .experience-item:hover {
        padding-left: 0;
        padding-right: 0;
    }

    .experience-item::before {
        display: none;
    }

}
/* =========================================
   LEADERSHIP POLISH
========================================= */

.leadership-card {
    position: relative;
    overflow: hidden;

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

.leadership-card::after {
    content: "";

    position: absolute;

    width: 90px;
    height: 90px;

    right: -45px;
    bottom: -45px;

    border-radius: 50%;

    background: rgba(139, 92, 246, 0.06);

    transition:
        transform 0.3s ease,
        background 0.3s ease;
}

.leadership-card:hover {
    transform: translateY(-4px);

    border-color: #3d4655;

    background: #0f141c;
}

.leadership-card:hover::after {
    transform: scale(1.45);

    background: rgba(139, 92, 246, 0.11);
}

.leadership-number,
.leadership-card h3,
.leadership-card p {
    position: relative;
    z-index: 1;
}

.leadership-card h3 {
    transition: color 0.2s ease;
}

.leadership-card:hover h3 {
    color: var(--purple-light);
}
/* =========================================
   CONTACT + FOOTER POLISH
========================================= */

.contact-section {
    position: relative;
    overflow: hidden;
}

.contact-section::before {
    content: "";

    position: absolute;

    width: 420px;
    height: 420px;

    left: 50%;
    top: 50%;

    transform: translate(-50%, -50%);

    border-radius: 50%;

    background: radial-gradient(
        circle,
        rgba(139, 92, 246, 0.12),
        transparent 70%
    );

    pointer-events: none;
}

.contact-container {
    position: relative;
    z-index: 1;
}

.contact-section h2 {
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
}

.contact-buttons .primary-btn,
.contact-buttons .secondary-btn {
    min-width: 150px;
}

.footer-logo {
    transition:
        color 0.2s ease,
        transform 0.2s ease;
}

.footer-logo:hover {
    color: var(--purple-light);
    transform: translateY(-1px);
}