/* =========================================================
   GRAPHIC DESIGN PAGE
========================================================= */


/* =========================================================
   RESET
========================================================= */

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


html {
    scroll-behavior: smooth;
}


body {

    font-family: "Poppins", sans-serif;

    background: #080b0a;

    color: #f5f5f5;

    overflow-x: hidden;
}


:root {

    --bg-color: #080b0a;

    --secondary-bg: #151a14;

    --card-bg: #101410;

    --lemon: #d9ff00;

    --text-color: #f5f5f5;

    --muted-text: #a9afa5;

    --border-color: rgba(255, 255, 255, 0.08);

}



/* =========================================================
   POP-IN ANIMATION
========================================================= */

.pop-in {

    opacity: 0;

    transform: scale(0.75);

    transition:
        opacity 0.6s ease,
        transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}


.pop-in.show {

    opacity: 1;

    transform: scale(1);
}



/* =========================================================
   HEADER
========================================================= */

.project-header {

    width: 100%;

    padding: 25px 8%;

    display: flex;

    align-items: center;

    justify-content: space-between;

    background: #080b0a;

    border-bottom:
        1px solid rgba(255, 255, 255, 0.08);

    position: relative;

    z-index: 10;
}



/* LOGO */

.logo {

    display: flex;

    align-items: center;

    gap: 10px;
}


.logo span {

    width: 48px;

    height: 38px;

    display: flex;

    align-items: center;

    justify-content: center;

    border: 2px solid var(--lemon);

    border-radius: 10px;

    color: var(--lemon);

    font-size: 17px;

    font-weight: 700;
}


.logo h2 {

    font-size: 22px;

    font-weight: 600;
}



/* BACK BUTTON */

.back-btn {

    display: inline-flex;

    align-items: center;

    gap: 8px;

    padding: 11px 20px;

    border: 1px solid var(--lemon);

    border-radius: 6px;

    color: var(--lemon);

    text-decoration: none;

    font-size: 14px;

    font-weight: 500;

    transition: 0.3s ease;
}


.back-btn:hover {

    background: var(--lemon);

    color: #080b0a;
}



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

.project-hero {

    min-height: 430px;

    padding: 80px 8%;

    display: flex;

    align-items: center;

    justify-content: center;

    text-align: center;

    background:

        radial-gradient(
            circle at center,
            rgba(217, 255, 0, 0.05),
            transparent 50%
        ),

        #080b0a;

    border-bottom:
        1px solid rgba(255, 255, 255, 0.06);
}


.hero-content {

    max-width: 850px;
}


.hero-small-title {

    color: var(--lemon);

    font-size: 14px;

    font-weight: 600;

    letter-spacing: 3px;
}


.hero-content h1 {

    margin-top: 15px;

    font-size: clamp(42px, 7vw, 75px);

    line-height: 1.1;

    font-weight: 700;
}


.hero-content h1 span {

    color: var(--lemon);
}


.hero-content p {

    max-width: 700px;

    margin: 25px auto 0;

    color: var(--muted-text);

    font-size: 16px;

    line-height: 1.8;
}



/* =========================================================
   SECTION HEADER
========================================================= */

.section-header {

    max-width: 800px;

    margin: 0 auto 55px;

    text-align: center;
}


.section-header > span {

    color: var(--lemon);

    font-size: 13px;

    font-weight: 600;

    letter-spacing: 3px;
}


.section-header h2 {

    margin-top: 10px;

    font-size: clamp(30px, 5vw, 45px);
}


.section-header h2 span {

    color: var(--lemon);
}


.section-header p {

    margin-top: 15px;

    color: var(--muted-text);

    font-size: 15px;

    line-height: 1.8;
}



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

.projects-section {

    padding: 100px 8%;
}


.projects-grid {

    max-width: 1250px;

    margin: auto;

    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 30px;
}



/* =========================================================
   PROJECT CARD
========================================================= */

.project-card {

    overflow: hidden;

    background: var(--card-bg);

    border:
        1px solid var(--border-color);

    border-radius: 12px;

    transition:
        transform 0.3s ease,
        border-color 0.3s ease;
}


.project-card:hover {

    transform: translateY(-8px);

    border-color: var(--lemon);
}



/* =========================================================
   PROJECT IMAGE
========================================================= */

.project-image {

    width: 100%;

    height: 280px;

    overflow: hidden;

    background: #0d100e;

    display: flex;

    align-items: center;

    justify-content: center;
}


.project-image img {

    width: 100%;

    height: 100%;

    object-fit: cover;

    transition: transform 0.4s ease;
}


.project-card:hover
.project-image img {

    transform: scale(1.05);
}



/* =========================================================
   PROJECT CONTENT
========================================================= */

.project-content {

    padding: 28px;
}


.project-category {

    color: var(--lemon);

    font-size: 12px;

    font-weight: 600;

    text-transform: uppercase;

    letter-spacing: 1.5px;
}


.project-content h3 {

    margin-top: 8px;

    font-size: 23px;
}


.project-content p {

    margin-top: 13px;

    color: var(--muted-text);

    font-size: 14px;

    line-height: 1.8;
}



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

.technologies {

    display: flex;

    flex-wrap: wrap;

    gap: 8px;

    margin-top: 20px;
}


.technologies span {

    padding: 6px 10px;

    border:
        1px solid rgba(217, 255, 0, 0.2);

    border-radius: 4px;

    color: #c8cfc3;

    font-size: 11px;
}



/* =========================================================
   PROJECT BUTTON
========================================================= */

.project-btn {

    display: inline-flex;

    align-items: center;

    gap: 8px;

    margin-top: 25px;

    padding: 10px 18px;

    background: var(--lemon);

    color: #080b0a;

    border: none;

    border-radius: 5px;

    cursor: pointer;

    font-family: inherit;

    font-size: 13px;

    font-weight: 600;

    transition: 0.3s ease;
}


.project-btn:hover {

    background: #f0ff80;

    transform: translateX(3px);
}



/* =========================================================
   UPCOMING SECTION
========================================================= */

.upcoming-section {

    padding: 100px 8%;

    background: #0c100d;

    border-top:
        1px solid rgba(255, 255, 255, 0.06);
}


.upcoming-grid {

    max-width: 1100px;

    margin: auto;

    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 25px;
}


.upcoming-card {

    padding: 35px 25px;

    text-align: center;

    border:
        1px solid rgba(255, 255, 255, 0.08);

    border-radius: 10px;

    background: #101410;

    transition: 0.3s ease;
}


.upcoming-card:hover {

    border-color: var(--lemon);

    transform: translateY(-6px);
}


.upcoming-icon {

    width: 60px;

    height: 60px;

    margin: 0 auto 20px;

    display: flex;

    align-items: center;

    justify-content: center;

    border:
        1px solid var(--lemon);

    border-radius: 50%;

    color: var(--lemon);

    font-size: 22px;
}


.upcoming-card h3 {

    font-size: 18px;
}


.upcoming-card p {

    margin: 12px 0;

    color: var(--muted-text);

    font-size: 13px;

    line-height: 1.7;
}


.upcoming-card > span {

    color: var(--lemon);

    font-size: 11px;

    font-weight: 600;

    text-transform: uppercase;

    letter-spacing: 1px;
}



/* =========================================================
   GALLERY POPUP
========================================================= */

.gallery-overlay {

    position: fixed;

    inset: 0;

    width: 100%;

    height: 100%;

    z-index: 99999;

    display: none;

    overflow-y: auto;

    padding: 40px 6%;

    background:
        rgba(5, 7, 6, 0.98);

    backdrop-filter: blur(8px);
}



/* SHOW POPUP */

.gallery-overlay.active {

    display: block;

    animation:
        galleryFadeIn 0.3s ease;
}



/* =========================================================
   GALLERY WINDOW
========================================================= */

.gallery-window {

    width: 100%;

    max-width: 1300px;

    margin: auto;
}



/* =========================================================
   GALLERY HEADER
========================================================= */

.gallery-top {

    display: flex;

    align-items: flex-start;

    justify-content: space-between;

    gap: 30px;

    padding-bottom: 25px;

    border-bottom:
        1px solid rgba(255, 255, 255, 0.1);
}


.gallery-top span {

    color: var(--lemon);

    font-size: 12px;

    font-weight: 600;

    letter-spacing: 2px;
}


.gallery-top h2 {

    margin-top: 7px;

    color: #f5f5f5;

    font-size: 35px;

    line-height: 1.3;
}



/* =========================================================
   CLOSE BUTTON
========================================================= */

.gallery-close {

    width: 48px;

    height: 48px;

    flex-shrink: 0;

    display: flex;

    align-items: center;

    justify-content: center;

    border:
        1px solid var(--lemon);

    border-radius: 50%;

    background: transparent;

    color: var(--lemon);

    font-size: 20px;

    cursor: pointer;

    transition: 0.3s ease;
}


.gallery-close:hover {

    background: var(--lemon);

    color: #080b0a;

    transform: rotate(90deg);
}



/* =========================================================
   GALLERY DESCRIPTION
========================================================= */

.gallery-description {

    max-width: 750px;

    margin: 25px 0 35px;

    color: var(--muted-text);

    font-size: 14px;

    line-height: 1.8;
}



/* =========================================================
   GALLERY GRID
========================================================= */

.gallery-grid {

    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 25px;

    padding-bottom: 60px;
}



/* =========================================================
   GALLERY ITEM
========================================================= */

.gallery-item {

    overflow: hidden;

    background: #111511;

    border:
        1px solid rgba(255, 255, 255, 0.08);

    border-radius: 10px;

    transition: 0.3s ease;
}


.gallery-item:hover {

    border-color: var(--lemon);

    transform: translateY(-5px);
}


.gallery-item img {

    width: 100%;

    height: auto;

    display: block;

    object-fit: contain;

    transition: transform 0.4s ease;
}


.gallery-item:hover img {

    transform: scale(1.02);
}



/* =========================================================
   VIDEO GALLERY
========================================================= */

.video-gallery-grid {

    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 25px;

    padding-bottom: 60px;
}


.video-item {

    overflow: hidden;

    background: #111511;

    border:
        1px solid rgba(255, 255, 255, 0.08);

    border-radius: 10px;
}


.video-item video {

    width: 100%;

    display: block;

    background: #000;
}



/* =========================================================
   GALLERY ANIMATION
========================================================= */

@keyframes galleryFadeIn {

    from {

        opacity: 0;

    }

    to {

        opacity: 1;

    }

}



/* =========================================================
   PREVENT MAIN PAGE SCROLL
========================================================= */

body.gallery-open {

    overflow: hidden;
}



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

footer {

    padding: 30px 8%;

    text-align: center;

    background: #080b0a;

    border-top:
        1px solid rgba(255, 255, 255, 0.06);

    color: #8f968c;

    font-size: 13px;
}



/* =========================================================
   TABLET
========================================================= */

@media (max-width: 900px) {

    .projects-grid {

        grid-template-columns: 1fr;

    }


    .upcoming-grid {

        grid-template-columns: 1fr;

    }


    .gallery-grid {

        grid-template-columns:
            repeat(2, minmax(0, 1fr));

    }


    .video-gallery-grid {

        grid-template-columns: 1fr;

    }

}



/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 600px) {

    .project-header {

        padding: 20px 5%;

    }


    .logo h2 {

        font-size: 18px;

    }


    .logo span {

        width: 43px;

        height: 35px;

        font-size: 15px;

    }


    .back-btn {

        padding: 9px 13px;

        font-size: 12px;

    }


    .project-hero {

        min-height: 360px;

        padding: 60px 5%;

    }


    .hero-content h1 {

        font-size: 42px;

    }


    .hero-content p {

        font-size: 14px;

    }


    .projects-section,
    .upcoming-section {

        padding: 75px 5%;

    }


    .project-image {

        height: 230px;

    }


    .project-content {

        padding: 22px;

    }


    /* GALLERY */

    .gallery-overlay {

        padding: 25px 5%;

    }


    .gallery-top h2 {

        font-size: 27px;

    }


    .gallery-top span {

        font-size: 10px;

        letter-spacing: 1.5px;

    }


    .gallery-close {

        width: 42px;

        height: 42px;

        font-size: 17px;

    }


    .gallery-description {

        font-size: 13px;

    }


    .gallery-grid {

        grid-template-columns: 1fr;

        gap: 18px;

    }


    .video-gallery-grid {

        grid-template-columns: 1fr;

        gap: 18px;

    }

}