/* Uptime Section Styles */
.uptime-section {
    padding: 60px 0;
    position: relative;
    overflow: visible;
    height: 500px;
    min-height: 500px;
    max-height: 500px;
}

.uptime-section .row {
    height: 100%;
    min-height: 380px;
}

.uptime-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background-image: url('../img/animations/uptime-bg.avif');
    background-position: center center;
    background-size: 100% 100%;
    background-repeat: no-repeat;
    z-index: 0;
}

.uptime-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.75) 0%, rgba(15, 15, 35, 0.75) 100%),
                linear-gradient(180deg, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.6) 100%);
    z-index: 1;
}

.uptime-chart-wrapper {
    position: relative;
    padding: 70px 20px 100px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 100%;
    overflow: visible;
}

.uptime-chart {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    height: 300px;
    position: relative;
    padding-bottom: 50px;
    padding-top: 80px;
    margin: 0 auto;
    width: 100%;
}

.chart-bar {
    flex: 1;
    max-width: 160px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    justify-content: flex-end;
    height: 100%;
    overflow: visible;
}

.chart-bar-featured {
    flex: 1.2;
    max-width: 180px;
    overflow: visible;
}

.bar-fill {
    width: 100%;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 8px 8px 0 0;
    position: relative;
    transition: all 0.6s ease;
    animation: barGrow 1.2s ease-out;
    min-height: 50px;
}

.chart-bar-featured .bar-fill-featured {
    background: linear-gradient(180deg, var(--orange-color) 0%, #E3B537 100%);
    box-shadow: 0 0 25px rgba(251, 143, 64, 0.6);
    height: 100% !important;
    min-height: 280px;
}

.bar-label {
    position: absolute;
    top: -65px;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    font-family: var(--font-m);
    font-weight: 700;
    font-size: 18px;
    white-space: nowrap;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
    z-index: 10;
    pointer-events: none;
}

.chart-bar-featured .bar-label {
    color: var(--orange-color);
    font-size: 24px;
    font-weight: 900;
    text-shadow: 0 0 15px rgba(251, 143, 64, 1);
    top: -150px;
}

.bar-category {
    position: absolute;
    bottom: -45px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.95);
    font-family: var(--font-m);
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    z-index: 5;
}

.chart-bar-featured .bar-category {
    bottom: -60px;
}

.chart-bar-featured .bar-category .uptime-logo-img {
    margin-top: 0;
}

.bar-category .uptime-logo-img {
    max-width: 120px;
    height: auto;
    filter: brightness(1.2) drop-shadow(0 2px 8px rgba(0, 0, 0, 0.5));
    display: block !important;
    margin-top: 8px;
    opacity: 1 !important;
    visibility: visible !important;
    position: relative;
    z-index: 10;
}

.chart-bar-featured .bar-category .uptime-logo-img {
    max-width: 150px;
}

.uptime-content {
    padding: 40px 20px;
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 100%;
}

.uptime-heading {
    font-family: var(--font-m);
    font-size: 42px;
    font-weight: 900;
    color: #fff;
    line-height: 1.2;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.uptime-heading-highlight {
    color: var(--orange-color);
    display: block;
    font-size: 48px;
    text-shadow: 0 0 15px rgba(251, 143, 64, 0.6);
}

.uptime-text {
    font-family: var(--font-m);
    font-size: 16px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
}

@keyframes barGrow {
    from {
        height: 0;
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .uptime-section {
        padding: 50px 0;
    }
    .uptime-heading {
        font-size: 36px;
    }
    .uptime-heading-highlight {
        font-size: 42px;
    }
    .uptime-text {
        font-size: 15px;
    }
}

@media (max-width: 991px) {
    .uptime-section {
        padding: 45px 0;
    }
    .uptime-heading {
        font-size: 32px;
    }
    .uptime-heading-highlight {
        font-size: 38px;
    }
    .uptime-text {
        font-size: 15px;
    }
}

@media (max-width: 768px) {
    .uptime-section {
        padding: 35px 0 100px 0 !important;
        height: auto !important;
        min-height: auto !important;
        max-height: none !important;
        margin-bottom: 30px;
    }
    .uptime-section .row {
        min-height: auto !important;
        height: auto !important;
        flex-direction: column;
    }
    .uptime-section .col-lg-5,
    .uptime-section .col-lg-7 {
        width: 100% !important;
        max-width: 100% !important;
        flex: 0 0 100% !important;
        margin-bottom: 25px;
        padding-left: 15px;
        padding-right: 15px;
    }
    .uptime-chart-wrapper {
        padding: 30px 15px 105px !important;
        margin-bottom: 20px;
        min-height: auto !important;
        height: auto !important;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    .chart-bar-featured .bar-category {
        bottom: -50px;
    }
    .uptime-content {
        padding: 30px 15px !important;
        margin-top: 0 !important;
        min-height: auto !important;
        height: auto !important;
    }
    .uptime-chart {
        height: 220px !important;
        gap: 12px;
        padding-bottom: 55px;
        padding-top: 70px;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        min-width: 400px;
    }
    .chart-bar {
        max-width: 90px !important;
        min-width: 75px !important;
        flex: 0 0 auto !important;
    }
    .chart-bar-featured {
        max-width: 100px !important;
        min-width: 85px !important;
        flex: 0 0 auto !important;
    }
    .chart-bar-featured .bar-fill-featured {
        min-height: 200px !important;
        height: 100% !important;
    }
    .bar-label {
        font-size: 15px;
        top: -60px;
    }
    .chart-bar-featured .bar-label {
        font-size: 20px;
        top: -65px;
    }
    .bar-category {
        font-size: 12px;
        bottom: -40px;
    }
    .uptime-heading {
        font-size: 32px;
        margin-bottom: 15px;
    }
    .uptime-heading-highlight {
        font-size: 38px;
    }
    .uptime-text {
        font-size: 15px;
    }
    .bar-category .uptime-logo-img {
        max-width: 100px;
    }
    .chart-bar-featured .bar-category .uptime-logo-img {
        max-width: 120px;
    }
}

@media (max-width: 575px) {
    .uptime-section {
        padding: 30px 0 110px 0 !important;
        height: auto !important;
        min-height: auto !important;
        max-height: none !important;
        margin-bottom: 40px;
    }
    .uptime-section .row {
        min-height: auto !important;
        height: auto !important;
        flex-direction: column;
    }
    .uptime-section .col-lg-5,
    .uptime-section .col-lg-7 {
        width: 100% !important;
        max-width: 100% !important;
        flex: 0 0 100% !important;
        margin-bottom: 25px;
        padding-left: 15px;
        padding-right: 15px;
    }
    .uptime-chart-wrapper {
        padding: 25px 10px 95px !important;
        margin-bottom: 25px;
        min-height: auto !important;
        height: auto !important;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    .chart-bar-featured .bar-category {
        bottom: -45px;
    }
    .uptime-content {
        padding: 25px 15px !important;
        margin-top: 0 !important;
        min-height: auto !important;
        height: auto !important;
    }
    .uptime-chart {
        height: 200px !important;
        gap: 10px;
        padding-bottom: 50px;
        padding-top: 60px;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        min-width: 360px;
    }
    .chart-bar {
        max-width: 75px !important;
        min-width: 65px !important;
        flex: 0 0 auto !important;
    }
    .chart-bar-featured {
        max-width: 85px !important;
        min-width: 75px !important;
        flex: 0 0 auto !important;
    }
    .chart-bar-featured .bar-fill-featured {
        min-height: 190px !important;
        height: 100% !important;
    }
    .bar-label {
        font-size: 13px;
        top: -55px;
    }
    .chart-bar-featured .bar-label {
        font-size: 17px;
        top: -60px;
    }
    .bar-category {
        font-size: 11px;
        bottom: -38px;
    }
    .uptime-heading {
        font-size: 26px;
        margin-bottom: 15px;
    }
    .uptime-heading-highlight {
        font-size: 30px;
    }
    .uptime-text {
        font-size: 14px;
    }
    .bar-category .uptime-logo-img {
        max-width: 80px;
    }
    .chart-bar-featured .bar-category .uptime-logo-img {
        max-width: 100px;
    }
}

@media (max-width: 375px) {
    .uptime-section {
        padding: 25px 0 130px 0 !important;
        height: auto !important;
        min-height: auto !important;
        max-height: none !important;
        margin-bottom: 50px;
    }
    .uptime-section .row {
        min-height: auto !important;
        height: auto !important;
        flex-direction: column;
    }
    .uptime-section .col-lg-5,
    .uptime-section .col-lg-7 {
        width: 100% !important;
        max-width: 100% !important;
        flex: 0 0 100% !important;
        margin-bottom: 25px;
        padding-left: 15px;
        padding-right: 15px;
    }
    .uptime-chart-wrapper {
        padding: 20px 10px 85px !important;
        margin-bottom: 25px;
        min-height: auto !important;
        height: auto !important;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    .uptime-chart {
        height: 180px !important;
        gap: 8px;
        padding-top: 50px;
        padding-bottom: 50px;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        min-width: 320px;
    }
    .chart-bar {
        max-width: 70px !important;
        min-width: 60px !important;
        flex: 0 0 auto !important;
    }
    .chart-bar-featured {
        max-width: 80px !important;
        min-width: 70px !important;
        flex: 0 0 auto !important;
    }
    .chart-bar-featured .bar-fill-featured {
        min-height: 160px !important;
        height: 100% !important;
    }
    .bar-label {
        font-size: 12px;
        top: -45px;
        white-space: nowrap;
    }
    .chart-bar-featured .bar-label {
        font-size: 15px;
        top: -50px;
    }
    .bar-category {
        font-size: 9px;
        bottom: -35px;
        white-space: nowrap;
    }
    .uptime-content {
        padding: 25px 15px !important;
        margin-top: 0 !important;
        min-height: auto !important;
        height: auto !important;
    }
    .uptime-heading {
        font-size: 22px;
        margin-bottom: 12px;
        line-height: 1.3;
    }
    .uptime-heading-highlight {
        font-size: 28px;
        display: block;
        margin-top: 5px;
    }
    .uptime-text {
        font-size: 13px;
        line-height: 1.6;
        margin-bottom: 0;
    }
    .bar-category .uptime-logo-img {
        max-width: 70px !important;
        height: auto;
    }
    .chart-bar-featured .bar-category {
        bottom: -55px;
    }
    .chart-bar-featured .bar-category .uptime-logo-img {
        max-width: 90px !important;
        height: auto;
    }
}
