/* Custom Portfolio Hover Styles & Layout overrides */

.all-proitem {
    overflow: hidden;
    position: relative;
    transition: all 0.4s ease-in-out;
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 24px;
}

.all-proitem::before {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 0%;
    content: "";
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(10, 9, 13, 0.9) 90%);
    border-radius: 24px;
    transition: all 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    z-index: 1;
}

.all-proitem > img {
    transition: all 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    overflow: hidden;
    border-radius: 24px;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.all-proitem .aroha-boxwrap {
    position: absolute;
    bottom: -150px;
    left: 0;
    padding: 30px;
    transition: all 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    opacity: 0;
    visibility: hidden;
    width: 100%;
    z-index: 2;
}

.all-proitem .aroha-boxwrap .aroha-box {
    max-width: calc(100% - 60px);
}

.all-proitem .aroha-boxwrap .aroha-box .n0-color {
    color: #ffffff;
    display: block;
}

.all-proitem .aroha-boxwrap .aroha-box .ptextes {
    color: rgba(255, 255, 255, 0.7);
    display: block;
    margin-top: 8px;
}

.all-proitem .aroha-boxwrap .arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #4770FF; /* Primary blue button color from design system */
    transition: all 0.4s ease-in-out;
}

.all-proitem .aroha-boxwrap .arrow svg path {
    stroke: #ffffff;
}

.all-proitem:hover > img {
    transform: scale(1.05);
}

.all-proitem:hover::before {
    height: 100%;
}

.all-proitem:hover .aroha-boxwrap {
    bottom: 0;
    opacity: 1;
    visibility: visible;
}

/* Arrow Hover Effect */
.all-proitem:hover .aroha-boxwrap .arrow {
    transform: rotate(45deg);
    background: #4770FF; /* Primary blue button color */
    box-shadow: 0 0 15px rgba(71, 112, 255, 0.5);
}

/* Responsive adjustments */
@media (max-width: 1399px) {
    .all-proitem .aroha-boxwrap {
        padding: 20px;
    }
    .all-proitem .aroha-boxwrap .arrow {
        min-width: 40px;
        height: 40px;
    }
}

@media (max-width: 991px) {
    .all-proitem .aroha-boxwrap {
        bottom: 0;
        opacity: 1;
        visibility: visible;
        padding: 15px;
    }
    .all-proitem::before {
        height: 100%;
    }
}

/* Premium Smooth Transitions for Theme Switching */
html, body, .card, .navbar, .theme-control-btn, .lang-control-btn, p, h1, h2, h3, h4, h5, h6, a {
    transition: background-color 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), 
                border-color 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), 
                color 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), 
                fill 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), 
                stroke 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Constrain profile image sizing on desktop for proportional layout matching original template */
.profile-card .image {
    border-radius: 8px !important;
    overflow: hidden !important;
}
.profile-card .image img {
    border-radius: 8px !important;
    object-fit: cover !important;
    width: 100% !important;
    height: auto !important;
}
@media (min-width: 1200px) {
    .profile-card .image img {
        width: 100% !important;
        height: auto !important;
        max-width: 100% !important;
        display: block !important;
    }
}

/* Fix: Prevent profile photo from being cut on mobile/tablet */
@media (max-width: 1199px) {
    .profile-card .image {
        aspect-ratio: unset !important;
        height: auto !important;
    }
    .profile-card .image img {
        object-fit: contain !important;
        height: auto !important;
        width: 100% !important;
        max-height: 400px !important;
        margin: 0 auto !important;
        display: block !important;
    }
}

/* Active state for portfolio pagination buttons */
.pagination ul li button.active {
    background-color: var(--primary) !important;
    color: var(--white) !important;
    border-color: var(--primary) !important;
}

/* Premium Lightbox Modal CSS */
.lightbox-modal {
    display: none;
    position: fixed;
    z-index: 99999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow-y: auto;
    background-color: rgba(10, 12, 18, 0.9);
    backdrop-filter: blur(15px);
    opacity: 0;
    transition: opacity 0.3s ease;
}
.lightbox-modal.show {
    display: block;
    opacity: 1;
}
.lightbox-content {
    background: rgba(30, 35, 48, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin: 3% auto;
    padding: 35px;
    width: 92%;
    max-width: 1000px;
    border-radius: 24px;
    position: relative;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.6);
    transform: translateY(30px);
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.lightbox-modal.show .lightbox-content {
    transform: translateY(0);
}
.lightbox-close-btn {
    position: absolute;
    right: 20px;
    top: 20px;
    z-index: 100;
    color: var(--n0-color, #ffffff);
    font-size: 32px;
    font-weight: 300;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s cubic-bezier(0.25, 0.8, 0.25, 1);
    line-height: 1;
}
.lightbox-close-btn:hover {
    background: rgba(255, 255, 255, 0.18);
    transform: rotate(90deg) scale(1.08);
}
.modal-title {
    color: var(--n0-color, #ffffff);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 12px;
    margin-right: 60px;
}
.modal-desc {
    color: rgba(255, 255, 255, 0.75);
    font-size: 1.05rem;
    line-height: 1.65;
    margin-bottom: 30px;
}
.modal-media-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    border-radius: 16px;
    background: #05070a;
    margin-bottom: 35px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
}
.modal-media-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}
.modal-gallery-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--n0-color, #ffffff);
    margin-bottom: 20px;
    border-left: 4px solid var(--primary, #4770FF);
    padding-left: 12px;
}
.modal-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
    margin-top: 20px;
}
.modal-gallery-item {
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    background: #111319;
    aspect-ratio: 16/10;
}
.modal-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.modal-gallery-item:hover {
    border-color: var(--primary, #4770FF);
    box-shadow: 0 10px 20px rgba(71, 112, 255, 0.25);
}
.modal-gallery-item:hover img {
    transform: scale(1.08);
}

/* Premium Two-column portfolio items layout adjustments */
@media (min-width: 992px) {
    .portfolio-item-card.col-12 {
        width: 50% !important;
        max-width: 50% !important;
        flex: 0 0 50% !important;
    }
    .portfolio-item-card.col-12 .all-proitem > img {
        height: 360px !important;
        min-height: unset !important;
        object-fit: cover;
    }
}
@media (max-width: 991px) {
    .portfolio-item-card.col-12 {
        width: 100% !important;
        max-width: 100% !important;
        flex: 0 0 100% !important;
    }
    .portfolio-item-card.col-12 .all-proitem > img {
        min-height: 320px !important;
        object-fit: cover;
    }
}

.portfolio-item-card.col-12 .all-proitem > img {
    border-radius: 16px !important;
}
.portfolio-item-card.col-12 .all-proitem {
    display: block;
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.portfolio-item-card.col-12 .all-proitem:hover {
    border-color: var(--primary, #4770FF);
    box-shadow: 0 20px 40px rgba(71, 112, 255, 0.15);
}

/* Premium Secondary Image Viewer Modal (Mini Gallery) */
.image-viewer-modal {
    display: none;
    position: fixed;
    z-index: 999999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(5, 7, 10, 0.95);
    backdrop-filter: blur(25px);
    opacity: 0;
    transition: opacity 0.3s ease;
    align-items: center;
    justify-content: center;
}
.image-viewer-modal.show {
    display: flex;
    opacity: 1;
}
.image-viewer-content {
    position: relative;
    max-width: 85%;
    max-height: 85%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.image-viewer-content img {
    max-width: 100%;
    max-height: 80vh;
    border-radius: 16px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    object-fit: contain;
    transform: scale(0.95);
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.image-viewer-modal.show .image-viewer-content img {
    transform: scale(1);
}
.image-viewer-close {
    position: absolute;
    right: 35px;
    top: 35px;
    color: #ffffff;
    font-size: 38px;
    font-weight: 200;
    background: rgba(255, 255, 255, 0.08);
    border: none;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
    line-height: 1;
}
.image-viewer-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg) scale(1.08);
}
.image-viewer-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: #ffffff;
    font-size: 32px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    width: 64px;
    height: 64px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
    user-select: none;
    z-index: 1000000;
    line-height: 1;
}
.image-viewer-arrow:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--primary, #4770FF);
    box-shadow: 0 0 15px rgba(71, 112, 255, 0.3);
    color: var(--primary, #4770FF);
}
.image-viewer-arrow.prev {
    left: 40px;
}
.image-viewer-arrow.next {
    right: 40px;
}
.image-viewer-caption {
    margin-top: 15px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.05rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    background: rgba(0, 0, 0, 0.4);
    padding: 6px 16px;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.05);
}

/* Elegant Details Suffix Link */
.details-suffix {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.76rem;
    font-weight: 700;
    color: #4770FF !important;
    margin-left: 8px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    vertical-align: middle;
}
.all-proitem:hover .details-suffix {
    color: #ffffff !important;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.6);
}

/* Premium Expertise Area Grid Optimization */
.expertise-card {
    height: auto !important;
}
.expertise-card .card-body {
    height: auto !important;
}
.expertise-card .expertise-item {
    padding: 12px 8px !important;
    border-radius: 16px !important;
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
}
.dark-theme .expertise-card .expertise-item {
    background: rgba(255, 255, 255, 0.02) !important;
    border: 1px solid rgba(255, 255, 255, 0.03) !important;
}
.expertise-card .expertise-item:hover {
    background: rgba(71, 112, 255, 0.08) !important;
    border-color: rgba(71, 112, 255, 0.3) !important;
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(71, 112, 255, 0.1);
}
.expertise-card .expertise-item .image {
    background: #ffffff !important;
    padding: 10px !important;
    border-radius: 12px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 56px !important;
    height: 56px !important;
    margin: 0 auto 8px auto !important;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.04) !important;
}
.dark-theme .expertise-card .expertise-item .image {
    background: rgba(255, 255, 255, 0.03) !important;
    box-shadow: none !important;
}
.expertise-card .expertise-item .image img {
    width: 32px !important;
    height: 32px !important;
    object-fit: contain !important;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
}
.dark-theme .expertise-card .expertise-item .image img {
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.2));
}
.expertise-card .expertise-item .text .title {
    font-size: 0.82rem !important;
    font-weight: 600 !important;
    letter-spacing: 0.3px !important;
    color: var(--black, #1a1f2c) !important;
    margin: 0 !important;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}
.dark-theme .expertise-card .expertise-item .text .title {
    color: #ffffff !important;
}
@media (max-width: 1199px) {
    .expertise-card .expertise-item .image {
        width: 48px !important;
        height: 48px !important;
        padding: 10px !important;
    }
    .expertise-card .expertise-item .image img {
        width: 26px !important;
        height: 26px !important;
    }
}

/* Dynamic theme adaptations for specific brand logos */
.dark-theme img[alt="Next.js"] {
    filter: invert(1) brightness(2) !important;
}

/* Bulletproof styles for inline project tech icons/badges */
.project-tech-badge-container img {
    width: 18px !important;
    height: 18px !important;
    min-height: unset !important;
    max-height: 18px !important;
    object-fit: contain !important;
    display: inline-block !important;
    border-radius: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    vertical-align: middle !important;
}

/* Premium Glassmorphic Tech Badges */
.tech-pill-badge {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    padding: 4px 10px !important;
    border-radius: 20px !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    transition: all 0.2s ease !important;
    white-space: nowrap !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08) !important;
}

/* Dark theme & default styles */
.tech-pill-badge {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    color: rgba(255, 255, 255, 0.85) !important;
}

.tech-pill-badge:hover {
    transform: translateY(-2px) scale(1.05) !important;
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2) !important;
    color: #ffffff !important;
}

/* Light theme adaptations */
html:not(.dark-theme) .tech-pill-badge {
    background: rgba(0, 0, 0, 0.04) !important;
    border: 1px solid rgba(0, 0, 0, 0.06) !important;
    color: rgba(0, 0, 0, 0.75) !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.03) !important;
}

html:not(.dark-theme) .tech-pill-badge:hover {
    background: rgba(0, 0, 0, 0.06) !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
    color: rgba(0, 0, 0, 0.9) !important;
    box-shadow: 0 4px 8px rgba(0,0,0,0.08) !important;
}

/* ==========================================================================
   Premium Glassmorphic Custom Calendly Modal
   ========================================================================== */
.premium-modal-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: rgba(10, 12, 18, 0.75) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 1000000 !important;
    opacity: 0 !important;
    pointer-events: none !important;
    transition: opacity 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
}

.premium-modal-overlay.active {
    opacity: 1 !important;
    pointer-events: auto !important;
}

.premium-modal-container {
    position: relative !important;
    width: 90% !important;
    max-width: 820px !important;
    height: 90% !important;
    max-height: 720px !important;
    background: #ffffff !important;
    border-radius: 24px !important;
    box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.4) !important;
    overflow: hidden !important;
    transform: scale(0.9) translateY(20px) !important;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}

.premium-modal-overlay.active .premium-modal-container {
    transform: scale(1) translateY(0) !important;
}

.premium-modal-body {
    width: 100% !important;
    height: 100% !important;
    overflow: hidden !important;
    position: relative !important;
}

#premium-calendly-container {
    width: 100% !important;
    height: 100% !important;
    position: relative !important;
    border-radius: 24px !important;
    overflow: hidden !important;
}

#premium-calendly-container iframe {
    width: 100% !important;
    height: 100% !important;
    border: none !important;
    display: block !important;
}

/* Premium Animated Close Button */
.premium-modal-close {
    position: absolute !important;
    top: 14px !important;
    right: 14px !important;
    width: 32px !important;
    height: 32px !important;
    border-radius: 50% !important;
    background: #4770FF !important;
    color: #ffffff !important;
    border: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 18px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    z-index: 1000020 !important;
    box-shadow: 0 4px 10px rgba(71, 112, 255, 0.3) !important;
    transition: all 0.25s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
    line-height: 1 !important;
    padding: 0 !important;
}

.premium-modal-close:hover {
    transform: scale(1.15) rotate(90deg) !important;
    background: #2b53e6 !important;
    box-shadow: 0 6px 16px rgba(71, 112, 255, 0.45) !important;
}

/* Body lock to prevent double scrolling */
body.modal-open-lock {
    overflow: hidden !important;
}

/* ===== Profile Card Buttons: Side by Side Layout ===== */
.common-button-groups {
    display: flex !important;
    flex-direction: row !important;
    gap: 10px !important;
    flex-wrap: wrap !important;
    overflow: hidden !important;
}

.common-button-groups .btn {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    white-space: nowrap !important;
    font-size: 13px !important;
    padding: 10px 12px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

.common-button-groups .btn .icon {
    width: 18px !important;
    height: 18px !important;
    flex-shrink: 0 !important;
}

.common-button-groups .btn-whatsapp {
    background: transparent !important;
    border: 1.5px solid var(--primary, #4770FF) !important;
    color: var(--primary, #4770FF) !important;
    border-radius: 48px !important;
    transition: all 0.3s ease !important;
}

.common-button-groups .btn-whatsapp:hover {
    background: var(--primary, #4770FF) !important;
    color: #ffffff !important;
}

.common-button-groups .btn-whatsapp:hover .icon {
    fill: #ffffff !important;
    color: #ffffff !important;
}

/* Responsive: stack on very small screens */
@media (max-width: 400px) {
    .common-button-groups {
        flex-wrap: wrap !important;
    }
    .common-button-groups .btn {
        flex: 1 1 100% !important;
    }
}

/* Mobile Responsiveness styling */
@media (max-width: 767px) {
    .premium-modal-container {
        width: 95% !important;
        height: 95% !important;
        max-height: 95% !important;
        border-radius: 16px !important;
    }
    #premium-calendly-container {
        border-radius: 16px !important;
    }
    .premium-modal-close {
        top: 10px !important;
        right: 10px !important;
        width: 28px !important;
        height: 28px !important;
        font-size: 16px !important;
    }
}

/* ===== Navbar Responsive Fixes ===== */

/* Tight fit on smaller desktops (1200-1399px) */
@media (min-width: 1200px) and (max-width: 1399px) {
    .navbar-info.d-xl-flex {
        gap: 0 !important;
    }
    .navbar-info .nav-link {
        font-size: 13px !important;
        padding: 8px 10px !important;
    }
    .lets-talk-btn {
        font-size: 13px !important;
        padding: 8px 14px !important;
    }
    .header-right-info {
        gap: 6px !important;
    }
}

/* Force proper nav collapse below XL — only suppress inline display in header bar,
   NOT inside the mobile sidebar (.navbar-main.show) */
@media (max-width: 1199px) {
    .menu-container > .navbar-main:not(.show) .navbar-info.d-xl-flex {
        display: none !important;
    }
    /* Ensure nav links are visible inside the opened sidebar */
    .navbar-main.show .navbar-info {
        display: block !important;
    }
}

/* Hide Calendly floating badge/branding injected by SDK */
.calendly-badge-widget,
.calendly-badge-content,
.calendly-overlay,
.calendly-popup-close,
div[class*="calendly-badge"] {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* Waving hand animation */
.wave-emoji, .waving-hand {
    display: inline-block;
    animation: wave 2.5s ease-in-out infinite;
    transform-origin: 70% 70%;
}

@keyframes wave {
    0%, 60%, 100% { transform: rotate(0deg); }
    10% { transform: rotate(14deg); }
    20% { transform: rotate(-8deg); }
    30% { transform: rotate(14deg); }
    40% { transform: rotate(-4deg); }
    50% { transform: rotate(10deg); }
}

/* Keep waving hand adjacent to title in the profile card */
.profile-card .card-title {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 8px !important;
    flex-wrap: wrap !important;
}

/* Available badge - green dot */
.available-btn span i.fa-circle {
    color: #22c55e !important;
}

/* Service Font Awesome icons */
.service-fa-icon {
    font-size: 48px;
    color: var(--primary-color, #4f46e5);
    line-height: 1;
}

/* Sparkle emoji animation */
.sparkle-emoji {
    display: inline-block;
    animation: sparkle 2s ease-in-out infinite;
}

@keyframes sparkle {
    0%, 100% { transform: scale(1); opacity: 1; }
    25% { transform: scale(1.3) rotate(15deg); opacity: 0.8; }
    50% { transform: scale(0.8) rotate(-10deg); opacity: 0.6; }
    75% { transform: scale(1.2) rotate(5deg); opacity: 0.9; }
}

/* ===== Code to UI Animation ===== */
.code-to-ui-animation {
    background: linear-gradient(135deg, #1e1e2e 0%, #2d2b55 100%);
    border-radius: 16px;
    padding: 30px;
    overflow: visible;
}

.code-ui-container {
    display: flex;
    gap: 20px;
    align-items: stretch;
    position: relative;
    min-height: 280px;
}

/* Editor side */
.code-side, .ui-side {
    flex: 1;
    border-radius: 12px;
}

.ui-side {
    overflow: visible;
}

.code-side {
    background: #1a1a2e;
    border: 1px solid rgba(255,255,255,0.08);
    overflow: hidden;
}

.editor-header, .browser-header {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 14px;
    background: rgba(255,255,255,0.04);
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot.red { background: #ff5f57; }
.dot.yellow { background: #febc2e; }
.dot.green { background: #28c840; }

.file-name, .url-bar {
    margin-left: 10px;
    font-size: 11px;
    color: rgba(255,255,255,0.4);
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
}

.url-bar {
    background: rgba(255,255,255,0.06);
    padding: 3px 12px;
    border-radius: 6px;
    flex: 1;
    text-align: center;
}

.code-content {
    padding: 16px;
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    font-size: 12px;
    line-height: 1.8;
}

.code-line {
    opacity: 0;
    white-space: nowrap;
    animation: typeLoop 8s ease infinite;
}

.line-1  { animation-delay: 0.2s; }
.line-2  { animation-delay: 0.5s; }
.line-3  { animation-delay: 0.7s; }
.line-4  { animation-delay: 0.9s; }
.line-5  { animation-delay: 1.1s; }
.line-6  { animation-delay: 1.3s; }
.line-7  { animation-delay: 1.5s; }
.line-8  { animation-delay: 1.7s; }
.line-9  { animation-delay: 1.9s; }
.line-10 { animation-delay: 2.1s; }
.line-11 { animation-delay: 2.3s; }
.line-12 { animation-delay: 2.5s; }
.line-13 { animation-delay: 2.7s; }
.line-14 { animation-delay: 2.9s; }
.line-15 { animation-delay: 3.1s; }
.line-16 { animation-delay: 3.3s; }
.line-17 { animation-delay: 3.5s; }

.kw   { color: #c792ea; }
.str  { color: #c3e88d; }
.fn   { color: #82aaff; }
.attr { color: #ffcb6b; }
.var  { color: #f07178; }
.comment { color: #546e7a; font-style: italic; }

/* UI side */
.ui-side {
    background: #ffffff;
    border: 1px solid rgba(0,0,0,0.06);
}

.ui-content {
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    height: 100%;
    box-sizing: border-box;
    overflow: visible;
}

.anim-el {
    opacity: 0;
    animation: buildLoop 8s ease infinite;
}

.el-1  { animation-delay: 0.5s; }
.el-2  { animation-delay: 0.9s; }
.el-3  { animation-delay: 1.3s; }
.el-3b { opacity: 0; animation: buildLoop 8s ease infinite; animation-delay: 1.7s; }
.el-4  { animation-delay: 2.5s; }

/* UI Nav */
.ui-nav {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 10px;
    background: #f8fafc;
    border-radius: 8px;
    height: auto;
}

.nav-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #cbd5e1;
}

.nav-logo-text {
    margin-left: auto;
    font-size: 11px;
    font-weight: 700;
    color: #4f46e5;
    letter-spacing: 0.5px;
}

/* UI Hero */
.ui-hero {
    padding: 8px 0;
}

.hero-title-bar {
    height: 16px;
    width: 75%;
    background: linear-gradient(90deg, #1a1a2e, #4f46e5);
    border-radius: 4px;
    margin-bottom: 6px;
}

.hero-subtitle-bar {
    height: 10px;
    width: 50%;
    background: #e2e8f0;
    border-radius: 4px;
}

/* Mini Cards */
.ui-cards-row {
    display: flex;
    gap: 8px;
}

.mini-card {
    flex: 1;
    background: #f8fafc;
    border-radius: 8px;
    padding: 10px;
    text-align: center;
    border: 1px solid #e2e8f0;
}

.mc-icon {
    font-size: 16px;
    margin-bottom: 6px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    margin-right: auto;
    color: #fff;
}

.mc-purple { background: linear-gradient(135deg, #4f46e5, #7c3aed); }
.mc-green  { background: linear-gradient(135deg, #22c55e, #16a34a); }
.mc-orange { background: linear-gradient(135deg, #f59e0b, #ea580c); }

.mc-bar {
    height: 6px;
    border-radius: 3px;
    animation: shimmer 2s ease infinite;
}

.mc-1 .mc-bar { background: linear-gradient(90deg, #4f46e5, #7c3aed); width: 80%; margin: 0 auto; }
.mc-2 .mc-bar { background: linear-gradient(90deg, #22c55e, #16a34a); width: 60%; margin: 0 auto; }
.mc-3 .mc-bar { background: linear-gradient(90deg, #f59e0b, #d97706); width: 90%; margin: 0 auto; }

@keyframes shimmer {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

/* Chart */
.ui-chart-area {
    display: flex;
    align-items: flex-end;
    gap: 5px;
    height: 70px;
    padding: 4px 0;
}

.chart-bar {
    flex: 1;
    border-radius: 4px 4px 0 0;
    animation: barLoop 8s ease infinite;
    opacity: 0;
}

.bar-1 { background: #4f46e5; height: 50%; animation-delay: 2.5s; }
.bar-2 { background: #7c3aed; height: 75%; animation-delay: 2.6s; }
.bar-3 { background: #4f46e5; height: 40%; animation-delay: 2.7s; }
.bar-4 { background: #7c3aed; height: 90%; animation-delay: 2.8s; }
.bar-5 { background: #4f46e5; height: 60%; animation-delay: 2.9s; }
.bar-6 { background: #7c3aed; height: 80%; animation-delay: 3.0s; }
.bar-7 { background: #4f46e5; height: 55%; animation-delay: 3.1s; }

/* Stats row */
.ui-stats-row {
    display: flex;
    gap: 6px;
    text-align: center;
}

.el-3c { opacity: 0; animation: buildLoop 8s ease infinite; animation-delay: 2.1s; }

.stat-item {
    flex: 1;
    background: linear-gradient(135deg, #f0f0ff, #e8e4ff);
    border-radius: 6px;
    padding: 6px 4px;
}

.stat-num {
    display: block;
    font-size: 14px;
    font-weight: 800;
    color: #4f46e5;
    line-height: 1.2;
}

.stat-label {
    font-size: 9px;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Activity feed */
.ui-activity {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.activity-line {
    display: flex;
    align-items: center;
    gap: 6px;
}

.act-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    flex-shrink: 0;
}

.act-green { background: #22c55e; }
.act-blue  { background: #4f46e5; }

.act-text {
    height: 8px;
    width: 75%;
    background: #e2e8f0;
    border-radius: 4px;
}

.act-text.short { width: 50%; }

.ui-btn {
    align-self: center;
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    color: #fff;
    padding: 12px 36px;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-top: auto;
    animation: buildLoop 8s ease infinite, btnPulse 2s ease infinite;
    animation-delay: 2.5s, 0s;
    opacity: 0;
    overflow: visible !important;
    position: relative;
}

@keyframes btnPulse {
    0%, 100% { box-shadow: 0 2px 8px rgba(79,70,229,0.3); }
    50% { box-shadow: 0 4px 20px rgba(79,70,229,0.6); }
}

.rocket-launch {
    display: inline-block;
    font-size: 22px;
    animation: rocketGo 3s ease-in-out infinite;
    position: relative;
}

@keyframes rocketGo {
    0%, 40%   { transform: translate(0, 0) rotate(0deg); opacity: 1; }
    45%       { transform: translate(-3px, 0) rotate(-5deg); }
    47%       { transform: translate(3px, 0) rotate(5deg); }
    49%       { transform: translate(-3px, 0) rotate(-5deg); }
    51%       { transform: translate(3px, 0) rotate(5deg); }
    53%       { transform: translate(-2px, 0) rotate(-3deg); }
    55%       { transform: translate(0, 0) rotate(0deg); }
    65%       { transform: translate(0, -30px) rotate(-35deg); opacity: 1; }
    80%       { transform: translate(15px, -150px) rotate(-45deg); opacity: 0; }
    81%       { transform: translate(0, 20px) rotate(0deg); opacity: 0; }
    90%       { transform: translate(0, 0) rotate(0deg); opacity: 1; }
    100%      { transform: translate(0, 0) rotate(0deg); opacity: 1; }
}

/* Arrow connector */
.arrow-connector {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    animation: pulseArrow 2s ease-in-out infinite;
    box-shadow: 0 4px 20px rgba(79, 70, 229, 0.4);
}

.arrow-connector span {
    color: #fff;
    font-size: 20px;
    font-weight: bold;
}

@keyframes typeLoop {
    0%     { opacity: 0; transform: translateY(8px); }
    5%     { opacity: 1; transform: translateY(0); }
    70%    { opacity: 1; transform: translateY(0); }
    85%    { opacity: 0; transform: translateY(-4px); }
    100%   { opacity: 0; transform: translateY(8px); }
}

@keyframes buildLoop {
    0%     { opacity: 0; transform: translateY(12px); }
    8%     { opacity: 1; transform: translateY(0); }
    70%    { opacity: 1; transform: translateY(0); }
    85%    { opacity: 0; transform: translateY(-6px); }
    100%   { opacity: 0; transform: translateY(12px); }
}

@keyframes barLoop {
    0%     { opacity: 0; height: 0; }
    10%    { opacity: 1; }
    70%    { opacity: 1; }
    85%    { opacity: 0; height: 0; }
    100%   { opacity: 0; height: 0; }
}

@keyframes pulseArrow {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-50%, -50%) scale(1.15); }
}

/* Responsive */
@media (max-width: 768px) {
    .code-ui-container {
        flex-direction: column;
        min-height: auto;
    }
    .arrow-connector {
        position: relative;
        left: auto;
        top: auto;
        transform: rotate(90deg);
        margin: -10px auto;
    }
    .code-to-ui-animation { padding: 16px; }
}

/* ✨ Sparkle icon animation */
@keyframes sparkle {
  0%, 100% { transform: scale(1) rotate(0deg); opacity: 1; }
  25% { transform: scale(1.3) rotate(-15deg); opacity: 0.85; }
  50% { transform: scale(0.85) rotate(10deg); opacity: 0.6; filter: brightness(1.5); }
  75% { transform: scale(1.2) rotate(-8deg); opacity: 0.9; }
}
.sparkle-icon {
  display: inline-block;
  animation: sparkle 2s ease-in-out infinite;
  transform-origin: center;
  cursor: default;
}

/* ↓ Arrow bounce animation */
@keyframes arrowBounce {
  0%, 100% { transform: translateY(0); opacity: 1; }
  40%       { transform: translateY(8px); opacity: 0.7; }
  60%       { transform: translateY(4px); opacity: 0.9; }
}
.arrow-down {
  animation: arrowBounce 1.6s ease-in-out infinite;
  display: inline-flex;
}

/* 🏷️ Brand carousel — uniform card style for all logo items */
.working-with-main .items {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--card-bg, #1e2333);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 16px;
  padding: 14px;
  width: 90px;
  height: 90px;
  box-shadow: 0 4px 18px rgba(0,0,0,0.18);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  flex-shrink: 0;
}
.working-with-main .items:hover {
  transform: translateY(-4px) scale(1.06);
  box-shadow: 0 8px 28px rgba(0,0,0,0.28);
}
.working-with-main .items img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 8px;
}

/* 🎬 About page — Animate-on-scroll text reveal */
[data-anim] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}
[data-anim].is-visible {
  opacity: 1;
  transform: translateY(0);
}
[data-anim-delay="1"] { transition-delay: 0.1s; }
[data-anim-delay="2"] { transition-delay: 0.2s; }
[data-anim-delay="3"] { transition-delay: 0.35s; }
[data-anim-delay="4"] { transition-delay: 0.5s; }
[data-anim-delay="5"] { transition-delay: 0.65s; }

/* 🌟 Services Page — Compact 4-Column Project Grid Showcase */
.services-project-grid .portfolio-item-card {
    width: 25% !important;
    max-width: 25% !important;
    flex: 0 0 25% !important;
}
.services-project-grid .portfolio-item-card .all-proitem > img {
    height: 230px !important;
    min-height: unset !important;
    object-fit: cover !important;
    border-radius: 16px !important;
}
@media (min-width: 992px) {
    /* Keep descriptions very neat and highly legible on compact viewports */
    .services-project-grid .portfolio-item-card .all-proitem .aroha-boxwrap {
        padding: 16px !important;
    }
    .services-project-grid .portfolio-item-card .all-proitem .aroha-boxwrap .aroha-box .n0-color {
        font-size: 1.05rem !important;
        margin-bottom: 4px !important;
    }
    .services-project-grid .portfolio-item-card .all-proitem .aroha-boxwrap .aroha-box .ptextes {
        font-size: 0.78rem !important;
        line-height: 1.4 !important;
        margin-top: 2px !important;
    }
}
@media (max-width: 1200px) {
    .services-project-grid .portfolio-item-card {
        width: 50% !important;
        max-width: 50% !important;
        flex: 0 0 50% !important;
    }
    .services-project-grid .portfolio-item-card .all-proitem > img {
        height: 280px !important;
    }
}
@media (max-width: 768px) {
    .services-project-grid .portfolio-item-card {
        width: 100% !important;
        max-width: 100% !important;
        flex: 0 0 100% !important;
    }
    .services-project-grid .portfolio-item-card .all-proitem > img {
        height: 240px !important;
    }
}

/* 🌟 Premium Testimonials Hover Star Animation (Wave Effect) */
.feedback-item .rating i {
    display: inline-block !important;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), 
                color 0.4s ease, 
                text-shadow 0.4s ease !important;
}

.feedback-item:hover .rating i {
    color: #FD7E41 !important; /* Accent color matching template */
    text-shadow: 0 0 10px rgba(253, 126, 65, 0.6) !important;
}

@keyframes starWave {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.45) rotate(12deg);
    }
    100% {
        transform: scale(1.18) rotate(0deg);
    }
}

.feedback-item:hover .rating i {
    animation: starWave 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

/* Sequential delay for each star to create a beautiful wave effect */
.feedback-item:hover .rating i:nth-child(1) { animation-delay: 0s; }
.feedback-item:hover .rating i:nth-child(2) { animation-delay: 0.06s; }
.feedback-item:hover .rating i:nth-child(3) { animation-delay: 0.12s; }
.feedback-item:hover .rating i:nth-child(4) { animation-delay: 0.18s; }
.feedback-item:hover .rating i:nth-child(5) { animation-delay: 0.24s; }

/* 🌟 Premium Custom Vanilla Slider */
.custom-slider-container {
    position: relative !important;
    width: 100% !important;
    display: block !important;
    margin-top: 32px !important;
}

.custom-slider-list {
    overflow: hidden !important;
    position: relative !important;
    width: 100% !important;
}

.custom-slider-track {
    display: flex !important;
    flex-direction: row !important;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1) !important;
    width: 100% !important;
}

.custom-slider-slide {
    flex: 0 0 50% !important; /* Show 2 items at once on desktop */
    max-width: 50% !important;
    padding: 0 12px !important;
    box-sizing: border-box !important;
    display: flex !important;
}

.custom-slider-slide .feedback-item, 
.custom-slider-slide .article-publications-item {
    width: 100% !important;
    margin: 0 !important;
}

/* Arrows styling to match original template icons perfectly */
.custom-slider-container .icon {
    width: 36px !important;
    height: 36px !important;
    border-radius: 8px !important;
    border: 1px solid var(--border) !important;
    text-align: center !important;
    line-height: 34px !important;
    font-size: 13px !important;
    color: var(--light-black) !important;
    cursor: pointer !important;
    position: absolute !important;
    top: -68px !important;
    background-color: var(--white) !important;
    z-index: 9 !important;
    transition: all 0.2s ease !important;
}

.custom-slider-container .icon.right {
    right: 13px !important;
}

.custom-slider-container .icon.left {
    right: 57px !important;
}

.custom-slider-container .icon:hover {
    border-color: var(--primary) !important;
    color: var(--primary) !important;
}

.dark-theme .custom-slider-container .icon {
    border-color: var(--black) !important;
    color: var(--light-black) !important;
    background-color: #000 !important;
}

.dark-theme .custom-slider-container .icon:hover {
    border-color: var(--primary) !important;
    color: var(--primary) !important;
}

@media (max-width: 991.98px) {
    .custom-slider-slide {
        flex: 0 0 100% !important; /* Show 1 item at once on mobile/tablet */
        max-width: 100% !important;
    }
}

/* Centering and alignment fix for social media icons on profile cards */
.social-media-icon ul li a {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 40px !important;
    height: 40px !important;
    line-height: 1 !important;
    padding: 0 !important;
}

.social-media-icon ul li a i {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1 !important;
    font-size: 18px !important;
    width: 18px !important;
    height: 18px !important;
}

/* 👋 Premium Waving Hand Animation */
@keyframes waveHand {
    0% { transform: rotate( 0.0deg); }
    10% { transform: rotate(14.0deg); }
    20% { transform: rotate(-8.0deg); }
    30% { transform: rotate(14.0deg); }
    40% { transform: rotate(-4.0deg); }
    50% { transform: rotate(10.0deg); }
    60% { transform: rotate( 0.0deg); }
    100% { transform: rotate( 0.0deg); }
}

.waving-hand {
    display: inline-block !important;
    animation: waveHand 2.2s ease-in-out infinite !important;
    transform-origin: 70% 70% !important;
}

/* ===== Blog Details Premium Styles ===== */
.back-to-blog {
    margin-bottom: 24px;
}

.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-color, #fd7e41);
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 8px 16px;
    border: 1px solid rgba(253, 126, 65, 0.2);
    border-radius: 30px;
    background: transparent;
}

.back-btn:hover {
    background: var(--primary-color, #fd7e41);
    color: #fff !important;
    transform: translateX(-4px);
    box-shadow: 0 4px 15px rgba(253, 126, 65, 0.3);
}

.back-btn .icon {
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;
}

.back-btn:hover .icon {
    transform: translateX(-2px);
}

.blog-detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    list-style: none;
    padding: 0;
    margin: 16px 0 24px 0;
    font-size: 14px;
    opacity: 0.8;
}

.blog-detail-meta li {
    display: flex;
    align-items: center;
    gap: 6px;
}

.blog-detail-meta li i {
    color: var(--primary-color, #fd7e41);
}

.blog-detail-title {
    font-size: clamp(24px, 4vw, 36px);
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--text-color, #1a1f2c) 0%, rgba(26, 31, 44, 0.7) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.dark-theme .blog-detail-title {
    background: linear-gradient(135deg, #ffffff 0%, rgba(255, 255, 255, 0.7) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.blog-post-featured-img {
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.blog-post-content {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-color, #4a5568);
}

.dark-theme .blog-post-content {
    color: #cbd5e0;
}

.blog-post-content p {
    margin-bottom: 24px;
}

.blog-post-content h2 {
    font-size: 24px;
    font-weight: 700;
    margin-top: 40px;
    margin-bottom: 16px;
    color: var(--title-color, #1a1f2c);
}

.dark-theme .blog-post-content h2 {
    color: #ffffff;
}

.blog-post-content h3 {
    font-size: 20px;
    font-weight: 600;
    margin-top: 30px;
    margin-bottom: 12px;
    color: var(--title-color, #1a1f2c);
}

.dark-theme .blog-post-content h3 {
    color: #ffffff;
}

.blog-post-content blockquote {
    border-left: 4px solid var(--primary-color, #fd7e41);
    background: rgba(253, 126, 65, 0.05);
    padding: 16px 24px;
    margin: 24px 0;
    border-radius: 0 8px 8px 0;
    font-style: italic;
}

.blog-post-content blockquote p {
    margin-bottom: 0;
}

.blog-post-content pre {
    background: #1e1e2e;
    color: #cdd6f4;
    padding: 20px;
    border-radius: 12px;
    overflow-x: auto;
    margin: 24px 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.blog-post-content pre code {
    font-family: 'Fira Code', Consolas, Monaco, 'Andale Mono', monospace;
    font-size: 14px;
    background: transparent;
    padding: 0;
    border-radius: 0;
    color: inherit;
}

.blog-post-content code {
    background: rgba(253, 126, 65, 0.1);
    color: var(--primary-color, #fd7e41);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Fira Code', Consolas, Monaco, monospace;
    font-size: 0.9em;
}

.blog-post-content ul, .blog-post-content ol {
    margin-bottom: 24px;
    padding-left: 20px;
}

.blog-post-content li {
    margin-bottom: 8px;
}

.blog-post-content strong {
    color: var(--title-color, #1a1f2c);
}

.dark-theme .blog-post-content strong {
    color: #ffffff;
}

.blog-post-content hr {
    margin: 40px 0;
    border: 0;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.dark-theme .blog-post-content hr {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* ==========================================================================
   Premium Blog Article Footer: Share & Contact Sections
   ========================================================================== */
.blog-footer-sections {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}
.dark-theme .blog-footer-sections {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.share-title, .contact-title {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 18px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--title-color, #1a1f2c);
    display: flex;
    align-items: center;
    gap: 8px;
}
.dark-theme .share-title, .dark-theme .contact-title {
    color: #ffffff;
}

.share-buttons-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 40px;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    font-size: 1.1rem;
    color: var(--text-color, #4a5568);
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.06);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    cursor: pointer;
}
.dark-theme .share-btn {
    color: rgba(255, 255, 255, 0.75);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.share-btn:hover {
    transform: translateY(-4px);
    color: #ffffff;
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

/* Brand hover coloring & glowing effects */
.share-btn.wa:hover {
    background: #25D366 !important;
    border-color: #25D366 !important;
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.35) !important;
}
.share-btn.tg:hover {
    background: #229ED9 !important;
    border-color: #229ED9 !important;
    box-shadow: 0 8px 20px rgba(34, 158, 217, 0.35) !important;
}
.share-btn.fb:hover {
    background: #1877F2 !important;
    border-color: #1877F2 !important;
    box-shadow: 0 8px 20px rgba(24, 119, 242, 0.35) !important;
}
.share-btn.x:hover {
    background: #000000 !important;
    border-color: #000000 !important;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.45) !important;
}
.dark-theme .share-btn.x:hover {
    background: #ffffff !important;
    border-color: #ffffff !important;
    color: #000000 !important;
    box-shadow: 0 8px 20px rgba(255, 255, 255, 0.35) !important;
}
.share-btn.in:hover {
    background: #0077B5 !important;
    border-color: #0077B5 !important;
    box-shadow: 0 8px 20px rgba(0, 119, 181, 0.35) !important;
}
.share-btn.mail:hover {
    background: #EA4335 !important;
    border-color: #EA4335 !important;
    box-shadow: 0 8px 20px rgba(234, 67, 53, 0.35) !important;
}

/* Premium Contact Banner box */
.blog-contact-banner {
    background: linear-gradient(135deg, rgba(71, 112, 255, 0.04) 0%, rgba(71, 112, 255, 0.01) 100%);
    border: 1px solid rgba(71, 112, 255, 0.12);
    border-radius: 20px;
    padding: 28px 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.dark-theme .blog-contact-banner {
    background: linear-gradient(135deg, rgba(71, 112, 255, 0.06) 0%, rgba(71, 112, 255, 0.02) 100%);
    border: 1px solid rgba(71, 112, 255, 0.15);
}

.blog-contact-banner:hover {
    border-color: rgba(71, 112, 255, 0.4);
    box-shadow: 0 15px 30px rgba(71, 112, 255, 0.08);
}

.contact-banner-text h4 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--title-color, #1a1f2c);
}
.dark-theme .contact-banner-text h4 {
    color: #ffffff;
}

.contact-banner-text p {
    font-size: 0.92rem;
    color: var(--text-color, #4a5568);
    margin-bottom: 0;
}
.dark-theme .contact-banner-text p {
    color: #a0aec0;
}

.contact-banner-actions {
    display: flex;
    gap: 12px;
}

.contact-banner-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 48px;
    font-size: 0.86rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.contact-banner-btn.wa {
    background: #25D366;
    color: #ffffff;
    border: 1px solid #25D366;
}
.contact-banner-btn.wa:hover {
    background: #20ba59;
    border-color: #20ba59;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(37, 211, 102, 0.3);
}

.contact-banner-btn.tg {
    background: #229ED9;
    color: #ffffff;
    border: 1px solid #229ED9;
}
.contact-banner-btn.tg:hover {
    background: #1d8cc2;
    border-color: #1d8cc2;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(34, 158, 217, 0.3);
}

@media (max-width: 767px) {
    .blog-contact-banner {
        flex-direction: column;
        align-items: flex-start;
        padding: 22px;
    }
    .contact-banner-actions {
        width: 100%;
        flex-direction: column;
    }
    .contact-banner-btn {
        width: 100%;
        justify-content: center;
    }
}

/* Premium Portfolio View All Link Button */
.btn-portfolio-link {
    background-color: var(--primary) !important;
    color: #ffffff !important;
    border: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
}

.btn-portfolio-link:hover {
    background-color: #2563eb !important;
    color: #ffffff !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 15px rgba(71, 112, 255, 0.3) !important;
}

/* Hide empty agent container before load */
.lets-talk-btn:empty {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    width: 0 !important;
    padding: 0 !important;
}
