/* =====================================================
   SUJOY.IN 2.0 — GLOBAL CSS

   Shared:
   - Root variables
   - Reset / body
   - Header
   - Logo
   - Menu button
   - Fullscreen menu shell
   - Footer
   - Social icons
   - Mobile shared rules
===================================================== */


/* =====================================================
   ROOT
===================================================== */

:root {
    --bg: #f8fafc;
    --bg-soft: #f1f5f9;

    --text: #172033;
    --muted: #697386;

    --accent: #5367e8;
    --accent-soft: #eef1ff;

    --line: rgba(23, 32, 51, 0.09);

    --white: #ffffff;

    --header-height: 76px;
    --max-width: 1160px;
}


/* =====================================================
   RESET
===================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 95px;
}

body {
    font-family:
        Inter,
        ui-sans-serif,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        Helvetica,
        Arial,
        sans-serif;

    background: var(--bg);
    color: var(--text);

    line-height: 1.7;

    overflow-x: hidden;

    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

button {
    font-family: inherit;
}

a {
    color: inherit;
    text-decoration: none;
}


/* =====================================================
   HEADER
===================================================== */

.site-header {
    position: fixed;

    top: 0;
    left: 0;

    width: 100%;
    height: var(--header-height);

    z-index: 1000;

    transition:
        background 0.35s ease,
        box-shadow 0.35s ease,
        backdrop-filter 0.35s ease;
}

.site-header.scrolled {
    background: rgba(248, 250, 252, 0.86);

    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);

    box-shadow:
        0 1px 0 rgba(23, 32, 51, 0.07);
}

.nav {
    width: min(calc(100% - 40px), var(--max-width));

    height: 100%;

    margin: auto;

    display: flex;
    align-items: center;
    justify-content: space-between;
}


/* =====================================================
   LOGO
===================================================== */

.logo {
    position: relative;

    display: inline-flex;
    align-items: center;

    font-size: 1.25rem;
    font-weight: 800;

    letter-spacing: 0.22em;

    color: var(--text);
}

.logo span {
    display: inline-block;

    animation:
        logoLetter 5s ease-in-out infinite;
}

.logo span:nth-child(2) {
    animation-delay: 0.08s;
}

.logo span:nth-child(3) {
    animation-delay: 0.16s;
}

.logo span:nth-child(4) {
    animation-delay: 0.24s;
}

.logo span:nth-child(5) {
    animation-delay: 0.32s;
}

@keyframes logoLetter {

    0%,
    80%,
    100% {
        transform: translateY(0);
        color: var(--text);
    }

    88% {
        transform: translateY(-3px);
        color: var(--accent);
    }

    94% {
        transform: translateY(1px);
    }
}

.logo-dot {
    width: 5px;
    height: 5px;

    margin-left: 5px;

    border-radius: 50%;

    background: var(--accent);

    box-shadow:
        0 0 14px rgba(83, 103, 232, 0.45);

    animation:
        logoDot 2.4s ease-in-out infinite;
}

@keyframes logoDot {

    0%,
    100% {
        opacity: 0.35;
        transform: scale(0.8);
    }

    50% {
        opacity: 1;
        transform: scale(1.15);
    }
}


/* =====================================================
   MENU BUTTON
===================================================== */

.menu-button {
    display: flex;
    align-items: center;

    gap: 12px;

    height: 44px;

    padding: 0 5px 0 14px;

    border: 1px solid var(--line);
    border-radius: 100px;

    background:
        rgba(255, 255, 255, 0.62);

    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);

    cursor: pointer;

    color: var(--text);

    transition:
        background 0.25s ease,
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.menu-button:hover {
    background: white;

    transform: translateY(-1px);

    box-shadow:
        0 8px 24px rgba(23, 32, 51, 0.08);
}

.menu-label {
    font-size: 0.68rem;
    font-weight: 700;

    letter-spacing: 0.16em;
}

.menu-icon {
    position: relative;

    width: 34px;
    height: 34px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: var(--text);

    transition:
        transform 0.4s cubic-bezier(.2, .8, .2, 1),
        background 0.25s ease;
}

.menu-icon span {
    position: absolute;

    width: 13px;
    height: 1.5px;

    border-radius: 10px;

    background: white;

    transition:
        transform 0.35s ease;
}

.menu-icon span:first-child {
    transform: translateY(-3px);
}

.menu-icon span:last-child {
    transform: translateY(3px);
}

.menu-button.active .menu-icon {
    transform: rotate(180deg);

    background: var(--accent);
}

.menu-button.active .menu-icon span:first-child {
    transform: rotate(45deg);
}

.menu-button.active .menu-icon span:last-child {
    transform: rotate(-45deg);
}


/* =====================================================
   FULLSCREEN MENU
===================================================== */

.creative-menu {
    position: fixed;

    inset: 0;

    z-index: 900;

    padding-top: var(--header-height);

    background:
        rgba(248, 250, 252, 0.97);

    backdrop-filter: blur(26px);
    -webkit-backdrop-filter: blur(26px);

    opacity: 0;
    visibility: hidden;

    pointer-events: none;

    transform: translateY(-15px);

    transition:
        opacity 0.4s ease,
        visibility 0.4s ease,
        transform 0.45s cubic-bezier(.2, .8, .2, 1);
}

.creative-menu.active {
    opacity: 1;
    visibility: visible;

    pointer-events: auto;

    transform: translateY(0);
}

.creative-menu-bg {
    position: absolute;

    inset: 0;

    overflow: hidden;

    pointer-events: none;
}


/* =====================================================
   FOOTER
===================================================== */

footer {
    border-top:
        1px solid var(--line);

    padding:
        38px 20px 42px;
}

.footer-inner {
    width:
        min(100%, var(--max-width));

    margin: auto;

    display: grid;

    grid-template-columns:
        1fr auto auto;

    align-items: center;

    gap: 45px;
}

.footer-copy {
    min-width: 0;
}

.copyright {
    color: var(--muted);

    font-size: 0.82rem;
}

.footer-note {
    margin-top: 7px;

    max-width: 520px;

    color: #939daf;

    font-size: 0.78rem;
}


/* =====================================================
   FOOTER SOCIAL ICONS
===================================================== */

.footer-socials {
    display: flex;
    align-items: center;

    gap: 8px;
}

.social-link {
    position: relative;

    width: 38px;
    height: 38px;

    display: flex;
    align-items: center;
    justify-content: center;

    border:
        1px solid var(--line);

    border-radius: 50%;

    color: var(--muted);

    background:
        rgba(255, 255, 255, 0.42);

    transition:
        color 0.25s ease,
        background 0.25s ease,
        border-color 0.25s ease,
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.social-link svg {
    width: 16px;
    height: 16px;

    fill: none;

    stroke: currentColor;

    stroke-width: 1.65;
    stroke-linecap: round;
    stroke-linejoin: round;

    transition:
        transform 0.25s ease;
}


/* Facebook + Bluesky */

.social-link:nth-child(2) svg,
.social-link:nth-child(5) svg {
    fill: currentColor;
    stroke: none;
}


/* Instagram dot */

.social-dot {
    fill: currentColor;
    stroke: none;
}


/* Hover */

.social-link:hover {
    color: var(--accent);

    border-color:
        rgba(83, 103, 232, 0.22);

    background:
        var(--accent-soft);

    transform:
        translateY(-3px);

    box-shadow:
        0 8px 20px
        rgba(83, 103, 232, 0.10);
}

.social-link:hover svg {
    transform:
        scale(1.06);
}


/* Keyboard accessibility */

.social-link:focus-visible {
    outline:
        2px solid var(--accent);

    outline-offset: 3px;
}


/* =====================================================
   FOOTER MARK
===================================================== */

.footer-mark {
    font-family:
        "Times New Roman",
        Times,
        serif;

    color: #a4acba;

    font-size: 1.4rem;
    font-style: italic;

    white-space: nowrap;
}


/* =====================================================
   MOBILE
===================================================== */

@media (max-width: 600px) {

    :root {
        --header-height: 68px;
    }


    /* HEADER WIDTH */

    .nav {
        width:
            min(
                calc(100% - 32px),
                var(--max-width)
            );
    }


    /* LOGO */

    .logo {
        font-size: 1.08rem;
    }


    /* MENU BUTTON */

    .menu-button {
        height: 41px;

        padding:
            0 4px 0 10px;

        gap: 7px;
    }

    .menu-label {
        font-size: 0.59rem;
    }

    .menu-icon {
        width: 31px;
        height: 31px;
    }


    /* FULLSCREEN MENU */

    .creative-menu-inner {
        width:
            calc(100% - 32px);

        height:
            calc(
                100dvh -
                var(--header-height)
            );

        padding:
            18px 0 16px;
    }

    .menu-top {
        padding-bottom: 13px;

        font-size: 0.6rem;
    }

    .creative-links {
        padding: 11px 0;
    }

    .creative-link {
        grid-template-columns:
            31px 1fr auto;

        gap: 8px;

        padding: 11px 0;
    }

    .link-text {
        font-size:
            clamp(
                1.65rem,
                8.5vw,
                2.45rem
            );

        line-height: 1;

        letter-spacing: -0.04em;
    }

    .link-number {
        font-size: 0.56rem;
    }

    .link-arrow {
        font-size: 0.86rem;
    }

    .creative-link:hover {
        padding-left: 0;
    }

    .creative-submenu {
        margin-left: 39px;
    }

    .creative-submenu a {
        padding: 8px 0;

        font-size: 0.82rem;
    }

    .menu-bottom {
        align-items: flex-start;
        flex-direction: column;

        gap: 3px;

        padding-top: 10px;

        font-size: 0.64rem;
    }

    .menu-bottom p {
        max-width: 100%;
    }

    .creative-menu-bg::after {
        bottom: 8%;

        font-size: 5rem;
    }


    /* FOOTER */

    .footer-inner {
        grid-template-columns:
            1fr;

        align-items:
            flex-start;

        gap: 20px;
    }

    .footer-socials {
        gap: 7px;
    }

    .social-link {
        width: 37px;
        height: 37px;
    }

    .social-link svg {
        width: 15px;
        height: 15px;
    }

    .footer-mark {
        font-size: 1.15rem;
    }
}


/* =====================================================
   VERY SMALL PHONES
===================================================== */

@media (max-width: 380px) {

    .menu-label {
        display: none;
    }

    .menu-button {
        padding: 4px;

        border-radius: 50%;
    }

    .link-text {
        font-size: 1.55rem;
    }

    .menu-top {
        font-size: 0.55rem;
    }
}


/* =====================================================
   REDUCED MOTION
===================================================== */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration:
            0.01ms !important;

        animation-iteration-count:
            1 !important;

        scroll-behavior:
            auto !important;
    }
}


/* =====================================================
   MENU BACKGROUND
===================================================== */

.creative-menu-bg::before {
    content: "";

    position: absolute;

    width: 520px;
    height: 520px;

    border-radius: 50%;

    right: -170px;
    top: 10%;

    background:
        radial-gradient(
            circle,
            rgba(83, 103, 232, 0.12),
            rgba(83, 103, 232, 0) 70%
        );

    animation:
        menuOrb 12s ease-in-out infinite alternate;
}

.creative-menu-bg::after {
    content: "E = mc²";

    position: absolute;

    left: 4%;
    bottom: 3%;

    font-family: Georgia, serif;

    font-size:
        clamp(5rem, 14vw, 13rem);

    color:
        rgba(23, 32, 51, 0.025);

    white-space: nowrap;

    transform:
        rotate(-5deg);
}

@keyframes menuOrb {

    from {
        transform:
            translate3d(0, 0, 0);
    }

    to {
        transform:
            translate3d(-50px, 35px, 0);
    }
}


/* =====================================================
   MENU INNER
===================================================== */

.creative-menu-inner {
    position: relative;

    z-index: 2;

    width:
        min(
            calc(100% - 60px),
            var(--max-width)
        );

    height:
        calc(
            100dvh -
            var(--header-height)
        );

    margin: auto;

    display: flex;
    flex-direction: column;

    padding:
        28px 0 24px;

    overflow: hidden;
}


/* =====================================================
   MENU TOP
===================================================== */

.menu-top {
    flex-shrink: 0;

    display: flex;
    justify-content: space-between;
    align-items: center;

    gap: 20px;

    padding-bottom: 18px;

    border-bottom:
        1px solid var(--line);

    color: var(--muted);

    font-size: 0.67rem;

    letter-spacing: 0.13em;
    text-transform: uppercase;
}


/* =====================================================
   MAIN LINKS AREA
===================================================== */

.creative-links {
    flex: 1;

    min-height: 0;

    display: block;

    padding: 18px 0;

    overflow-y: auto;
    overflow-x: hidden;

    scrollbar-width: thin;

    scrollbar-color:
        rgba(23, 32, 51, 0.16)
        transparent;

    overscroll-behavior: contain;
}

.creative-links::-webkit-scrollbar {
    width: 4px;
}

.creative-links::-webkit-scrollbar-track {
    background: transparent;
}

.creative-links::-webkit-scrollbar-thumb {
    background:
        rgba(23, 32, 51, 0.16);

    border-radius: 20px;
}


/* =====================================================
   MAIN MENU LINKS
===================================================== */

.creative-link {
    position: relative;

    width: 100%;

    display: grid;

    grid-template-columns:
        48px 1fr auto;

    align-items: center;

    gap: 14px;

    padding: 14px 0;

    border: 0;

    border-bottom:
        1px solid var(--line);

    background: transparent;

    color: var(--text);

    text-align: left;

    cursor: pointer;

    transition:
        padding-left 0.3s ease,
        color 0.3s ease;
}

.creative-link::before {
    content: "";

    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            90deg,
            rgba(83, 103, 232, 0.07),
            transparent 65%
        );

    opacity: 0;

    transition:
        opacity 0.3s ease;

    pointer-events: none;
}

.creative-link:hover {
    padding-left: 14px;

    color: var(--accent);
}

.creative-link:hover::before {
    opacity: 1;
}

.link-number {
    position: relative;

    z-index: 1;

    color: #a4adbc;

    font-size: 0.62rem;

    letter-spacing: 0.12em;
}

.link-text {
    position: relative;

    z-index: 1;

    font-size:
        clamp(
            1.9rem,
            4.2vw,
            3.45rem
        );

    line-height: 1;

    font-weight: 620;

    letter-spacing: -0.045em;
}

.link-arrow {
    position: relative;

    z-index: 1;

    font-size: 1rem;

    color: #9ba5b5;

    transition:
        transform 0.3s ease,
        color 0.3s ease;
}

.creative-link:hover .link-arrow {
    color: var(--accent);

    transform:
        translate(3px, -3px);
}


/* =====================================================
   PSEUDO SUBMENU
===================================================== */

.creative-dropdown {
    overflow: visible;
}

.dropdown-plus {
    font-size: 1.3rem;

    transition:
        transform 0.3s ease;
}

.creative-dropdown.open
.dropdown-plus {
    transform:
        rotate(45deg);
}

.creative-submenu {
    max-height: 0;

    overflow: hidden;

    margin-left: 62px;

    transition:
        max-height 0.4s
        cubic-bezier(.2, .8, .2, 1);
}

.creative-dropdown.open
.creative-submenu {
    max-height: 500px;
}

.creative-submenu a {
    display: flex;
    align-items: center;

    gap: 15px;

    padding: 9px 0;

    color: var(--muted);

    font-size: 0.88rem;

    transition:
        color 0.2s ease,
        transform 0.2s ease;
}

.creative-submenu a span {
    color: #aeb6c3;

    font-size: 0.6rem;

    letter-spacing: 0.1em;
}

.creative-submenu a:hover {
    color: var(--accent);

    transform:
        translateX(6px);
}


/* =====================================================
   MENU BOTTOM
===================================================== */

.menu-bottom {
    flex-shrink: 0;

    display: flex;
    align-items: flex-end;
    justify-content: space-between;

    gap: 30px;

    padding-top: 15px;

    border-top:
        1px solid var(--line);

    color: var(--muted);

    font-size: 0.71rem;

    background:
        rgba(248, 250, 252, 0.94);
}

.menu-bottom p {
    max-width: 340px;
}

.menu-bottom span {
    color: var(--text);

    font-weight: 600;
}




/* =====================================================
   GLOBAL BACKGROUND
===================================================== */

.background {
    position: fixed;
    inset: 0;

    z-index: -3;

    pointer-events: none;

    overflow: hidden;
}

.background::before {
    content: "";

    position: absolute;

    width: 650px;
    height: 650px;

    border-radius: 50%;

    top: -260px;
    right: -200px;

    background:
        radial-gradient(
            circle,
            rgba(83, 103, 232, 0.10),
            rgba(83, 103, 232, 0) 68%
        );

    animation:
        backgroundFloat
        18s
        ease-in-out
        infinite
        alternate;
}

.background::after {
    content: "";

    position: absolute;

    width: 500px;
    height: 500px;

    border-radius: 50%;

    left: -240px;
    bottom: 5%;

    background:
        radial-gradient(
            circle,
            rgba(102, 197, 255, 0.08),
            rgba(102, 197, 255, 0) 70%
        );

    animation:
        backgroundFloat2
        22s
        ease-in-out
        infinite
        alternate;
}

@keyframes backgroundFloat {

    from {
        transform:
            translate3d(0, 0, 0);
    }

    to {
        transform:
            translate3d(-40px, 45px, 0);
    }
}

@keyframes backgroundFloat2 {

    from {
        transform:
            translate3d(0, 0, 0);
    }

    to {
        transform:
            translate3d(55px, -45px, 0);
    }
}


/* =====================================================
   GLOBAL PARTICLES
===================================================== */

.particle-field {
    position: fixed;
    inset: 0;

    z-index: -2;

    pointer-events: none;

    overflow: hidden;

    opacity: 0.55;
}

.particle {
    position: absolute;

    width: 3px;
    height: 3px;

    border-radius: 50%;

    background:
        rgba(83, 103, 232, 0.30);

    animation:
        particleMove
        linear
        infinite;
}

@keyframes particleMove {

    from {
        transform:
            translate3d(0, 30px, 0);

        opacity: 0;
    }

    20% {
        opacity: 1;
    }

    80% {
        opacity: 1;
    }

    to {
        transform:
            translate3d(20px, -100px, 0);

        opacity: 0;
    }
}