/*Variables*/
:root {
    --bg: #080808;
    --bg-soft: #0d0d10;
    --text: #ffffff;
    --text-soft: #a1a1ad;
    --text-muted: #666670;
    --border: rgba(255, 255, 255, 0.09);
    --border-hover: rgba(255, 255, 255, 0.16);
    --glass: rgba(255, 255, 255, 0.035);
    --purple: #806cff;
    --blue: #00c8ff;
    --container: 1100px;
}

/*Reset*/
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 110px;
}

body {
    min-height: 100vh;
    overflow-x: hidden;
    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Arial,
        sans-serif;

    color: var(--text);
    background: var(--bg);
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font: inherit;
}

/*Background*/
.background {
    position: fixed;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: -10;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.25;
    animation: float 15s ease-in-out infinite;
}

.orb-one {
    width: 450px;
    height: 450px;
    top: -220px;
    left: -180px;
    background: var(--purple);
}

.orb-two {
    width: 400px;
    height: 400px;
    right: -200px;
    bottom: 5%;
    background: var(--blue);
    animation-delay: -7s;
}

@keyframes float {

    0%,
    100% {
        transform: translate3d(0, 0, 0);
    }

    50% {
        transform: translate3d(80px, 50px, 0);
    }
}

.grid {
    position: absolute;
    inset: 0;
    opacity: 0.13;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.035) 1px,
            transparent 1px),
        linear-gradient(90deg,
            rgba(255, 255, 255, 0.035) 1px,
            transparent 1px);

    background-size: 70px 70px;
    mask-image:
        linear-gradient(to bottom,
            black,
            transparent 70%);
}

/*Header*/
.header {
    position: fixed;
    top: 20px;
    left: 0;
    right: 0;
    padding: 0 24px;
    z-index: 100;
}

.header-inner {
    width: min(var(--container), 100%);
    height: 68px;
    margin: auto;
    display: flex;
    align-items: center;
    padding: 0 18px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: rgba(12, 12, 15, 0.65);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
    box-shadow:
        0 15px 50px rgba(0, 0, 0, 0.35);

    transition:
        background 0.3s ease,
        border-color 0.3s ease;
}

.header.scrolled .header-inner {
    background: rgba(12, 12, 15, 0.85);
    border-color: var(--border-hover);
}

/*Logo*/
.logo {
    display: flex;
    align-items: center;
    width: 42px;
    height: 42px;
    font-size: 14px;
    font-weight: 700;
}

.logo img {
    width: 100%;
    height: 100%;

    object-fit: contain;

    transition:
        transform 0.25s ease,
        opacity 0.25s ease;
}

.logo:hover img {
    transform: scale(1.05);
    opacity: 0.9;
}

.logo-text {
    background:
        linear-gradient(90deg,
            #fff,
            #aaa9ff);

    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/*Navigation*/
.nav {
    display: flex;
    align-items: center;

    gap: 4px;
    margin-left: auto;
}

.nav-link {
    position: relative;
    padding: 10px 13px;
    color: var(--text-soft);
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    transition:
        color 0.25s ease,
        background 0.25s ease;
}

.nav-link:hover {
    color: var(--text);
    background: rgba(255, 255, 255, 0.05);
}

.nav-link.active {
    color: var(--text);
}

.nav-link.active::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 3px;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--purple);
    box-shadow:
        0 0 10px var(--purple);
    transform: translateX(-50%);
}

/*Mobile menu*/
.menu-button {
    display: none;
    position: relative;
    z-index: 110;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
    cursor: pointer;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
}

.menu-button span {
    display: block;
    width: 18px;
    height: 2px;
    border-radius: 2px;
    background: var(--text);
    transition:
        transform 0.3s ease,
        opacity 0.3s ease;
}

.menu-button.open span:nth-child(1) {
    transform:
        translateY(7px) rotate(45deg);
}

.menu-button.open span:nth-child(2) {
    opacity: 0;
}

.menu-button.open span:nth-child(3) {
    transform:
        translateY(-7px) rotate(-45deg);
}

/*Mobile navigation*/
.mobile-nav {
    position: fixed;
    top: 98px;
    left: 16px;
    right: 16px;
    z-index: 105;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: rgba(12, 12, 16, 0.92);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.4),
        0 0 40px rgba(128, 108, 255, 0.08);

    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition:
        opacity 0.25s ease,
        visibility 0.25s ease,
        transform 0.25s ease;
}

.mobile-nav.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.mobile-nav a {
    display: block;
    padding: 14px 16px;
    border-radius: 12px;
    color: var(--text-soft);
    font-size: 15px;
    transition:
        color 0.2s ease,
        background 0.2s ease;
}

.mobile-nav a:hover,
.mobile-nav a:active {
    color: var(--text);
    background:
        rgba(255, 255, 255, 0.05);
}

/*Sections*/
.section {
    width:
        min(var(--container),
            calc(100% - 48px));

    margin: 0 auto;
    padding-top: 130px;
    padding-bottom: 130px;
}

.section-heading {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 55px;
}

.section-number {
    padding-top: 8px;
    color: var(--purple);
    font-family: monospace;
    font-size: 13px;
}

.section-label {
    margin-bottom: 10px;
    color: var(--text-muted);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.section-heading h2 {
    font-size:
        clamp(36px,
            6vw,
            58px);

    line-height: 1;
    letter-spacing: -2px;
}

/*Hero*/
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding-top: 150px;
}

.hero-content {
    width: min(800px, 100%);
    text-align: center;
    animation:
        appear 0.9s ease forwards;
}

@keyframes appear {
    from {
        opacity: 0;
        transform: translateY(25px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 28px;
    padding: 9px 15px;
    border: 1px solid var(--border);
    border-radius: 100px;
    background: var(--glass);
    color: var(--text-soft);
    font-size: 13px;
}

.status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #00e676;
    box-shadow:
        0 0 12px #00e676;

    animation:
        pulse 1.5s infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(1.35);
    }
}

.hero h1 {
    margin-bottom: 25px;
    font-size:
        clamp(48px,
            9vw,
            92px);

    line-height: 1.00;
    letter-spacing: -5px;
}

.hero h1 span {
    display: block;
    background:
        linear-gradient(90deg,
            var(--purple),
            var(--blue));

    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-subtitle {
    max-width: 620px;
    margin: 0 auto;
    color: var(--text-soft);
    font-size: 18px;
    line-height: 1.8;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 35px;
}

.button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 13px 20px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        border-color 0.25s ease;
}

.button:hover {
    transform: translateY(-2px);
}

.button-primary {
    background:
        linear-gradient(135deg,
            var(--purple),
            #168fd1);

    box-shadow:
        0 12px 35px rgba(91, 76, 255, 0.25);
}

.button-primary:hover {
    box-shadow:
        0 18px 45px rgba(91, 76, 255, 0.4);
}

.button-secondary {
    border:
        1px solid var(--border);

    background:
        rgba(255, 255, 255, 0.035);

    color: var(--text-soft);
}

.button-secondary:hover {
    color: white;
    border-color:
        var(--border-hover);
}

.hero-stack {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 45px;
}

.hero-stack span,
.project-tags span {
    padding: 7px 10px;
    border:
        1px solid var(--border);

    border-radius: 7px;
    color: var(--text-muted);
    background:
        rgba(255, 255, 255, 0.025);

    font-family: monospace;
    font-size: 11px;
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-muted);
    font-family: monospace;
    font-size: 10px;
    text-transform: uppercase;
    transform:
        translateX(-50%);
}

.scroll-indicator span {
    width: 25px;
    height: 1px;
    background:
        var(--text-muted);
}

/*Glass card*/
.glass-card {
    border:
        1px solid var(--border);

    background:
        var(--glass);

    border-radius: 24px;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
}

/*About*/
.about-grid {
    display: grid;
    grid-template-columns:
        1.1fr 1fr;

    gap: 20px;
}

.about-text {
    padding: 38px;
}

.about-text p {
    margin-bottom: 22px;
    color: var(--text-soft);
    font-size: 15px;
    line-height: 1.8;
}

.about-text p:last-child {
    margin-bottom: 0;
}

.about-text .large-text {
    color: white;
    font-size: 20px;
    line-height: 1.6;
}

.about-cards {
    display: grid;
    grid-template-columns:
        1fr 1fr;

    gap: 12px;
}

.info-card {
    padding: 25px;
    border:
        1px solid var(--border);

    border-radius: 18px;
    background:
        rgba(255, 255, 255, 0.025);

    transition:
        transform 0.3s ease,
        border-color 0.3s ease,
        background 0.3s ease;
}

.info-card:hover {
    transform: translateY(-4px);
    border-color:
        var(--border-hover);

    background:
        rgba(255, 255, 255, 0.045);
}

.info-icon {
    display: block;
    margin-bottom: 25px;
    color: var(--purple);
    font-family: monospace;
    font-size: 20px;
}

.info-card h3 {
    margin-bottom: 9px;
    font-size: 16px;
}

.info-card p {
    color: var(--text-muted);
    font-size: 13px;
    line-height: 1.6;
}

/*Projects*/
.projects-grid {
    display: grid;
    grid-template-columns:
        repeat(3, 1fr);

    gap: 15px;
}

.project-card {
    min-height: 420px;
    display: flex;
    flex-direction: column;
    padding: 28px;
    border:
        1px solid var(--border);

    border-radius: 20px;
    background:
        rgba(255, 255, 255, 0.025);

    transition:
        transform 0.3s ease,
        border-color 0.3s ease,
        background 0.3s ease;
}

.project-card:hover {
    transform: translateY(-6px);
    border-color:
        var(--border-hover);

    background:
        rgba(255, 255, 255, 0.04);
}

.project-card.featured {
    background:
        linear-gradient(145deg,
            rgba(128, 108, 255, 0.09),
            rgba(255, 255, 255, 0.025));
}

.project-top {
    display: flex;
    justify-content: space-between;
    color: var(--text-muted);
    font-family: monospace;
    font-size: 11px;
}

.project-icon {
    margin-top: 45px;
    margin-bottom: 20px;
    color: var(--purple);
    font-size: 32px;
}

.project-card h3 {
    margin-bottom: 12px;
    font-size: 25px;
    letter-spacing: -0.7px;
}

.project-card>p {
    color: var(--text-soft);
    font-size: 14px;
    line-height: 1.7;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 25px;
}

.project-link {
    display: flex;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 30px;
    color: white;
    font-size: 13px;
    font-weight: 600;
}

.project-link span {
    color: var(--purple);
    transition:
        transform 0.25s ease;
}

.project-link:hover span {
    transform:
        translate(3px, -3px);
}

/*Services*/
.services-list {
    border-top:
        1px solid var(--border);
}

.service {
    display: grid;
    grid-template-columns:
        70px 1fr 40px;

    align-items: center;
    gap: 20px;
    padding: 30px 10px;
    border-bottom:
        1px solid var(--border);

    color: inherit;
    text-decoration: none;
    transition:
        padding 0.3s ease,
        background 0.3s ease;
}

.service:hover {
    padding-left: 20px;
    padding-right: 20px;
    background:
        rgba(255, 255, 255, 0.025);
}

.service-number {
    color: var(--purple);
    font-family: monospace;
    font-size: 12px;
}

.service-main h3 {
    margin-bottom: 7px;
    font-size: 21px;
}

.service-main p {
    max-width: 650px;
    color: var(--text-soft);
    font-size: 14px;
    line-height: 1.6;
}

.service-arrow {
    color: var(--text-muted);
    font-size: 20px;
    transition:
        color 0.25s ease,
        transform 0.25s ease;
}

.service:hover .service-arrow {
    color: var(--purple);
    transform:
        translate(3px, -3px);
}

/*Contacts*/
.contact-card {
    position: relative;
    min-height: 440px;
    display: flex;
    align-items: center;
    padding: 60px;
    overflow: hidden;
}

.contact-content {
    position: relative;
    max-width: 650px;
    z-index: 2;
}

.contact-content h2 {
    margin-bottom: 20px;
    font-size:
        clamp(40px,
            6vw,
            68px);

    line-height: 1;
    letter-spacing: -3px;
}

.contact-content h2 span {
    display: block;
    background:
        linear-gradient(90deg,
            var(--purple),
            var(--blue));

    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.contact-content>p {
    max-width: 500px;
    margin-bottom: 35px;
    color: var(--text-soft);
    font-size: 16px;
    line-height: 1.7;
}

.contact-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 12px 16px;
    border:
        1px solid var(--border);

    border-radius: 10px;
    color: var(--text-soft);
    background:
        rgba(255, 255, 255, 0.03);

    font-size: 13px;
    transition:
        color 0.25s ease,
        border-color 0.25s ease;
}

.contact-link:hover {
    color: white;
    border-color:
        var(--border-hover);
}

.contact-link span:last-child {
    color: var(--purple);
}

.contact-symbol {
    position: absolute;
    right: 70px;
    top: 50%;
    color:
        rgba(128, 108, 255, 0.08);

    font-size: 280px;
    line-height: 1;
    transform:
        translateY(-50%);

    pointer-events: none;
}

/*Footer*/
footer {
    width:
        min(var(--container),
            calc(100% - 48px));

    margin: 0 auto;
    padding:
        30px 0 35px;

    border-top:
        1px solid var(--border);

    color: var(--text-muted);
    font-family: monospace;
    font-size: 11px;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
}

/*Back to top*/
.back-to-top {
    position: fixed;
    right: 28px;
    bottom: 28px;
    z-index: 200;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border:
        1px solid var(--border);

    border-radius: 14px;
    background:
        rgba(15, 15, 20, 0.65);

    color: var(--text);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform:
        translateY(15px);

    transition:
        opacity 0.3s ease,
        visibility 0.3s ease,
        transform 0.3s ease,
        border-color 0.3s ease,
        background 0.3s ease;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform:
        translateY(0);
}

.back-to-top:hover {
    border-color:
        rgba(128, 108, 255, 0.6);

    background:
        rgba(128, 108, 255, 0.12);

    transform:
        translateY(-3px);
}

/*Responsive*/
@media (max-width: 900px) {
    .nav {
        display: none;
    }

    .menu-button {
        display: flex;
        margin-left: auto;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .projects-grid {
        grid-template-columns:
            1fr 1fr;
    }

    .project-card:last-child {
        grid-column:
            span 2;
    }

    .contact-symbol {
        right: -20px;
        opacity: 0.5;
    }
}

@media (max-width: 650px) {

    .header {
        top: 12px;
        padding:
            0 12px;
    }

    .header-inner {
        height: 62px;
    }

    .mobile-nav {
        top: 86px;
    }

    .section {
        width:
            min(calc(100% - 32px),
                var(--container));

        padding-top: 90px;
        padding-bottom: 90px;
    }

    .hero {
        padding-top: 120px;
    }

    .hero h1 {
        font-size:
            clamp(46px,
                14vw,
                70px);

        letter-spacing: -3px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .hero-actions {
        flex-direction: column;
        width:
            min(300px,
                100%);

        margin-left: auto;
        margin-right: auto;
    }

    .button {
        justify-content: center;
    }

    .scroll-indicator {
        display: none;
    }

    .section-heading {
        margin-bottom: 35px;
    }

    .section-heading h2 {
        font-size: 42px;
    }

    .about-text {
        padding: 25px;
    }

    .about-cards {
        grid-template-columns: 1fr;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .project-card,
    .project-card:last-child {
        grid-column: auto;
        min-height: 380px;
    }

    .service {
        grid-template-columns:
            45px 1fr 25px;

        gap: 10px;
        padding: 25px 5px;
    }

    .service-main h3 {
        font-size: 18px;
    }

    .service-main p {
        font-size: 13px;
    }

    .contact-card {
        min-height: 500px;
        padding:
            35px 25px;
    }

    .contact-content h2 {
        font-size: 45px;
        letter-spacing: -2px;
    }

    .contact-symbol {
        right: -70px;
        bottom: -20px;
        top: auto;
        font-size: 220px;
        transform: none;
    }

    .contact-links {
        flex-direction: column;
        align-items: flex-start;
    }

    .footer-inner {
        flex-direction: column;
        gap: 8px;
    }

    .back-to-top {
        right: 18px;
        bottom: 18px;
        width: 44px;
        height: 44px;
        border-radius: 12px;
    }
}


@media (max-width: 400px) {
    .logo-text {
        display: none;
    }

    .hero-stack {
        gap: 5px;
    }

    .hero-stack span {
        font-size: 10px;
    }
}