/* Counter Section - Modern Animated Design */

.counter-section {
    background: linear-gradient(135deg, #f9f7f3 0%, #ffffff 100%);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

/* Background Pattern */
.counter-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(212, 165, 116, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(212, 165, 116, 0.06) 0%, transparent 50%);
    pointer-events: none;
}

.counter-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #d4a574, transparent);
}

/* Counter Container */
.counter-wrapper {
    position: relative;
    z-index: 2;
}

.counter-header {
    text-align: center;
    margin-bottom: 60px;
    animation: fadeInDown 0.8s ease-out;
}

.counter-header h2 {
    font-size: 42px;
    color: #2c1810;
    font-weight: 600;
    margin-bottom: 15px;
    font-family: 'Raleway', sans-serif;
    letter-spacing: 1px;
}

.counter-header p {
    font-size: 16px;
    color: #888;
    margin: 0;
    font-style: italic;
}

.counter-header .header-divider {
    width: 80px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #d4a574, transparent);
    margin: 20px auto 0;
}

/* Counter Grid */
.counter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 20px;
}

/* Counter Card */
.counter-card {
    text-align: center;
    position: relative;
    padding: 40px;
    border-radius: 8px;
    background: #ffffff;
    border: 1px solid #e8e3d8;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    overflow: hidden;
    animation: fadeInUp 0.6s ease-out;
}

.counter-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #d4a574 0%, #c99560 50%, #d4a574 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.counter-card:hover::before {
    transform: scaleX(1);
}

.counter-card:hover {
    background: #fdfcfa;
    border-color: #d4a574;
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(212, 165, 116, 0.15);
}

/* Counter Stagger Animation */
.counter-card:nth-child(1) {
    animation-delay: 0.1s;
}

.counter-card:nth-child(2) {
    animation-delay: 0.2s;
}

.counter-card:nth-child(3) {
    animation-delay: 0.3s;
}

.counter-card:nth-child(4) {
    animation-delay: 0.4s;
}

/* Counter Icon */
.counter-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    background: linear-gradient(135deg, #d4a574 0%, #c99560 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    color: #ffffff;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    box-shadow: 0 10px 30px rgba(212, 165, 116, 0.3);
}

.counter-icon::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.4), transparent);
    pointer-events: none;
}

.counter-card:hover .counter-icon {
    transform: scale(1.15) rotate(-10deg);
    box-shadow: 0 15px 40px rgba(212, 165, 116, 0.4);
}

/* Counter Number */
.counter-number {
    font-size: 48px;
    font-weight: 700;
    color: #d4a574;
    margin-bottom: 10px;
    font-family: 'Raleway', sans-serif;
    letter-spacing: 2px;
    transition: color 0.3s ease;
    position: relative;
    z-index: 2;
}

.counter-number::before {
    content: '+';
    margin-right: 5px;
}

.counter-card:hover .counter-number {
    color: #c99560;
}

/* Counter Title */
.counter-title {
    font-size: 18px;
    color: #2c1810;
    margin: 0 0 10px 0;
    font-weight: 600;
    font-family: 'Raleway', sans-serif;
    transition: color 0.3s ease;
}

.counter-card:hover .counter-title {
    color: #d4a574;
}

/* Counter Description */
.counter-description {
    font-size: 13px;
    color: #888;
    line-height: 1.6;
    margin: 0;
    transition: color 0.3s ease;
}

.counter-card:hover .counter-description {
    color: #666;
}

/* Bottom Accent Line */
.counter-bottom-accent {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #d4a574, #c99560);
    transition: width 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.counter-card:hover .counter-bottom-accent {
    width: 60%;
}

/* Counter Stats Section */
.counter-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid #e8e3d8;
}

.counter-stat-item {
    text-align: center;
    animation: fadeInUp 0.8s ease-out 0.5s both;
}

.counter-stat-icon {
    font-size: 32px;
    color: #d4a574;
    margin-bottom: 12px;
    transition: all 0.3s ease;
}

.counter-stat-item:hover .counter-stat-icon {
    transform: scale(1.2) rotate(10deg);
}

.counter-stat-value {
    font-size: 32px;
    font-weight: 700;
    color: #2c1810;
    margin-bottom: 8px;
    font-family: 'Raleway', sans-serif;
}

.counter-stat-label {
    font-size: 14px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* CTA Section */
.counter-cta-section {
    text-align: center;
    margin-top: 60px;
    padding: 40px;
    background: linear-gradient(135deg, #d4a574 0%, #c99560 100%);
    border: none;
    border-radius: 8px;
    animation: fadeInUp 1s ease-out 0.6s both;
}

.counter-cta-text {
    font-size: 20px;
    color: #ffffff;
    margin-bottom: 20px;
    font-weight: 500;
}

.counter-cta-text .highlight {
    color: #2c1810;
    font-weight: 700;
}

.counter-cta-button {
    display: inline-block;
    padding: 15px 45px;
    background: #2c1810;
    color: #d4a574;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 14px;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: 2px solid #2c1810;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
}

.counter-cta-button:hover {
    background: transparent;
    color: #2c1810;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .counter-grid {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        gap: 30px;
    }

    .counter-card {
        padding: 35px;
    }

    .counter-header h2 {
        font-size: 36px;
    }

    .counter-icon {
        width: 70px;
        height: 70px;
        font-size: 32px;
    }

    .counter-number {
        font-size: 42px;
    }
}

@media (max-width: 768px) {
    .counter-section {
        padding: 60px 0;
    }

    .counter-header {
        margin-bottom: 40px;
    }

    .counter-header h2 {
        font-size: 28px;
    }

    .counter-grid {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        gap: 20px;
    }

    .counter-card {
        padding: 30px 20px;
    }

    .counter-icon {
        width: 65px;
        height: 65px;
        font-size: 28px;
        margin-bottom: 20px;
    }

    .counter-number {
        font-size: 36px;
    }

    .counter-title {
        font-size: 16px;
    }

    .counter-description {
        font-size: 12px;
    }

    .counter-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .counter-stat-value {
        font-size: 24px;
    }

    .counter-cta-text {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .counter-section {
        padding: 40px 0;
    }

    .counter-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .counter-card {
        padding: 25px 20px;
    }

    .counter-header h2 {
        font-size: 24px;
    }

    .counter-icon {
        width: 60px;
        height: 60px;
        font-size: 24px;
    }

    .counter-number {
        font-size: 32px;
    }

    .counter-title {
        font-size: 14px;
    }

    .counter-description {
        font-size: 11px;
    }

    .counter-stats {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .counter-stat-value {
        font-size: 20px;
    }

    .counter-stat-label {
        font-size: 12px;
    }

    .counter-cta-button {
        padding: 12px 35px;
        font-size: 12px;
    }
}
