/* =========================================================
   ISAIAH YUSUF — 3D PORTFOLIO
   Premium responsive portfolio stylesheet
========================================================= */


/* =========================================================
   1. RESET
========================================================= */

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

body {
    min-height: 100vh;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI",
        Roboto, Helvetica, Arial, sans-serif;

    color: #ffffff;
    background: #05070d;

    overflow-x: hidden;
    line-height: 1.6;
}


/* =========================================================
   2. BACKGROUND
========================================================= */

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

    background-image:
        linear-gradient(
            135deg,
            rgba(3, 6, 15, 0.78),
            rgba(5, 8, 18, 0.62),
            rgba(2, 5, 12, 0.86)
        ),
        url("profile.PNG");

    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;

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


/* Dark cinematic overlay */

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

    background:
        radial-gradient(
            circle at 50% 20%,
            rgba(0, 140, 255, 0.10),
            transparent 40%
        ),
        linear-gradient(
            to bottom,
            rgba(2, 5, 12, 0.10),
            rgba(2, 5, 12, 0.78)
        );

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


/* =========================================================
   3. GENERAL
========================================================= */

main {
    position: relative;
    z-index: 1;
}

section {
    width: 100%;
    position: relative;
}

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

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


/* =========================================================
   4. HEADER / NAVBAR
========================================================= */

.header {
    position: fixed;
    top: 0;
    left: 0;

    width: 100%;
    height: 78px;

    display: flex;
    align-items: center;

    z-index: 1000;

    background: rgba(4, 7, 15, 0.58);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);

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

.navbar {
    width: min(1200px, 92%);
    margin: auto;

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

.logo {
    font-size: 1.55rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.logo span {
    color: #4da6ff;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 34px;

    list-style: none;
}

.nav-links a {
    position: relative;

    color: rgba(255, 255, 255, 0.72);
    font-size: 0.92rem;
    font-weight: 500;

    transition: color 0.3s ease;
}

.nav-links a::after {
    content: "";

    position: absolute;
    left: 0;
    bottom: -7px;

    width: 0;
    height: 2px;

    background: #4da6ff;

    transition: width 0.3s ease;
}

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

.nav-links a:hover::after {
    width: 100%;
}


/* =========================================================
   5. HERO
========================================================= */

.hero {
    min-height: 100vh;

    display: flex;
    align-items: center;

    padding: 130px 5% 90px;
}

.hero-content {
    width: min(1200px, 100%);
    margin: 0 auto;

    position: relative;
    z-index: 2;
}


/* Small intro */

.hero-greeting {
    margin-bottom: 12px;

    color: #4da6ff;

    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 4px;
    text-transform: uppercase;
}


/* Main name */

.hero h1 {
    max-width: 900px;

    font-size: clamp(3.5rem, 9vw, 8rem);
    line-height: 0.95;

    font-weight: 900;
    letter-spacing: -5px;

    background: linear-gradient(
        120deg,
        #ffffff 20%,
        #9ecfff 55%,
        #4da6ff 100%
    );

    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;

    text-shadow:
        0 0 45px rgba(77, 166, 255, 0.10);
}


/* Job title */

.hero h2 {
    margin-top: 22px;

    font-size: clamp(1.4rem, 3vw, 2.4rem);
    font-weight: 500;

    color: rgba(255, 255, 255, 0.82);
}


/* Description */

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

    margin-top: 25px;

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

    font-size: 1.05rem;
    line-height: 1.8;
}


/* =========================================================
   6. BUTTONS
========================================================= */

.hero-buttons {
    display: flex;
    align-items: center;
    gap: 15px;

    margin-top: 35px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 155px;
    padding: 14px 25px;

    border-radius: 999px;

    font-size: 0.92rem;
    font-weight: 700;

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

.primary-btn {
    color: #ffffff;

    background: linear-gradient(
        135deg,
        #238cff,
        #1764c0
    );

    box-shadow:
        0 12px 35px rgba(35, 140, 255, 0.22);
}

.primary-btn:hover {
    transform: translateY(-4px);

    box-shadow:
        0 18px 45px rgba(35, 140, 255, 0.35);
}

.secondary-btn {
    color: #ffffff;

    border: 1px solid rgba(255, 255, 255, 0.18);

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

    backdrop-filter: blur(12px);
}

.secondary-btn:hover {
    transform: translateY(-4px);

    background: rgba(255, 255, 255, 0.11);
}


/* =========================================================
   7. SECTION CONTAINER
========================================================= */

.about,
.skills,
.projects,
.contact {
    width: min(1200px, 92%);
    margin: 0 auto;

    padding: 120px 0;
}


/* =========================================================
   8. SECTION HEADERS
========================================================= */

.section-header {
    max-width: 750px;
    margin-bottom: 55px;
}

.section-label {
    margin-bottom: 13px;

    color: #4da6ff;

    font-size: 0.78rem;
    font-weight: 800;

    letter-spacing: 4px;
}

.section-header h2 {
    font-size: clamp(2.2rem, 5vw, 4rem);
    line-height: 1.1;

    letter-spacing: -2px;
}

.section-header h2 span {
    color: #4da6ff;
}

.section-header > p:last-child {
    margin-top: 20px;

    color: rgba(255, 255, 255, 0.60);
}


/* =========================================================
   9. ABOUT
========================================================= */

.about-content {
    display: flex;
    justify-content: flex-start;
}

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

    padding: 35px;

    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 24px;

    background: rgba(8, 13, 25, 0.55);

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

    box-shadow:
        0 25px 80px rgba(0, 0, 0, 0.25);
}

.about-text p {
    margin-bottom: 20px;

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

    font-size: 1.02rem;
}

.about-text p:last-child {
    margin-bottom: 0;
}


/* =========================================================
   10. SKILLS
========================================================= */

.skills-grid {
    display: grid;

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

    gap: 20px;
}

.skill-card {
    position: relative;

    padding: 35px;

    min-height: 210px;

    overflow: hidden;

    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 24px;

    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, 0.07),
            rgba(255, 255, 255, 0.025)
        );

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

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

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

    position: absolute;

    width: 150px;
    height: 150px;

    top: -80px;
    right: -80px;

    border-radius: 50%;

    background: rgba(77, 166, 255, 0.15);

    filter: blur(25px);
}

.skill-card:hover {
    transform: translateY(-8px);

    border-color: rgba(77, 166, 255, 0.35);

    box-shadow:
        0 25px 60px rgba(0, 0, 0, 0.25);
}

.skill-card h3 {
    margin-bottom: 14px;

    font-size: 1.35rem;
}

.skill-card p {
    color: rgba(255, 255, 255, 0.60);
}


/* =========================================================
   11. PROJECTS
========================================================= */

.projects-grid {
    display: grid;

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

    gap: 20px;
}

.project-card {
    min-height: 380px;

    display: flex;
    align-items: flex-end;

    position: relative;

    overflow: hidden;

    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 26px;

    background:
        linear-gradient(
            145deg,
            rgba(15, 25, 45, 0.80),
            rgba(5, 8, 18, 0.90)
        );

    backdrop-filter: blur(18px);

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

.project-card::before {
    content: "";

    position: absolute;
    inset: 0;

    background:
        radial-gradient(
            circle at 80% 15%,
            rgba(77, 166, 255, 0.25),
            transparent 35%
        );
}

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

    border-color: rgba(77, 166, 255, 0.35);
}

.project-content {
    position: relative;
    z-index: 2;

    width: 100%;

    padding: 30px;
}

.project-number {
    margin-bottom: 35px;

    color: #4da6ff;

    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 3px;
}

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

    font-size: 1.5rem;
}

.project-card p:not(.project-number) {
    color: rgba(255, 255, 255, 0.60);

    font-size: 0.94rem;
}

.project-links {
    display: flex;
    gap: 20px;

    margin-top: 25px;
}

.project-links a {
    color: #ffffff;

    font-size: 0.85rem;
    font-weight: 700;

    transition: color 0.3s ease;
}

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


/* =========================================================
   12. CONTACT
========================================================= */

.contact {
    text-align: center;
}

.contact .section-header {
    margin-left: auto;
    margin-right: auto;
}

.contact-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.contact-email {
    display: inline-block;

    margin-top: 10px;

    color: #ffffff;

    font-size: clamp(1.4rem, 4vw, 2.5rem);
    font-weight: 700;

    transition: color 0.3s ease;
}

.contact-email:hover {
    color: #4da6ff;
}

.social-links {
    display: flex;
    gap: 25px;

    margin-top: 30px;
}

.social-links a {
    color: rgba(255, 255, 255, 0.62);

    font-size: 0.9rem;

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

.social-links a:hover {
    color: #ffffff;

    transform: translateY(-3px);
}


/* =========================================================
   13. FOOTER
========================================================= */

.footer {
    width: 100%;

    padding: 35px 20px;

    text-align: center;

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

    background: rgba(2, 5, 12, 0.65);

    backdrop-filter: blur(15px);
}

.footer p {
    color: rgba(255, 255, 255, 0.40);

    font-size: 0.82rem;
}


/* =========================================================
   14. 3D CANVAS SUPPORT
========================================================= */

canvas {
    display: block;
}

#three-canvas,
.three-canvas,
canvas[data-three] {
    position: fixed;

    inset: 0;

    width: 100%;
    height: 100%;

    pointer-events: none;

    z-index: 0;
}


/* Keep content above 3D scene */

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


/* =========================================================
   15. TABLET
========================================================= */

@media (max-width: 1000px) {

    .hero {
        padding-left: 6%;
        padding-right: 6%;
    }

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

}


/* =========================================================
   16. MOBILE
========================================================= */

@media (max-width: 768px) {

    html {
        scroll-padding-top: 75px;
    }


    /* -------------------------
       MOBILE BACKGROUND
    ------------------------- */

    body::before {
        background-size: 100% auto;
        background-position: center top;

        background-attachment: scroll;

        background-color: #05070d;

        background-image:
            linear-gradient(
                rgba(3, 6, 15, 0.58),
                rgba(3, 6, 15, 0.88)
            ),
            url("profile.PNG");
    }


    /* -------------------------
       MOBILE HEADER
    ------------------------- */

    .header {
        height: 68px;
    }

    .navbar {
        width: 90%;
    }

    .logo {
        font-size: 1.25rem;
    }

    .nav-links {
        gap: 13px;
    }

    .nav-links a {
        font-size: 0.72rem;
    }


    /* -------------------------
       MOBILE HERO
    ------------------------- */

    .hero {
        min-height: 100svh;

        padding: 120px 7% 80px;

        align-items: center;
    }

    .hero-greeting {
        font-size: 0.72rem;
        letter-spacing: 3px;
    }

    .hero h1 {
        font-size: clamp(3.1rem, 15vw, 5rem);

        letter-spacing: -3px;
    }

    .hero h2 {
        margin-top: 18px;

        font-size: 1.25rem;
    }

    .hero-description {
        font-size: 0.92rem;
        line-height: 1.7;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: stretch;

        width: 100%;

        margin-top: 28px;
    }

    .btn {
        width: 100%;
    }


    /* -------------------------
       MOBILE SECTIONS
    ------------------------- */

    .about,
    .skills,
    .projects,
    .contact {
        width: 88%;

        padding: 85px 0;
    }

    .section-header {
        margin-bottom: 35px;
    }

    .section-label {
        font-size: 0.68rem;
        letter-spacing: 3px;
    }

    .section-header h2 {
        font-size: 2.2rem;

        letter-spacing: -1px;
    }


    /* -------------------------
       MOBILE ABOUT
    ------------------------- */

    .about-text {
        padding: 25px;

        border-radius: 20px;
    }

    .about-text p {
        font-size: 0.92rem;
    }


    /* -------------------------
       MOBILE SKILLS
    ------------------------- */

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

        gap: 15px;
    }

    .skill-card {
        min-height: auto;

        padding: 27px;

        border-radius: 20px;
    }


    /* -------------------------
       MOBILE PROJECTS
    ------------------------- */

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

        gap: 16px;
    }

    .project-card {
        min-height: 340px;

        border-radius: 22px;
    }


    /* -------------------------
       MOBILE CONTACT
    ------------------------- */

    .contact-email {
        font-size: 1.25rem;

        word-break: break-word;
    }

    .social-links {
        gap: 18px;
    }

}


/* =========================================================
   17. SMALL PHONES
========================================================= */

@media (max-width: 430px) {

    .nav-links {
        gap: 9px;
    }

    .nav-links a {
        font-size: 0.64rem;
    }

    .hero {
        padding-left: 6%;
        padding-right: 6%;
    }

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

    .hero h2 {
        font-size: 1.1rem;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .about,
    .skills,
    .projects,
    .contact {
        width: 90%;
    }

}


/* =========================================================
   18. REDUCED MOTION
========================================================= */

@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;
    }

}