/* =========================================
   Smart Pekua - Visible Card Animation
========================================= */

.card {
    opacity: 0;

    animation:
        smartCardShow 0.7s cubic-bezier(.22, .61, .36, 1)
        forwards;
}


/* প্রথম সারির ২টি */

.card:nth-of-type(1) {
    animation-delay: 0.05s;
}

.card:nth-of-type(2) {
    animation-delay: 0.15s;
}


/* দ্বিতীয় সারি */

.card:nth-of-type(3) {
    animation-delay: 0.25s;
}

.card:nth-of-type(4) {
    animation-delay: 0.35s;
}


/* তৃতীয় সারি */

.card:nth-of-type(5) {
    animation-delay: 0.45s;
}

.card:nth-of-type(6) {
    animation-delay: 0.55s;
}


/* Animation */

@keyframes smartCardShow {

    0% {
        opacity: 0;

        transform:
            translateY(25px)
            scale(0.90);

    }

    60% {
        opacity: 1;

        transform:
            translateY(-3px)
            scale(1.02);

    }

    100% {
        opacity: 1;

        transform:
            translateY(0)
            scale(1);

    }

}

/* =========================================
   SMART PEKUA
   Services Page Card Animation
========================================= */

.container .card {
    opacity: 0;

    animation:
        serviceCardIn 0.55s cubic-bezier(.22, .61, .36, 1)
        forwards;
}


/* =========================================
   Staggered Animation
========================================= */

.container .card:nth-child(1)  { animation-delay: .05s; }
.container .card:nth-child(2)  { animation-delay: .10s; }
.container .card:nth-child(3)  { animation-delay: .15s; }
.container .card:nth-child(4)  { animation-delay: .20s; }
.container .card:nth-child(5)  { animation-delay: .25s; }
.container .card:nth-child(6)  { animation-delay: .30s; }
.container .card:nth-child(7)  { animation-delay: .35s; }
.container .card:nth-child(8)  { animation-delay: .40s; }
.container .card:nth-child(9)  { animation-delay: .45s; }
.container .card:nth-child(10) { animation-delay: .50s; }
.container .card:nth-child(11) { animation-delay: .55s; }
.container .card:nth-child(12) { animation-delay: .60s; }
.container .card:nth-child(13) { animation-delay: .65s; }
.container .card:nth-child(14) { animation-delay: .70s; }
.container .card:nth-child(15) { animation-delay: .75s; }
.container .card:nth-child(16) { animation-delay: .80s; }
.container .card:nth-child(17) { animation-delay: .85s; }
.container .card:nth-child(18) { animation-delay: .90s; }
.container .card:nth-child(19) { animation-delay: .95s; }
.container .card:nth-child(20) { animation-delay: 1s; }
.container .card:nth-child(21) { animation-delay: 1.05s; }
.container .card:nth-child(22) { animation-delay: 1.10s; }
.container .card:nth-child(23) { animation-delay: 1.15s; }


/* =========================================
   Animation
========================================= */

@keyframes serviceCardIn {

    0% {
        opacity: 0;

        transform:
            translateY(25px)
            scale(.94);
    }

    65% {
        opacity: 1;

        transform:
            translateY(-3px)
            scale(1.015);
    }

    100% {
        opacity: 1;

        transform:
            translateY(0)
            scale(1);
    }

}

/* =========================================
   SMART PEKUA - RIPPLE EFFECT
========================================= */

.ripple-effect {
    position: relative !important;
    overflow: hidden !important;
}

.ripple-circle {
    position: absolute !important;

    border-radius: 50%;

    background: rgba(30, 136, 229, 0.35);

    pointer-events: none;

    transform: scale(0);

    animation: smartRipple 0.6s ease-out forwards;

    z-index: 9999;
}

@keyframes smartRipple {

    0% {
        transform: scale(0);
        opacity: 1;
    }

    100% {
        transform: scale(8);
        opacity: 0;
    }

}

/* =========================================
   SMART PEKUA - HEADER ANIMATION
========================================= */

/* Header পুরোটা হালকা Fade-in */
.page-header {
    animation: headerFadeIn 0.6s ease both;
}


/* Header-এর বাম অংশ */
.header-left {
    animation: headerSlideIn 0.7s ease both;
}


/* Back Button */
.back-btn {
    animation: backButtonIn 0.5s ease both;
    animation-delay: 0.15s;

    transition:
        transform 0.2s ease,
        opacity 0.2s ease;
}


/* Title */
.page-header h1 {
    animation: titleSlideIn 0.6s ease both;
    animation-delay: 0.2s;
}


/* =========================================
   Animations
========================================= */

@keyframes headerFadeIn {

    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }

}


@keyframes headerSlideIn {

    from {
        opacity: 0;
        transform: translateY(-12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }

}


@keyframes backButtonIn {

    from {
        opacity: 0;
        transform: translateX(-12px) scale(0.85);
    }

    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }

}


@keyframes titleSlideIn {

    from {
        opacity: 0;
        transform: translateX(12px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }

}


/* Back Button Tap */

.back-btn:active {
    transform: scale(0.88);
}


/* =========================================
   Reduced Motion
========================================= */

@media (prefers-reduced-motion: reduce) {

    .page-header,
    .header-left,
    .back-btn,
    .page-header h1 {

        animation: none !important;

    }

}

/* =========================================
   SMART PEKUA - HOME HEADER ANIMATION
========================================= */

.app-header {
    animation: smartHeaderFade 0.7s ease both;
}


/* Logo */

.app-header .logo-box {
    animation: smartLogoIn 0.7s cubic-bezier(.22, .61, .36, 1) both;
    animation-delay: 0.1s;
}


/* Title */

.app-header .title-box {
    animation: smartTitleIn 0.7s cubic-bezier(.22, .61, .36, 1) both;
    animation-delay: 0.2s;
}


/* Notification */

.app-header .notify {
    animation: smartNotifyIn 0.6s ease both;
    animation-delay: 0.3s;
}


/* Search */

.app-header .search-area {
    animation: smartSearchIn 0.7s ease both;
    animation-delay: 0.35s;
}


/* =========================================
   Keyframes
========================================= */

@keyframes smartHeaderFade {

    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }

}


@keyframes smartLogoIn {

    from {
        opacity: 0;
        transform: translateX(-25px) scale(0.85);
    }

    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }

}


@keyframes smartTitleIn {

    from {
        opacity: 0;
        transform: translateX(20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }

}


@keyframes smartNotifyIn {

    from {
        opacity: 0;
        transform: scale(0.5) rotate(-20deg);
    }

    to {
        opacity: 1;
        transform: scale(1) rotate(0);
    }

}


@keyframes smartSearchIn {

    from {
        opacity: 0;
        transform: translateY(15px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }

}

.app-header .notify {
    transition: transform 0.2s ease;
}

.app-header .notify:active {
    transform: scale(0.82);
}

/* =========================================
   SMART PEKUA - PAGE TRANSITION
   Body-তে transform নয়
========================================= */

body {
    animation: smartPageFade 0.45s ease both;
}

@keyframes smartPageFade {

    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }

}


/* Reduced Motion */

@media (prefers-reduced-motion: reduce) {

    body {
        animation: none !important;
    }

}

/* =========================================
   SERVICES - BACK BUTTON
========================================= */

.page-header > a {
    width: 44px;
    height: 44px;

    display: flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    color: #ffffff;
    background: rgba(255, 255, 255, 0.15);

    text-decoration: none;

    font-size: 30px;
    font-weight: 500;

    line-height: 1;

    border-radius: 50%;

    transition:
        transform 0.2s ease,
        background 0.2s ease;
}


/* Touch Effect */

.page-header > a:active {
    transform: scale(0.82);
    background: rgba(255, 255, 255, 0.30);
}

/* =========================================
   SMART PEKUA - PAGE BACK BUTTON
========================================= */

.page-header > a.back-btn {
    width: 44px;
    height: 44px;

    display: flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    color: #ffffff;
    background: rgba(255, 255, 255, 0.15);

    text-decoration: none;

    font-size: 30px;
    font-weight: 500;

    line-height: 1;

    border-radius: 50%;

    transition:
        transform 0.2s ease,
        background 0.2s ease;
}


/* Touch Animation */

.page-header > a.back-btn:active {
    transform: scale(0.82);

    background: rgba(255, 255, 255, 0.30);
}

/* =========================================
   SMART PEKUA
   Services Scroll Reveal
========================================= */

.reveal-card {
    opacity: 0;

    transform: translateY(45px);

    transition:
        opacity 0.6s ease,
        transform 0.6s ease;
}


.reveal-card.visible {
    opacity: 1;

    transform: translateY(0);
}


/* Card Tap */

.reveal-card:active {
    transform: scale(0.96);
}

/* =========================================
   SMART PEKUA - SLIDER KEN BURNS
========================================= */

.slider-track .slide {
    transform: scale(1);
}


/* Active Slide */

.slider-track .slide.active-slide {
    animation: smartKenBurns 3s ease-in-out both;
    transform-origin: center center;
}


@keyframes smartKenBurns {

    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(1.06);
    }

}

/* =========================================
   SMART PEKUA - SEARCH FOCUS
========================================= */

.search-box {
    transition:
        border-color 0.25s ease,
        box-shadow 0.25s ease,
        transform 0.25s ease;
}

.search-box:focus {
    outline: none;

    border-color: #2196f3;

    box-shadow:
        0 0 0 3px rgba(33, 150, 243, 0.15),
        0 4px 14px rgba(33, 150, 243, 0.15);

    transform: translateY(-1px);
}


/* =========================================
   NOTIFICATION BELL
========================================= */

.notify {
    cursor: pointer;

    transition:
        transform 0.2s ease;
}

.notify:active {
    transform: scale(0.85);
}


/* Bell Shake */

.notify.bell-shake {
    animation: smartBellShake 0.6s ease;
}

@keyframes smartBellShake {

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

    15% {
        transform: rotate(15deg);
    }

    30% {
        transform: rotate(-15deg);
    }

    45% {
        transform: rotate(10deg);
    }

    60% {
        transform: rotate(-10deg);
    }

    75% {
        transform: rotate(5deg);
    }

}

/* =========================================
   SERVICE FAVORITE BUTTON
========================================= */

.service-favorite-btn{

    position:absolute;

    top:8px;
    right:8px;

    width:34px;
    height:34px;

    border:none;
    border-radius:50%;

    background:#f5f5f5;

    color:#777;

    font-size:22px;

    display:flex;
    align-items:center;
    justify-content:center;

    cursor:pointer;

    z-index:5;

    transition:
        transform .2s ease,
        background .2s ease,
        color .2s ease;
}


.service-favorite-btn:active{

    transform:scale(.75);

}


.service-favorite-btn.active{

    background:#ffebee;

    color:#e53935;

}

/* =========================================
   FAVORITES SERVICE CARD
========================================= */

.favorite-title {

    display:flex;

    justify-content:space-between;

    align-items:center;

    margin:5px 15px 18px;

}

.favorite-title h2 {

    margin:0;

    font-size:20px;

}

.favorite-title span {

    background:#ffebee;

    color:#e53935;

    padding:5px 12px;

    border-radius:20px;

    font-size:14px;

    font-weight:bold;

}


.favorite-grid {

    display:grid;

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

    gap:15px;

    padding:0 15px 30px;

}


.favorite-service-card {

    position:relative;

    background:#fff;

    border-radius:20px;

    box-shadow:0 5px 15px rgba(0,0,0,.08);

    overflow:hidden;

    animation:favoriteCardIn .45s ease both;

}


.favorite-service-link {

    display:block;

    padding:22px 12px;

    text-align:center;

    color:#222;

    text-decoration:none;

}


.favorite-service-icon {

    font-size:45px;

    margin-bottom:10px;

}


.favorite-service-card h3 {

    margin:0;

    font-size:17px;

}


.favorite-service-card span {

    display:block;

    margin-top:5px;

    color:#888;

    font-size:13px;

}


.favorite-remove-btn {

    position:absolute;

    top:8px;

    right:8px;

    width:34px;

    height:34px;

    border:0;

    border-radius:50%;

    background:#ffebee;

    color:#e53935;

    font-size:18px;

    cursor:pointer;

    z-index:3;

    transition:.2s ease;

}


.favorite-remove-btn:active {

    transform:scale(.75);

}


@keyframes favoriteCardIn {

    from {

        opacity:0;

        transform:translateY(15px) scale(.96);

    }

    to {

        opacity:1;

        transform:translateY(0) scale(1);

    }

}


/* Empty Favorite */

.favorite-empty {

    text-align:center;

    padding:55px 20px;

}


.favorite-empty .empty-icon {

    font-size:65px;

    margin-bottom:15px;

}


.favorite-empty h2 {

    margin:0 0 10px;

}


.favorite-empty p {

    color:#777;

    line-height:1.6;

}


.empty-service-btn {

    display:inline-block;

    margin-top:18px;

    padding:11px 20px;

    border-radius:25px;

    background:#1976D2;

    color:#fff;

    text-decoration:none;

}

/* =========================================
   ACTIVE BOTTOM NAVIGATION ANIMATION
========================================= */

.bottom-nav .nav-item.active {
    animation: activeNavIn 0.35s ease both;
}

@keyframes activeNavIn {

    0% {
        transform: scale(.90);
    }

    60% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }

}


/* Active Icon Bounce */

.bottom-nav .nav-item.active div {
    animation: activeIconBounce 0.4s ease both;
}

@keyframes activeIconBounce {

    0% {
        transform: translateY(3px) scale(.9);
    }

    60% {
        transform: translateY(-2px) scale(1.12);
    }

    100% {
        transform: translateY(-1px) scale(1.08);
    }

}

/* =========================================
   SMART PEKUA - NOTIFICATION SHEET
========================================= */

.notification-overlay {

    position: fixed;

    inset: 0;

    background: rgba(0, 0, 0, 0.35);

    opacity: 0;

    visibility: hidden;

    transition:
        opacity .3s ease,
        visibility .3s ease;

    z-index: 100000;

}


.notification-overlay.show {

    opacity: 1;

    visibility: visible;

}


/* Sheet */

.notification-sheet {

    position: fixed;

    left: 0;
    right: 0;
    bottom: 0;

    background: #fff;

    border-radius:
        25px 25px 0 0;

    max-height: 75vh;

    overflow-y: auto;

    transform:
        translateY(100%);

    transition:
        transform .4s cubic-bezier(.22,.61,.36,1);

    z-index: 100001;

    box-shadow:
        0 -8px 30px rgba(0,0,0,.15);

}


.notification-sheet.show {

    transform:
        translateY(0);

}


/* Header */

.notification-header {

    display: flex;

    align-items: center;

    justify-content: space-between;

    padding: 18px 20px;

    border-bottom:
        1px solid #eee;

}


.notification-header h2 {

    margin: 0;

    font-size: 20px;

}


.notification-close {

    width: 36px;

    height: 36px;

    border: none;

    border-radius: 50%;

    background: #f3f3f3;

    font-size: 26px;

    color: #555;

    cursor: pointer;

}


/* Notification List */

.notification-list {

    padding: 10px 15px 30px;

}


.notification-item {

    display: flex;

    gap: 12px;

    padding: 15px 5px;

    border-bottom:
        1px solid #f0f0f0;

}


.notification-icon {

    width: 45px;

    height: 45px;

    flex-shrink: 0;

    border-radius: 50%;

    background: #EAF4FF;

    display: flex;

    align-items: center;

    justify-content: center;

    font-size: 23px;

}


.notification-content {

    flex: 1;

}


.notification-content h3 {

    margin: 0 0 4px;

    font-size: 16px;

}


.notification-content p {

    margin: 0;

    color: #666;

    font-size: 14px;

    line-height: 1.5;

}


.notification-content span {

    display: block;

    margin-top: 5px;

    color: #999;

    font-size: 11px;

}

/* =========================================
   SMART PEKUA - NOTIFICATION BADGE
========================================= */

.notify {
    position: relative;
}


/* Red Badge */

.notification-badge {

    position: absolute;

    top: -5px;
    right: -5px;

    min-width: 18px;
    height: 18px;

    padding: 0 5px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #e53935;

    color: #fff;

    border: 2px solid #2196F3;

    border-radius: 20px;

    font-size: 10px;
    font-weight: bold;

    line-height: 1;

    z-index: 10;

    animation:
        notificationBadgeIn
        .35s ease both;
}


@keyframes notificationBadgeIn {

    0% {
        opacity: 0;
        transform: scale(0);
    }

    70% {
        transform: scale(1.2);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }

}


/* =========================================
   Notification Header
========================================= */

.notification-header-actions {

    display: flex;

    align-items: center;

    gap: 8px;

}


.mark-all-read {

    border: none;

    background: #EAF4FF;

    color: #1976D2;

    padding: 7px 10px;

    border-radius: 18px;

    font-size: 11px;

    font-weight: 600;

    cursor: pointer;

    transition:
        transform .2s ease,
        background .2s ease;

}


.mark-all-read:active {

    transform: scale(.92);

    background: #d8edff;

}


/* =========================================
   Unread Notification
========================================= */

.notification-item {

    position: relative;

    transition:
        background .25s ease;

}


.notification-item.unread {

    background: #F5FAFF;

    border-radius: 14px;

}


.notification-item.unread::before {

    content: "";

    position: absolute;

    left: 0;

    top: 18px;

    width: 5px;

    height: 5px;

    background: #2196F3;

    border-radius: 50%;

}


/* Read */

.notification-item.read {

    opacity: .75;

    background: transparent;

}