/* Default */
.desktop-only {
    display: block;
}

.mobile-only {
    display: none;
}

/* Mobile */
@media (max-width: 767px) {
    .desktop-only {
        display: none !important;
    }

    .mobile-only {
        display: inline-block;
        margin-left: 20px;
    }

    .crev-agency-header {
        padding-top: 50px;
    }
}

.loader-wrap {
    position: fixed;
    inset: 0;
    background: radial-gradient(circle at center, #0b0f1c, #020409);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
}

.lunar-stage {
    position: relative;
    width: 180px;
    height: 180px;
}

.lunar-logo {
    position: absolute;
    width: 160px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.92);
    opacity: 0;
    animation: logoReveal 1.2s ease forwards;
    animation-delay: 1.4s;
}

.moon {
    position: absolute;
    width: 26px;
    height: 26px;
    background: radial-gradient(circle at 30% 30%, #ff9f43, #ff7a18);
    border-radius: 50%;
    top: 20%;
    left: 50%;
    transform: translateX(-50%);
    animation: moonToLogo 1.8s cubic-bezier(0.65, 0, 0.35, 1) forwards;
}

@keyframes moonToLogo {
    0% {
        transform: translate(-50%, 0) scale(1);
        opacity: 1;
    }

    70% {
        transform: translate(-50%, 60px) scale(0.6);
        opacity: 0.9;
    }

    100% {
        transform: translate(20px, 48px) scale(0.38);
        opacity: 0;
    }
}

@keyframes logoReveal {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.85);
        filter: blur(6px);
    }

    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
        filter: blur(0);
    }
}

.services .item-box2 {
    display: flex;
    flex-direction: column;
    height: 100%;
    margin-bottom: 30px;
}

.services .item-box2 .rmore {
    margin-top: auto;
}

.services .item-box2 p {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.services .row {
    row-gap: 30px;
}

.left-clumn {
    display: flex;
    align-items: center;
    /* vertical center */
    justify-content: center;
    /* horizontal center */
}

.illustration-wrap {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.illustration-wrap img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    /* keeps image intact */
}

.circle-button .icon i {
    animation: floatPlane 2.5s ease-in-out infinite;
}

@keyframes floatPlane {
    0% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(4px, -4px);
    }

    100% {
        transform: translate(0, 0);
    }
}

.fly-plane {
    transition: transform 0.3s ease;
}

/* Desktop – logo + social in one line */
.footer-top {
    align-items: center;
}

/* Ensure logo stays vertically centered */
.footer-top .logo {
    display: flex;
    align-items: center;
}

/* Mobile adjustments */
@media (max-width: 767px) {

    .footer-top {
        text-align: center;
    }

    .footer-top .col-lg-5,
    .footer-top .col-lg-7 {
        display: flex;
        justify-content: center;
    }

    .social-media {
        justify-content: center !important;
        margin-top: 20px;
    }

    .social-media ul {
        flex-wrap: wrap;
        justify-content: center;
    }

    .social-media ul li {
        margin-left: 20px !important;
        margin-right: 20px;
        margin-bottom: 12px;
    }
}


@media (max-width: 767px) {

    .call-action h2 {
        font-size: 36px !important;
        line-height: 1.25;
        text-align: center;
    }

    .call-action h2 .sideup-text {
        display: block;
    }

    .call-action h2 .underline {
        display: inline-block;
    }

    .call-action .info {
        margin-top: 40px !important;
        flex-direction: column;
        align-items: center;
        gap: 16px;
    }

    .call-action .info .butn {
        width: 100%;
        /* max-width: 320px; */
        justify-content: center;
        text-align: center;
    }

    .call-action .info .ml-30 {
        margin-left: 0 !important;
    }
}

.hero-illustration {
    position: relative;
    width: 100%;
    min-height: 80vh;
    overflow: hidden;
}

/* Image wrapper */
.hero-image {
    position: absolute;
    inset: 0;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* fills like your screenshot */
    transform: none !important;
}

/* Dark overlay */
.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    z-index: 1;
}

/* Centered text */
.hero-text {
    position: relative;
    z-index: 2;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 20px;
}

.hero-text h2 {
    color: #fff;
    font-size: 64px;
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: 1px;
}

@media (max-width: 767px) {

    .hero-illustration,
    .hero-text {
        min-height: 60vh;
    }

    .hero-text h2 {
        font-size: 34px;
        line-height: 1.25;
    }
}

/* Default (mobile stays untouched) */
.page-header.bg-img {
    background-size: cover;
    background-position: center;
}

/* Desktop fix */
@media (min-width: 992px) {
    .page-header.bg-img {
        background-position: center 25%;
    }

    .page-header.bg-img.website-dev {
        background-position: center 60%;
    }

    .page-header.bg-img.digital-marketing-dev {
        background-position: center 77%;
    }

    .page-header.bg-img.brand-development-dev {
        background-position: center 70%;
    }

    .page-header-cerv.bg-img {
        background-position: center 25%;
    }
}