/* =============== GOOGLE FONTS =============== */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;700&family=Space+Grotesk:wght@300;400;500;700&display=swap');

/* =============== VARIABLES CSS =============== */
:root {
    --header-height: 3.5rem;

    /* ========== Colors ========== */
    /* HSL Color mode - Pastel Theme */
    --hue: 250;
    --sat: 66%;
    --lig: 75%;

    /* Bright/Pastel Palette */
    --first-color: hsl(var(--hue), 60%, 65%);
    /* Softer Pastel Purple */
    --first-color-alt: hsl(var(--hue), 60%, 55%);
    /* Slightly Darker for hover */

    --title-color: hsl(var(--hue), 15%, 15%);
    /* Dark text for contrast against light bg */
    --text-color: hsl(var(--hue), 8%, 35%);
    /* Softer dark text */
    --text-color-light: hsl(var(--hue), 4%, 55%);

    --body-color: hsl(var(--hue), 60%, 99%);
    /* Very light lavender/white background */
    --container-color: hsl(0, 0%, 100%);
    /* Pure white for cards */

    /* Decoration colors - Pastels */
    --shape-color-1: hsl(340, 90%, 85%);
    /* Pastel Pink */
    --shape-color-2: hsl(180, 80%, 80%);
    /* Pastel Blue/Mint */

    /* ========== Font and Typography ========== */
    --body-font: 'Outfit', sans-serif;
    --title-font: 'Space Grotesk', sans-serif;

    --big-font-size: 3.5rem;
    --h1-font-size: 2.25rem;
    --h2-font-size: 1.5rem;
    --h3-font-size: 1.25rem;
    --normal-font-size: 1rem;
    --small-font-size: 0.875rem;
    --smaller-font-size: 0.813rem;

    /* ========== Font Weight ========== */
    --font-medium: 500;
    /* Bump up slightly for better legibility on light */
    --font-semi-bold: 600;
    --font-bold: 700;

    /* ========== z index ========== */
    --z-tooltip: 10;
    --z-fixed: 100;
    --z-modal: 1000;
}

/* Response Typography */
@media screen and (min-width: 968px) {
    :root {
        --big-font-size: 5.5rem;
        --h1-font-size: 3.25rem;
        --h2-font-size: 2rem;
        --h3-font-size: 1.5rem;
        --normal-font-size: 1.125rem;
        --small-font-size: 1rem;
        --smaller-font-size: 0.875rem;
    }
}

/* =============== BASE =============== */
* {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--body-font);
    font-size: var(--normal-font-size);
    background-color: var(--body-color);
    /* Lighter, subtle gradients for pastel theme */
    background-image:
        radial-gradient(at 40% 20%, hsla(250, 100%, 94%, 1) 0px, transparent 50%),
        radial-gradient(at 80% 0%, hsla(189, 100%, 96%, 1) 0px, transparent 50%),
        radial-gradient(at 0% 50%, hsla(341, 100%, 96%, 1) 0px, transparent 50%);
    color: var(--text-color);
    cursor: none;
    /* Hide default cursor for custom one */
    min-height: 100vh;
}

h1,
h2,
h3 {
    color: var(--title-color);
    font-weight: var(--font-semi-bold);
    font-family: var(--title-font);
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
    cursor: none;
    /* Keep custom cursor visibility */
}

img {
    max-width: 100%;
    height: auto;
}

/* =============== REUSABLE CSS CLASSES =============== */
.container {
    max-width: 968px;
    margin-left: 1rem;
    margin-right: 1rem;
}

.grid {
    display: grid;
    gap: 1.5rem;
}

.section {
    padding: 4.5rem 0 2rem;
}

.section__title {
    font-size: var(--h1-font-size);
    text-align: center;
    margin-bottom: 0.25rem;
}

.section__subtitle {
    display: block;
    font-size: var(--small-font-size);
    color: var(--text-color-light);
    text-align: center;
    margin-bottom: 2.5rem;
}

/* =============== CUSTOM CURSOR =============== */
.cursor-dot,
.cursor-outline {
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: 9999;
    pointer-events: none;
}

.cursor-dot {
    width: 6px;
    height: 6px;
    background-color: var(--first-color);
}

.cursor-outline {
    width: 20px;
    height: 20px;
    border: 2px solid var(--first-color);
    transition: width 0.2s, height 0.2s, background-color 0.2s;
}

body:active .cursor-outline {
    width: 30px;
    height: 30px;
    background-color: rgba(var(--hue), 80%, 80%, 0.1);
}

/* =============== SCROLL TRACKER =============== */
.scroll-tracker {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 0;
    /* Behind content but visible */
    pointer-events: none;
    opacity: 0.15;
}

.scroll-tracker__svg {
    width: 100%;
    height: 100%;
    overflow: visible;
}

.scroll-tracker__path-bg {
    stroke: var(--first-color-alt);
    stroke-width: 4;
    fill: none;
    opacity: 0.1;
}

.scroll-tracker__path {
    stroke: var(--first-color);
    stroke-width: 6;
    fill: none;
    stroke-linecap: round;
    /* Initially hide the stroke */
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
    transition: stroke-dashoffset 0.1s linear;
    filter: drop-shadow(0 0 5px var(--first-color));
}

@media screen and (max-width: 768px) {
    .scroll-tracker__path {
        stroke-width: 4;
    }
}

/* =============== HEADER & NAV =============== */
.header {
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: var(--z-fixed);
    background-color: var(--body-color);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
    transition: .3s;
}

.nav {
    height: var(--header-height);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav__logo {
    color: var(--title-color);
    font-weight: var(--font-bold);
    font-family: var(--title-font);
    font-size: var(--h3-font-size);
}

.nav__logo span {
    color: var(--first-color);
}

.nav__toggle {
    display: flex;
    /* SVGs are block by default inside, flex centers it */
    color: var(--title-color);
    font-size: 1.1rem;
    cursor: none;
}

.nav__close {
    font-size: 1.5rem;
    position: absolute;
    top: 1rem;
    right: 1.25rem;
    cursor: none;
    color: var(--title-color);
}

.nav__menu {
    position: fixed;
    top: -100%;
    /* Hidden by default */
    left: 0;
    width: 100%;
    background-color: var(--body-color);
    padding: 4rem 0 4rem;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
    /* Soft shadow for light mode */
    border-radius: 0 0 1rem 1rem;
    transition: .3s;
}

.show-menu {
    top: 0;
}

.nav__list {
    display: flex;
    flex-direction: column;
    align-items: center;
    row-gap: 1.5rem;
}

.nav__link {
    color: var(--title-color);
    font-weight: var(--font-medium);
    transition: .3s;
}

.nav__link:hover {
    color: var(--first-color);
}

.active-link {
    color: var(--first-color);
}

/* =============== HERO SECTION =============== */
.home__container {
    gap: 2rem;
}

.home__content {
    grid-template-columns: 0.5fr 3fr;
    padding-top: 3.5rem;
    align-items: center;
}

.home__social {
    display: grid;
    grid-template-columns: max-content;
    row-gap: 1rem;
}

.home__social-link {
    font-size: 1.25rem;
    color: var(--first-color);
    transition: .3s;
}

.home__social-link:hover {
    color: var(--first-color-alt);
    transform: translateX(0.25rem);
}

.home__data {
    text-align: center;
}

.home__title {
    font-size: var(--big-font-size);
    line-height: 1.1;
    margin-bottom: 0.75rem;
}

.home__title-color {
    color: var(--first-color);
    font-size: var(--h2-font-size);
}

.home__description {
    margin-bottom: 2rem;
}

/* Decorative Geometric Shapes / 3D Container */
.home__img-wrapper {
    position: relative;
    width: 300px;
    /* Slightly larger for 3D */
    height: 300px;
    justify-self: center;
    display: flex;
    align-items: center;
    justify-content: center;
    /* No border radius needed for canvas unless we want it masked */
    z-index: 1;
}

/* ASCII Bagel Container */
#ascii-bagel {
    font-family: monospace;
    font-size: 10px;
    /* Small font size for density */
    line-height: 10px;
    font-weight: bold;

    /* Gradient Text Styling */
    background: linear-gradient(45deg, var(--first-color), var(--shape-color-1));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;

    white-space: pre;
    overflow: hidden;
    user-select: none;
    cursor: grab;
    /* Indicate draggable */
    transform: scale(1.15);
    /* Made larger as requested */
    width: auto;
    height: auto;
    text-align: center;
}

/* Old CSS shapes removed as we use Three.js now */

/* =============== BUTTONS =============== */
.button {
    display: inline-flex;
    align-items: center;
    background-color: var(--first-color);
    color: #FFF;
    padding: 1rem 2rem;
    border-radius: 0.5rem;
    font-weight: var(--font-medium);
    transition: .3s;
    border: none;
    cursor: none;
}

.button:hover {
    background-color: var(--first-color-alt);
}

.button--flex {
    column-gap: 0.5rem;
}

.button__icon {
    transition: .3s;
}

.button:hover .button__icon {
    transform: translateX(0.25rem);
}

.button--small {
    padding: 0.75rem 1rem;
    font-size: var(--small-font-size);
}

/* =============== ABOUT =============== */
.about__img-wrapper {
    width: 350px;
    height: 350px;
    border-radius: 50%;
    justify-self: center;
    overflow: visible;
    position: relative;
    /* Soft diffuse shadow to blend */
    box-shadow: 0 0 50px 20px rgba(var(--hue), 60%, 80%, 0.4);
}

.about__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    transition: transform 0.4s;

    /* Create a much softer fade/blur into background */
    mask-image: radial-gradient(closest-side, black 40%, transparent 100%);
    -webkit-mask-image: radial-gradient(closest-side, black 40%, transparent 100%);
}

/* =============== BAGEL LAYERS =============== */
.bagel-layer {
    position: fixed;
    top: 0;
    height: 100%;
    width: 60px;
    pointer-events: none;
    z-index: 1000;
    overflow: hidden;
}

#bagel-layer-left {
    left: 0;
}

#bagel-layer-right {
    right: 0;
}

.bagel-element {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-size: 24px;
    user-select: none;
    will-change: transform;
}

@keyframes bagelSpin {
    0% {
        transform: translateX(-50%) rotate(0deg);
    }

    100% {
        transform: translateX(-50%) rotate(360deg);
    }
}

.about__img:hover {
    transform: scale(1.05);
}

.about__description {
    text-align: center;
    margin-bottom: 1.5rem;
}

.about__info {
    display: flex;
    justify-content: space-evenly;
    margin-bottom: 2rem;
}

.about__info-title {
    display: block;
    font-size: var(--h2-font-size);
    font-weight: var(--font-bold);
    color: var(--first-color);
}

.about__info-name {
    font-size: var(--smaller-font-size);
}

.about__buttons {
    display: flex;
    justify-content: center;
}

/* About Details Grid */
.about__details {
    grid-template-columns: 1fr;
    margin-top: 2rem;
    gap: 1.5rem;
}

/* Education Block */
.about__education {
    text-align: left;
    /* Changed from center */
    background-color: var(--container-color);
    padding: 1.5rem;
    border-radius: 1rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
    height: 100%;
}

.about__education-title {
    font-size: var(--h3-font-size);
    margin-bottom: 1.5rem;
    color: var(--first-color);
    text-align: center;
}

.about__education-school {
    font-size: var(--normal-font-size);
    font-weight: var(--font-semi-bold);
    margin-bottom: 0.5rem;
    color: var(--title-color);
}

.about__education-degree,
.about__education-program,
.about__education-year {
    display: block;
    font-size: var(--small-font-size);
    color: var(--text-color-light);
    margin-bottom: 0.25rem;
    line-height: 1.4;
}

/* Skills Block */
.about__skills {
    background-color: var(--container-color);
    padding: 1.5rem;
    border-radius: 1rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
    height: 100%;
}

.about__skills-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-top: 1rem;
    text-align: left;
}

.about__skills-title {
    font-size: var(--normal-font-size);
    color: var(--title-color);
    /* Changed from first-color to be consistent */
    margin-bottom: 0.25rem;
    font-weight: 600;
}

.about__skills-detail {
    font-size: var(--small-font-size);
    color: var(--text-color-light);
    line-height: 1.4;
    display: block;
}

@media screen and (max-width: 576px) {
    .about__skills-container {
        grid-template-columns: 1fr;
    }
}

@media screen and (min-width: 768px) {
    .about__details {
        grid-template-columns: 1fr 1fr;
        align-items: start;
    }
}

/* =============== PROJECTS =============== */
.projects__container {
    padding-top: 1rem;
}

.projects__card {
    background-color: var(--container-color);
    padding: 1.5rem;
    border-radius: 1rem;
    transition: .4s;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
    /* Soft card shadow */
}

.projects__card:hover {
    transform: translateY(-0.5rem);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.projects__title {
    font-size: var(--h3-font-size);
    margin-bottom: 0.5rem;
}

.projects__subtitle {
    display: block;
    font-size: var(--smaller-font-size);
    color: var(--first-color);
    margin-bottom: 0.25rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.projects__description {
    margin-bottom: 1rem;
}

.projects__tags {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.projects__tags span {
    background: var(--body-color);
    /* Matches bg for subtle contrast or can use specific pastel */
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: var(--smaller-font-size);
    color: var(--first-color);
}

/* =============== CONTACT =============== */
.contact__container {
    row-gap: 3rem;
}

.contact__title {
    font-size: var(--h3-font-size);
    margin-bottom: 1.5rem;
    text-align: center;
}

.contact__info {
    display: grid;
    gap: 1rem;
}

.contact__card {
    background-color: var(--container-color);
    padding: 1rem;
    border-radius: 0.75rem;
    text-align: center;
}

.contact__card-title,
.contact__card-data {
    display: block;
}

.contact__card-title {
    font-size: var(--small-font-size);
    margin-bottom: 0.25rem;
}

.contact__card-data {
    font-size: var(--small-font-size);
    color: var(--text-color-light);
    margin-bottom: 0.75rem;
}

.contact__button {
    color: var(--first-color);
    font-size: var(--small-font-size);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    column-gap: 0.25rem;
}





/* =============== FOOTER =============== */
.footer {
    background-color: var(--container-color);
    padding: 2rem 0 1.5rem;
}

.footer__container {
    display: flex;
    flex-direction: column;
    align-items: center;
    row-gap: 1.5rem;
}

.footer__title {
    color: var(--title-color);
    font-size: var(--h1-font-size);
}

.footer__list {
    display: flex;
    column-gap: 1.5rem;
}

.footer__social {
    display: flex;
    column-gap: 1.25rem;
}

.footer__social-link {
    color: var(--text-color);
    font-size: 1.25rem;
}

.footer__copy {
    font-size: var(--smaller-font-size);
    color: var(--text-color-light);
    margin-top: 1.5rem;
}

/* =============== MEDIA QUERIES =============== */
/* Small devices */
@media screen and (max-width: 320px) {
    .nav__menu {
        padding-top: 5rem;
    }
}

/* Medium devices */
@media screen and (min-width: 576px) {
    .about__info {
        grid-template-columns: repeat(3, 140px);
        justify-content: center;
        gap: 1rem;
    }

    .projects__container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (min-width: 767px) {
    .nav {
        height: calc(var(--header-height) + 1.5rem);
    }

    .nav__toggle,
    .nav__close {
        display: none;
    }

    .nav__list {
        flex-direction: row;
        column-gap: 2rem;
    }

    .nav__menu {
        position: initial;
        width: initial;
        background-color: transparent;
        padding: 0;
        box-shadow: none;
    }

    .home__content {
        grid-template-columns: 100px 1fr 1fr;
        padding-top: 5.5rem;
        column-gap: 2rem;
    }

    .home__img-wrapper {
        width: 350px;
        height: 350px;
    }

    .about__container {
        grid-template-columns: repeat(2, 1fr);
        align-items: center;
    }

    .contact__container {
        grid-template-columns: repeat(2, max-content);
        justify-content: center;
        column-gap: 3rem;
    }
}

/* Large devices */
@media screen and (min-width: 968px) {
    .container {
        margin-left: auto;
        margin-right: auto;
    }

    .home__content {
        column-gap: 4rem;
    }
}