/* Products Section */
.products-section {
    position: relative;
    padding: 90px 0 80px 0;
    background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    overflow: hidden; /* prevent decorative elements from causing scroll jumps */
}

.products-section::before,
.products-section::after {
    content: '';
    position: absolute;
    pointer-events: none;
    border-radius: 50%;
    filter: blur(40px);
    opacity: 0.18;
}

.products-section::before {
    width: 260px;
    height: 260px;
    top: -60px;
    right: -80px;
    background: radial-gradient(circle, rgba(11,106,50,0.25) 0%, transparent 70%);
}

.products-section::after {
    width: 220px;
    height: 220px;
    bottom: -50px;
    left: -70px;
    background: radial-gradient(circle, rgba(212,175,55,0.25) 0%, transparent 70%);
}

.products-section .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Decorative Background (animated boxes and circles) */
.products-decorations {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.products-section .container { position: relative; z-index: 2; }

.prod-box {
    position: absolute;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    opacity: 0.07;
    border-radius: 12px;
    animation: rotateFloat 16s ease-in-out infinite;
}

.prod-box-1 {
    width: 180px;
    height: 180px;
    top: 12%;
    right: 8%;
    transform: rotate(35deg);
    animation-delay: 0.4s;
}

[dir="ltr"] .prod-box-1 { right: auto; left: 8%; }

.prod-box-2 {
    width: 130px;
    height: 130px;
    bottom: 18%;
    left: 10%;
    transform: rotate(-25deg);
    animation-delay: 3s;
}

[dir="ltr"] .prod-box-2 { left: auto; right: 10%; }

.prod-circle {
    position: absolute;
    border: 3px dashed var(--primary-light);
    border-radius: 50%;
    opacity: 0.18;
    animation: pulseRotate 12s ease-in-out infinite;
}

.prod-circle-1 {
    width: 260px;
    height: 260px;
    top: 22%;
    right: -120px;
    animation-delay: 1.2s;
}

[dir="ltr"] .prod-circle-1 { right: auto; left: -120px; }

.prod-circle-2 {
    width: 200px;
    height: 200px;
    bottom: 12%;
    left: -100px;
    animation-delay: 2.4s;
}

[dir="ltr"] .prod-circle-2 { left: auto; right: -100px; }

/* Header */
.products-header {
    text-align: center;
    margin-bottom: 28px;
    opacity: 0;
    transform: translateY(20px);
}

.products-header.in-view {
    animation: prodFadeIn 0.7s ease-out 0.1s forwards;
}

.products-header .section-label-wrapper {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 6px 12px;
    border-radius: 10px;
    background: linear-gradient(90deg, rgba(212,175,55,0.14), rgba(11,106,50,0.10));
    box-shadow: 0 6px 18px rgba(0,0,0,0.05);
}

.products-header .section-label {
    padding: 6px 14px;
    border-radius: 8px;
    background: var(--accent-color);
    color: #fff;
    font-weight: 800;
    letter-spacing: 0.6px;
}

.products-header .section-label-line {
    width: 140px;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-color), transparent);
    opacity: 0.6;
}

.products-title {
    margin: 16px 0 12px 0;
    font-weight: 900;
    background: linear-gradient(90deg, var(--text-primary), var(--primary-color));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    letter-spacing: -0.3px;
    position: relative;
}

.products-title::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: -10px;
    width: 160px;
    height: 3px;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    box-shadow: 0 2px 10px rgba(11,106,50,0.25);
}

.products-subtitle {
    color: var(--text-secondary);
    max-width: 800px;
    margin: 10px auto 0 auto;
    line-height: 1.9;
    font-size: 17px;
}

/* Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
    margin-top: 24px;
}

/* Card */
.product-card {
    position: relative;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 18px;
    padding: 26px 24px;
    box-shadow: 0 10px 35px rgba(0,0,0,0.06);
    overflow: hidden;
    opacity: 0;
    transform: translateY(22px);
    min-height: 360px; /* reserve space to avoid layout shift across cards */
    contain: content; /* isolate layout/paint to this card */
    will-change: transform; /* hint for transform animations */
}

.product-card.in-view { animation: prodFadeIn 0.7s ease-out forwards; }

.product-card:hover {
    transform: translateY(10px);
    border-color: rgba(11,106,50,0.25);
    box-shadow: 0 16px 45px rgba(0,0,0,0.12);
}

.product-card.in-view:nth-child(1) { animation-delay: 0.05s; }
.product-card.in-view:nth-child(2) { animation-delay: 0.15s; }
.product-card.in-view:nth-child(3) { animation-delay: 0.25s; }
.product-card.in-view:nth-child(4) { animation-delay: 0.35s; }

.product-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 85% 0%, color-mix(in srgb, var(--primary-color) 10%, transparent) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.35s ease;
    pointer-events: none;
}

.product-card:hover::before {
    opacity: 1;
}

.product-icon {
    width: 84px;
    height: 84px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    color: #fff;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    box-shadow: 0 10px 30px color-mix(in srgb, var(--primary-color) 35%, transparent);
    margin: 0 0 14px 0;
    position: relative;
}

.product-icon::after {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    background: radial-gradient(circle at center, color-mix(in srgb, var(--primary-color) 18%, transparent) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.25s ease;
}
.product-card:hover .product-icon::after { opacity: 1; }
.product-card:nth-child(2) .product-icon {
    background: linear-gradient(135deg, #0a60c2, #0f80ff);
    box-shadow: 0 10px 30px rgba(15,128,255,0.35);
}

.product-card:nth-child(3) .product-icon {
    background: linear-gradient(135deg, #6a0b58, #8f0f7b);
    box-shadow: 0 10px 30px rgba(143,15,123,0.35);
}

.product-card:nth-child(4) .product-icon {
    background: linear-gradient(135deg, #b36a0b, #e19a2b);
    box-shadow: 0 10px 30px rgba(225,154,43,0.35);
}

.product-name {
    margin: 0 0 10px 0;
    color: var(--text-primary);
}

.product-desc {
    color: var(--text-secondary);
    margin: 0 0 14px 0;
}

.product-features {
    list-style: none;
    padding: 0;
    margin: 0 0 16px 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 16px;
}

.product-features li {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-primary);
}

.product-features i {
    color: var(--primary-color);
}

.product-card:nth-child(2) .product-features i { color: #0f80ff; }
.product-card:nth-child(3) .product-features i { color: #8f0f7b; }
.product-card:nth-child(4) .product-features i { color: #e19a2b; }

.product-actions {
    display: flex;
    gap: 10px;
    margin-top: 4px;
}

.product-actions .btn.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 18px;
    border-radius: 10px;
    box-shadow: 0 8px 22px rgba(11,106,50,0.25);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    position: relative;
    overflow: hidden;
}

.product-actions .btn.btn-primary i {
    font-size: 14px;
}

.product-actions .btn.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 26px rgba(11,106,50,0.32);
}

/* Ripple element spawned by JS */
.product-actions .btn.btn-primary .ripple {
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.55);
    transform: translate(-50%, -50%) scale(0);
    animation: rippleExpand 600ms ease-out forwards;
    pointer-events: none;
}

@keyframes rippleExpand {
    to { transform: translate(-50%, -50%) scale(18); opacity: 0; }
}

/* ===== Lean, non-boxed alternative style ===== */
.products-section .product-card {
    background: transparent;
    border: 1.5px solid var(--border-color);
    box-shadow: none;
    padding: 22px 10px 22px 14px;
    border-radius: 14px;
    min-height: 340px; /* stable height in lean mode */
}

.products-section .product-card::before {
    display: none;
}

.products-section .product-card::after {
    content: '';
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 10px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-color), transparent);
    opacity: 0.6;
}

.products-section .product-card:hover {
    transform: translateY(6px);
    box-shadow: none;
    border-color: var(--primary-light);
}

/* Vertical accent line */
.products-section .product-card .product-name {
    position: relative;
    padding-inline-start: 10px;
}

.products-section .product-card .product-name::before {
    content: '';
    position: absolute;
    top: 2px;
    bottom: 2px;
    inset-inline-start: 0;
    width: 3px;
    background: linear-gradient(180deg, var(--primary-color), var(--accent-color));
    transform: scaleY(0.25);
    transform-origin: bottom;
    transition: transform 0.25s ease;
    border-radius: 2px;
}

.products-section .product-card:hover .product-name::before {
    transform: scaleY(1);
}

/* Icon becomes outlined token */
.products-section .product-icon {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid color-mix(in srgb, var(--primary-color) 25%, transparent);
    box-shadow: none;
    transition: border-color 0.25s ease, transform 0.25s ease;
}

.products-section .product-card:nth-child(2) .product-icon { border-color: color-mix(in srgb, var(--accent-color) 35%, transparent); color: var(--accent-color); }
.products-section .product-card:nth-child(3) .product-icon { border-color: color-mix(in srgb, var(--primary-light) 45%, transparent); color: var(--primary-light); }
.products-section .product-card:nth-child(4) .product-icon { border-color: color-mix(in srgb, var(--text-primary) 25%, transparent); color: var(--text-primary); }

.products-section .product-card:hover .product-icon {
    transform: scale(1.04);
    border-color: var(--primary-color);
}

/* Buttons → ghost then fill on hover */
.products-section .product-actions .btn.btn-primary {
    background: transparent;
    color: var(--primary-color);
    border: 1.5px solid var(--primary-color);
    box-shadow: none;
    min-height: 44px; /* fix height to avoid reflow on icon/text load */
}

.products-section .product-actions .btn.btn-primary:hover {
    background: var(--primary-color);
    color: #fff;
}

/* stabilize icon width to prevent tiny shifts on load */
.products-section .product-actions .btn i {
    width: 1em;
    display: inline-block;
    text-align: center;
}

/* Feature bullets lighter */
.products-section .product-features i { opacity: 0.9; }
.products-section .product-desc { margin-bottom: 12px; }

/* Empty state */
.no-products {
    text-align: center;
    margin-top: 24px;
    color: var(--text-secondary);
}
.no-products i { font-size: 24px; color: var(--primary-color); }
.hidden { display: none; }

/* Animations */
@keyframes prodFadeIn {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsive */
@media (max-width: 992px) {
    .products-grid {
        grid-template-columns: 1fr;
        gap: 22px;
    }
}

@media (max-width: 576px) {
    .product-features {
        grid-template-columns: 1fr;
    }
}

/* ================= Custom CTA Section ================= */
.custom-cta-section {
    position: relative;
    padding: 90px 0 100px 0;
    background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
}

.custom-cta-section .container {
    position: relative;
    z-index: 2;
}

.custom-cta-decorations {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
}

.cta-grid-pattern {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at center, rgba(255,255,255,0.05) 0%, transparent 60%),
        linear-gradient(rgba(255,255,255,0.07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.07) 1px, transparent 1px);
    background-size: 0 0, 60px 60px, 60px 60px;
    background-position: 0 0, 0 0, 0 0;
    pointer-events: none;
    opacity: 0.35;
}

.custom-cta-card {
    position: relative;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 56px 34px;
    box-shadow: 0 18px 50px rgba(0,0,0,0.18);
    text-align: center;
    overflow: hidden;
    max-width: 1100px;
    margin: 0 auto;
}

.custom-cta-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(0deg, rgba(255,255,255,0.06), rgba(255,255,255,0.06)) 0 0 / 60px 60px repeat,
        linear-gradient(90deg, rgba(255,255,255,0.06), rgba(255,255,255,0.06)) 0 0 / 60px 60px repeat;
    opacity: 0.18;
    pointer-events: none;
}

.custom-cta-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 4px;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    opacity: 0.85;
}

.custom-cta-icon {
    width: 96px;
    height: 96px;
    margin: 0 auto 16px auto;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 36px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    box-shadow: 0 10px 30px rgba(11,106,50,0.35);
    position: relative;
}

.custom-cta-icon::after {
    content: '';
    position: absolute;
    inset: -10px;
    border-radius: 50%;
    background: radial-gradient(circle at center, rgba(11,106,50,0.2) 0%, transparent 60%);
}

.custom-cta-title {
    color: var(--text-primary);
    margin: 8px 0 12px 0;
    font-weight: 900;
    font-size: 32px;
    letter-spacing: -0.3px;
}

.custom-cta-text {
    color: var(--text-secondary);
    max-width: 860px;
    margin: 0 auto 26px auto;
    line-height: 1.9;
    font-size: 17px;
}

.custom-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 22px;
    border-radius: 12px;
    box-shadow: 0 10px 28px rgba(11,106,50,0.35);
}

.custom-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 34px rgba(11,106,50,0.45);
}

@media (max-width: 768px) {
    .custom-cta-card {
        padding: 40px 24px;
        border-radius: 20px;
    }
    .custom-cta-icon {
        width: 84px;
        height: 84px;
        font-size: 30px;
    }
    .custom-cta-title { font-size: 26px; }
}

/* ================= Auto Scrolling Ticker ================= */
.products-ticker {
    position: relative;
    background: color-mix(in srgb, var(--text-primary) 10%, var(--bg-primary));
    padding: 14px 0;
    overflow: hidden;
}

.products-ticker .ticker {
    display: flex;
    gap: 60px;
}

.products-ticker .ticker-track {
    display: inline-flex;
    align-items: center;
    gap: 60px;
    white-space: nowrap;
    animation: tickerScroll 28s linear infinite;
}

[dir="rtl"] .products-ticker .ticker-track {
    animation-direction: reverse;
}

.ticker-item {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--text-primary);
    font-weight: 700;
    letter-spacing: 0.2px;
}

.ticker-icon {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: #fff;
    background: linear-gradient(135deg, var(--accent-color), #3b82f6);
    box-shadow: 0 2px 8px rgba(59,130,246,0.35);
}

.ticker-mask {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(90deg, var(--bg-primary), transparent 8%, transparent 92%, var(--bg-primary));
}

@keyframes tickerScroll {
    from { transform: translateX(0); }
    to { transform: translateX(-100%); }
}

/* =============== Project CTA + Stats =============== */
.project-cta-stats {
    position: relative;
    padding: 90px 0 40px 0;
    background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
}

/* =============== Services Cards (services.html) =============== */
.services-section {
    position: relative;
    padding: 80px 0 40px 0;
    background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
}

.services-section .container { position: relative; z-index: 2; }

.services-decorations {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.srv-box {
    position: absolute;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    opacity: 0.07;
    border-radius: 12px;
    animation: rotateFloat 16s ease-in-out infinite;
}

.srv-box-1 {
    width: 170px;
    height: 170px;
    top: 10%;
    right: 8%;
    transform: rotate(35deg);
    animation-delay: 0.4s;
}
[dir="ltr"] .srv-box-1 { right: auto; left: 8%; }

.srv-box-2 {
    width: 120px;
    height: 120px;
    bottom: 16%;
    left: 10%;
    transform: rotate(-25deg);
    animation-delay: 2.6s;
}
[dir="ltr"] .srv-box-2 { left: auto; right: 10%; }

.srv-circle {
    position: absolute;
    border: 3px dashed var(--primary-light);
    border-radius: 50%;
    opacity: 0.18;
    animation: pulseRotate 12s ease-in-out infinite;
}

.srv-circle-1 {
    width: 240px;
    height: 240px;
    top: 24%;
    right: -120px;
    animation-delay: 1.2s;
}
[dir="ltr"] .srv-circle-1 { right: auto; left: -120px; }

.srv-circle-2 {
    width: 180px;
    height: 180px;
    bottom: 14%;
    left: -100px;
    animation-delay: 2.2s;
}
[dir="ltr"] .srv-circle-2 { left: auto; right: -100px; }

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}

.service-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 18px;
    padding: 24px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: relative;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.service-card::after {
    content: '';
    position: absolute;
    top: 0;
    inset-inline-start: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}
[dir="rtl"] .service-card::after { transform-origin: right; }
.service-card:hover::after { transform: scaleX(1); }

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(0,0,0,0.12);
    border-color: var(--primary-light);
}

.service-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: #fff;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    box-shadow: 0 8px 24px rgba(11,106,50,0.35);
    margin-bottom: 6px;
    animation: iconPulse 3s ease-in-out infinite;
}
.service-icon.alt-1 { background: linear-gradient(135deg, #0ea5e9, #22d3ee); box-shadow: 0 8px 24px rgba(14,165,233,0.35); }
.service-icon.alt-2 { background: linear-gradient(135deg, #8b5cf6, #6366f1); box-shadow: 0 8px 24px rgba(99,102,241,0.35); }
.service-icon.alt-3 { background: linear-gradient(135deg, #f59e0b, #f97316); box-shadow: 0 8px 24px rgba(249,115,22,0.35); }

.service-title {
    margin: 0;
    color: var(--text-primary);
    font-weight: 800;
}

.service-desc {
    color: var(--text-secondary);
    margin: 0 0 8px 0;
    line-height: 1.9;
    min-height: 68px;
}

.service-cta {
    margin-top: auto;
    align-self: flex-start;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--text-primary);
    color: #fff;
    box-shadow: 0 8px 18px rgba(0,0,0,0.12);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.service-cta:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(0,0,0,0.18); background: var(--primary-color); }

/* in-view animation */
.service-card { opacity: 0; transform: translateY(16px); }
.service-card.in-view { animation: fadeUp 650ms ease-out forwards; }
.service-card.in-view:nth-child(2) { animation-delay: 0.1s; }
.service-card.in-view:nth-child(3) { animation-delay: 0.2s; }
.service-card.in-view:nth-child(4) { animation-delay: 0.3s; }

@keyframes iconPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.06); }
}

@media (max-width: 1200px) {
    .services-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 576px) {
    .services-grid { grid-template-columns: 1fr; }
}
.project-cta-wrapper {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 24px;
    margin-bottom: 26px;
}

.project-cta-title {
    color: var(--text-primary);
    font-weight: 900;
    letter-spacing: -0.3px;
    margin: 0 0 12px 0;
    text-align: center;
    opacity: 0;
    transform: translateY(10px);
}

.project-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 22px;
    border-radius: 12px;
    box-shadow: 0 10px 28px rgba(11,106,50,0.35);
    margin: 0 auto;
}

.project-cta-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.project-image {
    position: relative;
    width: 100%;
    max-width: 340px;
    justify-self: center;
}

.project-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 22px;
    transform: rotate(-4deg) translateY(16px) scale(0.98);
    box-shadow: 0 18px 40px rgba(0,0,0,0.15);
    opacity: 0;
}

.project-image-right img { transform: rotate(4deg); }

.project-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-top: 24px;
}

.stat-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 18px;
    padding: 22px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    opacity: 0;
    transform: translateY(14px);
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(0,0,0,0.12);
}

.stat-label {
    color: var(--text-secondary);
    display: block;
    margin-bottom: 8px;
}

.stat-value {
    color: var(--text-primary);
    font-weight: 900;
    font-size: 36px;
}

/* In-view animations */
.project-cta-title.in-view {
    animation: fadeUp 700ms ease-out forwards;
}

.project-image img.in-view {
    animation: imgReveal 800ms ease-out forwards;
}

.stat-card.in-view:nth-child(1) { animation: fadeUp 600ms ease-out 0.05s forwards; }
.stat-card.in-view:nth-child(2) { animation: fadeUp 600ms ease-out 0.15s forwards; }
.stat-card.in-view:nth-child(3) { animation: fadeUp 600ms ease-out 0.25s forwards; }
.stat-card.in-view:nth-child(4) { animation: fadeUp 600ms ease-out 0.35s forwards; }

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes imgReveal {
    0% { opacity: 0; transform: translateY(16px) scale(0.98) rotate(var(--img-rot, 0deg)); }
    100% { opacity: 1; transform: translateY(0) scale(1) rotate(var(--img-rot, 0deg)); }
}

@media (max-width: 992px) {
    .project-cta-wrapper {
        grid-template-columns: 1fr;
        gap: 18px;
    }
    .project-image { max-width: 420px; }
    .project-image img,
    .project-image-right img { transform: none; }
    .project-stats-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 576px) {
    .project-stats-grid { grid-template-columns: 1fr; }
    .stat-value { font-size: 32px; }
}
