/* ==========================================
   RESET
========================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family:
        Arial,
        Helvetica,
        sans-serif;

    background: #050505;
    color: #ffffff;

    line-height: 1.6;

    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    display: block;
    width: 100%;
}


/* ==========================================
   COLORS
========================================== */

:root {

    --black: #050505;

    --dark: #0b0b0b;

    --dark-2: #111111;

    --accent: #00e676;

    --accent-light: #9bffcb;

    --white: #ffffff;

    --gray: #999999;

    --border: rgba(0, 230, 118, 0.25);

}


/* ==========================================
   NAVBAR
========================================== */

.navbar {

    position: fixed;

    top: 0;
    left: 0;

    width: 100%;

    height: 75px;

    padding:
        0 6%;

    display: flex;

    align-items: center;

    justify-content: space-between;

    background:
        rgba(5, 5, 5, 0.92);

    backdrop-filter:
        blur(15px);

    border-bottom:
        1px solid var(--border);

    z-index: 1000;

}

.logo {

    font-size: 25px;

    font-weight: 900;

    letter-spacing: 4px;

}

.logo span {

    color: var(--accent);

}


.nav-menu {

    display: flex;

    gap: 30px;

}

.nav-link {

    position: relative;

    font-size: 13px;

    font-weight: 700;

    letter-spacing: 1px;

    color: #aaa;

    transition: 0.3s;

}

.nav-link:hover,
.nav-link.active {

    color: var(--accent);

}

.nav-link::after {

    content: "";

    position: absolute;

    left: 0;

    bottom: -8px;

    width: 0;

    height: 2px;

    background:
        var(--accent);

    transition: 0.3s;

}

.nav-link:hover::after,
.nav-link.active::after {

    width: 100%;

}


.menu-btn {

    display: none;

    background: none;

    border: none;

    color: var(--accent);

    font-size: 28px;

    cursor: pointer;

}


/* ==========================================
   MOBILE MENU
========================================== */

.mobile-menu {

    display: none;

    position: fixed;

    top: 75px;

    left: 0;

    width: 100%;

    background: #080808;

    border-bottom:
        1px solid var(--border);

    z-index: 999;

}

.mobile-menu.show {

    display: flex;

    flex-direction: column;

}

.mobile-menu a {

    padding: 18px 25px;

    border-bottom:
        1px solid #1c1c1c;

    color: #aaa;

}

.mobile-menu a:hover {

    color: var(--accent);

}


/* ==========================================
   HERO
========================================== */

.hero {

    min-height: 100vh;

    padding:
        130px 8% 80px;

    display: grid;

    grid-template-columns:
        1.1fr 0.9fr;

    align-items: center;

    gap: 60px;

    background:

        radial-gradient(
            circle at 75% 50%,
            rgba(0, 230, 118, 0.12),
            transparent 35%
        );

}


.small-title {

    color: var(--accent);

    font-size: 13px;

    font-weight: bold;

    letter-spacing: 4px;

    margin-bottom: 20px;

}


.hero h1 {

    font-size:
        clamp(60px, 9vw, 120px);

    line-height: 0.95;

    font-weight: 900;

    letter-spacing: -5px;

}

.hero h1 span {

    display: block;

    color: var(--accent);

}


.hero h2 {

    margin-top: 25px;

    font-size:
        clamp(20px, 3vw, 35px);

    font-weight: 400;

}

.hero h2 span {

    color: var(--accent);

}


.hero-description {

    max-width: 600px;

    margin-top: 25px;

    color: var(--gray);

    font-size: 16px;

}


.hero-buttons {

    display: flex;

    gap: 15px;

    margin-top: 35px;

    flex-wrap: wrap;

}


/* ==========================================
   BUTTON
========================================== */

.btn {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    padding:
        14px 25px;

    border-radius: 3px;

    font-size: 12px;

    font-weight: 800;

    letter-spacing: 1px;

    transition: 0.3s;

}


.primary-btn {

    background:
        var(--accent);

    color: #000;

}


.primary-btn:hover {

    background:
        var(--accent-light);

    transform:
        translateY(-3px);

    box-shadow:
        0 10px 30px
        rgba(0, 230, 118, 0.2);

}


.secondary-btn {

    border:
        1px solid var(--accent);

    color:
        var(--accent);

}


.secondary-btn:hover {

    background:
        var(--accent);

    color:
        #000;

}


/* ==========================================
   HERO PHOTO
========================================== */

.hero-photo {

    display: flex;

    justify-content: center;

    align-items: center;

}


.photo-frame {

    width:
        min(400px, 80vw);

    aspect-ratio: 1 / 1;

    padding: 10px;

    border:
        1px solid var(--accent);

    position: relative;

}


.photo-frame::before {

    content: "";

    position: absolute;

    top: -15px;

    left: -15px;

    width: 100%;

    height: 100%;

    border:
        1px solid
        rgba(0, 230, 118, 0.3);

    z-index: -1;

}


.photo-frame img {

    width: 100%;

    height: 100%;

    object-fit: cover;

    filter:
        grayscale(10%);

}


/* ==========================================
   SECTION
========================================== */

.section {

    padding:
        120px 7%;

}


.section-header {

    text-align: center;

    max-width: 750px;

    margin:
        0 auto 60px;

}


.section-label {

    color: var(--accent);

    font-size: 12px;

    font-weight: 800;

    letter-spacing: 4px;

    margin-bottom: 15px;

}


.section-header h2 {

    font-size:
        clamp(35px, 5vw, 65px);

    line-height: 1;

    margin-bottom: 20px;

}


.section-header h2 span {

    color: var(--accent);

}


.section-header > p:last-child {

    color: var(--gray);

}


/* ==========================================
   FILTER
========================================== */

.filter-buttons {

    display: flex;

    justify-content: center;

    gap: 10px;

    flex-wrap: wrap;

    margin-bottom: 45px;

}


.filter-btn {

    background:
        transparent;

    border:
        1px solid #292929;

    color:
        #999;

    padding:
        10px 18px;

    cursor: pointer;

    font-size: 11px;

    font-weight: bold;

    letter-spacing: 1px;

    transition: 0.3s;

}


.filter-btn:hover,
.filter-btn.active {

    border-color:
        var(--accent);

    color:
        var(--accent);

}


/* ==========================================
   PROJECT GRID
========================================== */

.project-grid {

    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 25px;

}


.project-card {

    background:
        #0c0c0c;

    border:
        1px solid #1e1e1e;

    overflow: hidden;

    cursor: pointer;

    opacity: 0;

    transform:
        translateY(30px);

    transition:
        opacity 0.6s ease,
        transform 0.6s ease,
        border-color 0.3s ease;

}


.project-card.show {

    opacity: 1;

    transform:
        translateY(0);

}


.project-card:hover {

    border-color:
        var(--accent);

}


.project-image {

    position: relative;

    aspect-ratio:
        4 / 3;

    overflow: hidden;

    background:
        #111;

}


.project-image img {

    width: 100%;

    height: 100%;

    object-fit: cover;

    transition:
        transform 0.7s ease;

}


.project-card:hover
.project-image img {

    transform:
        scale(1.08);

}


.project-overlay {

    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            to top,
            rgba(0,0,0,0.85),
            transparent
        );

    opacity: 0;

    display: flex;

    align-items: flex-end;

    padding: 25px;

    transition: 0.3s;

}


.project-card:hover
.project-overlay {

    opacity: 1;

}


.view-project {

    color: var(--accent);

    font-size: 12px;

    font-weight: bold;

    letter-spacing: 1px;

}


.project-info {

    padding: 20px;

}


.project-category {

    color:
        var(--accent);

    font-size: 10px;

    font-weight: bold;

    letter-spacing: 2px;

    margin-bottom: 7px;

}


.project-info h3 {

    font-size: 20px;

    margin-bottom: 5px;

}


.project-info p {

    color:
        #777;

    font-size: 13px;

}


.projects-more {

    text-align: center;

    margin-top: 50px;

}


/* ==========================================
   ABOUT
========================================== */

.about-section {

    display: grid;

    grid-template-columns:
        0.8fr 1.2fr;

    align-items: center;

    gap: 80px;

}


.about-image {

    border:
        1px solid var(--accent);

    padding: 8px;

}


.about-image img {

    aspect-ratio:
        4 / 5;

    object-fit: cover;

}


.about-content h2 {

    font-size:
        clamp(40px, 5vw, 70px);

    line-height: 1;

    margin-bottom: 30px;

}


.about-content h2 span {

    display: block;

    color:
        var(--accent);

}


.about-content > p {

    color:
        #999;

    margin-bottom: 15px;

}


.skills {

    display: flex;

    flex-wrap: wrap;

    gap: 10px;

    margin-top: 30px;

}


.skills span {

    border:
        1px solid #333;

    padding:
        8px 13px;

    color:
        #bbb;

    font-size: 12px;

}


/* ==========================================
   CONTACT
========================================== */

.contact-grid {

    display: grid;

    grid-template-columns:
        repeat(5, 1fr);

    gap: 15px;

}


.contact-card {

    min-height: 180px;

    padding: 25px;

    background:
        #0c0c0c;

    border:
        1px solid #222;

    transition: 0.3s;

}


.contact-card:hover {

    border-color:
        var(--accent);

    transform:
        translateY(-5px);

}


.contact-card span {

    color:
        var(--accent);

    font-size: 12px;

}


.contact-card h3 {

    margin-top: 45px;

}


.contact-card p {

    color:
        #777;

    font-size: 12px;

}


/* ==========================================
   FOOTER
========================================== */

.footer {

    padding:
        50px 7%;

    border-top:
        1px solid #222;

    display: flex;

    justify-content: space-between;

    gap: 30px;

    flex-wrap: wrap;

}


.footer h3 {

    color:
        var(--accent);

    letter-spacing:
        3px;

}


.footer p {

    color:
        #666;

    font-size: 12px;

}


/* ==========================================
   MODAL
========================================== */

.modal {

    position: fixed;

    inset: 0;

    display: none;

    align-items: center;

    justify-content: center;

    padding: 30px;

    z-index: 2000;

}


.modal.show {

    display: flex;

}


.modal-overlay {

    position: absolute;

    inset: 0;

    background:
        rgba(0,0,0,0.9);

    backdrop-filter:
        blur(10px);

}


.modal-content {

    position: relative;

    z-index: 2;

    width:
        min(1000px, 95vw);

    max-height:
        90vh;

    overflow:
        auto;

    background:
        #0c0c0c;

    border:
        1px solid var(--accent);

}


.modal-close {

    position: absolute;

    right: 15px;

    top: 10px;

    z-index: 5;

    width: 40px;

    height: 40px;

    border: none;

    background:
        rgba(0,0,0,0.7);

    color:
        white;

    font-size: 30px;

    cursor: pointer;

}


.modal-content > img {

    max-height:
        60vh;

    object-fit:
        contain;

    background:
        #000;

}


.modal-info {

    padding:
        30px;

}


.modal-category {

    color:
        var(--accent);

    font-size: 11px;

    letter-spacing: 2px;

}


.modal-info h2 {

    margin:
        8px 0 15px;

}


.modal-info > p:not(.modal-category) {

    color:
        #999;

    margin-bottom: 25px;

}


/* ==========================================
   RESPONSIVE
========================================== */

@media (max-width: 1100px) {

    .project-grid {

        grid-template-columns:
            repeat(2, 1fr);

    }

.contact-grid {

        grid-template-columns:
            repeat(3, 1fr);

    }

}


@media (max-width: 800px) {

    .nav-menu {

        display: none;

    }

    .menu-btn {

        display: block;

    }

    .hero {

        grid-template-columns:
            1fr;

        text-align: center;

    }

    .hero-description {

        margin-left: auto;
        margin-right: auto;

    }

    .hero-buttons {

        justify-content: center;

    }

    .hero-photo {

        order: -1;

    }

    .about-section {

        grid-template-columns:
            1fr;

    }

    .about-content {

        text-align: center;

    }

    .skills {

        justify-content: center;

    }

}


@media (max-width: 600px) {

    .section {

        padding:
            80px 5%;

    }

    .project-grid,
    .contact-grid {

        grid-template-columns:
            1fr;

    }

    .hero {

        padding-left: 5%;
        padding-right: 5%;

    }

    .hero h1 {

        font-size:
            60px;

    }

.footer {

        flex-direction:
            column;

    }

}
