
:root {
    --bg: #070b14;
    --bg-secondary: #0d1321;
    --card: rgba(255,255,255,0.055);
    --card-hover: rgba(255,255,255,0.09);
    --border: rgba(255,255,255,0.10);
    --text: #f5f7ff;
    --muted: #9ca7bd;
    --primary: #7c5cff;
    --secondary: #00d9ff;
    --accent: #ff4ecd;
    --success: #37e6a3;
    --nav-bg: rgba(8,12,24,0.65);
    --shadow: 0 20px 60px rgba(0,0,0,.35);
    --radius: 24px;
}

body.light {
    --bg: #f5f7fb;
    --bg-secondary: #ffffff;
    --card: rgba(255,255,255,.75);
    --card-hover: rgba(255,255,255,.95);
    --border: rgba(20,30,50,.10);
    --text: #101525;
    --muted: #667085;
    --nav-bg: rgba(255,255,255,.72);
    --shadow: 0 20px 60px rgba(20,30,50,.12);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Inter", sans-serif;
    background: var(--bg);
    color: var(--text);
    overflow-x: hidden;
    transition: background .35s ease, color .35s ease;
}

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

button {
    font-family: inherit;
}

/* =====================================
    GLOBAL BACKGROUND
===================================== */

#three-container {
    position: fixed;
    inset: 0;
    z-index: -5;
    pointer-events: none;
    opacity: .65;
}

.background-grid {
    position: fixed;
    inset: 0;
    z-index: -4;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
    background-size: 55px 55px;
    mask-image: linear-gradient(to bottom, black, transparent 85%);
}

.blob {
    position: fixed;
    border-radius: 50%;
    filter: blur(90px);
    opacity: .18;
    pointer-events: none;
    z-index: -3;
    animation: blobMove 14s infinite alternate ease-in-out;
}

.blob.one {
    width: 400px;
    height: 400px;
    background: var(--primary);
    top: -100px;
    left: -100px;
}

.blob.two {
    width: 350px;
    height: 350px;
    background: var(--secondary);
    right: -100px;
    top: 35%;
    animation-delay: -4s;
}

.blob.three {
    width: 400px;
    height: 400px;
    background: var(--accent);
    left: 30%;
    bottom: -200px;
    animation-delay: -8s;
}

@keyframes blobMove {
    0% {
        transform: translate(0,0) scale(1);
    }

    50% {
        transform: translate(80px,-50px) scale(1.15);
    }

    100% {
        transform: translate(-50px,70px) scale(.9);
    }
}

/* =====================================
    MOUSE SPOTLIGHT
===================================== */

.spotlight {
    position: fixed;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    pointer-events: none;
    z-index: 999;
    transform: translate(-50%,-50%);
    background: radial-gradient(
        circle,
        rgba(124,92,255,.10),
        transparent 65%
    );
    mix-blend-mode: screen;
}

/* =====================================
    NAVIGATION
===================================== */

.navbar {
    position: fixed;
    top: 18px;
    left: 50%;
    transform: translateX(-50%);
    width: min(1180px, calc(100% - 30px));
    z-index: 1000;

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

    padding: 13px 18px;

    background: var(--nav-bg);
    border: 1px solid var(--border);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);

    border-radius: 18px;
    box-shadow: var(--shadow);
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: "Space Grotesk", sans-serif;
    font-size: 20px;
    font-weight: 700;
}

.logo-mark {
    width: 38px;
    height: 38px;
    border-radius: 12px;

    display: grid;
    place-items: center;

    background: linear-gradient(
        135deg,
        var(--primary),
        var(--secondary)
    );

    color: white;
    box-shadow: 0 10px 30px rgba(124,92,255,.3);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 26px;
}

.nav-links a {
    color: var(--muted);
    font-size: 14px;
    font-weight: 500;
    transition: .25s;
}

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

.nav-actions {
    display: flex;
    align-items: center;
    gap: 9px;
}

.icon-btn {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: var(--card);
    color: var(--text);
    cursor: pointer;
    display: grid;
    place-items: center;
    transition: .3s;
}

.icon-btn:hover {
    transform: translateY(-3px);
    background: var(--card-hover);
}

.menu-btn {
    display: none;
}

/* =====================================
    GENERAL
===================================== */

section {
    position: relative;
    width: min(1180px, calc(100% - 30px));
    margin: auto;
    padding: 110px 0;
}

.section-heading {
    margin-bottom: 50px;
}

.section-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 12px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--card);
    color: var(--secondary);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    margin-bottom: 15px;
}

.section-heading h2 {
    font-family: "Space Grotesk", sans-serif;
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1;
    margin-bottom: 15px;
}

.section-heading p {
    max-width: 650px;
    color: var(--muted);
    line-height: 1.8;
}

/* =====================================
    HERO
===================================== */

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 130px;
}

.hero-content {
    max-width: 800px;
}

.availability {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 8px 13px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--card);
    backdrop-filter: blur(15px);
    margin-bottom: 25px;
    /* color: var(--muted); */
    color: var(--text);
    font-size: 13px;
}

.status-dot {
    position: relative;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--success);
    box-shadow:
        0 0 6px var(--success),
        0 0 14px var(--success),
        0 0 24px rgba(34, 197, 94, 0.45);
    animation: statusPulse 2s ease-in-out infinite;
}

.status-dot::before {
    content: "";
    position: absolute;
    inset: -5px;
    border-radius: 50%;
    border: 1px solid var(--success);
    opacity: 0;
    animation: statusRipple 2s ease-out infinite;
}

@keyframes statusPulse {
    0%, 100% {
        transform: scale(0.9);
        opacity: 0.8;
        box-shadow:
            0 0 5px var(--success),
            0 0 12px var(--success);
    }

    50% {
        transform: scale(1.15);
        opacity: 1;
        box-shadow:
            0 0 8px var(--success),
            0 0 18px var(--success),
            0 0 30px rgba(34, 197, 94, 0.5);
    }
}

@keyframes statusRipple {
    0% {
        transform: scale(0.5);
        opacity: 0.8;
    }

    70% {
        transform: scale(1.5);
        opacity: 0;
    }

    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

.hero h1 {
    font-family: "Space Grotesk", sans-serif;
    font-size: clamp(48px, 8vw, 96px);
    line-height: .95;
    letter-spacing: -4px;
    margin-bottom: 25px;
}

.gradient-text {
    background: linear-gradient(
        100deg,
        var(--primary),
        var(--secondary),
        var(--accent)
    );
    background-size: 250% 250%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: gradientShift 6s ease infinite;
}

@keyframes gradientShift {
    0%,100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

.typing-line {
    font-family: "Space Grotesk", sans-serif;
    font-size: clamp(22px, 3vw, 34px);
    color: var(--muted);
    margin-bottom: 25px;
}

.typing {
    color: var(--text);
}

.cursor {
    color: var(--secondary);
    animation: blink .8s infinite;
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}

.hero-description {
    max-width: 680px;
    color: var(--muted);
    font-size: 17px;
    line-height: 1.8;
    margin-bottom: 35px;
}

.hero-buttons {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    padding: 14px 20px;
    border-radius: 14px;

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

    color: var(--text);
    font-size: 14px;
    font-weight: 600;

    cursor: pointer;
    transition: .3s;
}

.btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 35px rgba(0,0,0,.2);
}

.btn-primary {
    border: none;
    color: white;
    background: linear-gradient(
        135deg,
        var(--primary),
        #5d45ed
    );
    box-shadow: 0 12px 35px rgba(124,92,255,.25);
}

.btn-primary:hover {
    box-shadow: 0 18px 45px rgba(124,92,255,.4);
}

.hero-scroll {
    position: absolute;
    bottom: 30px;
    left: 0;

    display: flex;
    align-items: center;
    gap: 10px;

    color: var(--muted);
    font-size: 12px;
}

.scroll-line {
    width: 45px;
    height: 1px;
    background: var(--muted);
}

/* =====================================
    STATS
===================================== */

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 15px;
}

.stat-card {
    padding: 30px 25px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: var(--card);
    backdrop-filter: blur(15px);
    transition: .35s;
}

.stat-card:hover {
    transform: translateY(-7px);
    background: var(--card-hover);
}

.stat-icon {
    width: 42px;
    height: 42px;
    border-radius: 13px;
    display: grid;
    place-items: center;
    background: rgba(124,92,255,.12);
    color: var(--primary);
    margin-bottom: 20px;
}

.counter {
    font-family: "Space Grotesk", sans-serif;
    font-size: 40px;
    font-weight: 700;
}

.stat-card p {
    color: var(--muted);
    margin-top: 5px;
    font-size: 13px;
}

/* =====================================
    ABOUT
===================================== */

.about-grid {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 35px;
    align-items: center;
}

.about-text p {
    color: var(--muted);
    line-height: 1.9;
    margin-bottom: 18px;
}

.about-card {
    padding: 35px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--card);
    backdrop-filter: blur(20px);
    position: relative;
    overflow: hidden;
}

.about-card::before {
    content: "";
    position: absolute;
    width: 180px;
    height: 180px;
    background: var(--primary);
    filter: blur(80px);
    opacity: .18;
    top: -80px;
    right: -80px;
}

.about-card h3 {
    font-family: "Space Grotesk";
    font-size: 25px;
    margin-bottom: 25px;
}

.info-list {
    display: grid;
    gap: 17px;
}

.info-item {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
}

.info-item span:first-child {
    color: var(--muted);
}

/* =====================================
    TECHNOLOGIES
===================================== */

.tech-grid {
    display: grid;
    grid-template-columns: repeat(6,1fr);
    gap: 13px;
}

.tech-card {
    min-height: 135px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 13px;

    border-radius: 20px;
    border: 1px solid var(--border);
    background: var(--card);
    backdrop-filter: blur(15px);

    transition:
        transform .35s ease,
        background .35s ease,
        border-color .35s ease;
}

.tech-card:hover {
    transform: translateY(-8px) rotateX(4deg);
    background: var(--card-hover);
    border-color: rgba(124,92,255,.4);
}

.tech-icon {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    font-size: 25px;
    /* background: rgba(255,255,255,.055); */
}

.tech-card span {
    font-size: 12px;
    color: var(--muted);
    font-weight: 600;
}

/* =====================================
    TIMELINE
===================================== */

.timeline {
    position: relative;
    max-width: 900px;
    margin: auto;
}

.timeline::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 1px;
    background: linear-gradient(
        to bottom,
        transparent,
        var(--primary),
        var(--secondary),
        transparent
    );
}

.timeline-item {
    width: 50%;
    padding: 0 40px 50px;
    position: relative;
}

.timeline-item:nth-child(even) {
    margin-left: 50%;
}

.timeline-dot {
    position: absolute;
    top: 3px;
    right: -7px;

    width: 14px;
    height: 14px;

    border-radius: 50%;
    background: var(--primary);
    border: 3px solid var(--bg);
    box-shadow: 0 0 20px rgba(124,92,255,.8);
}

.timeline-item:nth-child(even) .timeline-dot {
    left: -7px;
}

.timeline-card {
    padding: 25px;
    border-radius: 20px;
    border: 1px solid var(--border);
    background: var(--card);
    backdrop-filter: blur(15px);
    transition: .35s;
}

.timeline-card:hover {
    transform: translateY(-7px);
    background: var(--card-hover);
}

.timeline-date {
    color: var(--secondary);
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 10px;
}

.timeline-card h3 {
    font-family: "Space Grotesk";
    font-size: 20px;
    margin-bottom: 5px;
}

.timeline-card h4 {
    color: var(--muted);
    font-size: 13px;
    margin-bottom: 15px;
}

.timeline-card p {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.7;
}

/* =====================================
    PROJECTS
===================================== */

.projects-grid {
    display: grid;
    grid-template-columns: repeat(2,1fr);
    gap: 20px;
}

.project-card {
    overflow: hidden;
    border-radius: 24px;
    border: 1px solid var(--border);
    background: var(--card);
    backdrop-filter: blur(15px);
    transition: .4s;
}

.project-card:hover {
    transform: translateY(-9px);
    border-color: rgba(124,92,255,.35);
    box-shadow: var(--shadow);
}

.project-image {
    height: 270px;
    position: relative;
    overflow: hidden;
    background: #101625;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: .5s;
}

.project-card:hover .project-image img {
    transform: scale(1.06);
}

.project-overlay {
    position: absolute;
    inset: 0;

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

    background: rgba(5,8,18,.55);
    opacity: 0;
    transition: .35s;
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-view {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: white;
    color: #111;
    transform: translateY(15px);
    transition: .35s;
}

.project-card:hover .project-view {
    transform: translateY(0);
}

.project-content {
    padding: 25px;
}

.project-content h3 {
    font-family: "Space Grotesk";
    font-size: 22px;
    margin-bottom: 10px;
}

.project-content p {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.7;
    margin-bottom: 17px;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.tag {
    padding: 6px 9px;
    border-radius: 8px;
    background: rgba(124,92,255,.10);
    color: var(--muted);
    font-size: 10px;
    border: 1px solid var(--border);
}

/* =====================================
    SERVICES
===================================== */

.services-grid {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 17px;
}

.service-card {
    padding: 30px;
    border-radius: 23px;
    border: 1px solid var(--border);
    background: var(--card);
    transition: .35s;
}

.service-card:hover {
    transform: translateY(-8px);
    background: var(--card-hover);
}

.service-number {
    font-family: "Space Grotesk";
    color: var(--primary);
    font-size: 13px;
    margin-bottom: 35px;
}

.service-icon {
    width: 50px;
    height: 50px;
    display: grid;
    place-items: center;
    border-radius: 15px;
    background: rgba(124,92,255,.11);
    color: var(--secondary);
    font-size: 21px;
    margin-bottom: 20px;
}

.service-card h3 {
    font-family: "Space Grotesk";
    font-size: 20px;
    margin-bottom: 10px;
}

.service-card p {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.7;
}

/* =====================================
    CONTACT
===================================== */

.contact-wrapper {
    display: grid;
    grid-template-columns: .85fr 1.15fr;
    gap: 20px;
}

.contact-card {
    padding: 35px;
    border-radius: 24px;
    border: 1px solid var(--border);
    background: var(--card);
    backdrop-filter: blur(15px);
}

.contact-card h3 {
    font-family: "Space Grotesk";
    font-size: 27px;
    margin-bottom: 13px;
}

.contact-card > p {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 25px;
}

.contact-links {
    display: grid;
    gap: 10px;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 13px;
    border-radius: 14px;
    background: rgba(255,255,255,.035);
    border: 1px solid var(--border);
    transition: .3s;
}

.contact-link:hover {
    transform: translateX(5px);
    background: var(--card-hover);
}

.contact-link i {
    width: 35px;
    height: 35px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    background: rgba(124,92,255,.11);
    color: var(--secondary);
}

.contact-link div {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.contact-link small {
    color: var(--muted);
    font-size: 10px;
}

.contact-link span {
    font-size: 13px;
}

.contact-form {
    display: grid;
    gap: 13px;
}

.input-group {
    display: grid;
    gap: 7px;
}

.input-group label {
    color: var(--muted);
    font-size: 11px;
}

.input,
textarea {
    width: 100%;
    border: 1px solid var(--border);
    background: rgba(255,255,255,.035);
    color: var(--text);
    padding: 14px;
    border-radius: 13px;
    outline: none;
    font-family: inherit;
    transition: .25s;
}

.input:focus,
textarea:focus {
    border-color: rgba(124,92,255,.7);
    box-shadow: 0 0 0 4px rgba(124,92,255,.08);
}

textarea {
    resize: vertical;
    min-height: 130px;
}

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

footer {
    width: min(1180px, calc(100% - 30px));
    margin: auto;
    padding: 30px 0 45px;
    border-top: 1px solid var(--border);

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

    color: var(--muted);
    font-size: 12px;
}

.footer-socials {
    display: flex;
    gap: 8px;
}

.footer-socials a {
    width: 35px;
    height: 35px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--card);
    transition: .3s;
}

.footer-socials a:hover {
    transform: translateY(-3px);
    color: var(--secondary);
}

/* =====================================
    RESPONSIVE
===================================== */

@media(max-width: 1000px) {

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

    .stats-grid {
        grid-template-columns: repeat(2,1fr);
    }

    .services-grid {
        grid-template-columns: repeat(2,1fr);
    }
}

@media(max-width: 800px) {

    .nav-links {
        position: absolute;
        top: 72px;
        left: 0;
        right: 0;

        display: none;
        flex-direction: column;
        align-items: stretch;

        padding: 15px;

        border-radius: 18px;
        border: 1px solid var(--border);
        background: var(--nav-bg);
        backdrop-filter: blur(25px);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links a {
        padding: 12px;
    }

    .menu-btn {
        display: grid;
    }

    .about-grid,
    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .timeline::before {
        left: 8px;
    }

    .timeline-item,
    .timeline-item:nth-child(even) {
        width: 100%;
        margin-left: 0;
        padding-left: 35px;
        padding-right: 0;
    }

    .timeline-dot,
    .timeline-item:nth-child(even) .timeline-dot {
        left: 1px;
        right: auto;
    }
}

@media(max-width: 600px) {

    section {
        padding: 75px 0;
    }

    .hero h1 {
        letter-spacing: -2px;
    }

    .stats-grid,
    .services-grid {
        grid-template-columns: 1fr;
    }

    .tech-grid {
        grid-template-columns: repeat(2,1fr);
    }

    .hero-buttons .btn {
        width: 100%;
    }

    footer {
        flex-direction: column;
        text-align: center;
    }

    .nav-actions .icon-btn:first-child {
        display: none;
    }
}