/* =========================================
   PROJECT GALLERY
========================================= */

.project-one {
    padding: 30px 0px 0px;
    background: #e3fbea;

}

.project-one::before {
    content: "";
    position: absolute;
    width: 320px;
    height: 320px;
    left: -120px;
    top: -120px;
    border-radius: 50%;
    background: #b8e8c7;
    opacity: 0.45;
    z-index: 0;
    pointer-events: none;
    animation: eduTopFloat 8s ease-in-out infinite;
}

.project-one::after {
    content: "";
    position: absolute;
    width: 320px;
    height: 320px;
    right: -120px;
    bottom: -120px;
    border-radius: 50%;
    background: #b8e8c7;
    opacity: 0.45;
    z-index: 0;
    pointer-events: none;
    animation: eduBottomFloat 10s ease-in-out infinite;
}

.project-one .container {
    z-index: 5;
    position: relative;
}

.project-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}


/* =========================== */

/* =========================================
   PREMIUM DOMINO HEADING
   BLACK + LIGHT GREEN THEME
========================================= */

:root {
    --ink: #111111;        /* Main black */
    --ink-2: #b8ffc9;      /* Light green */
    --ink-3: #72ff9a;      /* Accent green */
}


/* =========================================
   HEADING
========================================= */

.fx-domino {
    font: 600 42px/1.15 "JetBrains Mono", monospace;

    letter-spacing: .08em;

    color: var(--ink);

    display: flex;
    justify-content: center;
    align-items: flex-center;

    perspective: 1000px;

    text-rendering: optimizeLegibility;
    margin-bottom: 30px;
}


/* =========================================
   INDIVIDUAL LETTERS
========================================= */

.fx-domino b {
    font-weight: inherit;

    display: inline-block;

    transform-origin: 0% 100%;

    animation:
        fx-domino-premium 4.5s
        cubic-bezier(.22, .61, .36, 1)
        infinite;

    animation-delay: calc(var(--i) * .12s);

    will-change:
        transform,
        color,
        text-shadow;

    -webkit-font-smoothing: antialiased;
}


/* =========================================
   DOMINO ANIMATION
========================================= */

@keyframes fx-domino-premium {

    /* Initial */
    0%,
    10% {
        transform: rotate(0deg) translateY(0);

        color: #111111;

        text-shadow: none;

        animation-timing-function:
            cubic-bezier(.6, .04, .98, .34);
    }


    /* Start */
    22% {
        transform: rotate(35deg) translateY(2px);

        color: #72ff9a;

        text-shadow:
            0 0 8px rgba(114, 255, 154, .25);

        animation-timing-function:
            cubic-bezier(.4, 0, .2, 1);
    }


    /* Main fall */
    31% {
        transform: rotate(87deg) translateY(0);

        color: #b8ffc9;

        text-shadow:
            0 0 10px rgba(114, 255, 154, .55),
            0 0 25px rgba(114, 255, 154, .25),
            0 0 45px rgba(114, 255, 154, .10);

        animation-timing-function:
            cubic-bezier(.2, .8, .3, 1);
    }


    /* Bounce */
    36% {
        transform: rotate(78deg);

        color: #b8ffc9;

        text-shadow:
            0 0 8px rgba(114, 255, 154, .35);
    }


    /* Hold */
    44%,
    62% {
        transform: rotate(84deg);

        color: rgba(17, 17, 17, .35);

        text-shadow: none;

        animation-timing-function:
            cubic-bezier(.5, -.35, .3, 1.45);
    }


    /* Return */
    78% {
        transform: rotate(-8deg);

        color: #72ff9a;

        text-shadow:
            0 0 10px rgba(114, 255, 154, .45),
            0 0 25px rgba(114, 255, 154, .15);
    }


    /* Final bounce */
    88% {
        transform: rotate(3deg);

        color: #8dffad;

        text-shadow:
            0 0 8px rgba(114, 255, 154, .3);
    }


    /* Back to black */
    94%,
    100% {
        transform: rotate(0deg) translateY(0);

        color: #111111;

        text-shadow: none;
    }
}


/* =========================================
   PREMIUM HOVER
========================================= */

.fx-domino:hover b {
    color: #72ff9a;

    text-shadow:
        0 0 8px rgba(114, 255, 154, .45),
        0 0 20px rgba(114, 255, 154, .18);

    transition:
        color .25s ease,
        text-shadow .25s ease;
}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 767px) {

    .fx-domino {
        font-size: 34px;
        letter-spacing: .05em;
    }
}


@media (max-width: 480px) {

    .fx-domino {
        font-size: 27px;
        letter-spacing: .03em;
    }
}

/* =========================================
   PROJECT CARD
========================================= */

.project-card {
    position: relative;
    overflow: hidden;
    border-radius: 14px;
    background: #111;
    min-height: 390px;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.08);
}

/* Large cards */
.project-card-large {
    grid-column: span 1;
    min-height: 470px;
}

/* =========================================
   IMAGE
========================================= */

.project-card-image {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: inherit;
    overflow: hidden;
}

.project-card-image img {
    width: 100%;
    height: 100%;
    min-height: inherit;
    object-fit: cover;
    display: block;

    transition:
        transform 0.8s cubic-bezier(0.22, 1, 0.36, 1),
        filter 0.5s ease;
}

/* =========================================
   DARK OVERLAY
========================================= */

.project-card-overlay {
    position: absolute;
    inset: 0;

    background: linear-gradient(to top,
            rgba(0, 0, 0, 0.88) 0%,
            rgba(0, 0, 0, 0.40) 45%,
            rgba(0, 0, 0, 0.05) 75%);

    opacity: 0.85;
    transition: opacity 0.4s ease;
}

/* =========================================
   CONTENT
========================================= */

.project-card-content {
    position: absolute;
    left: 30px;
    right: 30px;
    bottom: 28px;
    z-index: 2;

    transform: translateY(10px);
    transition: transform 0.4s ease;
}

.project-category {
    display: inline-block;

    margin-bottom: 10px;
    padding: 6px 13px;

    color: #fff;
    background: rgba(255, 255, 255, 0.14);

    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 30px;

    font-size: 11px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: 1.5px;
    text-transform: uppercase;

    backdrop-filter: blur(8px);
}

.project-card-content h3 {
    margin: 0;

    color: #fff;

    font-size: 25px;
    font-weight: 600;
    line-height: 1.25;

    letter-spacing: -0.3px;
}

/* =========================================
   HOVER EFFECT
========================================= */

.project-card:hover img {
    transform: scale(1.08);
    filter: brightness(0.85);
}

.project-card:hover .project-card-overlay {
    opacity: 1;
}

.project-card:hover .project-card-content {
    transform: translateY(0);
}

/* =========================================
   ACCENT LINE
========================================= */

.project-card-content::before {
    content: "";

    display: block;

    width: 0;
    height: 3px;

    margin-bottom: 15px;

    background: #cfffdc;
    border-radius: 5px;

    transition: width 0.4s ease;
}

.project-card:hover .project-card-content::before {
    width: 45px;
}

/* =========================================
   TABLET
========================================= */

@media (max-width: 991px) {

    .project-one {
        padding: 70px 0;
    }

    .project-gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: 22px;
    }

    .project-card,
    .project-card-large {
        min-height: 400px;
    }

    .project-card-content {
        left: 24px;
        right: 24px;
        bottom: 24px;
    }

    .project-card-content h3 {
        font-size: 22px;
    }
}

/* =========================================
   MOBILE
========================================= */

@media (max-width: 575px) {

    .project-one {
        padding: 50px 0;
    }

    .project-gallery {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .project-card,
    .project-card-large {
        min-height: 360px;
    }

    .project-card-content {
        left: 20px;
        right: 20px;
        bottom: 20px;
    }

    .project-card-content h3 {
        font-size: 20px;
    }

    .project-category {
        font-size: 10px;
        padding: 6px 11px;
    }
}

/* =========================================
   IMAGE POPUP (BOOTSTRAP MODAL)
========================================= */

.project-card-image {
    cursor: zoom-in;
}

.project-image-modal .modal-content {
    position: relative;

    background: #0d0d0d;
    border: none;
    border-radius: 14px;

    overflow: hidden;

    box-shadow: 0 25px 65px rgba(0, 0, 0, 0.45);
}

.project-image-modal-img {
    display: block;
    width: 100%;
    max-height: 78vh;
    object-fit: contain;

    background: #000;
}

.project-image-modal .modal-footer {
    background: #0d0d0d;
    padding: 16px 20px;
}

.project-image-modal .modal-title {
    color: #fff;
    font-size: 17px;
    font-weight: 600;
    letter-spacing: 0.2px;
}

.project-image-modal-close {
    position: absolute;

    top: 14px;
    right: 14px;
    z-index: 5;

    width: 38px;
    height: 38px;

    background-color: rgba(255, 255, 255, 0.9) !important;
    border-radius: 50%;

    opacity: 1;

    transition: transform 0.3s ease, background-color 0.3s ease;
}

.project-image-modal-close:hover {
    background-color: #cfffdc !important;
    transform: rotate(90deg);
}

/* =========================================
   IMAGE POPUP NAV ARROWS
========================================= */

.project-image-modal-nav {
    position: absolute;

    top: 50%;
    transform: translateY(-50%);
    z-index: 6;

    width: 46px;
    height: 46px;

    display: flex;
    align-items: center;
    justify-content: center;

    color: #111;
    background: rgba(255, 255, 255, 0.9);

    border: none;
    border-radius: 50%;

    font-size: 18px;
    line-height: 1;

    cursor: pointer;

    transition: background 0.3s ease, transform 0.3s ease;
}

.project-image-modal-nav:hover {
    background: #cfffdc;
    transform: translateY(-50%) scale(1.08);
}

.project-image-modal-nav--prev {
    left: 16px;
}

.project-image-modal-nav--next {
    right: 16px;
}

@media (max-width: 575px) {
    .project-image-modal-nav {
        width: 38px;
        height: 38px;

        font-size: 15px;
    }

    .project-image-modal-nav--prev {
        left: 10px;
    }

    .project-image-modal-nav--next {
        right: 10px;
    }
}