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

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

html {
    width: 100%;
    scroll-behavior: smooth;
}

body {
    width: 100%;
    min-height: 100vh;

     font-family: "Google Sans Flex", sans-serif;

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

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

    cursor: none;
    
}

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

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

button,
input,
textarea,
select {
    font: inherit;
}

main {
    width: 100%;
}

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

:root {

     --bg: #0C0C0F;
    --text: #E8E6EF;
    --muted: #7A7785;
    --surface: #141318;
    --border: #24222B;
    --accent: #8B7EC8;

    --header-h: 90px;

    --transition:
        0.45s cubic-bezier(0.22,
            1,
            0.36,
            1);
    
}

body.light-mode {

     --bg: #F4F3F8;
    --text: #1A1820;
    --muted: #635F72;
    --surface: #ECEAF4;
    --border: #D9D5E3;
    --accent: #6B5FB5;
    
}

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

.cursor-dot {
    width: 10px;
    height: 10px;

     position: fixed;
    top: 0;
    left: 0;

    border-radius: 50%;

    background: var(--accent);

    pointer-events: none;

    z-index: 99999;
    
}

.cursor-ring {
    width: 40px;
    height: 40px;

     position: fixed;
    top: 0;
    left: 0;

    border: 2px solid var(--accent);
    border-radius: 50%;

    pointer-events: none;

    z-index: 99998;
    
}

/* =========================
LOADER
========================= */

.loader {
    position: fixed;
    inset: 0;

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

    background: var(--bg);

    overflow: hidden;

    z-index: 999999;

    transition: opacity .8s ease;
    
}

.loader.hide {
    opacity: 0;
    pointer-events: none;
}

.loader-logo-wrap {
    width: 140px;
    overflow: hidden;
}

.loader-logo {
    width: 100%;

     clip-path: inset(0 0 0 100%);

    animation:
        logoReveal 1.4s cubic-bezier(0.22,
            1,
            0.36,
            1) forwards;
    
}

.light-loader-logo {
    display: none;
}

body.light-mode .dark-loader-logo {
    display: none;
}

body.light-mode .light-loader-logo {
    display: block;
}

@keyframes logoReveal {

     from {
        clip-path: inset(0 0 0 100%);
        opacity: .15;
    }

    to {
        clip-path: inset(0 0 0 0);
        opacity: 1;
    }

    
}

/* =========================
HEADER
========================= */

.header {

     width: 100%;
    height: var(--header-h);

    padding: 0 3vw;

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

    position: relative;

    background: var(--bg);

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

    z-index: 1000;

    transition: var(--transition);
    
}

.header-left {
    display: flex;
    align-items: center;
    gap: 18px;
}

.header-logo {
    width: 56px;
    transition: var(--transition);
}

.light-logo {
    display: none;
}

body.light-mode .dark-logo {
    display: none;
}

body.light-mode .light-logo {
    display: block;
}

/* =========================
THEME TOGGLE
========================= */

.theme-toggle {

     width: 62px;
    height: 34px;

    position: relative;

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

    background: var(--surface);

    cursor: inherit;

    transition: var(--transition);
    
}

.toggle-circle {

     position: absolute;

    top: 4px;
    left: 4px;

    width: 24px;
    height: 24px;

    border-radius: 50%;

    background: var(--accent);

    transition: var(--transition);
    
}

body.light-mode .toggle-circle {
    left: 32px;
}

/* =========================
HEADER CENTER
========================= */

.header-center {
    text-align: center;
}

.header-center h1 {

     font-family: 'Playfair Display', serif;

    font-size: 1.5rem;
    font-weight: 600;

    letter-spacing: .03em;
    
}

.header-center p {

     margin-top: 2px;

    color: var(--muted);

    font-size: .78rem;

    letter-spacing: .3em;

    text-transform: uppercase;
    
}

/* =========================
MENU BUTTON
========================= */

.menu-btn {

     width: 52px;
    height: 52px;

    position: relative;

    border: none;
    background: none;

    cursor: inherit;
    
}

.menu-btn span {

     position: absolute;
    left: 50%;

    width: 30px;
    height: 2px;

    background: var(--text);

    transform: translateX(-50%);

    transition: var(--transition);
    
}

.menu-btn span:nth-child(1) {
    top: 20px;
}

.menu-btn span:nth-child(2) {
    top: 30px;
}

.menu-btn.active span:nth-child(1) {
    top: 25px;
    transform: translateX(-50%) rotate(45deg);
}

.menu-btn.active span:nth-child(2) {
    top: 25px;
    transform: translateX(-50%) rotate(-45deg);
}

/* =========================
FULLSCREEN MENU
========================= */

.fullscreen-menu {

     position: fixed;
    inset: 0;

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

    background: var(--bg);

    opacity: 0;
    visibility: hidden;

    z-index: 900;

    transition: var(--transition);
    
}

.fullscreen-menu.active {
    opacity: 1;
    visibility: visible;
}

.fullscreen-menu nav {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.fullscreen-menu a {

     font-family: 'Playfair Display', serif;

    font-size: 3rem;

    color: var(--text);

    transition: var(--transition);
    
}

.fullscreen-menu a:hover {
    color: var(--accent);
}

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

.footer {

     width: 100%;

    padding: 16px 3vw;

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

    gap: 30px;

    position: relative;

    background: var(--bg);

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

    z-index: 200;
    
}

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

.footer-left {
    position: relative;
    display: flex;
    align-items: center;
}

.desktop-socials {
    display: flex;
    align-items: center;
    gap: 14px;
}

.desktop-socials a {

     width: 44px;
    height: 44px;

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

    border-radius: 50%;

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

    background: var(--surface);

    color: var(--text);

    transition: var(--transition);
    
}

.desktop-socials a:hover {

     background: var(--accent);
    border-color: var(--accent);

    color: #fff;
    
}

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

.mobile-social-wrapper {
    display: none;
    position: relative;
}

.mobile-social-btn {

     width: 48px;
    height: 48px;

    border-radius: 50%;

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

    background: var(--surface);

    color: var(--text);

    cursor: inherit;
    
}

.mobile-social-menu {

     position: absolute;

    left: 0;
    bottom: 60px;

    display: flex;
    flex-direction: column-reverse;
    gap: 10px;

    opacity: 0;
    visibility: hidden;

    transform: translateY(10px);

    transition: var(--transition);
    
}

.mobile-social-menu.active {

     opacity: 1;
    visibility: visible;

    transform: translateY(0);
    
}

.mobile-social-menu a {

     width: 48px;
    height: 48px;

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

    border-radius: 50%;

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

    background: var(--surface);

    color: var(--text);

    transition: var(--transition);
    
}

.mobile-social-menu a:hover,
.mobile-social-btn:hover {

     background: var(--accent);
    border-color: var(--accent);

    color: #fff;
    
}

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

.footer-center {

     width: 320px;

    position: relative;

    z-index: 9999;
    
}

.footer-dropdown-btn {

     width: 100%;

    padding: 14px 0;

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

    background: none;
    border: none;

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

    color: var(--text);

    cursor: inherit;
    
}

.footer-dropdown {

     position: absolute;

    left: 0;
    bottom: 65px;

    width: 100%;

    display: flex;
    flex-direction: column;

    background: var(--surface);

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

    overflow: hidden;

    opacity: 0;
    visibility: hidden;

    transform: translateY(10px);

    transition: var(--transition);
    
}

.footer-dropdown.active {

     opacity: 1;
    visibility: visible;

    transform: translateY(0);
    
}

.footer-dropdown a {

     padding: 16px 18px;

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

    transition: var(--transition);
    
}

.footer-dropdown a:last-child {
    border-bottom: none;
}

.footer-dropdown a:hover {

     background: var(--accent);

    color: #fff;
    
}

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

.footer-right {
    flex-shrink: 0;
}

.footer-right p {

     color: var(--muted);

    font-size: .9rem;

    white-space: nowrap;
    
}

/* =========================
HEADER + FOOTER RESPONSIVE
========================= */

@media (max-width: 768px) {

    :root {
        --header-h: 70px;
    }

    .cursor-dot,
    .cursor-ring {
        display: none !important;
    }

    html,
    body {
        cursor: auto;
    }

    .header {
        padding: 0 16px;
    }

    .header-left {
        gap: 10px;
    }

    .header-logo {
        width: 40px;
    }

    .header-center h1 {
        font-size: 1.05rem;
    }

    .header-center p {
        font-size: .58rem;
        letter-spacing: .18em;
    }

    .theme-toggle {
        width: 48px;
        height: 26px;
    }

    .toggle-circle {

        width: 18px;
        height: 18px;

        top: 3px;
        left: 3px;
    }

    body.light-mode .toggle-circle {
        left: 25px;
    }

    .menu-btn {
        width: 42px;
        height: 42px;
    }

    .menu-btn span {
        width: 22px;
    }

    .menu-btn span:nth-child(1) {
        top: 16px;
    }

    .menu-btn span:nth-child(2) {
        top: 24px;
    }

    .menu-btn.active span:nth-child(1),
    .menu-btn.active span:nth-child(2) {
        top: 20px;
    }

    .fullscreen-menu a {
        font-size: 2.2rem;
    }

    .footer {
        padding: 12px 16px;
        gap: 10px;
    }

    .desktop-socials {
        display: none;
    }

    .mobile-social-wrapper {
        display: flex;
        flex-shrink: 0;
    }

    .footer-center {
        width: auto;
        flex: 1;
        max-width: 140px;
    }

    .footer-dropdown-btn {
        font-size: .75rem;
        padding: 8px 0;
    }

    .footer-dropdown {
        bottom: 50px;
    }

    .footer-dropdown a {
        padding: 12px;
        font-size: .75rem;
    }

    .footer-right p {
        font-size: .65rem;
    }

    
}

@media (min-width: 769px) {

     .mobile-social-wrapper {
        display: none !important;
    }

    
}