* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;

    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        Helvetica,
        Arial,
        sans-serif;

    color: #111;
    background: #f5f5f5;

    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font: inherit;
}

.background {
    position: fixed;
    inset: 0;

    z-index: -2;

    overflow: hidden;
    pointer-events: none;

    background:
        radial-gradient(
            circle at 10% 10%,
            rgba(0, 0, 0, 0.05),
            transparent 28%
        ),
        radial-gradient(
            circle at 90% 80%,
            rgba(0, 0, 0, 0.04),
            transparent 30%
        ),
        #f7f7f7;
}

.background::before {
    content: "";

    position: absolute;
    inset: 0;

    opacity: 0.35;

    background-image:
        linear-gradient(
            rgba(0, 0, 0, 0.025) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(0, 0, 0, 0.025) 1px,
            transparent 1px
        );

    background-size: 45px 45px;
}

.orb {
    position: absolute;

    width: 420px;
    height: 420px;

    border-radius: 50%;

    filter: blur(100px);

    opacity: 0.08;

    background: #000;

    animation: float 12s ease-in-out infinite;
}

.orb-1 {
    top: -180px;
    left: -120px;
}

.orb-2 {
    right: -160px;
    bottom: -180px;

    animation-delay: -5s;
}

@keyframes float {
    0%,
    100% {
        transform: translate3d(0, 0, 0);
    }

    50% {
        transform: translate3d(35px, -25px, 0);
    }
}

header {
    width: 100%;
    padding: 28px 24px 0;
}

.navbar {
    width: min(1180px, 100%);
    margin: 0 auto;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 16px 18px;

    background: rgba(255, 255, 255, 0.78);

    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 18px;

    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);

    box-shadow:
        0 10px 40px rgba(0, 0, 0, 0.05);

    animation: slideDown 0.7s ease both;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.brand {
    display: flex;
    align-items: center;

    gap: 12px;

    font-weight: 800;
    font-size: 20px;

    letter-spacing: -0.7px;
}

.brand-icon {
    width: 40px;
    height: 40px;

    display: grid;
    place-items: center;

    color: #fff;
    background: #111;

    border-radius: 12px;

    box-shadow:
        0 8px 20px rgba(0, 0, 0, 0.15);

    transition:
        transform 0.3s ease,
        border-radius 0.3s ease;
}

.brand:hover .brand-icon {
    transform: rotate(-6deg) scale(1.05);
    border-radius: 14px;
}

.navbar-status {
    display: flex;
    align-items: center;

    gap: 8px;

    color: #666;

    font-size: 13px;
    font-weight: 600;
}

.status-dot {
    width: 8px;
    height: 8px;

    background: #111;

    border-radius: 50%;

    box-shadow:
        0 0 0 5px rgba(0, 0, 0, 0.06);

    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%,
    100% {
        box-shadow:
            0 0 0 5px rgba(0, 0, 0, 0.06);
    }

    50% {
        box-shadow:
            0 0 0 9px rgba(0, 0, 0, 0.02);
    }
}

.hero {
    width: min(1000px, 100%);
    margin: 0 auto;

    padding: 110px 24px 75px;

    text-align: center;

    animation: fadeUp 0.8s 0.1s ease both;
}

.hero-label {
    display: inline-flex;
    align-items: center;

    gap: 8px;

    margin-bottom: 22px;
    padding: 8px 13px;

    color: #444;
    background: #fff;

    border: 1px solid #e5e5e5;
    border-radius: 999px;

    font-size: 12px;
    font-weight: 700;

    text-transform: uppercase;
    letter-spacing: 1px;

    box-shadow:
        0 6px 20px rgba(0, 0, 0, 0.04);
}

.hero h1 {
    max-width: 800px;
    margin: 0 auto;

    color: #0b0b0b;

    font-size: clamp(42px, 7vw, 78px);
    line-height: 0.98;

    letter-spacing: -4px;
    font-weight: 900;
}

.hero h1 span {
    color: #777;
}

.hero p {
    max-width: 650px;
    margin: 28px auto 0;

    color: #666;

    font-size: 17px;
    line-height: 1.7;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(25px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.projects-section {
    width: min(1180px, 100%);
    margin: 0 auto;

    padding: 0 24px 100px;
}

.section-header {
    display: flex;
    align-items: end;
    justify-content: space-between;

    gap: 20px;

    margin-bottom: 28px;
}

.section-title h2 {
    font-size: 25px;
    letter-spacing: -1px;
}

.section-title p {
    margin-top: 6px;

    color: #777;

    font-size: 14px;
}

.project-count {
    color: #777;

    font-size: 13px;
    font-weight: 700;
}

.projects-grid {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 18px;
}

.project-card {
    position: relative;

    display: flex;
    flex-direction: column;

    min-height: 370px;

    padding: 24px;

    overflow: hidden;

    background: rgba(255, 255, 255, 0.9);

    border: 1px solid #e5e5e5;
    border-radius: 24px;

    box-shadow:
        0 8px 30px rgba(0, 0, 0, 0.035);

    transition:
        transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1),
        box-shadow 0.4s ease,
        border-color 0.4s ease;

    animation: cardAppear 0.7s ease both;
}

.project-card::before {
    content: "";

    position: absolute;

    width: 180px;
    height: 180px;

    top: -90px;
    right: -90px;

    background: #111;

    border-radius: 50%;

    opacity: 0.035;

    transition:
        transform 0.5s ease,
        opacity 0.5s ease;
}

.project-card:hover {
    transform: translateY(-8px);

    border-color: #ccc;

    box-shadow:
        0 22px 50px rgba(0, 0, 0, 0.1);
}

.project-card:hover::before {
    transform: scale(2);
    opacity: 0.055;
}

@keyframes cardAppear {
    from {
        opacity: 0;
        transform: translateY(25px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.project-icon {
    width: 76px;
    height: 76px;

    display: grid;
    place-items: center;

    margin-bottom: 24px;

    color: #111;

    background: #f1f1f1;

    border: 1px solid #e3e3e3;
    border-radius: 20px;

    font-size: 27px;

    overflow: hidden;

    box-shadow:
        0 8px 20px rgba(0, 0, 0, 0.04);

    transition:
        transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1),
        background 0.4s ease,
        color 0.4s ease,
        border-color 0.4s ease,
        box-shadow 0.4s ease;
}

.project-icon i {
    font-size: 27px;

    transition:
        transform 0.4s ease,
        color 0.4s ease;
}

.project-icon img {
    width: 100%;
    height: 100%;

    display: block;

    padding: 9px;

    object-fit: contain;

    border-radius: inherit;

    transition:
        transform 0.4s
        cubic-bezier(0.2, 0.8, 0.2, 1);
}

.project-card:hover .project-icon {
    color: #fff;

    background: #111;

    border-color: #111;

    transform:
        translateY(-3px)
        scale(1.05);

    box-shadow:
        0 12px 30px rgba(0, 0, 0, 0.12);
}

.project-card:hover .project-icon i {
    color: #fff;

    transform: scale(1.08);
}

.project-card:hover .project-icon img {
    transform: scale(1.08);
}

.project-content {
    flex: 1;
}

.project-category {
    display: inline-block;

    margin-bottom: 8px;

    color: #888;

    font-size: 11px;
    font-weight: 800;

    letter-spacing: 1px;
    text-transform: uppercase;
}

.project-title {
    margin-bottom: 10px;

    font-size: 22px;

    letter-spacing: -0.8px;
}

.project-description {
    color: #707070;

    font-size: 14px;
    line-height: 1.7;
    text-align: justify;
}

.project-link {
    position: relative;

    display: flex;
    align-items: center;
    justify-content: space-between;

    width: 100%;

    margin-top: 28px;
    padding: 13px 15px;

    color: #fff;
    background: #111;

    border: 1px solid #111;
    border-radius: 13px;

    font-size: 13px;
    font-weight: 700;

    overflow: hidden;

    transition:
        background 0.3s ease,
        color 0.3s ease,
        transform 0.3s ease;
}

.project-link::before {
    content: "";

    position: absolute;
    inset: 0;

    background: #fff;

    transform: translateX(-101%);

    transition:
        transform 0.35s ease;

    z-index: 0;
}

.project-link span,
.project-link i {
    position: relative;
    z-index: 1;
}

.project-link:hover {
    color: #111;

    transform: translateY(-2px);
}

.project-link:hover::before {
    transform: translateX(0);
}

.project-link i {
    transition:
        transform 0.3s ease;
}

.project-link:hover i {
    transform: translateX(4px);
}

footer {
    width: min(1180px, 100%);
    margin: 0 auto;

    padding: 0 24px 35px;
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;

    padding-top: 25px;

    border-top: 1px solid #ddd;

    color: #888;

    font-size: 12px;
}

.footer-brand {
    color: #222;
    font-weight: 800;
}

.reveal {
    opacity: 0;

    transform: translateY(25px);

    transition:
        opacity 0.7s ease,
        transform 0.7s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 950px) {
    .projects-grid {
        grid-template-columns:
            repeat(2, 1fr);
    }
}

@media (max-width: 650px) {
    header {
        padding: 15px 15px 0;
    }

    .navbar {
        padding: 13px 14px;

        border-radius: 15px;
    }

    .brand {
        font-size: 17px;
    }

    .brand-icon {
        width: 36px;
        height: 36px;

        border-radius: 10px;
    }

    .navbar-status {
        font-size: 11px;
    }

    .hero {
        padding: 80px 20px 55px;
    }

    .hero h1 {
        font-size:
            clamp(40px, 13vw, 58px);

        letter-spacing: -2.5px;
    }

    .hero p {
        font-size: 15px;
        line-height: 1.65;
    }

    .projects-section {
        padding: 0 15px 70px;
    }

    .section-header {
        align-items: start;

        flex-direction: column;

        gap: 8px;
    }

    .projects-grid {
        grid-template-columns: 1fr;

        gap: 14px;
    }

    .project-card {
        min-height: 340px;

        padding: 21px;
    }

    footer {
        padding: 0 15px 25px;
    }

    .footer-inner {
        align-items: flex-start;

        flex-direction: column;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;

        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;

        transition-duration: 0.01ms !important;
    }
}

.brand-icon {
    width: 40px;
    height: 40px;

    display: grid;
    place-items: center;

    flex-shrink: 0;

    overflow: hidden;

    background: #111;

    border-radius: 12px;

    box-shadow:
        0 8px 20px rgba(0, 0, 0, 0.15);

    transition:
        transform 0.3s ease,
        border-radius 0.3s ease;
}

.brand-icon img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: contain;
    padding: 0px;

    border-radius: inherit;

    user-select: none;

    image-rendering: auto;

    transition:
        transform 0.3s ease;
}

.brand:hover .brand-icon {
    transform: rotate(-6deg) scale(1.05);

    border-radius: 14px;
}

.brand:hover .brand-icon img {
    transform: scale(1.05);
}

@media (max-width: 650px) {

    .brand-icon {
        width: 36px;
        height: 36px;

        border-radius: 10px;
    }

    .brand-icon img {
        padding: 5px;
    }

}