* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Inter", sans-serif;
    background: #353535;
    color: #f5f5f5;
    overflow-x: hidden;
}


/* =========================
   BACKGROUND
========================= */

.background-grid {
    position: fixed;
    inset: 0;
    z-index: -2;

    background-image:
        linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);

    background-size: 50px 50px;

    mask-image: linear-gradient(
        to bottom,
        black 0%,
        rgba(0,0,0,.5) 60%,
        transparent 100%
    );
}


/* =========================
   NAVBAR
========================= */

.navbar {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);

    width: min(1100px, calc(100% - 40px));

    padding: 12px 18px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    background: rgba(15,15,15,.75);
    backdrop-filter: blur(20px);

    border: 1px solid rgba(255,255,255,.1);
    border-radius: 18px;

    z-index: 1000;

    box-shadow: 0 15px 50px rgba(0,0,0,.3);
}

.logo {
    width: 42px;
    height: 42px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #fff;
    color: #000;

    border-radius: 12px;

    font-size: 18px;
    font-weight: 800;

    text-decoration: none;
}

.logo span {
    color: #777;
}

.navbar nav {
    display: flex;
    gap: 8px;
}

.nav-link {
    color: #888;
    text-decoration: none;

    padding: 10px 16px;

    border-radius: 10px;

    font-size: 13px;

    transition: .3s;
}

.nav-link:hover,
.nav-link.active {
    color: #fff;
    background: rgba(255,255,255,.08);
}

.menu-btn {
    display: none;

    border: none;
    background: transparent;
    color: white;

    font-size: 22px;

    cursor: pointer;
}


/* =========================
   HERO
========================= */

.hero {
    min-height: 100vh;

    max-width: 1100px;

    margin: auto;

    padding: 150px 20px 80px;

    display: grid;
    grid-template-columns: 1.2fr .8fr;

    align-items: center;

    gap: 80px;
}

.status {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    padding: 8px 13px;

    border: 1px solid rgba(255,255,255,.1);
    border-radius: 100px;

    color: #aaa;

    font-size: 12px;

    margin-bottom: 25px;
}

.status span {
    width: 7px;
    height: 7px;

    background: #fff;

    border-radius: 50%;

    animation: pulse 1.8s infinite;
}

@keyframes pulse {

    0% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: .3;
        transform: scale(1.5);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.small-text {
    font-size: 12px;
    letter-spacing: 4px;
    color: #777;

    margin-bottom: 10px;
}

.hero h1 {
    font-size: clamp(70px, 10vw, 125px);
    line-height: .9;

    letter-spacing: -7px;
}

.hero h1 span {
    color: #777;
}

.hero h2 {
    margin-top: 25px;

    font-size: clamp(20px, 3vw, 32px);

    color: #aaa;

    font-weight: 500;
}

.hero-description {
    max-width: 540px;

    margin-top: 20px;

    line-height: 1.8;

    color: #777;

    font-size: 15px;
}

.hero-buttons {
    display: flex;
    gap: 12px;

    margin-top: 30px;
}

.btn {
    text-decoration: none;

    padding: 14px 20px;

    border-radius: 12px;

    font-size: 13px;
    font-weight: 600;

    transition: .3s;
}

.btn.primary {
    background: #fff;
    color: #000;
}

.btn.primary:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 30px rgba(255,255,255,.12);
}

.btn.secondary {
    border: 1px solid rgba(255,255,255,.12);
    color: #fff;
}

.btn.secondary:hover {
    background: rgba(255,255,255,.07);
    transform: translateY(-4px);
}

.socials {
    display: flex;
    gap: 22px;

    margin-top: 35px;
}

.socials a {
    color: #666;

    text-decoration: none;

    font-size: 12px;

    transition: .3s;
}

.socials a:hover {
    color: white;
}


/* =========================
   PROFILE IMAGE
========================= */

.hero-image {
    display: flex;
    justify-content: center;
}

.image-card {
    width: 310px;
    height: 400px;

    position: relative;

    overflow: hidden;

    border-radius: 30px;

    border: 1px solid rgba(255,255,255,.15);

    transform: rotate(3deg);

    animation: floating 5s ease-in-out infinite;

    box-shadow:
        0 30px 80px rgba(0,0,0,.7);
}

@keyframes floating {

    0%,100% {
        transform: translateY(0) rotate(3deg);
    }

    50% {
        transform: translateY(-15px) rotate(1deg);
    }
}

.image-card img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    filter: grayscale(20%);

    transition: .5s;
}

.image-card:hover img {
    transform: scale(1.06);
}

.image-info {
    position: absolute;

    left: 15px;
    right: 15px;
    bottom: 15px;

    padding: 14px;

    background: rgba(0,0,0,.6);

    backdrop-filter: blur(15px);

    border: 1px solid rgba(255,255,255,.1);

    border-radius: 15px;

    display: flex;
    flex-direction: column;

    gap: 4px;
}

.image-info strong {
    font-size: 13px;
}

.image-info span {
    font-size: 10px;
    color: #999;
}


/* =========================
   SECTION
========================= */

.section {
    max-width: 1100px;

    margin: auto;

    padding: 120px 20px;
}

.section-title {
    margin-bottom: 60px;
}

.section-title p {
    color: #666;

    font-size: 11px;

    letter-spacing: 3px;

    margin-bottom: 15px;
}

.section-title h2 {
    font-size: clamp(35px, 5vw, 60px);

    letter-spacing: -3px;

    line-height: 1;
}

.section-title h2 span {
    color: #555;
}


/* =========================
   ABOUT
========================= */

.about-grid {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 70px;
}

.about-text {
    color: #888;

    font-size: 15px;

    line-height: 1.9;
}

.about-text p {
    margin-bottom: 20px;
}

.about-cards {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 12px;
}

.info-card {
    padding: 25px;

    min-height: 150px;

    border: 1px solid rgba(255,255,255,.08);

    border-radius: 18px;

    background: rgba(255,255,255,.025);

    transition: .35s;
}

.info-card:hover {
    transform: translateY(-7px);

    background: rgba(255,255,255,.05);

    border-color: rgba(255,255,255,.2);
}

.info-card span {
    display: block;

    font-size: 10px;

    color: #666;

    text-transform: uppercase;

    letter-spacing: 2px;

    margin-bottom: 20px;
}

.info-card strong {
    display: block;

    font-size: 14px;

    margin-bottom: 7px;
}

.info-card small {
    color: #666;

    font-size: 11px;
}


/* =========================
   PROJECTS
========================= */

.project-grid {
    display: grid;

    grid-template-columns: repeat(2, 1fr);

    gap: 15px;
}

.project-card {
    position: relative;

    padding: 32px;

    min-height: 390px;

    background: rgba(255,255,255,.025);

    border: 1px solid rgba(255,255,255,.08);

    border-radius: 24px;

    overflow: hidden;

    transition: .4s;
}

.project-card::before {
    content: "";

    position: absolute;

    width: 180px;
    height: 180px;

    right: -90px;
    top: -90px;

    background: rgba(255,255,255,.06);

    border-radius: 50%;

    filter: blur(30px);

    transition: .5s;
}

.project-card:hover {
    transform: translateY(-10px);

    border-color: rgba(255,255,255,.2);
}

.project-card:hover::before {
    transform: scale(2);
}

.project-number {
    position: absolute;

    top: 25px;
    right: 30px;

    color: #444;

    font-size: 12px;
}

.project-icon {
    width: 50px;
    height: 50px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 14px;

    background: rgba(255,255,255,.07);

    border: 1px solid rgba(255,255,255,.1);

    font-size: 20px;

    margin-bottom: 30px;
}

.project-category {
    color: #666;

    font-size: 10px;

    letter-spacing: 2px;

    margin-bottom: 12px;
}

.project-card h3 {
    font-size: 24px;

    margin-bottom: 15px;

    letter-spacing: -1px;
}

.project-card > p:not(.project-category) {
    color: #777;

    font-size: 13px;

    line-height: 1.7;

    max-width: 430px;
}

.tags {
    display: flex;
    flex-wrap: wrap;

    gap: 7px;

    margin-top: 25px;
}

.tags span {
    padding: 7px 10px;

    border-radius: 8px;

    border: 1px solid rgba(255,255,255,.08);

    color: #888;

    font-size: 10px;
}

.project-btn {
    margin-top: 25px;

    padding: 10px 0;

    background: transparent;

    border: none;

    color: #fff;

    cursor: pointer;

    font-size: 12px;

    transition: .3s;
}

.project-btn:hover {
    letter-spacing: 1px;
}

.project-btn {
    margin-top: 25px;

    padding: 10px 0;

    background: transparent;

    border: none;

    color: #fff;

    cursor: pointer;

    font-size: 12px;

    transition: .3s;
}

.project-btn:hover {
    letter-spacing: 1px;
}

.project-btn {
    margin-top: 25px;

    padding: 10px 0;

    background: transparent;

    border: none;

    color: #fff;

    cursor: pointer;

    font-size: 12px;

    transition: .3s;
}

.project-btn:hover {
    letter-spacing: 1px;
}


/* =========================
   SKILLS
========================= */

.skills-container {
    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 12px;
}

.skill-card {
    padding: 25px;

    border: 1px solid rgba(255,255,255,.08);

    border-radius: 18px;

    background: rgba(255,255,255,.02);

    transition: .35s;
}

.skill-card:hover {
    transform: translateY(-7px);

    background: rgba(255,255,255,.05);
}

.skill-top {
    display: flex;

    justify-content: space-between;

    margin-bottom: 25px;
}

.skill-top span {
    color: #555;

    font-size: 11px;
}

.skill-top b {
    font-size: 13px;
}

.skill-card p {
    color: #777;

    font-size: 12px;

    line-height: 1.7;
}


/* =========================
   CONTACT
========================= */

.contact-section {
    padding-bottom: 80px;
}

.contact-box {
    text-align: center;

    padding: 90px 20px;

    border: 1px solid rgba(255,255,255,.1);

    border-radius: 30px;

    background:
        radial-gradient(
            circle at center,
            rgba(255,255,255,.07),
            transparent 60%
        );
}

.contact-label {
    color: #666;

    letter-spacing: 3px;

    font-size: 10px;

    margin-bottom: 20px;
}

.contact-box h2 {
    font-size: clamp(45px, 7vw, 80px);

    letter-spacing: -4px;

    line-height: 1;
}

.contact-box h2 span {
    color: #555;
}

.contact-box > p:not(.contact-label) {
    max-width: 500px;

    margin: 25px auto;

    color: #777;

    line-height: 1.7;

    font-size: 13px;
}

.contact-button {
    display: inline-block;

    margin-top: 15px;

    padding: 14px 25px;

    border-radius: 12px;

    background: #fff;

    color: #000;

    text-decoration: none;

    font-size: 12px;

    font-weight: 700;

    transition: .3s;
}

.contact-button:hover {
    transform: translateY(-5px);

    box-shadow: 0 15px 30px rgba(255,255,255,.12);
}

.contact-links {
    display: flex;

    justify-content: center;

    gap: 25px;

    margin-top: 35px;
}

.contact-links a {
    color: #666;

    font-size: 11px;

    text-decoration: none;

    transition: .3s;
}

.contact-links a:hover {
    color: white;
}


/* =========================
   FOOTER
========================= */

footer {
    max-width: 1100px;

    margin: auto;

    padding: 25px 20px 40px;

    display: flex;

    justify-content: space-between;

    color: #444;

    font-size: 10px;

    border-top: 1px solid rgba(255,255,255,.05);
}


/* =========================
   REVEAL ANIMATION
========================= */

.reveal {
    opacity: 0;

    transform: translateY(35px);

    transition:
        opacity .8s ease,
        transform .8s ease;
}

.reveal.show {
    opacity: 1;

    transform: translateY(0);
}


/* =========================
   MODAL
========================= */

.modal {
    position: fixed;

    inset: 0;

    display: flex;

    align-items: center;

    justify-content: center;

    padding: 20px;

    background: rgba(0,0,0,.75);

    backdrop-filter: blur(12px);

    z-index: 2000;

    opacity: 0;

    visibility: hidden;

    transition: .3s;
}

.modal.active {
    opacity: 1;

    visibility: visible;
}

.modal-content {
    position: relative;

    max-width: 600px;
    width: 100%;

    padding: 40px;

    border-radius: 25px;

    background: #111;

    border: 1px solid rgba(255,255,255,.12);

    transform: translateY(30px) scale(.95);

    transition: .35s;
}

.modal.active .modal-content {
    transform: translateY(0) scale(1);
}

.close-modal {
    position: absolute;

    top: 18px;
    right: 20px;

    width: 35px;
    height: 35px;

    border: 1px solid rgba(255,255,255,.1);

    border-radius: 50%;

    background: transparent;

    color: white;

    cursor: pointer;

    font-size: 20px;
}

#modalCategory {
    color: #666;

    font-size: 10px;

    letter-spacing: 2px;

    margin-bottom: 12px;
}

#modalTitle {
    font-size: 32px;

    margin-bottom: 20px;
}

#modalDescription {
    color: #888;

    font-size: 14px;

    line-height: 1.8;
}


/* =========================
   MOBILE
========================= */

@media (max-width: 800px) {

    .navbar {
        width: calc(100% - 25px);
    }

    .menu-btn {
        display: block;
    }

    .navbar nav {
        position: absolute;

        top: 65px;

        left: 0;
        right: 0;

        display: none;

        flex-direction: column;

        padding: 10px;

        background: #111;

        border: 1px solid rgba(255,255,255,.1);

        border-radius: 15px;
    }

    .navbar nav.open {
        display: flex;
    }

    .hero {
        grid-template-columns: 1fr;

        text-align: center;

        gap: 60px;
    }

    .hero-description {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-buttons,
    .socials {
        justify-content: center;
    }

    .hero-image {
        order: -1;
    }

    .image-card {
        width: 240px;
        height: 310px;
    }

    .about-grid {
        grid-template-columns: 1fr;

        gap: 40px;
    }

    .project-grid {
        grid-template-columns: 1fr;
    }

    .skills-container {
        grid-template-columns: 1fr 1fr;
    }

    footer {
        flex-direction: column;

        gap: 10px;

        text-align: center;
    }
}


@media (max-width: 500px) {

    .section {
        padding: 90px 18px;
    }

    .about-cards {
        grid-template-columns: 1fr;
    }

    .skills-container {
        grid-template-columns: 1fr;
    }

    .hero {
        padding-left: 18px;
        padding-right: 18px;
    }

    .hero h1 {
        letter-spacing: -4px;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .btn {
        text-align: center;
    }

    .modal-content {
        padding: 30px 22px;
    }
}