/* --- Global Rules & Configuration --- */
:root {
    --primary-color: #0d47a1;
    --secondary-color: #00c853;
    --dark-color: #1a237e;
    --text-dark: #2c3e50;
    --bg-dark-footer: #0a0f1d;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-dark);
    overflow-x: hidden;
    background-color: #ffffff;
}

/* --- Top Bar Styling --- */
.top-bar {
    background-color: var(--dark-color);
    font-size: 0.88rem;
    letter-spacing: 0.3px;
}

.top-socials a {
    transition: opacity 0.2s ease;
}

.top-socials a:hover {
    opacity: 0.8;
}

/* whatsapp popup */
.floating-popup {
    position: fixed;
    bottom: 25px;
    left: 25px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    z-index: 9999;
}

.popup-btn {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #ffffff;
    font-size: 26px;
    text-decoration: none;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
    position: relative;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);

    /* Continuous Floating Animation */
    animation: floatBounce 3s ease-in-out infinite;
}

/* Staggered animation delay for floating effect */
.popup-btn.whatsapp {
    background-color: #25D366;
    animation-delay: 0s;
}

.popup-btn.call {
    background-color: #0d6efd;
    animation-delay: 0.4s;
}

/* Continuous Pulse Ring Waves (Outer Animation) */
.popup-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 50%;
    z-index: -1;
    animation: pulseWave 2s infinite;
}

.whatsapp::before {
    background-color: rgba(37, 211, 102, 0.6);
}

.call::before {
    background-color: rgba(13, 110, 253, 0.6);
}

/* Hover Animations */
.popup-btn:hover {
    transform: scale(1.18) rotate(5deg);
    color: #ffffff;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
}

.popup-btn:hover i {
    animation: shakeIcon 0.5s ease-in-out;
}

.top-socials a{
    color: #9aa8bd;
    z-index: 5;
}


/* ==================== KEYFRAMES ==================== */

/* Floating Up & Down */
@keyframes floatBounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

/* Expanding Glow Pulse Wave */
@keyframes pulseWave {
    0% {
        transform: scale(0.95);
        opacity: 0.8;
    }

    100% {
        transform: scale(1.6);
        opacity: 0;
    }
}

/* Icon Shake Effect on Hover */
@keyframes shakeIcon {

    0%,
    100% {
        transform: rotate(0deg);
    }

    20% {
        transform: rotate(-15deg);
    }

    40% {
        transform: rotate(15deg);
    }

    60% {
        transform: rotate(-10deg);
    }

    80% {
        transform: rotate(10deg);
    }
}




/* --- Navbar Modifications --- */
.navbar {
    background-color: #ffffff !important;
    padding: 15px 0;
    transition: all 0.4s ease-in-out;
}

.navbar.scrolled {
    padding: 10px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08) !important;
}

.navbar-brand {
    font-weight: 700;
    color: var(--primary-color) !important;
    font-size: 1.6rem;
    letter-spacing: -0.5px;
}

.nav-link {
    font-weight: 500;
    color: #4a5568 !important;
    margin: 0 5px;
    position: relative;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--secondary-color);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color) !important;
}

/* --- Dropdown Animation --- */
.dropdown-menu {
    border-radius: 8px;
    top: 110%;
    display: block;
    visibility: hidden;
    opacity: 0;
    transition: all 0.3s ease;
}

.dropdown:hover .dropdown-menu {
    visibility: visible;
    opacity: 1;
    top: 100%;
}

/* --- Hero Section & Custom Animations --- */
.hero-section {
    position: relative;
    min-height: 85vh;
    background: linear-gradient(135deg, rgba(26, 35, 126, 0.95), rgba(13, 71, 161, 0.85)),
        url('/Asset/head.jpg');
    background-size: cover;
    background-position: center;
    color: #ffffff;
    overflow: hidden;
}

.hero-shape {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background: #ffffff;
    clip-path: polygon(0 100%, 100% 100%, 100% 0);
    z-index: 2;
}

.hero-animated-blob {
    width: 320px;
    height: 320px;
    background: linear-gradient(45deg, var(--secondary-color), rgba(13, 71, 161, 0.4));
    border-radius: 50%;
    position: absolute;
    top: -50px;
    right: 30px;
    filter: blur(2px);
    box-shadow: inset 0 0 50px rgba(255, 255, 255, 0.2);
    animation: morphingBlob 8s infinite alternate ease-in-out;
}

@keyframes morphingBlob {
    0% {
        border-radius: 42% 58% 70% 30% / 45% 45% 55% 55%;
        transform: translate(0, 0) rotate(0deg);
    }
    50% {
        border-radius: 70% 30% 52% 48% / 60% 40% 60% 40%;
        transform: translate(15px, -25px) rotate(90deg);
    }
    100% {
        border-radius: 34% 66% 38% 62% / 48% 68% 32% 52%;
        transform: translate(-10px, 15px) rotate(180deg);
    }
}

.btn-custom-primary {
    background-color: var(--secondary-color);
    color: #ffffff;
    font-weight: 600;
    border: none;
    padding: 12px 32px;
    transition: all 0.3s ease;
}

.btn-custom-primary:hover {
    background-color: #00b34a;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 200, 83, 0.3);
}

.separator {
    width: 70px;
    height: 3px;
    border-radius: 2px;
}

/* --- Modern Expertise Hover Cards --- */
.custom-hover-card {
    background: #ffffff;
    border-radius: 20px !important;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    top: 0;
}

.custom-hover-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08) !important;
}

.icon-box-web {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(25, 135, 84, 0.1);
    color: #198754;
    font-size: 1.8rem;
    transition: all 0.3s ease;
}

.icon-marketing {
    background: rgba(13, 110, 253, 0.1);
    color: #0d6efd;
}

.icon-wp {
    background: rgba(111, 66, 193, 0.1);
    color: #6f42c1;
}

.custom-hover-card:hover .icon-box-web {
    transform: scale(1.1) rotate(10deg);
}

.tracking-wide {
    letter-spacing: 0.5px;
}

/* --- About Section Styling --- */
.col-lg-6.position-relative {
    cursor: pointer;
}

.image-overlay-card {
    position: absolute;
    width: 95%;
    height: 100%;
    background-color: #d1e7dd; 
    top: 15px;
    left: -10px;
    border-radius: 1rem;
    z-index: 1;
    opacity: 0.8; 
    transition: all 0.4s ease-in-out; 
}

.col-lg-6.position-relative img {
    transition: all 0.4s ease-in-out;
}

.col-lg-6.position-relative:hover .image-overlay-card,
.col-lg-6.position-relative:active .image-overlay-card {
    top: 25px;
    left: -20px;
    transform: scale(1.02);
}

.col-lg-6.position-relative:hover img,
.col-lg-6.position-relative:active img {
    transform: translateY(-10px) translateX(5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2) !important; 
}

.icon-wrap {
    transition: transform 0.3s;
}

.list-feature-item:hover .icon-wrap {
    transform: scale(1.1);
}

/* --- Reveal on Scroll --- */
.reveal {
    position: relative;
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* --- Accordion & 3D Graphic Styles --- */
.dynamic-graphic-wrapper {
    min-height: 420px;
}

.graphic-bg-glow {
    position: absolute;
    width: 380px;
    height: 320px;
    background: linear-gradient(135deg, rgba(25, 135, 84, 0.25) 0%, rgba(13, 110, 253, 0.15) 100%);
    border-radius: 40% 60% 60% 40% / 50% 30% 70% 50%;
    filter: blur(10px);
    z-index: 1;
    animation: shapeMorph 7s linear infinite alternate;
}

.main-iso-graphic {
    max-width: 85%;
    height: auto;
    z-index: 2;
    filter: drop-shadow(15px 25px 30px rgba(0, 0, 0, 0.12));
    animation: isometricFloat 4.5s ease-in-out infinite alternate;
}

.custom-accordion .accordion-item {
    background-color: #ffffff !important;
    border-color: #e2e8f0 !important;
    transition: all 0.3s ease;
}

.custom-accordion .accordion-item:has(.show) {
    border-bottom: 1px solid #e2e8f0 !important;
}

.custom-accordion .accordion-button {
    background-color: transparent !important;
    color: #1e293b !important;
    font-size: 1rem;
    padding: 1.1rem 1.25rem;
    box-shadow: none !important;
}

.custom-accordion .accordion-button::after {
    content: '\2b';
    font-family: monospace;
    font-size: 1.3rem;
    font-weight: 600;
    color: #0d6efd;
    background-image: none !important;
    transform: none !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.custom-accordion .accordion-button.not(.collapsed)::after {
    content: '\2212';
    color: #0f172a !important;
}

.custom-accordion .accordion-body {
    line-height: 1.65;
    font-size: 0.88rem;
    color: #64748b !important;
}

/* --- Review Section Styles --- */
.review-card {
    background: #ffffff;
    border-radius: 24px !important;
    margin-top: 40px;
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.03) !important;
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1), 
                box-shadow 0.5s cubic-bezier(0.25, 1, 0.5, 1), 
                border-color 0.3s ease;
    will-change: transform, box-shadow;
}

.review-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 25px 50px rgba(13, 71, 161, 0.12) !important;
    border-color: rgba(0, 200, 83, 0.2) !important;
}

.client-avatar-wrapper {
    position: absolute;
    top: -45px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
}

.client-img {
    width: 85px;
    height: 85px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #ffffff;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), 
                border-color 0.3s ease, 
                box-shadow 0.3s ease;
}

.review-card:hover .client-img {
    transform: scale(1.1);
    border-color: #00c853;
    box-shadow: 0 8px 20px rgba(0, 200, 83, 0.25) !important;
}

.quote-mark {
    font-size: 2.2rem;
    opacity: 0.15;
    margin-bottom: 15px;
    transition: transform 0.4s ease, opacity 0.3s ease;
}

.review-card:hover .quote-mark {
    transform: scale(1.15) rotate(-8deg);
    opacity: 0.35;
}

.text-successOpacity { color: var(--secondary-color); }
.text-primaryOpacity { color: var(--primary-color); }
.text-purpleOpacity { color: #6f42c1; }
.text-dark-blue { color: var(--dark-color); }

/* --- Footer Area --- */
footer {
    background-color: var(--bg-dark-footer);
    color: #9aa8bd;
    font-size: 0.95rem;
}

.brand-footer,
.link-header {
    font-weight: 600;
    letter-spacing: 0.5px;
}

.footer-links a {
    color: #9aa8bd;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-links a:hover {
    color: #ffffff;
    transform: translateX(6px);
}

.footer-socials a {
    display: inline-block;
    width: 36px;
    height: 36px;
    line-height: 36px;
    text-align: center;
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    border-radius: 50%;
    transition: background 0.3s;
}

.footer-socials a:hover {
    background: var(--secondary-color);
}

/* --- Keyframes --- */
@keyframes isometricFloat {
    0% { transform: translateY(0px) rotateX(0deg); }
    100% { transform: translateY(-15px) scale(1.02); }
}

@keyframes shapeMorph {
    0% {
        border-radius: 40% 60% 60% 40% / 50% 30% 70% 50%;
        transform: rotate(0deg) scale(0.95);
    }
    100% {
        border-radius: 60% 40% 40% 60% / 40% 60% 40% 60%;
        transform: rotate(15deg) scale(1.05);
    }
}