:root {
    /* Orange Gradient Theme - Warm tones that complement blue-green background */
    --card-bg-start: #ffa64d;
    /* Warm Golden Orange */
    --card-bg-end: #f7931e;
    /* Brand Orange */
    --digit-bg: #1a2e35;
    /* Dark bg for digits */
    --digit-text: #f0f0f0;
    /* White text */
    --pill-bg: #ffffff;
    --pill-text: #d67a0a;
}

.counter-card-container {
    position: relative;
    width: 100%;
}

.counter-card {
    /* Orange Gradient */
    background: linear-gradient(90deg, var(--card-bg-start), var(--card-bg-end));
    padding: 30px 40px 40px 40px;
    border-radius: 40px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15), 0 0 0 8px white;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    width: 380px;
    z-index: 2;
}

/* Side notches */
.counter-card::before,
.counter-card::after {
    content: '';
    position: absolute;
    top: 50%;
    transform: translateY(-80%);
    width: 18px;
    height: 36px;
    background-color: rgba(0, 0, 0, 0.2);
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.2);
}

.counter-card::before {
    left: -4px;
    border-top-right-radius: 6px;
    border-bottom-right-radius: 6px;
    z-index: 2;
}

.counter-card::after {
    right: -4px;
    border-top-left-radius: 6px;
    border-bottom-left-radius: 6px;
    z-index: 2;
}

.counter-display {
    display: flex;
    gap: 15px;
    margin-bottom: 0;
}

/* Mechanical Flipper Styling */
.digit-box {
    width: 90px;
    height: 130px;
    background-color: var(--digit-bg);
    border-radius: 8px;
    position: relative;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
    perspective: 1000px;
    overflow: hidden;
    user-select: none;
}

/* Top half */
.digit-top {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background-color: #253b45;
    color: var(--digit-text);
    font-size: 96px;
    line-height: 130px;
    text-align: center;
    overflow: hidden;
    border-top-left-radius: 6px;
    border-top-right-radius: 6px;
    z-index: 2;
}

/* Bottom half */
.digit-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background-color: var(--digit-bg);
    color: var(--digit-text);
    font-size: 96px;
    line-height: 0;
    text-align: center;
    overflow: hidden;
    border-bottom-left-radius: 6px;
    border-bottom-right-radius: 6px;
    z-index: 1;
    display: block;
}

.digit-bottom {
    line-height: 0px;
}

.digit-top {
    line-height: 130px;
}

/* Middle Split / Mechanism */
.split-line {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background: #000;
    z-index: 10;
    margin-top: -1px;
    box-shadow: 0 1px 1px rgba(255, 255, 255, 0.1);
}

/* Side hinges */
.hinge-l,
.hinge-r {
    position: absolute;
    top: 50%;
    width: 4px;
    height: 8px;
    background: #555;
    margin-top: -4px;
    z-index: 11;
    border-radius: 2px;
}

.hinge-l {
    left: 2px;
}

.hinge-r {
    right: 2px;
}

/* Label Styling - White Background with Orange Text */
.label-pill {
    background-color: #ffffff;
    color: #cc4a00;
    /* Rich Orange Text */
    font-weight: 700;
    text-transform: uppercase;
    padding: 6px 50px;
    border-radius: 20px;
    font-size: 20px;
    letter-spacing: 1px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    position: relative;
    top: 8px;
    text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.1);
}

/* Bubble Styling */
.bubble {
    position: absolute;
    border-radius: 50%;
    z-index: 1;
    border: 2px solid white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    opacity: 0.9;
}

/* Color variations for bubbles - Orange tones */
.bubble:nth-child(odd) {
    background-color: #ffa64d;
    /* Warm Golden Orange */
}

.bubble:nth-child(even) {
    background-color: #f7931e;
    /* Brand Orange */
}

/* Pattern: Triangular Fan */
/* LEFT SIDE */
.bubble-l-1 {
    width: 14px;
    height: 14px;
    top: 50%;
    left: -5px;
    transform: translate(0, -90px);
}

.bubble-l-2 {
    width: 20px;
    height: 20px;
    top: 50%;
    left: -15px;
    transform: translate(0, -50px);
}

.bubble-l-3 {
    width: 12px;
    height: 12px;
    top: 50%;
    left: -10px;
    transform: translate(0, -20px);
}

.bubble-l-4 {
    width: 18px;
    height: 18px;
    top: 50%;
    left: -8px;
    transform: translate(0, 30px);
}

.bubble-l-5 {
    width: 10px;
    height: 10px;
    top: 50%;
    left: -18px;
    transform: translate(0, 60px);
}

.bubble-l-6 {
    width: 22px;
    height: 22px;
    top: 50%;
    left: -40px;
    transform: translate(0, -35px);
}

.bubble-l-7 {
    width: 8px;
    height: 8px;
    top: 50%;
    left: -55px;
    transform: translate(0, 0px);
}

.bubble-l-8 {
    width: 15px;
    height: 15px;
    top: 50%;
    left: -35px;
    transform: translate(0, 25px);
}

.bubble-l-9 {
    width: 11px;
    height: 11px;
    top: 50%;
    left: -80px;
    transform: translate(0, -15px);
}

.bubble-l-10 {
    width: 16px;
    height: 16px;
    top: 50%;
    left: -90px;
    transform: translate(0, 10px);
}

.bubble-l-11 {
    width: 7px;
    height: 7px;
    top: 50%;
    left: -110px;
    transform: translate(0, -5px);
}

.bubble-l-12 {
    width: 5px;
    height: 5px;
    top: 50%;
    left: -125px;
    transform: translate(0, 0px);
}

/* RIGHT SIDE */
.bubble-r-1 {
    width: 14px;
    height: 14px;
    top: 50%;
    right: -5px;
    transform: translate(0, -90px);
}

.bubble-r-2 {
    width: 20px;
    height: 20px;
    top: 50%;
    right: -15px;
    transform: translate(0, -50px);
}

.bubble-r-3 {
    width: 12px;
    height: 12px;
    top: 50%;
    right: -10px;
    transform: translate(0, -20px);
}

.bubble-r-4 {
    width: 18px;
    height: 18px;
    top: 50%;
    right: -8px;
    transform: translate(0, 30px);
}

.bubble-r-5 {
    width: 10px;
    height: 10px;
    top: 50%;
    right: -18px;
    transform: translate(0, 60px);
}

.bubble-r-6 {
    width: 22px;
    height: 22px;
    top: 50%;
    right: -40px;
    transform: translate(0, -35px);
}

.bubble-r-7 {
    width: 8px;
    height: 8px;
    top: 50%;
    right: -55px;
    transform: translate(0, 0px);
}

.bubble-r-8 {
    width: 15px;
    height: 15px;
    top: 50%;
    right: -35px;
    transform: translate(0, 25px);
}

.bubble-r-9 {
    width: 11px;
    height: 11px;
    top: 50%;
    right: -80px;
    transform: translate(0, -15px);
}

.bubble-r-10 {
    width: 16px;
    height: 16px;
    top: 50%;
    right: -90px;
    transform: translate(0, 10px);
}

.bubble-r-11 {
    width: 7px;
    height: 7px;
    top: 50%;
    right: -110px;
    transform: translate(0, -5px);
}

.bubble-r-12 {
    width: 5px;
    height: 5px;
    top: 50%;
    right: -125px;
    transform: translate(0, 0px);
}

/* Responsive adjustments for hero section - Medium screens (75%) */
@media (max-width: 991px) {
    .counter-card-container {
        padding: 20px;
    }
    
    .counter-card {
        width: 100%;
        max-width: 285px;
        padding: 22px 30px 30px 30px;
        border-radius: 30px;
    }
    
    .counter-display {
        gap: 11px;
    }
    
    .digit-box {
        width: 68px;
        height: 98px;
        border-radius: 6px;
    }
    
    .digit-top,
    .digit-bottom {
        font-size: 72px;
    }
    
    .digit-top {
        line-height: 98px;
        border-top-left-radius: 5px;
        border-top-right-radius: 5px;
    }
    
    .digit-bottom {
        border-bottom-left-radius: 5px;
        border-bottom-right-radius: 5px;
    }
    
    .split-line {
        height: 2px;
    }
    
    .counter-card::before,
    .counter-card::after {
        width: 14px;
        height: 27px;
    }
    
    .hinge-l,
    .hinge-r {
        width: 3px;
        height: 6px;
        margin-top: -3px;
    }
}

/* Responsive adjustments for hero section - Small screens (60%) */
@media (max-width: 767px) {
    .counter-card-container {
        padding: 15px;
    }
    
    .counter-card {
        width: 100%;
        max-width: 228px;
        padding: 18px 24px 24px 24px;
        border-radius: 24px;
    }
    
    .counter-display {
        gap: 9px;
    }
    
    .digit-box {
        width: 54px;
        height: 78px;
        border-radius: 5px;
    }
    
    .digit-top,
    .digit-bottom {
        font-size: 58px;
    }
    
    .digit-top {
        line-height: 78px;
        border-top-left-radius: 4px;
        border-top-right-radius: 4px;
    }
    
    .digit-bottom {
        border-bottom-left-radius: 4px;
        border-bottom-right-radius: 4px;
    }
    
    .split-line {
        height: 1px;
    }
    
    .counter-card::before,
    .counter-card::after {
        width: 11px;
        height: 22px;
    }
    
    .hinge-l,
    .hinge-r {
        width: 2px;
        height: 5px;
        margin-top: -2.5px;
    }
}
