@import url('navbar-responsive.css');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    overflow-x: hidden;
}



.hero {
    position: relative;
    width: 100%;
    height: 100vh;

    overflow: hidden;

    display: flex;
    align-items: center;
    justify-content: center;
}



.hero-video {
    position: absolute;

    top: 0;
    left: 0;

    width: 100%;
    height: 100%;

    object-fit: cover;

    z-index: 1;
}



.hero-overlay {
    position: absolute;

    top: 0;
    left: 0;

    width: 100%;
    height: 100%;

    background: rgba(0, 0, 0, 0.55);

    z-index: 2;
}



.hero-content {
    position: relative;

    z-index: 3;

    text-align: center;

    color: white;
}

.hero-content h1 {
    font-size: 65px;
    font-weight: 700;

    margin-bottom: 15px;
}

.hero-content p {
    font-size: 25px;
}

.hero-content p span {
    font-weight: 700;
    text-decoration: underline;
}



.hero-logo {
    position: absolute;

    right: 40px;
    bottom: 25px;

    width: 130px;
    height: auto;

    z-index: 4;
}



@media (max-width: 768px) {

    .hero-content h1 {
        font-size: 42px;
    }

    .hero-content p {
        font-size: 18px;
    }

    .hero-logo {
        width: 90px;

        right: 20px;
        bottom: 20px;
    }
}
/* ===============================
   HEADER BELOW VIDEO
================================ */

.site-header {
    width: 100%;
    background: #e7ebed;
    position: relative;
    z-index: 100;
}

.navbar-container {
    width: 88%;
    max-width: 1500px;
    min-height: 330px;
    margin: auto;

    display: flex;
    align-items: flex-start;
}



.header-logo {
    width: 195px;
    margin-top: 35px;
    flex-shrink: 0;
}

.header-logo img {
    width: 100%;
    display: block;
}


/* NAVIGATION */

.main-nav {
    display: flex;
    align-items: center;

    gap: 21px;

    margin-left: 70px;
    margin-top: 125px;

    white-space: nowrap;
}

.main-nav > a {
    color: #111;
    text-decoration: none;

    font-size: 21px;
    font-weight: 700;
}

.main-nav > a:hover,
.main-nav > a.active {
    color: #b32020;
}


/* SERVICES */

.services-dropdown {
    position: relative;
}

.services-dropdown button {
    border: none;
    background: transparent;

    font-size: 21px;
    font-weight: 700;

    cursor: pointer;
}

.services-menu {
    position: absolute;
    z-index: 9999;

    top: 35px;
    left: 0;

    width: 240px;

    background: white;

    box-shadow: 0 10px 30px rgba(0,0,0,.18);

    border-radius: 8px;

    overflow: hidden;

    opacity: 0;
    visibility: hidden;

    transform: translateY(-8px);

    transition: .2s;
}

.services-menu.show {
    opacity: 1;
    visibility: visible;

    transform: translateY(0);
}

.services-menu a {
    display: block;

    padding: 15px 18px;

    color: #111;
    text-decoration: none;

    font-size: 16px;
}

.services-menu a:hover {
    background: #b32020;
    color: white;
}
#servicesButton {
    display: flex;
    align-items: center;
    gap: 8px;
}

#servicesButton i {
    font-size: 12px;
}



/* =========================================
   PORTFOLIO BANNER
========================================= */

.portfolio-banner {
    position: relative;

    width: 100%;
    height: 350px;

    overflow: hidden;

    background-image: url('../img/web\(201\)\ \(1\).webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    display: flex;
    align-items: center;
    justify-content: center;
}

.portfolio-banner::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    z-index: 1;
}


/* =========================================
   LEFT IMAGE
========================================= */

.portfolio-left-image {
    position: absolute;

    left: 0;
    top: 0;

    width: 32%;
    height: 100%;

    background-image: url("../images/portfolio-left.webp");
    background-size: cover;
    background-position: center;

    z-index: 2;
}


/* =========================================
   RIGHT IMAGE
========================================= */

.portfolio-right-image {
    position: absolute;

    right: 0;
    top: 0;

    width: 28%;
    height: 100%;

    background-image: url("../images/portfolio-right.webp");
    background-size: cover;
    background-position: center;

    z-index: 2;
}


/* =========================================
   CENTER CONTENT
========================================= */

.portfolio-banner-content {
    position: relative;

    z-index: 5;

    text-align: center;

    color: white;

    margin: 0 auto;

    padding: 20px;
}


/* Heading */

.portfolio-banner-content h1 {
    margin: 0 0 25px;

    color: #ffffff;

    font-size: 48px;

    font-weight: 700;

    line-height: 1.2;
}


/* =========================================
   BREADCRUMB
========================================= */

.portfolio-breadcrumb {
    display: flex;

    justify-content: center;
    align-items: center;

    gap: 8px;

    font-size: 18px;

    font-weight: 600;

    color: white;
}


.portfolio-breadcrumb a {
    color: white;

    text-decoration: underline;

    transition: 0.3s;
}


.portfolio-breadcrumb a:hover {
    color: #ff0000;
}


.portfolio-breadcrumb span {
    color: white;
}


/* =========================================
   TABLET
========================================= */

@media (max-width: 900px) {

    .portfolio-banner {
        height: 320px;
    }

    .portfolio-left-image {
        width: 27%;
    }

    .portfolio-right-image {
        width: 25%;
    }

    .portfolio-banner-content h1 {
        font-size: 40px;
    }

}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 600px) {

    .portfolio-banner {
        height: 280px;
    }

    .portfolio-left-image {
        width: 22%;
        opacity: 0.7;
    }

    .portfolio-right-image {
        width: 22%;
        opacity: 0.7;
    }

    .portfolio-banner-content h1 {
        font-size: 30px;

        margin-bottom: 18px;
    }

    .portfolio-breadcrumb {
        font-size: 15px;
    }

}


/* =========================================================
   PORTFOLIO SERVICES
========================================================= */

.portfolio-services {
    width: 100%;
    background: #e7ebed;
    padding: 70px 0 80px;
    overflow: hidden;
}


/* =========================================================
   EACH ROW / CATEGORY
========================================================= */

.portfolio-category {
    width: 100%;
    max-width: 1260px;
    margin: 0 auto 45px;
}

.portfolio-category:last-child {
    margin-bottom: 0;
}


/* =========================================================
   HEADING
========================================================= */

.portfolio-heading {
    width: 100%;

    display: flex;
    justify-content: space-between;
    align-items: flex-end;

    margin-bottom: 20px;
}


.gallery-label {
    display: flex;
    align-items: center;

    gap: 7px;

    margin-bottom: 6px;

    font-size: 18px;
    font-weight: 700;

    color: #b32020;
}


.gallery-label i {
    color: #111;
    font-size: 17px;
}


.portfolio-heading h2 {
    margin: 0;

    color: #14244f;

    font-size: 28px;
    font-weight: 700;

    line-height: 1.2;
}


/* =========================================================
   CLICK HERE BUTTON
========================================================= */

.click-btn {
    width: 138px;
    height: 48px;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 9px;

    flex-shrink: 0;

    border: 2px solid #14244f;
    border-radius: 30px;

    background: transparent;

    color: #111;

    text-decoration: none;

    font-size: 14px;
    font-weight: 600;

    transition: all 0.3s ease;
}


.click-btn i {
    font-size: 14px;
}


.click-btn:hover {
    background: #14244f;
    color: #fff;

    transform: translateY(-2px);
}


/* =========================================================
   SLIDER WINDOW
========================================================= */

.portfolio-slider {
    width: 100%;

    overflow: hidden;

    position: relative;
}


/* =========================================================
   MOVING TRACK
========================================================= */

.portfolio-track {
    display: flex;

    width: max-content;

    gap: 18px;

    animation: portfolioMoveLeft 25s linear infinite;

    will-change: transform;
}


/* =========================================================
   RIGHT MOVING ROW
   Row 2 + Row 4
========================================================= */

.portfolio-track-right {
    animation: portfolioMoveRight 25s linear infinite;
}


/* =========================================================
   PAUSE ONLY CURRENT ROW ON HOVER
========================================================= */

.portfolio-slider:hover .portfolio-track {
    animation-play-state: paused;
}


/* =========================================================
   CARD
========================================================= */

.portfolio-card {
    width: 184px;
    height: 184px;

    flex-shrink: 0;

    overflow: hidden;

    border-radius: 18px;

    background: #fff;

    position: relative;
}


/* =========================================================
   CARD IMAGE
========================================================= */

.portfolio-card img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;

    transition: transform 0.45s ease;
}


/* =========================================================
   IMAGE ZOOM ON HOVER
========================================================= */

.portfolio-card:hover img {
    transform: scale(1.07);
}


/* =========================================================
   ROW 1 + ROW 3
   LEFT DIRECTION
========================================================= */

@keyframes portfolioMoveLeft {

    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(calc(-50% - 9px));
    }

}


/* =========================================================
   ROW 2 + ROW 4
   RIGHT DIRECTION
========================================================= */

@keyframes portfolioMoveRight {

    0% {
        transform: translateX(calc(-50% - 9px));
    }

    100% {
        transform: translateX(0);
    }

}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1000px) {

    .portfolio-services {
        padding: 60px 0 70px;
    }

    .portfolio-category {
        padding: 0 25px;
    }

    .portfolio-heading h2 {
        font-size: 24px;
    }

    .portfolio-card {
        width: 175px;
        height: 175px;
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 700px) {

    .portfolio-services {
        padding: 50px 0 60px;
    }

    .portfolio-category {
        padding: 0 18px;
        margin-bottom: 40px;
    }

    .portfolio-heading {
        align-items: flex-start;

        gap: 15px;
    }

    .portfolio-heading h2 {
        font-size: 21px;
    }

    .gallery-label {
        font-size: 16px;
    }

    .click-btn {
        width: 115px;
        height: 42px;

        font-size: 12px;
    }

    .portfolio-card {
        width: 155px;
        height: 155px;

        border-radius: 15px;
    }

    .portfolio-track {
        gap: 14px;

        animation-duration: 20s;
    }

}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 480px) {

    .portfolio-heading {
        flex-direction: column;
    }

    .click-btn {
        align-self: flex-end;
    }

    .portfolio-card {
        width: 145px;
        height: 145px;
    }

}



/* =========================================================
   PORTFOLIO PAGE
========================================================= */

.portfolio-page {
    width: 100%;
    min-height: 100vh;

    background: #e6e8ec;

    padding: 115px 0 100px;

    overflow: hidden;
}


/* =========================================================
   FILTER BUTTONS
========================================================= */

.portfolio-filter {
    width: fit-content;

    margin: 0 auto 70px;

    padding: 7px;

    display: flex;
    align-items: center;

    gap: 8px;

    border: 1px solid rgba(255,255,255,0.9);

    border-radius: 40px;

    background: rgba(255,255,255,0.12);

    box-shadow:
        0 0 0 1px rgba(255,255,255,0.4),
        inset 0 0 10px rgba(255,255,255,0.2);
}


.filter-btn {
    border: none;

    padding: 13px 27px;

    border-radius: 30px;

    background: transparent;

    color: #14244f;

    font-size: 16px;

    cursor: pointer;

    transition: all 0.3s ease;
}


.filter-btn:hover {
    background: #ffffff;
}


.filter-btn.active {
    background: #d40000;

    color: #ffffff;

    box-shadow: 0 5px 12px rgba(180,0,0,0.2);
}


/* =========================================================
   CATEGORY
========================================================= */

.portfolio-category {
    width: calc(100% - 120px);

    max-width: 1380px;

    margin: 0 auto 100px;
}


/* =========================================================
   CATEGORY HEADING
========================================================= */

.category-heading {
    display: flex;

    align-items: flex-end;

    justify-content: space-between;

    margin-bottom: 45px;
}


.gallery-label {
    display: flex;

    align-items: center;

    gap: 8px;

    margin-bottom: 8px;

    color: #b30000;

    font-size: 19px;

    font-weight: 700;
}


.gallery-label i {
    color: #222;

    font-size: 18px;
}


.category-title h2 {
    margin: 0;

    color: #14244f;

    font-size: 40px;

    line-height: 1.15;

    font-weight: 700;
}


/* =========================================================
   VIEW MORE
========================================================= */

.view-more-btn {
    min-width: 185px;

    height: 64px;

    padding: 0 25px;

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 10px;

    border: 2px solid #14244f;

    border-radius: 35px;

    background: transparent;

    color: #14244f;

    text-decoration: none;

    font-size: 16px;

    transition: all 0.3s ease;
}


.view-more-btn:hover {
    background: #14244f;

    color: #ffffff;

    transform: translateY(-2px);
}


/* =========================================================
   IMAGE GRID
========================================================= */

.portfolio-grid {
    width: 100%;

    display: grid;

    grid-template-columns: repeat(5, 1fr);

    gap: 14px;
}


/* =========================================================
   PORTFOLIO CARD
========================================================= */

.portfolio-item {
    width: 100%;

    aspect-ratio: 1 / 1;

    overflow: hidden;

    border-radius: 25px;

    background: #ffffff;

    cursor: pointer;

    border: 1px solid rgba(20,36,79,0.08);

    transition:
        transform 0.35s ease,
        box-shadow 0.35s ease;
}


.portfolio-item img {
    width: 100%;

    height: 100%;

    display: block;

    object-fit: cover;

    transition: transform 0.5s ease;
}


.portfolio-item:hover {
    transform: translateY(-5px);

    box-shadow: 0 15px 30px rgba(20,36,79,0.15);
}


.portfolio-item:hover img {
    transform: scale(1.07);
}


/* =========================================================
   LOAD MORE
========================================================= */

.load-more {
    display: block;

    margin: 35px auto 0;

    padding: 15px 45px;

    border: 2px solid #14244f;

    border-radius: 35px;

    background: transparent;

    color: #14244f;

    font-size: 16px;

    cursor: pointer;

    transition: all 0.3s ease;
}


.load-more:hover {
    background: #14244f;

    color: #ffffff;
}







/* =========================================================
   BACK TO TOP
========================================================= */

.back-to-top {
    position: fixed;

    right: 32px;

    bottom: 25px;

    z-index: 999;

    width: 55px;

    height: 55px;

    border-radius: 50%;

    border: 3px solid #c90000;

    background: #ffffff;

    color: #c90000;

    font-size: 21px;

    cursor: pointer;

    opacity: 0;

    visibility: hidden;

    transition: all 0.3s ease;
}


.back-to-top.show {
    opacity: 1;

    visibility: visible;
}


.back-to-top:hover {
    background: #c90000;

    color: #ffffff;
}


/* =========================================================
   HIDDEN CATEGORY
========================================================= */

.portfolio-category.hidden {
    display: none;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1100px) {

    .portfolio-page {
        padding-top: 90px;
    }

    .portfolio-category {
        width: calc(100% - 60px);
    }

    .portfolio-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .category-title h2 {
        font-size: 32px;
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 750px) {

    .portfolio-page {
        padding-top: 70px;

        padding-bottom: 70px;
    }


    .portfolio-filter {
        width: calc(100% - 25px);

        justify-content: center;

        flex-wrap: wrap;

        margin-bottom: 55px;
    }


    .filter-btn {
        padding: 10px 15px;

        font-size: 13px;
    }


    .portfolio-category {
        width: calc(100% - 30px);

        margin-bottom: 70px;
    }


    .category-heading {
        align-items: flex-start;

        flex-direction: column;

        gap: 20px;

        margin-bottom: 30px;
    }


    .category-title h2 {
        font-size: 27px;
    }


    .view-more-btn {
        min-width: 150px;

        height: 52px;

        font-size: 14px;
    }


    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);

        gap: 12px;
    }


    .portfolio-item {
        border-radius: 18px;
    }


    .open-form-tab {
        width: 37px;

        height: 130px;

        font-size: 13px;
    }


    .portfolio-floating-btn {
        width: 42px;

        height: 45px;
    }


    .back-to-top {
        right: 18px;

        bottom: 18px;

        width: 48px;

        height: 48px;
    }

}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 480px) {

    .portfolio-grid {
        grid-template-columns: 1fr;
    }


    .category-title h2 {
        font-size: 24px;
    }


    .portfolio-filter {
        border-radius: 20px;
    }

}


/* ================================
   FOOTER
================================ */

.site-footer {
    background: #293258;
    color: #ffffff;
    width: 100%;
    margin-top: 0;
}

.footer-container {
    max-width: 1200px;
    margin: auto;
    padding: 55px 30px 40px;

    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr 1.2fr;
    gap: 55px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-logo {
    width: 180px;
    max-width: 100%;
    height: auto;
    margin-bottom: 25px;
}

.footer-column h3 {
    font-size: 21px;
    margin: 5px 0 25px;
    font-weight: 700;
}

.footer-column h3 i {
    color: #b85b3e;
    margin-right: 10px;
}

.footer-column > a {
    display: block;
    color: #ffffff;
    text-decoration: none;
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 16px;
    transition: 0.2s;
}

.footer-column > a:hover {
    color: #ff4b3e;
    padding-left: 5px;
}

.newsletter p {
    font-size: 17px;
    margin-bottom: 25px;
}

.newsletter form {
    width: 100%;
}

.newsletter input {
    width: 100%;
    height: 50px;
    border: none;
    outline: none;
    border-radius: 30px;
    padding: 0 20px;
    font-size: 16px;
    box-sizing: border-box;
    margin-bottom: 12px;
}

.newsletter button {
    width: 100%;
    height: 50px;
    border: none;
    border-radius: 30px;
    background: #e00000;
    color: #ffffff;
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s;
}

.newsletter button:hover {
    background: #b50000;
}

/* Social Icons */

.social-icons {
    display: flex;
    gap: 10px;
}

.social-icons a {
    width: 40px;
    height: 40px;
    background: #ffffff;
    color: #111111;
    border-radius: 50%;

    display: flex;
    align-items: center;
    justify-content: center;

    text-decoration: none;
    font-size: 18px;

    transition: 0.3s;
}

.social-icons a:hover {
    background: #e00000;
    color: #ffffff;
    transform: translateY(-3px);
}

/* Bottom */

.footer-bottom {
    background: #000000;
    color: #ffffff;
    text-align: center;
    padding: 18px 15px;
    font-size: 17px;
    font-weight: 500;
}


/* ================================
   MOBILE
================================ */

@media (max-width: 768px) {

    .footer-container {
        grid-template-columns: 1fr;
        gap: 35px;
        padding: 40px 25px;
    }

    .footer-brand {
        align-items: center;
        text-align: center;
    }

    .footer-logo {
        width: 230px;
    }

    .footer-column {
        text-align: left;
    }

    .footer-column h3 {
        font-size: 20px;
    }

    .footer-column > a {
        font-size: 16px;
    }

    .newsletter input,
    .newsletter button {
        width: 100%;
    }

    .footer-bottom {
        font-size: 14px;
    }
}

.main-nav a.active {
    color: #e00000 !important;
}

/* =========================================================
   INTERACTIVE 3D ORB MASCOT (MOUAD STYLE)
========================================================= */
.mascot-widget {
    position: fixed;
    bottom: 35px;
    left: 35px;
    z-index: 998;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    user-select: none;
    touch-action: none;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.mascot-speech {
    position: relative;
    background: #ffffff;
    color: #14244f;
    font-size: 13px;
    font-weight: 700;
    padding: 8px 16px;
    border-radius: 18px;
    box-shadow: 0 10px 25px rgba(20, 36, 79, 0.15), 0 2px 6px rgba(0, 0, 0, 0.05);
    margin-bottom: 12px;
    opacity: 0;
    transform: translateY(8px) scale(0.9);
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    pointer-events: none;
    white-space: nowrap;
    border: 1.5px solid rgba(78, 168, 255, 0.35);
}

.mascot-speech::after {
    content: "";
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    border-width: 6px 6px 0 6px;
    border-style: solid;
    border-color: #ffffff transparent transparent transparent;
}

.mascot-widget:hover .mascot-speech,
.mascot-speech.active {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.mascot-body-wrapper {
    position: relative;
    width: 95px;
    height: 95px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.mascot-orb {
    position: relative;
    width: 82px;
    height: 82px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 26%, #e1f6ff 0%, #8adeff 30%, #47a6ff 65%, #1d74e8 100%);
    box-shadow: 
        0 16px 32px rgba(29, 116, 232, 0.38),
        0 4px 14px rgba(71, 166, 255, 0.45),
        inset 0 -10px 20px rgba(10, 60, 160, 0.48),
        inset 0 7px 16px rgba(255, 255, 255, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    animation: mascotFloat 3.8s ease-in-out infinite;
    transform-origin: center bottom;
    transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.mascot-highlight {
    position: absolute;
    top: 10px;
    left: 17px;
    width: 28px;
    height: 18px;
    border-radius: 50%;
    background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0) 80%);
    transform: rotate(-25deg);
    pointer-events: none;
}

.mascot-face {
    position: relative;
    width: 44px;
    height: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transform: translate(0, 0);
    transition: transform 0.08s ease-out;
    pointer-events: none;
}

.mascot-eye {
    position: relative;
    width: 14px;
    height: 23px;
    background: #0d1b3e;
    border-radius: 10px;
    transition: height 0.12s ease, transform 0.12s ease, border-radius 0.12s ease;
    transform-origin: center center;
}

.mascot-pupil-glint {
    position: absolute;
    top: 3px;
    right: 3px;
    width: 4px;
    height: 5px;
    background: #ffffff;
    border-radius: 50%;
    opacity: 0.88;
}

/* Mascot Blinking */
.mascot-orb.blink .mascot-eye {
    height: 2.5px !important;
    border-radius: 2px;
}

/* Happy Mascot Expression */
.mascot-orb.happy .mascot-eye {
    height: 12px;
    border-radius: 12px 12px 0 0;
    background: #0d1b3e;
}

/* Squish & Jump Animation Classes */
.mascot-orb.squish {
    transform: scale(1.22, 0.78) !important;
}

.mascot-orb.stretch {
    transform: scale(0.85, 1.25) translateY(-28px) !important;
}

.mascot-orb.spin {
    animation: mascotSpin 0.75s cubic-bezier(0.34, 1.56, 0.64, 1) forwards !important;
}

.mascot-cheeks {
    position: absolute;
    width: 60px;
    display: flex;
    justify-content: space-between;
    bottom: 22px;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.mascot-cheek {
    width: 10px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 75, 120, 0.55);
    filter: blur(1px);
}

.mascot-orb.happy .mascot-cheeks {
    opacity: 1;
}

/* Shadow underneath */
.mascot-shadow {
    position: absolute;
    bottom: 3px;
    width: 58px;
    height: 11px;
    background: radial-gradient(ellipse at center, rgba(20, 36, 79, 0.28) 0%, rgba(20, 36, 79, 0) 75%);
    border-radius: 50%;
    animation: mascotShadow 3.8s ease-in-out infinite;
    pointer-events: none;
}

@keyframes mascotFloat {
    0%, 100% {
        transform: translateY(0) scale(1, 1);
    }
    50% {
        transform: translateY(-13px) scale(0.97, 1.03);
    }
}

@keyframes mascotShadow {
    0%, 100% {
        transform: scale(1);
        opacity: 0.8;
    }
    50% {
        transform: scale(0.72);
        opacity: 0.42;
    }
}

@keyframes mascotSpin {
    0% {
        transform: translateY(0) rotate(0deg) scale(1);
    }
    35% {
        transform: translateY(-38px) rotate(180deg) scale(1.15);
    }
    75% {
        transform: translateY(0) rotate(360deg) scale(1.18, 0.82);
    }
    100% {
        transform: translateY(0) rotate(360deg) scale(1);
    }
}

/* Portfolio Card 3D Tilt Effect & Staggered Reveal */
.portfolio-item {
    transform-style: preserve-3d;
    perspective: 1000px;
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.portfolio-item:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 20px 40px rgba(20, 36, 79, 0.18), 0 0 0 2px rgba(71, 166, 255, 0.35);
}

.portfolio-category.animating-in .portfolio-item {
    animation: cardEntrance 0.55s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@keyframes cardEntrance {
    0% {
        opacity: 0;
        transform: translateY(25px) scale(0.92);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@media (max-width: 768px) {
    .mascot-widget {
        bottom: 20px;
        left: 20px;
        transform: scale(0.85);
        transform-origin: bottom left;
    }
}