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

:root {

    --bg: #f1f3ef;

    --surface: #e5e9e3;

    --text: #161616;

    --muted: #626660;

    --border: rgba(20, 20, 20, 0.15);

    --accent: #621f2d;

    --accent-light: #8b3c4e;

    --serif: "Libre Caslon Display", Georgia, serif;

    --sans: "DM Sans", Arial, sans-serif;

    --max-width: 1200px;

    --transition: .4s cubic-bezier(.2,.8,.2,1);
}


/* DARK MODE */

body.dark {

    --bg: #101110;

    --surface: #191b19;

    --text: #f0f1ec;

    --muted: #a6aaa3;

    --border: rgba(255,255,255,.14);

    --accent: #d8899b;

    --accent-light: #efadbd;

}


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

* {

    margin: 0;

    padding: 0;

    box-sizing: border-box;

}


html {

    scroll-behavior: smooth;

}


body {

    background: var(--bg);

    color: var(--text);

    font-family: var(--sans);

    font-size: 16px;

    line-height: 1.6;

    overflow-x: hidden;

    transition:

        background .5s ease,

        color .5s ease;

}


a {

    color: inherit;

    text-decoration: none;

}


button {

    font-family: inherit;

}


/* =====================================================
   CURSOR
===================================================== */

.cursor-glow {

    position: fixed;

    width: 300px;

    height: 300px;

    border-radius: 50%;

    background: var(--accent);

    opacity: .06;

    filter: blur(70px);

    pointer-events: none;

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

    z-index: -1;

}


/* =====================================================
   NAVBAR
===================================================== */

.navbar {

    position: fixed;

    top: 0;

    left: 0;

    width: 100%;

    height: 78px;

    padding: 0 5%;

    display: flex;

    justify-content: space-between;

    align-items: center;

    z-index: 1000;

    backdrop-filter: blur(15px);

    background: color-mix(
        in srgb,
        var(--bg) 78%,
        transparent
    );

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

}


.logo {

    width: 44px;

    height: 44px;

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

    border-radius: 50%;

    display: grid;

    place-items: center;

    font-family: var(--serif);

    font-size: 25px;

    transition: var(--transition);

}


.logo:hover {

    background: var(--text);

    color: var(--bg);

    transform: rotate(15deg) scale(1.1);

}


.nav-links {

    display: flex;

    gap: 38px;

    position: absolute;

    left: 50%;

    transform: translateX(-50%);

}


.nav-links a {

    font-size: 15px;

    color: var(--muted);

    position: relative;

    transition: var(--transition);

}


.nav-links a::after {

    content: "";

    position: absolute;

    bottom: -7px;

    left: 0;

    width: 0;

    height: 1px;

    background: var(--text);

    transition: .3s;

}


.nav-links a:hover {

    color: var(--text);

}


.nav-links a:hover::after {

    width: 100%;

}


.nav-actions {

    display: flex;

    align-items: center;

    gap: 12px;

}


.theme-btn {

    width: 42px;

    height: 42px;

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

    background: transparent;

    color: var(--text);

    border-radius: 50%;

    cursor: pointer;

    font-size: 18px;

    transition: var(--transition);

}


.theme-btn:hover {

    transform: rotate(25deg) scale(1.1);

    background: var(--text);

    color: var(--bg);

}


.menu-btn {

    display: none;

    border: 0;

    background: transparent;

    width: 42px;

    height: 42px;

    cursor: pointer;

}


.menu-btn span {

    display: block;

    width: 23px;

    height: 1px;

    background: var(--text);

    margin: 6px auto;

    transition: .3s;

}


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

.mobile-menu {

    position: fixed;

    inset: 78px 0 auto 0;

    background: var(--bg);

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

    padding: 35px;

    z-index: 900;

    display: none;

}


.mobile-menu.active {

    display: flex;

    flex-direction: column;

    gap: 25px;

    animation: menuIn .4s ease;

}


.mobile-menu a {

    font-size: 28px;

    font-family: var(--serif);

}


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

.section {

    max-width: var(--max-width);

    margin: auto;

    padding: 130px 5%;

}


.eyebrow {

    font-size: 13px;

    letter-spacing: .2em;

    color: var(--muted);

}


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

.hero {

    min-height: 100vh;

    display: grid;

    grid-template-columns: 1.1fr .9fr;

    align-items: center;

    gap: 50px;

    padding-top: 150px;

}


.hero-content {

    max-width: 700px;

}


.hero h1 {

    font-family: var(--serif);

    font-weight: 400;

    font-size: clamp(65px, 8vw, 115px);

    line-height: .9;

    letter-spacing: -.045em;

    margin: 30px 0;

}


.hero h1 span {

    color: var(--accent);

    font-style: italic;

}


.hero-description {

    max-width: 580px;

    color: var(--muted);

    line-height: 1.85;

    font-size: 18px;

}


.hero-buttons {

    display: flex;

    gap: 15px;

    margin-top: 40px;

    flex-wrap: wrap;

}


.btn {

    padding: 16px 24px;

    border-radius: 50px;

    display: inline-flex;

    gap: 20px;

    align-items: center;

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

    transition: var(--transition);

    font-size: 15px;

}


.btn-primary {

    background: var(--text);

    color: var(--bg);

}


.btn-secondary {

    background: transparent;

}


.btn:hover {

    transform: translateY(-5px);

}


.btn-primary:hover {

    box-shadow: 0 15px 30px rgba(0,0,0,.15);

}


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

.hero-art {

    height: 500px;

    position: relative;

    display: grid;

    place-items: center;

}


.hero-circle {

    width: 280px;

    height: 280px;

    border-radius: 50%;

    background: var(--accent);

    color: white;

    display: flex;

    align-items: center;

    justify-content: center;

    flex-direction: column;

    gap: 15px;

    animation: float 5s ease-in-out infinite;

    box-shadow: 0 30px 70px rgba(0,0,0,.15);

}


.hero-circle strong {

    font-family: var(--serif);

    font-size: 80px;

    font-weight: 400;

}


.hero-circle span {

    font-size: 11px;

    letter-spacing: .3em;

}


.orbit {

    position: absolute;

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

    border-radius: 50%;

}


.orbit-one {

    width: 390px;

    height: 390px;

    animation: rotate 15s linear infinite;

}


.orbit-two {

    width: 470px;

    height: 470px;

    animation: rotateReverse 20s linear infinite;

}


.floating-card {

    position: absolute;

    background: var(--surface);

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

    padding: 14px 18px;

    border-radius: 8px;

    box-shadow: 0 15px 35px rgba(0,0,0,.08);

    display: flex;

    flex-direction: column;

    gap: 5px;

    transition: var(--transition);

}


.floating-card span {

    font-weight: 700;

    font-size: 15px;

}


.floating-card small {

    color: var(--muted);

    font-size: 12px;

}


.floating-card:hover {

    transform: translateY(-10px) rotate(-4deg) scale(1.08);

}


.card-one {

    top: 10%;

    left: 5%;

}


.card-two {

    right: 3%;

    top: 30%;

}


.card-three {

    bottom: 10%;

    left: 12%;

}


/* =====================================================
   MARQUEE
===================================================== */

.marquee-section {

    overflow: hidden;

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

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

    padding: 22px 0;

}


.marquee {

    display: flex;

    width: max-content;

    gap: 40px;

    animation: marquee 20s linear infinite;

    font-size: 15px;

    letter-spacing: .2em;

}


.marquee i {

    color: var(--accent);

}


/* =====================================================
   SECTION HEADINGS
===================================================== */

.section-heading {

    display: flex;

    align-items: baseline;

    gap: 30px;

    margin-bottom: 70px;

}


.section-heading > span {

    font-size: 13px;

    color: var(--accent);

}


.section-heading h2 {

    font-family: var(--serif);

    font-size: clamp(55px, 6vw, 85px);

    font-weight: 400;

    line-height: .95;

}


.section-heading em {

    color: var(--accent);

}


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

.about-grid {

    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 80px;

    align-items: center;

}


.about-text {

    max-width: 650px;

}


.large-text {

    font-family: var(--serif);

    font-size: 36px;

    line-height: 1.3;

    margin-bottom: 30px;

}


.about-text p:not(.large-text) {

    color: var(--muted);

    line-height: 1.9;

    margin-bottom: 22px;

    font-size: 17px;

}


.about-card {

    background: var(--accent);

    color: white;

    min-height: 430px;

    padding: 30px;

    display: flex;

    flex-direction: column;

    justify-content: space-between;

    border-radius: 4px;

    transform-style: preserve-3d;

}


.card-top,
.card-bottom {

    display: flex;

    justify-content: space-between;

    font-size: 12px;

    letter-spacing: .1em;

    opacity: .7;

}


.card-middle {

    display: flex;

    flex-direction: column;

}


.card-middle span {

    font-size: 15px;

    letter-spacing: .3em;

}


.card-middle strong {

    font-family: var(--serif);

    font-weight: 400;

    font-size: 68px;

    line-height: 1;

}


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

.skills-grid {

    display: grid;

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

    gap: 15px;

}


.skill-card {

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

    padding: 32px;

    min-height: 350px;

    position: relative;

    transition: var(--transition);

    transform-style: preserve-3d;

}


.skill-card:hover {

    background: var(--surface);

    transform: translateY(-8px);

}


.skill-number {

    font-size: 13px;

    color: var(--muted);

}


.skill-icon {

    font-size: 38px;

    margin: 45px 0 20px;

    color: var(--accent);

    transition: var(--transition);

}


.skill-card:hover .skill-icon {

    transform: translateZ(30px) rotate(8deg) scale(1.2);

}


.skill-card h3 {

    font-size: 24px;

    margin-bottom: 12px;

}


.skill-card p {

    color: var(--muted);

    line-height: 1.7;

    font-size: 16px;

}


.tags {

    display: flex;

    flex-wrap: wrap;

    gap: 7px;

    margin-top: 20px;

}


.tags span {

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

    padding: 6px 10px;

    border-radius: 30px;

    font-size: 12px;

}


.special-card {

    background: var(--accent);

    color: white;

}


.special-card .skill-number {

    color: rgba(255,255,255,.6);

}


.special-card p {

    color: rgba(255,255,255,.7);

}


.learning {

    margin-top: 25px;

    font-size: 14px;

}


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

.section-intro {

    max-width: 560px;

    color: var(--muted);

    line-height: 1.8;

    margin-bottom: 50px;

    font-size: 17px;

}


.projects-list {

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

}


.project {

    display: grid;

    grid-template-columns: 100px 1fr 80px;

    gap: 30px;

    align-items: center;

    padding: 40px 10px;

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

    transition: var(--transition);

    cursor: pointer;

}


.project:hover {

    padding-left: 25px;

    padding-right: 25px;

    background: var(--surface);

}


.project-number {

    color: var(--muted);

    font-size: 14px;

}


.project-info p {

    font-size: 12px;

    letter-spacing: .2em;

    color: var(--accent);

    margin-bottom: 8px;

}


.project-info h3 {

    font-family: var(--serif);

    font-size: 44px;

    font-weight: 400;

    margin-bottom: 7px;

}


.project-info span {

    color: var(--muted);

    font-size: 16px;

}


.project-arrow {

    font-size: 28px;

    transition: var(--transition);

    text-align: right;

}


.project:hover .project-arrow {

    transform:
        translate(8px,-8px)
        rotate(10deg);

}


/* PROJECT TAGS */

.project-tags {

    display: flex;

    gap: 7px;

    flex-wrap: wrap;

    margin-top: 18px;

}


.project-tags span {

    color: var(--text);

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

    border-radius: 30px;

    padding: 5px 10px;

    font-size: 11px;

}


/* =====================================================
   LEARNING
===================================================== */

.learning-section {

    padding-top: 50px;

}


.learning-box {

    min-height: 430px;

    background: var(--surface);

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

    padding: 60px;

    display: flex;

    justify-content: space-between;

    align-items: center;

}


.learning-box h2 {

    font-family: var(--serif);

    font-weight: 400;

    font-size: clamp(55px, 7vw, 90px);

    line-height: .95;

    margin-top: 25px;

}


.learning-box em {

    color: var(--accent);

}


.learning-circle {

    width: 200px;

    height: 200px;

    border-radius: 50%;

    background: var(--accent);

    color: white;

    display: grid;

    place-items: center;

    text-align: center;

    font-size: 13px;

    letter-spacing: .2em;

    animation: float 4s ease-in-out infinite;

}


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

.contact {

    min-height: 80vh;

    display: flex;

    flex-direction: column;

    justify-content: center;

}


.contact-content h2 {

    font-family: var(--serif);

    font-size: clamp(65px, 9vw, 120px);

    font-weight: 400;

    line-height: .9;

    margin: 30px 0;

}


.contact-content h2 em {

    color: var(--accent);

}


.contact-content p {

    color: var(--muted);

    max-width: 520px;

    line-height: 1.8;

    font-size: 17px;

}


.email-link {

    display: inline-flex;

    gap: 20px;

    align-items: center;

    margin-top: 40px;

    font-family: var(--serif);

    font-size: clamp(25px, 4vw, 45px);

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

    padding-bottom: 8px;

    transition: var(--transition);

}


.email-link:hover {

    color: var(--accent);

    border-color: var(--accent);

    gap: 35px;

}


.social-links {

    display: flex;

    gap: 30px;

    margin-top: 80px;

}


.social-links a {

    font-size: 15px;

    color: var(--muted);

    transition: var(--transition);

}


.social-links a:hover {

    color: var(--text);

    transform: translateY(-4px);

}


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

footer {

    padding: 28px 5%;

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

    display: flex;

    justify-content: space-between;

    font-size: 13px;

    color: var(--muted);

}


/* =====================================================
   RIPPLE
===================================================== */

.ripple {

    position: relative;

    overflow: hidden;

}


.ripple-effect {

    position: absolute;

    width: 20px;

    height: 20px;

    border-radius: 50%;

    background: currentColor;

    opacity: .15;

    transform: scale(0);

    animation: ripple .6s ease-out;

    pointer-events: none;

}


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

.reveal {

    opacity: 0;

    transform: translateY(30px);

    transition:
        opacity .8s ease,
        transform .8s cubic-bezier(.2,.8,.2,1);

}


.reveal.visible {

    opacity: 1;

    transform: translateY(0);

}


/* =====================================================
   ANIMATIONS
===================================================== */

@keyframes float {

    0%,100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }

}


@keyframes rotate {

    from {
        transform: rotate(0);
    }

    to {
        transform: rotate(360deg);
    }

}


@keyframes rotateReverse {

    from {
        transform: rotate(360deg);
    }

    to {
        transform: rotate(0);
    }

}


@keyframes marquee {

    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }

}


@keyframes ripple {

    to {
        transform: scale(15);

        opacity: 0;
    }

}


@keyframes menuIn {

    from {

        opacity: 0;

        transform: translateY(-20px);

    }

    to {

        opacity: 1;

        transform: translateY(0);

    }

}


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

@media (max-width: 800px) {

    .navbar {

        height: 68px;

    }


    .nav-links {

        display: none;

    }


    .menu-btn {

        display: block;

    }


    .mobile-menu {

        inset: 68px 0 auto 0;

    }


    .section {

        padding: 90px 6%;

    }


    .hero {

        grid-template-columns: 1fr;

        min-height: auto;

        padding-top: 150px;

    }


    .hero h1 {

        font-size: clamp(60px, 16vw, 85px);

    }


    .hero-description {

        font-size: 17px;

    }


    .hero-art {

        height: 420px;

        margin-top: 20px;

    }


    .hero-circle {

        width: 210px;

        height: 210px;

    }


    .hero-circle strong {

        font-size: 60px;

    }


    .orbit-one {

        width: 300px;

        height: 300px;

    }


    .orbit-two {

        width: 360px;

        height: 360px;

    }


    .section-heading {

        gap: 15px;

        margin-bottom: 45px;

    }


    .section-heading h2 {

        font-size: 55px;

    }


    .about-grid {

        grid-template-columns: 1fr;

        gap: 50px;

    }


    .large-text {

        font-size: 30px;

    }


    .about-text p:not(.large-text) {

        font-size: 16px;

    }


    .skills-grid {

        grid-template-columns: 1fr;

    }


    .skill-card h3 {

        font-size: 25px;

    }


    .skill-card p {

        font-size: 16px;

    }


    .project {

        grid-template-columns: 45px 1fr 30px;

        gap: 10px;

    }


    .project-info h3 {

        font-size: 34px;

    }


    .project-info span {

        font-size: 15px;

    }


    .learning-box {

        padding: 35px;

        flex-direction: column;

        align-items: flex-start;

        gap: 50px;

    }


    .learning-circle {

        width: 140px;

        height: 140px;

    }


    .social-links {

        flex-wrap: wrap;

        margin-top: 50px;

    }


    footer {

        flex-direction: column;

        gap: 10px;

        font-size: 12px;

    }

}


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

@media (max-width: 430px) {

    .hero h1 {

        font-size: 60px;

    }


    .hero-description {

        font-size: 16px;

    }


    .hero-buttons {

        flex-direction: column;

    }


    .btn {

        justify-content: center;

    }


    .floating-card {

        transform: scale(.85);

    }


    .card-one {

        left: 0;

    }


    .card-two {

        right: 0;

    }


    .section-heading h2 {

        font-size: 49px;

    }


    .project-info h3 {

        font-size: 29px;

    }


    .project-info span {

        font-size: 14px;

    }

}


/* =====================================================
   ACCESSIBILITY
===================================================== */

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

    *,
    *::before,
    *::after {

        animation-duration: .01ms !important;

        animation-iteration-count: 1 !important;

        scroll-behavior: auto !important;

        transition-duration: .01ms !important;

    }

}