/* =========================================================
   ARDANARX
   PERSONAL WEBSITE
   CLEAN TYPOGRAPHY + CIRCULAR PROFILE
   ========================================================= */


/* =========================================================
   1. VARIABLES
   ========================================================= */

   :root {
    --bg: #ffffff;
    --bg-soft: #f7f7f5;

    --text: #111111;
    --text-soft: #666666;

    --border: #e7e7e7;

    --nav-bg: rgba(255, 255, 255, 0.94);
    --menu-bg: rgba(255, 255, 255, 0.98);

    --toggle-track: #dedede;
    --toggle-dot: #ffffff;

    --max-width: 960px;
    --content-width: 690px;

    --serif: "DM Serif Display", Georgia, serif;
    --sans: "Manrope", Arial, sans-serif;

    --ease: 0.3s ease;
}


/* =========================================================
   2. DARK MODE
   ========================================================= */

html.dark-mode {
    --bg: #111111;
    --bg-soft: #181818;

    --text: #f2f2f2;
    --text-soft: #a5a5a5;

    --border: #292929;

    --nav-bg: rgba(25, 25, 25, 0.94);
    --menu-bg: rgba(25, 25, 25, 0.98);

    --toggle-track: #3b3b3b;
    --toggle-dot: #f1f1f1;
}


/* =========================================================
   3. RESET
   ========================================================= */

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
    background: var(--bg);
}

body {
    margin: 0;

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

    font-family: var(--sans);

    font-size: 16px;
    font-weight: 400;

    line-height: 1.7;

    overflow-x: hidden;

    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;

    transition:
        background-color var(--ease),
        color var(--ease);
}

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

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

button {
    font-family: inherit;
}


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

.site-header {
    position: relative;
    z-index: 1000;

    width: 100%;

    padding-top: 22px;
}


/* =========================================================
   5. NAVBAR
   ========================================================= */

.navbar {
    position: fixed;

    top: 22px;
    left: 50%;

    transform: translateX(-50%);

    z-index: 10000;

    width: min(
        calc(100% - 48px),
        var(--max-width)
    );

    height: 58px;

    padding: 0 13px 0 25px;

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

    background: var(--nav-bg);

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

    box-shadow:
        0 7px 24px rgba(0, 0, 0, 0.045);

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

    transition:
        background-color var(--ease),
        border-color var(--ease),
        box-shadow var(--ease);
}


/* =========================================================
   6. BRAND
   ========================================================= */

.brand {
    flex-shrink: 0;

    font-size: 19px;
    font-weight: 700;

    line-height: 1;

    letter-spacing: -0.5px;

    color: var(--text);

    white-space: nowrap;
}


/* =========================================================
   7. NAV RIGHT
   ========================================================= */

.nav-right {
    display: flex;
    align-items: center;

    gap: 13px;

    margin-left: auto;
}


/* =========================================================
   8. NAV LINKS
   ========================================================= */

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

    gap: 28px;
}

.nav-links a {
    position: relative;

    font-size: 14px;
    font-weight: 500;

    line-height: 1;

    letter-spacing: -0.1px;

    color: var(--text-soft);

    white-space: nowrap;

    transition:
        color 0.25s ease;
}

.nav-links a:hover {
    color: var(--text);
}


/* =========================================================
   9. DARK MODE TOGGLE
   ========================================================= */

.theme-toggle {
    width: 32px;
    height: 30px;

    padding: 0;

    border: 0;
    outline: 0;

    background: transparent;

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

    cursor: pointer;

    flex-shrink: 0;

    -webkit-tap-highlight-color: transparent;
}

.theme-track {
    position: relative;

    width: 25px;
    height: 14px;

    display: block;

    border-radius: 999px;

    background: var(--toggle-track);

    transition:
        background-color 0.3s ease;
}

.theme-dot {
    position: absolute;

    top: 3px;
    left: 3px;

    width: 8px;
    height: 8px;

    border-radius: 50%;

    background: var(--toggle-dot);

    box-shadow:
        0 1px 3px rgba(0, 0, 0, 0.15);

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

html.dark-mode .theme-dot {
    transform: translateX(11px);
}


/* =========================================================
   10. MOBILE MENU BUTTON
   ========================================================= */

.menu-toggle {
    display: none;

    position: relative;

    z-index: 10001;

    width: 40px;
    height: 40px;

    padding: 0;

    border: 0;

    background: transparent;

    cursor: pointer;

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

    flex-direction: column;

    gap: 5px;

    -webkit-tap-highlight-color: transparent;
}

.menu-toggle span {
    display: block;

    width: 18px;
    height: 1.6px;

    background: var(--text);

    border-radius: 999px;

    transition:
        transform 0.25s ease,
        opacity 0.25s ease,
        background-color var(--ease);
}


/* =========================================================
   11. MENU ANIMATION
   ========================================================= */

.menu-toggle.active span:nth-child(1) {
    transform:
        translateY(6.6px)
        rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform:
        translateY(-6.6px)
        rotate(-45deg);
}


/* =========================================================
   12. MOBILE MENU
   ========================================================= */

.mobile-menu {
    display: none;

    position: fixed;

    top: 90px;
    left: 50%;

    transform: translateX(-50%);

    z-index: 9999;

    width: min(
        calc(100% - 48px),
        var(--max-width)
    );

    padding: 10px 18px;

    background: var(--menu-bg);

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

    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.07);

    flex-direction: column;
}

.mobile-menu.active {
    display: flex;
}

.mobile-menu a {
    padding: 12px 4px;

    font-size: 15px;
    font-weight: 600;

    line-height: 1.4;

    color: var(--text-soft);

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

    transition:
        color 0.25s ease;
}

.mobile-menu a:last-child {
    border-bottom: none;
}

.mobile-menu a:hover {
    color: var(--text);
}


/* =========================================================
   13. HERO
   ========================================================= */

.hero {
    width: 100%;

    padding-top: 108px;
    padding-bottom: 78px;

    background: var(--bg);

    transition:
        background-color var(--ease);
}

.hero-inner {
    width: min(
        calc(100% - 48px),
        900px
    );

    min-height: 490px;

    margin: 0 auto;

    display: grid;

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

    align-items: center;

    column-gap: 58px;
}


/* =========================================================
   14. HERO CONTENT
   ========================================================= */

.hero-content {
    grid-column: 1;
    grid-row: 1;

    max-width: 460px;

    align-self: center;
}

.hero-content h1 {
    margin-bottom: 29px;

    font-family: var(--serif);

    font-size: clamp(
        52px,
        5vw,
        65px
    );

    font-weight: 400;

    line-height: 1;

    letter-spacing: -1.9px;

    color: var(--text);
}

.hero-content p {
    max-width: 435px;

    font-size: 16px;
    font-weight: 500;

    line-height: 1.7;

    letter-spacing: -0.1px;

    color: var(--text-soft);
}


/* =========================================================
   15. HERO IMAGE
   ========================================================= */

.hero-image {
    grid-column: 2;
    grid-row: 1;

    width: 340px;
    height: 340px;

    margin: 0 auto;

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

    background: #D9D9D6;

    border-radius: 50%;

    overflow: hidden;

    align-self: center;

    transition:
        background-color 0.3s ease;
}


/* =========================================================
   16. DARK MODE PHOTO BACKGROUND
   ========================================================= */

html.dark-mode .hero-image {
    background: #181818;
}


/* =========================================================
   17. PROFILE PHOTO
   ========================================================= */

.hero-image img {
    width: 100%;
    height: 100%;

    max-width: none;

    object-fit: cover;

    border-radius: 50%;
}


/* =========================================================
   18. GENERAL SECTIONS
   ========================================================= */

.section {
    width: 100%;

    padding: 82px 24px;

    transition:
        background-color var(--ease);
}

.section-light {
    background: var(--bg-soft);
}

.section-white {
    background: var(--bg);
}

.content {
    width: min(
        100%,
        var(--content-width)
    );

    margin: 0 auto;
}


/* =========================================================
   19. SECTION HEADINGS
   ========================================================= */

.content h2 {
    margin-bottom: 22px;

    font-family: var(--serif);

    font-size: 42px;

    font-weight: 400;

    line-height: 1.08;

    letter-spacing: -1.1px;

    color: var(--text);
}


/* =========================================================
   20. SECTION PARAGRAPHS
   ========================================================= */

.content p {
    margin-bottom: 19px;

    font-size: 16px;

    font-weight: 400;

    line-height: 1.76;

    letter-spacing: -0.08px;

    color: var(--text-soft);
}

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


/* =========================================================
   21. LARGE TEXT
   ========================================================= */

.large-text {
    font-size: 17px !important;

    line-height: 1.74 !important;

    letter-spacing: -0.08px !important;
}


/* =========================================================
   22. INLINE LINKS
   ========================================================= */

.content p a {
    color: var(--text);

    text-decoration: underline;

    text-decoration-thickness: 1px;

    text-underline-offset: 4px;
}


/* =========================================================
   23. LIST
   ========================================================= */

.content ul {
    margin-top: 21px;
    margin-bottom: 25px;

    padding-left: 21px;

    color: var(--text-soft);
}

.content li {
    margin-bottom: 7px;

    padding-left: 2px;

    font-size: 16px;

    line-height: 1.65;
}

.content li:last-child {
    margin-bottom: 0;
}


/* =========================================================
   24. TEXT LINK
   ========================================================= */

.text-link {
    display: inline-block;

    padding-bottom: 2px;

    color: var(--text);

    font-size: 14px;

    font-weight: 700;

    line-height: 1.5;

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

.text-link:hover {
    opacity: 0.65;
}


/* =========================================================
   25. NOTES
   ========================================================= */

.note-item {
    padding: 25px 0;

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

.note-item:first-of-type {
    margin-top: 31px;
}

.note-item h3 {
    margin-bottom: 8px;

    font-size: 17px;

    font-weight: 700;

    line-height: 1.45;

    letter-spacing: -0.2px;

    color: var(--text);
}

.note-item p {
    margin-bottom: 0;
}


/* =========================================================
   26. CONTACT
   ========================================================= */

.contact-section {
    width: 100%;

    padding: 115px 24px 125px;

    background: var(--bg);

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

    transition:
        background-color var(--ease),
        border-color var(--ease);
}

.contact-content {
    width: min(
        100%,
        var(--content-width)
    );

    margin: 0 auto;
}

.contact-content h2 {
    margin-bottom: 26px;

    font-family: var(--serif);

    font-size: 54px;

    font-weight: 400;

    line-height: 1;

    letter-spacing: -1.5px;

    color: var(--text);
}

.contact-content p {
    max-width: 590px;

    margin-bottom: 15px;

    font-size: 16px;

    line-height: 1.72;

    color: var(--text-soft);
}


/* =========================================================
   27. CONTACT BUTTON
   ========================================================= */

.contact-button {
    display: inline-flex;

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

    margin-top: 18px;

    padding: 11px 20px;

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

    border-radius: 999px;

    background: transparent;

    color: var(--text);

    font-size: 14px;

    font-weight: 700;

    line-height: 1;

    transition:
        background-color 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease;
}

.contact-button:hover {
    background: var(--text);

    color: var(--bg);

    transform: translateY(-2px);
}


/* =========================================================
   28. TABLET
   ========================================================= */

@media (max-width: 900px) {

    .navbar {
        width: calc(100% - 40px);
    }

    .nav-right {
        gap: 10px;
    }

    .nav-links {
        gap: 20px;
    }

    .nav-links a {
        font-size: 13.5px;
    }


    /* HERO */

    .hero-inner {
        width: calc(100% - 48px);

        column-gap: 38px;
    }

    .hero-content h1 {
        font-size: 56px;

        letter-spacing: -1.7px;
    }

    .hero-content p {
        font-size: 16px;
    }


    /* PHOTO */

    .hero-image {
        width: 315px;
        height: 315px;
    }


    /* SECTIONS */

    .content h2 {
        font-size: 40px;
    }


    /* CONTACT */

    .contact-content h2 {
        font-size: 52px;
    }
}


/* =========================================================
   29. MOBILE
   ========================================================= */

@media (max-width: 700px) {

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


    /* -----------------------------------------------------
       NAVBAR
    ----------------------------------------------------- */

    .navbar {
        top: 16px;

        width: calc(100% - 36px);

        height: 56px;

        padding: 0 7px 0 18px;
    }

    .brand {
        font-size: 19px;
    }

    .nav-right {
        gap: 2px;
    }

    .nav-links {
        display: none;
    }

    .theme-toggle {
        width: 32px;
        height: 32px;
    }

    .menu-toggle {
        display: flex;

        width: 40px;
        height: 40px;
    }


    /* -----------------------------------------------------
       MOBILE MENU
    ----------------------------------------------------- */

    .mobile-menu {
        top: 80px;

        width: calc(100% - 36px);

        padding: 9px 15px;
    }

    .mobile-menu a {
        padding: 12px 5px;

        font-size: 14px;
    }


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

    .hero {
        padding-top: 93px;

        padding-bottom: 60px;
    }

    .hero-inner {
        width: calc(100% - 44px);

        min-height: auto;

        display: flex;

        flex-direction: column;

        align-items: stretch;
    }


    /* PHOTO */

    .hero-image {
        order: 1;

        width: 285px;
        height: 285px;

        margin: 0 auto 43px;
    }

    .hero-image img {
        width: 100%;
        height: 100%;

        max-width: none;

        object-fit: cover;

        border-radius: 50%;
    }


    /* HERO TEXT */

    .hero-content {
        order: 2;

        width: 100%;

        max-width: none;
    }

    .hero-content h1 {
        margin-bottom: 27px;

        font-size: 47px;

        line-height: 0.99;

        letter-spacing: -1.5px;
    }

    .hero-content p {
        max-width: 100%;

        font-size: 15px;

        line-height: 1.72;
    }


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

    .section {
        padding: 64px 28px;
    }

    .content {
        width: 100%;
    }

    .content h2 {
        margin-bottom: 21px;

        font-size: 38px;

        line-height: 1.07;

        letter-spacing: -1px;
    }

    .content p {
        margin-bottom: 18px;

        font-size: 15px;

        line-height: 1.74;
    }


    /* -----------------------------------------------------
       LARGE TEXT
    ----------------------------------------------------- */

    .large-text {
        font-size: 15px !important;

        line-height: 1.74 !important;

        letter-spacing: -0.05px !important;
    }


    /* -----------------------------------------------------
       LIST
    ----------------------------------------------------- */

    .content ul {
        margin-top: 20px;

        margin-bottom: 24px;

        padding-left: 19px;
    }

    .content li {
        margin-bottom: 7px;

        font-size: 15px;

        line-height: 1.65;
    }


    /* -----------------------------------------------------
       NOTES
    ----------------------------------------------------- */

    .note-item {
        padding: 22px 0;
    }

    .note-item:first-of-type {
        margin-top: 27px;
    }

    .note-item h3 {
        margin-bottom: 7px;

        font-size: 16px;

        line-height: 1.45;
    }

    .note-item p {
        font-size: 15px;
    }


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

    .contact-section {
        padding: 86px 28px 100px;
    }

    .contact-content {
        width: 100%;
    }

    .contact-content h2 {
        margin-bottom: 25px;

        font-size: 46px;

        line-height: 1;

        letter-spacing: -1.2px;
    }

    .contact-content p {
        margin-bottom: 14px;

        font-size: 15px;

        line-height: 1.72;
    }

    .contact-button {
        margin-top: 17px;

        padding: 11px 19px;

        font-size: 13px;
    }
}


/* =========================================================
   30. SMALL MOBILE
   ========================================================= */

@media (max-width: 420px) {

    .navbar {
        top: 14px;

        width: calc(100% - 32px);

        height: 54px;

        padding-left: 18px;
        padding-right: 6px;
    }

    .brand {
        font-size: 18.5px;
    }

    .theme-toggle {
        width: 31px;
        height: 31px;
    }

    .theme-track {
        width: 25px;
        height: 14px;
    }

    .theme-dot {
        top: 2.5px;
        left: 2.5px;

        width: 8px;
        height: 8px;
    }

    html.dark-mode .theme-dot {
        transform: translateX(10.5px);
    }

    .menu-toggle {
        width: 39px;
        height: 39px;
    }

    .mobile-menu {
        top: 74px;

        width: calc(100% - 32px);
    }


    /* HERO */

    .hero {
        padding-top: 88px;

        padding-bottom: 53px;
    }

    .hero-inner {
        width: calc(100% - 40px);
    }

    .hero-image {
        width: 270px;
        height: 270px;

        margin-bottom: 40px;
    }

    .hero-content h1 {
        margin-bottom: 25px;

        font-size: 44px;

        line-height: 0.99;

        letter-spacing: -1.4px;
    }

    .hero-content p {
        font-size: 15px;

        line-height: 1.7;
    }


    /* SECTIONS */

    .section {
        padding: 58px 25px;
    }

    .content h2 {
        margin-bottom: 20px;

        font-size: 36px;

        letter-spacing: -0.9px;
    }

    .content p {
        font-size: 15px;

        line-height: 1.72;
    }

    .large-text {
        font-size: 15px !important;

        line-height: 1.72 !important;
    }


    /* CONTACT */

    .contact-section {
        padding: 76px 25px 90px;
    }

    .contact-content h2 {
        font-size: 42px;

        letter-spacing: -1px;
    }
}


/* =========================================================
   31. VERY SMALL MOBILE
   ========================================================= */

@media (max-width: 360px) {

    .navbar {
        width: calc(100% - 30px);
    }

    .hero-inner {
        width: calc(100% - 32px);
    }

    .hero-image {
        width: 250px;
        height: 250px;
    }

    .hero-content h1 {
        font-size: 41px;
    }

    .hero-content p {
        font-size: 14.5px;
    }

    .content h2 {
        font-size: 34px;
    }

    .content p {
        font-size: 14.5px;
    }

    .contact-content h2 {
        font-size: 39px;
    }
}


/* =========================================================
   32. REDUCED MOTION
   ========================================================= */

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

    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition: none !important;
    }
}