/* --- 1. LOCAL FONT REGISTRATION --- */
@font-face {
    font-family: 'MySolidGraffiti';
    src: url('font/Sprite\ Graffiti.otf'); 
    font-weight: normal; 
    font-style: normal;
    font-display: swap;
}

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&display=swap');

/* --- 2. GLOBAL RESET & VARIABLES --- */
:root {
    --theme-red: #d04033;
    --bg-grey: #efefee;
    --text-dark: #3a3a3a;
    --graffiti-font: 'MySolidGraffiti', sans-serif;
    --body-font: 'Inter', sans-serif;
}

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

body {
    background-color: var(--bg-grey);
    color: var(--text-dark);
    font-family: var(--body-font);
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding: 32px 7vw;
    overflow-x: hidden;
}

@keyframes fade-up {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- 3. LAYOUT CONTAINER --- */
.container {
    display: grid;
    grid-template-columns: minmax(360px, 1fr) minmax(360px, 1fr);
    justify-content: space-between;
    width: 100%;
    max-width: 1200px; 
    min-height: 88vh; 
    column-gap: clamp(52px, 8vw, 120px);
}

/* --- 4. COLUMN ALIGNMENT --- */
.left-col, .right-col {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.left-col { 
    justify-content: space-between;
    align-items: flex-start;
    width: 100%;
    padding-top: 24px;
}

.right-col { 
    justify-content: space-between; /* Keeps Nav top and Image bottom */
    align-items: flex-end;
    width: 100%;
    padding-top: 24px;
}

/* --- LEFT COLUMN CONTENT --- */
.left-col .top-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: fit-content;
    margin-top: 24px;
    margin-left: 0;
    animation: fade-up 700ms ease both;
}

.profile-pic {
    width: 190px;
    height: 190px;
    border-radius: 50%;
    background-color: var(--theme-red);
    margin-bottom: 24px;
    align-self: center;
    overflow: hidden;
}

.profile-pic img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.name {
    font-size: 2.1rem;
    font-weight: 530;
    margin-bottom: 12px; 
    letter-spacing: 0.5px;
    text-align: center;
}

.title {
    font-family: var(--graffiti-font);
    color: var(--theme-red);
    font-size: 4.5rem; 
    line-height: 0.85;
    text-transform: uppercase;
    font-weight: normal; 
    text-align: center;
}

.bio {
    font-size: 1.7rem;
    font-weight: 400;
    max-width: 440px;
    line-height: 1.35;
    margin-left: 0;
    margin-bottom: 8px;
}

.bottom-content {
    animation: fade-up 760ms ease both;
    animation-delay: 80ms;
}

/* --- RIGHT COLUMN CONTENT --- */
.navigation {
    display: flex;
    gap: 28px;
}

.navigation a {
    font-family: var(--graffiti-font);
    color: var(--theme-red);
    text-decoration: none;
    font-size: 2.4rem; 
    position: relative;
    transition: transform 180ms ease, color 180ms ease, opacity 180ms ease;
    animation: fade-up 620ms ease both;
}

.navigation a:nth-child(1) { animation-delay: 40ms; }
.navigation a:nth-child(2) { animation-delay: 90ms; }
.navigation a:nth-child(3) { animation-delay: 140ms; }
.navigation a:nth-child(4) { animation-delay: 190ms; }

.navigation a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0.1em;
    width: 100%;
    height: 3px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 180ms ease;
    opacity: 0.9;
}

.navigation a:hover {
    color: #bf372a;
    transform: translateY(-2px);
}

.navigation a:hover::after,
.navigation a:focus-visible::after {
    transform: scaleX(1);
}

.navigation a:focus-visible {
    outline: none;
}

.social-grid {
    display: grid;
    grid-template-columns: repeat(3, 70px); 
    gap: 14px; 
    margin: auto 0; /* Mathematical centering in the right column */
    width: 350px;
    justify-content: center;
    animation: fade-up 760ms ease both;
    animation-delay: 180ms;
}

.icon-box {
    width: 70px;
    height: 70px;
    border: 3.5px solid var(--theme-red); 
    border-radius: 18px; 
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px; 
    text-decoration: none;
    background: rgba(255, 255, 255, 0.35);
    box-shadow: 0 10px 18px rgba(126, 63, 54, 0.06);
    transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

.icon-box img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 180ms ease, filter 180ms ease;
}

.icon-box:hover {
    background: rgba(208, 64, 51, 0.08);
    border-color: #bf372a;
    box-shadow: 0 16px 28px rgba(126, 63, 54, 0.16);
    transform: translateY(-4px);
}

.icon-box:hover img {
    transform: scale(1.06);
    filter: saturate(1.08);
}

.icon-box:focus-visible {
    outline: 3px solid rgba(208, 64, 51, 0.28);
    outline-offset: 4px;
}

.hero-image {
    width: 350px;
    animation: fade-up 840ms ease both;
    animation-delay: 220ms;
}

.red-bg-rounded {
    width: 100%;
    border-radius: 45px;
    background-color: var(--theme-red);
    display: block;
}

.about-section {
    width: 100%;
    max-width: 1280px;
    padding: 78px 0 84px;
    animation: fade-up 880ms ease both;
    animation-delay: 260ms;
}

.section-title {
    font-family: var(--graffiti-font);
    color: var(--theme-red);
    font-size: clamp(3.5rem, 5.7vw, 5.4rem);
    font-weight: normal;
    line-height: 0.9;
    text-align: center;
    margin-bottom: 36px;
}

.about-layout {
    display: grid;
    grid-template-columns: minmax(280px, 360px) minmax(380px, 1fr);
    align-items: center;
    justify-content: center;
    column-gap: clamp(84px, 10vw, 150px);
}

.about-art {
    display: flex;
    justify-content: center;
}

.about-art-card {
    position: relative;
    width: 308px;
    height: 540px;
    border-radius: 32px;
    background: var(--theme-red);
}

.about-art-photo {
    position: absolute;
    left: 24px;
    top: 196px;
    width: 246px;
    height: 150px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 16px 22px rgba(103, 39, 31, 0.16);
}

.about-art-photo img {
    width: 328px;
    max-width: none;
    height: auto;
    display: block;
    transform: translate(-40px, -224px);
}

.about-copy {
    max-width: 760px;
    font-size: clamp(1.28rem, 1.72vw, 1.7rem);
    font-weight: 300;
    line-height: 1.52;
    color: #4d4d4d;
}

.about-copy p + p {
    margin-top: 26px;
}

.about-intro {
    font-size: clamp(1.45rem, 2vw, 1.85rem);
    font-weight: 300;
    color: #000000;
}

.about-link {
    color: var(--theme-red);
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.projects-section {
    width: 100%;
    max-width: 1280px;
    padding: 54px 0 84px;
    animation: fade-up 880ms ease both;
}

.projects-heading {
    position: relative;
    width: min(700px, 70vw);
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

.projects-heading img {
    width: 92%;
    display: block;
    position: relative;
    z-index: 2;
    transform: translateY(-40px);
}

.projects-heading .section-title {
    position: absolute;
    top: -12px;
    left: 50%;
    z-index: 1;
    transform: translateX(-25%);
    font-size: clamp(4.1rem, 6.5vw, 6.1rem);
    white-space: nowrap;
    margin-bottom: 0;
}

.projects-subtitle {
    max-width: 720px;
    margin: 58px auto 0;
    color: #4d4d4d;
    font-size: clamp(1.30rem, 1.85vw, 1.80rem);
    font-weight: 300;
    line-height: 1.45;
    text-align: center;
}

.project-item {
    display: grid;
    grid-template-columns: minmax(320px, 520px) minmax(420px, 1fr);
    align-items: center;
    column-gap: clamp(48px, 6vw, 86px);
    width: 100%;
    max-width: 1120px;
    margin: 76px auto 0;
}

.project-image {
    height: 285px;
    border-radius: 30px;
    overflow: hidden;
    background: #050505;
    display: block;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.project-image-light {
    background: #ffffff;
}

.project-heading-row {
    display: flex;
    align-items: center;
    gap: 22px;
    margin-bottom: 18px;
}

.project-name {
    font-family: var(--graffiti-font);
    color: var(--theme-red);
    font-size: clamp(2.15rem, 3.2vw, 3.1rem);
    font-weight: normal;
    line-height: 0.9;
    white-space: nowrap;
}

.project-stars {
    color: #4d4d4d;
    font-size: 1.28rem;
    font-weight: 400;
    white-space: nowrap;
}

.project-points {
    color: #4d4d4d;
    font-size: clamp(1.25rem, 1.75vw, 1.62rem);
    font-weight: 300;
    line-height: 1.38;
    padding-left: 32px;
}

.project-summary {
    color: #4d4d4d;
    font-size: clamp(1.25rem, 1.75vw, 1.62rem);
    font-weight: 300;
    line-height: 1.38;
}

.project-points li + li {
    margin-top: 16px;
}

.project-actions {
    display: flex;
    gap: 12px;
    margin-top: 28px;
}

.project-actions a {
    min-width: 126px;
    border: 2.5px solid var(--theme-red);
    border-radius: 12px;
    color: var(--theme-red);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 1.2rem;
    font-weight: 700;
    padding: 10px 18px;
    transition: transform 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
}

.project-actions img {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.project-actions a:hover {
    background: rgba(208, 64, 51, 0.08);
    box-shadow: 0 12px 20px rgba(126, 63, 54, 0.12);
    transform: translateY(-2px);
}

.skills-section {
    display: grid;
    grid-template-columns: minmax(420px, 1fr) minmax(520px, 1fr);
    align-items: center;
    column-gap: clamp(48px, 7vw, 110px);
    width: 100%;
    max-width: 1280px;
    padding: 76px 0 86px;
    animation: fade-up 880ms ease both;
}

.skills-art {
    position: relative;
    min-height: 580px;
}

.skills-art .section-title {
    position: absolute;
    top: 52px;
    left: 54px;
    z-index: 1;
    font-size: clamp(6.6rem, 11.4vw, 9.8rem);
    transform: rotate(-12deg);
    margin-bottom: 0;
}

.skills-title {
    display: inline-flex;
    align-items: baseline;
}

.skills-title span:nth-child(3) {
    margin-left: 0.28em;
}

.skills-art img {
    position: absolute;
    left: -70px;
    bottom: -40px;
    z-index: 2;
    width: min(780px, 58vw);
    display: block;
}

.skills-copy {
    color: #4d4d4d;
    font-size: clamp(1.22rem, 1.65vw, 1.55rem);
    font-weight: 300;
    line-height: 1.48;
}

.skills-intro {
    color: var(--theme-red);
    font-size: clamp(1.45rem, 2vw, 1.85rem);
    margin-bottom: 18px;
}

.skills-copy p + p {
    margin-top: 16px;
}

.skills-copy strong {
    font-family: var(--body-font);
    color: #3f3f3f;
    font-weight: 700;
    font-style: normal;
    letter-spacing: 0.01em;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }
}

/* --- 6. RESPONSIVE --- */
@media (max-width: 1024px) {
    body { min-height: auto; overflow: auto; padding: 40px 24px; }
    .container {
        grid-template-columns: 1fr;
        width: 100%;
        max-width: 100%;
        min-height: auto;
        gap: 48px;
        align-items: center;
    }
    .left-col, .right-col {
        align-items: center;
        text-align: center;
        width: 100%;
        padding-top: 0;
    }
    .left-col .top-content {
        align-items: center;
        width: 100%;
        margin-left: 0;
    }
    .name, .title {
        text-align: center;
    }
    .bio {
        margin-left: 0;
        margin-bottom: 0;
    }
    .navigation {
        justify-content: center;
        flex-wrap: wrap;
        gap: 14px 24px;
        width: 100%;
    }
    .social-grid {
        margin: 42px 0;
        width: min(350px, 100%);
    }
    .hero-image {
        width: min(350px, 100%);
    }
    .about-section {
        padding: 56px 0 48px;
    }
    .projects-section {
        padding: 58px 0 56px;
    }
    .skills-section {
        grid-template-columns: 1fr;
        row-gap: 30px;
        padding: 64px 0 56px;
    }
    .skills-art {
        min-height: 420px;
    }
    .skills-art .section-title {
        left: 50%;
        top: 10px;
        transform: translateX(-50%) rotate(-8deg);
    }
    .skills-art img {
        left: 50%;
        bottom: -10px;
        width: min(650px, 92vw);
        transform: translateX(-50%);
    }
    .skills-copy {
        max-width: 760px;
        margin: 0 auto;
    }
    .projects-heading {
        width: min(620px, 90vw);
    }
    .projects-subtitle {
        margin-top: 48px;
        text-align: center;
        transform: none;
    }
    .project-item {
        grid-template-columns: 1fr;
        row-gap: 34px;
        max-width: 680px;
        margin-top: 58px;
    }
    .project-image {
        height: min(285px, 52vw);
    }
    .project-heading-row {
        justify-content: center;
        flex-wrap: wrap;
        gap: 10px 18px;
    }
    .project-content {
        text-align: left;
    }
    .project-actions {
        justify-content: center;
    }
    .about-layout {
        grid-template-columns: 1fr;
        row-gap: 36px;
    }
    .about-art-card {
        width: min(308px, 72vw);
        height: min(540px, 126vw);
    }
    .about-art-photo {
        left: 50%;
        top: 196px;
        transform: translateX(-50%);
        width: min(246px, 60vw);
        height: min(150px, 36vw);
    }
    .about-art-photo img {
        width: min(328px, 80vw);
        transform: translate(-40px, -224px);
    }
    .about-copy {
        max-width: 100%;
        text-align: center;
    }
}

@media (max-width: 640px) {
    body {
        padding: 28px 18px;
        overflow-x: hidden;
    }
    .container {
        gap: 38px;
    }
    .profile-pic {
        width: 150px;
        height: 150px;
        margin-bottom: 18px;
    }
    .name {
        font-size: 1.55rem;
        margin-bottom: 8px;
    }
    .title {
        font-size: 3.25rem;
    }
    .bio {
        font-size: 1.18rem;
        line-height: 1.42;
    }
    .navigation {
        gap: 12px 18px;
        max-width: 100%;
    }
    .navigation a {
        font-size: 1.75rem;
    }
    .social-grid {
        grid-template-columns: repeat(3, 58px);
        gap: 12px;
        width: 100%;
        max-width: 198px;
        margin: 38px 0;
    }
    .icon-box {
        width: 58px;
        height: 58px;
        border-radius: 15px;
        border-width: 3px;
        padding: 9px;
    }
    .hero-image {
        width: min(300px, 92vw);
    }
    .red-bg-rounded {
        border-radius: 36px;
    }
    .about-section {
        padding: 48px 0 42px;
    }
    .projects-section {
        padding: 48px 0 44px;
    }
    .skills-section {
        padding: 48px 0 44px;
        row-gap: 22px;
        overflow: hidden;
    }
    .skills-art {
        min-height: 300px;
        width: 100%;
        overflow: hidden;
    }
    .skills-art .section-title {
        top: 0;
        left: 50%;
        font-size: clamp(4.2rem, 22vw, 6rem);
        max-width: 100%;
    }
    .skills-art img {
        width: min(430px, 100vw);
        bottom: 0;
    }
    .skills-copy {
        font-size: 1.02rem;
        font-weight: 400;
        line-height: 1.56;
        text-align: left;
    }
    .skills-intro {
        font-size: 1.25rem;
        text-align: center;
        margin-bottom: 16px;
    }
    .skills-copy p + p {
        margin-top: 13px;
    }
    .projects-heading {
        width: min(430px, 96vw);
    }
    .projects-heading img {
        width: 78%;
        transform: translateY(-8px);
    }
    .projects-heading .section-title {
        top: -4px;
        left: 44%;
        font-size: clamp(2.9rem, 13.5vw, 4rem);
    }
    .projects-subtitle {
        margin-top: 34px;
        font-size: 1.15rem;
        font-weight: 400;
        line-height: 1.55;
    }
    .project-item {
        row-gap: 24px;
        margin-top: 44px;
    }
    .project-image {
        height: min(220px, 58vw);
        border-radius: 24px;
    }
    .project-name {
        font-size: 2rem;
    }
    .project-stars {
        font-size: 1rem;
    }
    .project-points {
        font-size: 1.02rem;
        font-weight: 400;
        line-height: 1.5;
        padding-left: 24px;
    }
    .project-summary {
        font-size: 1.02rem;
        font-weight: 400;
        line-height: 1.5;
        text-align: center;
    }
    .project-points li + li {
        margin-top: 12px;
    }
    .project-actions {
        gap: 10px;
    }
    .project-actions a {
        min-width: 106px;
        font-size: 1rem;
        padding: 9px 14px;
    }
    .section-title {
        font-size: clamp(2.85rem, 14vw, 3.7rem);
        margin-bottom: 28px;
    }
    .about-art-card {
        width: min(272px, 74vw);
        height: min(476px, 130vw);
        border-radius: 28px;
    }
    .about-art-photo {
        top: 172px;
        width: min(218px, 60vw);
        height: min(132px, 36vw);
        border-radius: 18px;
    }
    .about-art-photo img {
        width: min(292px, 80vw);
        transform: translate(-36px, -200px);
    }
    .about-copy {
        font-size: 1.05rem;
        font-weight: 400;
        line-height: 1.55;
    }
    .about-intro {
        font-size: 1.25rem;
    }
    .about-copy p + p {
        margin-top: 20px;
    }
}

@media (max-width: 390px) {
    body {
        padding: 24px 14px;
    }
    .title {
        font-size: 2.9rem;
    }
    .navigation a {
        font-size: 1.55rem;
    }
    .social-grid {
        grid-template-columns: repeat(3, 54px);
        gap: 10px;
    }
    .icon-box {
        width: 54px;
        height: 54px;
    }
    .hero-image {
        width: min(276px, 92vw);
    }
    .about-copy {
        font-size: 1rem;
    }
    .projects-subtitle {
        font-size: 1.05rem;
    }
    .skills-art {
        min-height: 270px;
    }
    .skills-art .section-title {
        font-size: clamp(3.7rem, 20vw, 5.1rem);
    }
    .skills-art img {
        width: min(380px, 100vw);
    }
    .skills-copy {
        font-size: 0.96rem;
    }
}
