.grid-pattern {
    background-image: linear-gradient(to right, #8E979F 1px, transparent 1px),
                      linear-gradient(to bottom, #8E979F 1px, transparent 1px);
    background-size: 32px 32px;
    opacity: 0.1;
}

.metallic-gradient {
    background: linear-gradient(135deg, #F5F5F5 0%, #E0E0E0 100%);
}

.portfolio-card:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-card:hover .portfolio-img {
    transform: scale(1.05);
}

.portfolio-card {
    transition: opacity 220ms ease, transform 220ms ease;
}

.portfolio-card::before {
    content: attr(data-label);
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 10;
    background: #ffffff;
    color: #0A192F;
    padding: 6px 10px;
    font-family: "Inter", sans-serif;
    font-size: 10px;
    line-height: 1;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    box-shadow: 2px 2px 0 #0A192F;
}

.portfolio-card.hidden-by-filter {
    display: none;
}

.portfolio-card.visible-by-filter {
    animation: portfolioIn 220ms ease;
}

.portfolio-filter.active {
    background: #0A192F;
    color: #ffffff;
    border-color: #0A192F;
    box-shadow: 2px 2px 0 #8E979F;
    transform: translateY(1px);
}

@keyframes portfolioIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.button-feedback {
    position: relative;
    overflow: hidden;
    transform: translateZ(0);
    transition:
        transform 180ms cubic-bezier(0.2, 0.8, 0.2, 1),
        box-shadow 180ms ease,
        filter 180ms ease,
        background-color 180ms ease,
        color 180ms ease;
    -webkit-tap-highlight-color: transparent;
}

.button-feedback:hover {
    filter: brightness(1.04);
}

.button-feedback.is-pressed {
    transform: translateY(2px) scale(0.985);
    filter: brightness(0.98);
}

.button-feedback .button-ripple {
    position: absolute;
    width: 18px;
    height: 18px;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.44);
    pointer-events: none;
    transform: translate(-50%, -50%) scale(0);
    animation: buttonRipple 620ms ease-out forwards;
    mix-blend-mode: screen;
}

.button-feedback.button-feedback-dark .button-ripple {
    background: rgba(10, 25, 47, 0.2);
    mix-blend-mode: multiply;
}

@keyframes buttonRipple {
    to {
        opacity: 0;
        transform: translate(-50%, -50%) scale(18);
    }
}

@media (prefers-reduced-motion: reduce) {
    .button-feedback,
    .portfolio-card,
    .portfolio-img {
        transition: none !important;
        animation: none !important;
    }
    .button-feedback .button-ripple {
        display: none;
    }
}
/* ===== SCROLL PROGRESS BAR ===== */
#scroll-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0%;
    background: linear-gradient(90deg, #25D366, #0A192F);
    z-index: 9999;
    transition: width 0.1s linear;
}

/* ===== HERO FLOATING ANIMATION ===== */
@keyframes heroFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-12px); }
}

.hero-float {
    animation: heroFloat 4s ease-in-out infinite;
}

/* ===== HERO BADGE PULSE ===== */
@keyframes badgePulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.4); }
    50% { box-shadow: 0 0 0 8px rgba(37, 211, 102, 0); }
}

.badge-pulse {
    animation: badgePulse 2.5s ease-in-out infinite;
}

/* ===== COUNTER ANIMATION ===== */
.stat-number {
    display: inline-block;
    transition: transform 0.3s ease;
}

/* ===== MARQUEE / TICKER (Clients) ===== */
@keyframes marqueeScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ===== SHIMMER EFFECT ON SERVICE CARDS ===== */
@keyframes shimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

/* ===== TYPING CURSOR ===== */
@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.typing-cursor::after {
    content: '|';
    animation: blink 1s step-end infinite;
    color: #25D366;
    font-weight: 300;
    margin-left: 2px;
}

/* ===== STEP CONNECTOR ANIMATION ===== */
@keyframes connectorGrow {
    from { width: 0; }
    to { width: 80%; }
}

/* ===== GLOWING BORDER ON STATS ===== */
@keyframes statGlow {
    0%, 100% { border-color: rgba(10, 25, 47, 0.3); }
    50% { border-color: rgba(37, 211, 102, 0.6); box-shadow: 0 0 12px rgba(37, 211, 102, 0.2); }
}

.stat-card-animated {
    animation: statGlow 3s ease-in-out infinite;
}

/* ===== HERO BG ZOOM ===== */
@keyframes bgZoom {
    from { transform: scale(1.05); }
    to { transform: scale(1.0); }
}

.hero-bg-img {
    animation: bgZoom 6s ease-out forwards;
}

/* ===== SECTION FADE IN CUSTOM ===== */
[data-aos] {
    pointer-events: none;
}
[data-aos].aos-animate {
    pointer-events: auto;
}

@media (prefers-reduced-motion: reduce) {
    #scroll-progress-bar,
    .hero-float,
    .badge-pulse,
    .stat-card-animated,
    .hero-bg-img,
    .typing-cursor::after {
        animation: none !important;
    }
}
