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

:root {
    --bg: #f6f8fb;
    --surface: #ffffff;
    --surface-soft: #edf5f4;
    --black1: #111827;
    --muted: #5d6678;
    --line: #dce5ea;
    --bgbtn: #7c3aed;
    --hov: #ff6b4a;
    --accent: #06b6d4;
    --accent-two: #22c55e;
    --accent-three: #f59e0b;
    --bgdiff: rgba(233, 213, 255, 0.78);
    --hero-cover: url("assets/hero-bg-light.png");
    --hero-overlay: linear-gradient(90deg, rgba(255, 255, 255, 0.94) 0%, rgba(255, 255, 255, 0.78) 37%, rgba(255, 255, 255, 0.18) 68%, rgba(255, 255, 255, 0) 100%);
    --hero-text: #111827;
    --hero-copy: #4b5563;
    --header-bg: rgba(246, 248, 251, 0.86);
    --shadow: 0 24px 70px rgba(17, 24, 39, 0.10);
    --shadow-soft: 0 18px 45px rgba(124, 58, 237, 0.16);
    --headfont: 3.75rem;
    --pfont: 1rem;
}

body[data-theme="dark"] {
    --bg: #090d18;
    --surface: #121827;
    --surface-soft: #172033;
    --black1: #f8fafc;
    --muted: #aab7cf;
    --line: rgba(255, 255, 255, 0.12);
    --bgbtn: #38bdf8;
    --hov: #fb7185;
    --accent: #a78bfa;
    --accent-two: #34d399;
    --accent-three: #fbbf24;
    --bgdiff: rgba(167, 139, 250, 0.22);
    --hero-cover: url("assets/hero-bg-dark.png");
    --hero-overlay: linear-gradient(90deg, rgba(3, 7, 18, 0.92) 0%, rgba(3, 7, 18, 0.74) 37%, rgba(3, 7, 18, 0.25) 68%, rgba(3, 7, 18, 0) 100%);
    --hero-text: #ffffff;
    --hero-copy: #d7deea;
    --header-bg: rgba(9, 13, 24, 0.86);
    --shadow: 0 24px 70px rgba(0, 0, 0, 0.38);
    --shadow-soft: 0 18px 45px rgba(56, 189, 248, 0.16);
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    overflow-x: hidden;
    color: var(--black1);
    background:
        linear-gradient(120deg, rgba(124, 58, 237, 0.14), transparent 32%),
        linear-gradient(240deg, rgba(6, 182, 212, 0.16), transparent 34%),
        var(--bg);
    font-family: "DM Sans", sans-serif;
    transition: background 0.35s ease, color 0.35s ease;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -4;
    pointer-events: none;
    background-image:
        linear-gradient(color-mix(in srgb, var(--line) 70%, transparent) 1px, transparent 1px),
        linear-gradient(90deg, color-mix(in srgb, var(--line) 70%, transparent) 1px, transparent 1px);
    background-size: 54px 54px;
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.45), transparent 72%);
}

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

.maxsize {
    width: min(100%, 1200px);
}

.container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem 1.875rem;
}

.scroll-progress {
    position: fixed;
    inset: 0 auto auto 0;
    z-index: 3000;
    width: 100%;
    height: 4px;
    transform: scaleX(0);
    transform-origin: left;
    background: linear-gradient(90deg, var(--accent), var(--accent-two), var(--accent-three), var(--hov));
}

.cursor-dot,
.cursor-ring,
.cursor-light {
    position: fixed;
    left: 0;
    top: 0;
    z-index: 2500;
    opacity: 0;
    pointer-events: none;
}

.cursor-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--hov);
    transform: translate3d(calc(var(--mouse-x, -100px) - 4px), calc(var(--mouse-y, -100px) - 4px), 0);
}

.cursor-ring {
    width: 42px;
    height: 42px;
    border: 1px solid color-mix(in srgb, var(--accent) 72%, transparent);
    border-radius: 50%;
    transform: translate3d(calc(var(--mouse-x, -100px) - 21px), calc(var(--mouse-y, -100px) - 21px), 0);
    transition: width 0.18s ease, height 0.18s ease, border-color 0.18s ease;
}

.cursor-light {
    width: 360px;
    height: 360px;
    z-index: -1;
    border-radius: 50%;
    background: radial-gradient(circle, color-mix(in srgb, var(--accent) 24%, transparent), transparent 68%);
    transform: translate3d(calc(var(--mouse-x, -200px) - 180px), calc(var(--mouse-y, -200px) - 180px), 0);
}

body.cursor-active .cursor-dot,
body.cursor-active .cursor-ring,
body.cursor-active .cursor-light {
    opacity: 1;
}

body.cursor-hover .cursor-ring {
    width: 62px;
    height: 62px;
    border-color: color-mix(in srgb, var(--hov) 80%, transparent);
    transform: translate3d(calc(var(--mouse-x, -100px) - 31px), calc(var(--mouse-y, -100px) - 31px), 0);
}

header {
    min-height: 78px;
    width: 100%;
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--header-bg);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--line);
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
}

.logo {
    font-weight: 700;
    font-size: 1.25rem;
}

.menu ul,
.join-btns {
    display: flex;
    align-items: center;
    gap: 1.6rem;
}

.menu li {
    list-style: none;
}

.menu a,
.nav-link {
    color: var(--muted);
    font-weight: 500;
}

.menu a:hover,
.nav-link:hover,
.footerlinks a:hover {
    color: var(--accent);
}

.pill-link,
.theme-toggle,
#menu-icon {
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface);
    color: var(--black1);
    font: inherit;
}

.pill-link,
.theme-toggle {
    padding: 0.7rem 1.15rem;
}

.theme-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-weight: 700;
}

.theme-toggle-icon {
    color: var(--accent);
}

#menu-icon {
    display: none;
    width: 44px;
    height: 44px;
    cursor: pointer;
}

.cross {
    display: none;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    padding: 1rem 2rem;
    color: #ffffff;
    background: linear-gradient(135deg, var(--bgbtn), var(--accent), var(--accent-two));
    border-radius: 999px;
    box-shadow: var(--shadow-soft);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.btn:hover,
.feature-box:hover,
.review:hover,
.skill-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-soft);
}

.social-icons {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    flex-wrap: wrap;
}

.social-icons a {
    width: 46px;
    height: 46px;
    display: inline-grid;
    place-items: center;
    border-radius: 50%;
    color: var(--bgbtn);
    background: color-mix(in srgb, var(--surface) 92%, white);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-soft);
    transition: transform 0.25s ease, color 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

.social-icons a:hover {
    transform: translateY(-5px) scale(1.04);
    color: #ffffff;
    border-color: transparent;
    background: linear-gradient(135deg, var(--bgbtn), var(--accent), var(--hov));
}

.hero-social {
    margin-top: 1.35rem;
}

.section-hero {
    position: relative;
    min-height: calc(100svh - 78px);
    overflow: hidden;
    align-items: stretch;
    padding: 0;
    isolation: isolate;
}

.hero-bg-layer,
.hero-person-layer,
.hero-noise {
    position: absolute;
    pointer-events: none;
}

.hero-bg-layer {
    inset: 0;
    z-index: -3;
    background:
        var(--hero-overlay),
        var(--hero-cover);
    background-position:
        center,
        calc(50% + (var(--pointer-x, 0) * -22px)) calc(50% + (var(--scroll-y, 0) * -0.07px));
    background-size: cover, cover;
    transform: translate3d(
        calc(var(--pointer-x, 0) * -10px),
        calc((var(--scroll-y, 0) * 0.035px) + (var(--pointer-y, 0) * -8px)),
        0
    ) scale(1.08);
    will-change: transform, background-position;
}

.hero-noise {
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(120deg, transparent 0 28%, rgba(255, 255, 255, 0.10) 29% 30%, transparent 31%),
        repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.05) 0 1px, transparent 1px 72px);
    opacity: 0.3;
}

.hero-person-layer {
    right: clamp(8rem, 18vw, 18rem);
    bottom: -10rem;
    z-index: -2;
    width: min(36vw, 450px);
    min-width: 330px;
    filter: drop-shadow(0 30px 44px rgba(0, 0, 0, 0.25));
    transform: translate3d(
        calc(var(--pointer-x, 0) * 22px),
        calc((var(--scroll-y, 0) * -0.055px) + (var(--pointer-y, 0) * 14px)),
        0
    );
    will-change: transform;
}

.hero-person-layer img {
    display: block;
    width: 100%;
    height: auto;
    animation: portrait-breathe 6s ease-in-out infinite alternate;
}

.section-hero .content {
    position: relative;
    align-items: flex-start;
    width: min(100% - 3.75rem, 1200px);
    min-height: calc(100svh - 78px);
    margin: 0 auto;
    padding: clamp(2rem, 6vw, 5rem) 0;
}

.hero-copy {
    width: min(100%, 470px);
    min-height: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    position: relative;
    z-index: 3;
    animation: hero-copy-in 0.9s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.hero-copy h1 {
    color: var(--hero-text);
    font-size: clamp(2.75rem, 5.1vw, 3.35rem);
    line-height: 1.05;
    text-wrap: balance;
    margin-bottom: 1.5rem;
}

.diff-bold {
    display: inline-block;
    padding: 0 0.75rem;
    border-radius: 8px;
    color: var(--bgbtn);
    background: var(--bgdiff);
}

.hero-copy p {
    max-width: 420px;
    color: var(--hero-copy);
    line-height: 1.9;
    margin-bottom: 2rem;
}

.hero-badges {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.badge-pill,
.hero-badge,
.parallax-social {
    position: absolute;
    background: color-mix(in srgb, var(--surface) 92%, white);
    border: 1px solid var(--line);
    color: var(--bgbtn);
    box-shadow: var(--shadow-soft);
    animation: float-soft 5.5s ease-in-out infinite alternate;
}

.badge-pill {
    padding: 0.55rem 1rem;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.8rem;
}

.hero-badge {
    right: 6%;
    bottom: 60px;
    width: 128px;
    height: 128px;
    border-radius: 8px;
    display: grid;
    place-items: center;
    text-align: center;
    gap: 0.3rem;
}

.hero-badge i {
    display: block;
    font-size: 2.4rem;
    color: var(--accent);
}

.parallax-social {
    width: 48px;
    height: 48px;
    display: inline-grid;
    place-items: center;
    border-radius: 50%;
    font-size: 1.15rem;
    backdrop-filter: blur(14px);
    transform: translate3d(
        calc(var(--pointer-x, 0) * var(--social-depth-x, 12px)),
        calc((var(--scroll-y, 0) * var(--social-scroll, -0.025px)) + (var(--pointer-y, 0) * var(--social-depth-y, 10px))),
        0
    );
    will-change: transform;
}

.parallax-social i {
    color: currentColor;
}

.ps-instagram {
    --social-depth-x: 18px;
    --social-depth-y: 12px;
    --social-scroll: -0.018px;
    top: 18%;
    right: 16%;
    color: #e1306c;
    animation-delay: 0.2s;
}

.ps-facebook {
    --social-depth-x: -14px;
    --social-depth-y: 10px;
    --social-scroll: -0.024px;
    top: 54%;
    right: 11%;
    color: #1877f2;
    animation-delay: 0.8s;
}

.ps-linkedin {
    --social-depth-x: 16px;
    --social-depth-y: -12px;
    --social-scroll: -0.03px;
    bottom: 20%;
    right: 35%;
    color: #0a66c2;
    animation-delay: 1.2s;
}

.ps-youtube {
    --social-depth-x: -18px;
    --social-depth-y: -10px;
    --social-scroll: -0.02px;
    bottom: 7%;
    right: 17%;
    color: #ff0000;
    animation-delay: 1.6s;
}

.b1 { top: 23%; right: 7%; }
.b2 { top: 41%; right: 6%; animation-delay: 0.6s; }
.b3 { bottom: 14%; right: 25%; animation-delay: 1.1s; }

.hero-badge {
    animation-delay: 0.35s;
}

@keyframes hero-copy-in {
    from {
        opacity: 0;
        transform: translate3d(-28px, 18px, 0);
        filter: blur(8px);
    }
    to {
        opacity: 1;
        transform: none;
        filter: none;
    }
}

@keyframes float-soft {
    from {
        transform: translate3d(0, 0, 0);
    }
    to {
        transform: translate3d(0, -12px, 0);
    }
}

@keyframes portrait-breathe {
    from {
        transform: translate3d(0, 0, 0) scale(1);
    }
    to {
        transform: translate3d(0, -10px, 0) scale(1.018);
    }
}

.section,
.section-full {
    padding: 5rem 1.875rem;
}

.section-title,
.work-content,
.contact-content {
    text-align: center;
}

.section-title h2,
.section-content h2,
.work-content h2,
.contact-content h2 {
    font-size: var(--headfont);
    line-height: 1.05;
    margin-bottom: 1rem;
}

.section-title p,
.section-content p,
.feature-box p,
.review p,
.contact-content p {
    color: var(--muted);
    line-height: 1.9;
}

.main-features-box,
.work-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.feature-box,
.review,
.skill-card,
.idea-doc {
    position: relative;
    overflow: hidden;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 18px 45px rgba(17, 24, 39, 0.06);
    transition: transform 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
}

.feature-box {
    min-height: 100%;
    padding: 2rem 1.35rem;
    text-align: center;
}

.featues-icon {
    width: 78px;
    height: 78px;
    display: grid;
    place-items: center;
    margin: 0 auto 1.2rem;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--bgdiff), var(--surface-soft));
}

.featues-icon i {
    color: var(--bgbtn);
    font-size: 2rem;
}

.feature-box h3,
.skill-card h3 {
    margin-bottom: 0.8rem;
}

.section-grid,
.section-idea,
.section-review {
    display: grid;
    align-items: center;
    gap: 3rem;
}

.section-grid {
    grid-template-columns: 1fr 1.15fr;
}

.skill-stage {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.skill-card {
    width: 150px;
    padding: 2rem 1rem;
    text-align: center;
}

.skill-card i,
.idea-doc i {
    color: var(--hov);
    font-size: 2.3rem;
    margin-bottom: 0.7rem;
}

.work-section,
.contact-section {
    width: min(calc(100% - 3.75rem), 1200px);
    margin: 3rem auto;
    padding: 5rem 1.875rem;
    border-radius: 8px;
    color: #ffffff;
    background: linear-gradient(135deg, #111827, #5b21b6, #0891b2);
    box-shadow: var(--shadow);
}

.work-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.work-not {
    display: inline-grid;
    place-items: center;
    min-width: 46px;
    height: 46px;
    margin-bottom: 1rem;
    border-radius: 999px;
    color: #ffffff;
    background: var(--hov);
    font-weight: 700;
}

.section-idea {
    grid-template-columns: 0.7fr 1.3fr;
}

.idea-doc {
    width: 240px;
    height: 240px;
    display: grid;
    place-items: center;
    justify-self: center;
}

.section-content ul {
    margin-top: 1.5rem;
}

.section-content li {
    display: flex;
    gap: 1rem;
    align-items: center;
    list-style: none;
    margin-bottom: 1rem;
    font-weight: 700;
}

.section-content li i {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #ffffff;
    background: var(--accent);
}

.section-review {
    grid-template-columns: 1fr 1fr 1fr;
}

.review {
    padding: 1.75rem;
}

.review span {
    display: block;
    color: var(--muted);
    margin-top: 0.25rem;
}

.contact-content p {
    max-width: 640px;
    margin: 0 auto 2rem;
    color: rgba(255, 255, 255, 0.82);
}

.contact-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.contact-social {
    justify-content: center;
    margin-top: 1.5rem;
}

.contact-social a {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.25);
}

footer {
    padding-top: 4rem;
}

.section-footer {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 2rem;
    border-top: 1px solid var(--line);
    padding: 4rem 0;
}

.footerlinks {
    display: grid;
    gap: 0.8rem;
}

.footer-social {
    gap: 0.65rem;
}

.footer-social a {
    width: 42px;
    height: 42px;
}

.footerlinks h4 {
    margin-bottom: 0.5rem;
}

.footerlinks a,
footer p {
    color: var(--muted);
}

.js-scroll {
    opacity: 0;
    transform: translate3d(0, 44px, 0) scale(0.98);
    filter: blur(8px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), filter 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.js-scroll.scrolled {
    opacity: 1;
    transform: none;
    filter: none;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }

    .hero-bg-layer,
    .hero-person-layer,
    .hero-person-layer img {
        transform: none;
        animation: none;
    }
}

@media screen and (max-width: 1050px) {
    :root {
        --headfont: 2.65rem;
    }

    .menu,
    .join-btns {
        display: none;
    }

    #menu-icon {
        display: inline-grid;
        place-items: center;
    }

    #menu-icon.hide .bars {
        display: none;
    }

    #menu-icon.hide .cross {
        display: block;
    }

    .show.full {
        position: absolute;
        display: flex;
        top: 64px;
        left: 0;
        right: 0;
        min-height: calc(100vh - 64px);
        background: var(--surface);
        z-index: 1000;
    }

    .show.full ul {
        width: 100%;
        min-height: calc(100vh - 64px);
        flex-direction: column;
    }

    .section-hero {
        min-height: calc(100svh - 78px);
        padding: 0;
    }

    .section-hero .content {
        min-height: calc(100svh - 78px);
        padding: 3rem 0;
    }

    .hero-person-layer {
        right: -1rem;
        bottom: -7rem;
        width: min(46vw, 410px);
        min-width: 280px;
        opacity: 0.82;
    }

    .b1 {
        top: 20%;
        right: 4%;
    }

    .b2 {
        top: 34%;
        right: 4%;
    }

    .main-features-box,
    .work-grid,
    .section-review {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .section-grid,
    .section-idea {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@media screen and (max-width: 768px) {
    :root {
        --headfont: 2rem;
        --pfont: 0.92rem;
    }

    .container,
    .section,
    .section-full,
    .section-hero {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    header.container {
        padding: 0.8rem 1rem;
    }

    .navbar {
        gap: 0.7rem;
    }

    .logo {
        font-size: 1.08rem;
        white-space: nowrap;
    }

    .theme-toggle {
        padding: 0.65rem 0.85rem;
    }

    .theme-toggle-text {
        display: none;
    }

    .section-hero {
        min-height: calc(100svh - 78px);
        padding-left: 0;
        padding-right: 0;
    }

    .hero-copy {
        width: min(100%, 320px);
        justify-content: flex-start;
        padding-top: clamp(0.9rem, 4vh, 2rem);
    }

    .section-hero .content {
        width: calc(100% - 2rem);
        min-height: calc(100svh - 78px);
        padding: 0;
    }

    .hero-copy h1 {
        font-size: clamp(2rem, 10vw, 2.45rem);
        line-height: 1.03;
        margin-bottom: 1.1rem;
    }

    .hero-copy p {
        max-width: 280px;
        font-size: 0.92rem;
        line-height: 1.7;
        margin-bottom: 1.5rem;
    }

    .diff-bold {
        padding: 0 0.5rem;
    }

    .hero-person-layer {
        right: -5.2rem;
        bottom: -6.8rem;
        width: min(68vw, 350px);
        min-width: 0;
        opacity: 0.44;
    }

    .main-features-box,
    .work-grid,
    .section-review,
    .section-footer {
        grid-template-columns: 1fr;
    }

    .section,
    .section-full {
        padding-top: 3.5rem;
        padding-bottom: 3.5rem;
    }

    .section-title h2,
    .section-content h2,
    .work-content h2,
    .contact-content h2 {
        font-size: 2rem;
    }

    .feature-box,
    .review {
        padding: 1.5rem 1.2rem;
    }

    .hero-badge {
        width: 78px;
        height: 78px;
        right: 1.25rem;
        bottom: 1.25rem;
        font-size: 0.8rem;
    }

    .hero-badge i {
        font-size: 1.7rem;
    }

    .b1,
    .b2,
    .b3,
    .ps-facebook,
    .ps-linkedin {
        display: none;
    }

    .parallax-social {
        width: 42px;
        height: 42px;
        font-size: 1rem;
    }

    .ps-instagram {
        top: 18%;
        right: 1rem;
    }

    .ps-youtube {
        bottom: 8.5rem;
        right: 1.2rem;
    }

    .work-section,
    .contact-section {
        width: calc(100% - 2rem);
        padding: 3rem 1rem;
    }

    .contact-links {
        flex-direction: column;
    }

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