/* Air Based Background Switcher - Main Styles */

.abbs-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Background Layers */
.abbs-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s ease, visibility 0s 0.6s;
    pointer-events: none;
}

.abbs-background::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3);
    pointer-events: none;
    border-radius: inherit;
}

.abbs-background.active {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.6s ease, visibility 0s 0s;
    z-index: 2;
}

.abbs-background:not(.active) {
    z-index: 1;
}

/* Animation Classes - Content stays visible, only background animates */
.abbs-background.anim-fade {
    animation: abbsFadeIn 0.6s ease forwards;
}

.abbs-background.anim-zoom {
    animation: abbsZoomIn 0.6s ease forwards;
}

.abbs-background.anim-zoom-out {
    animation: abbsZoomOut 0.6s ease forwards;
}

.abbs-background.anim-slide-left {
    animation: abbsSlideLeft 0.6s ease forwards;
}

.abbs-background.anim-slide-right {
    animation: abbsSlideRight 0.6s ease forwards;
}

.abbs-background.anim-slide-up {
    animation: abbsSlideUp 0.6s ease forwards;
}

.abbs-background.anim-slide-down {
    animation: abbsSlideDown 0.6s ease forwards;
}

.abbs-background.anim-rotate {
    animation: abbsRotate 0.6s ease forwards;
}

/* Keyframe Animations */
@keyframes abbsFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes abbsZoomIn {
    from {
        opacity: 0;
        transform: scale(1.2);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes abbsZoomOut {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes abbsSlideLeft {
    from {
        opacity: 0;
        transform: translateX(100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes abbsSlideRight {
    from {
        opacity: 0;
        transform: translateX(-100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

@keyframes abbsSlideDown {
    from {
        opacity: 0;
        transform: translateY(-100px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes abbsRotate {
    from {
        opacity: 0;
        transform: rotate(-10deg) scale(0.9);
    }
    to {
        opacity: 1;
        transform: rotate(0deg) scale(1);
    }
}

/* Responsive animation adjustments */
@media (max-width: 768px) {
    @keyframes abbsSlideLeft {
        from {
            opacity: 0;
            transform: translateX(50px);
        }
        to {
            opacity: 1;
            transform: translateX(0);
        }
    }

    @keyframes abbsSlideRight {
        from {
            opacity: 0;
            transform: translateX(-50px);
        }
        to {
            opacity: 1;
            transform: translateX(0);
        }
    }

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

    @keyframes abbsSlideDown {
        from {
            opacity: 0;
            transform: translateY(-50px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
}

/* Content Layer */
.abbs-content {
    position: relative;
    z-index: 100;
    width: 100%;
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    pointer-events: none; /* Content layer itself doesn't block interactions */
}

.abbs-content * {
    pointer-events: auto; /* But child elements can be interactive */
}

/* Main Title */
.abbs-main-title {
    font-size: 72px;
    font-weight: 700;
    color: #ffffff;
    text-align: center;
    margin: 0 0 60px 0;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
    line-height: 1.2;
}

/* Items Container */
.abbs-items-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
    gap: 20px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Hover Items */
.abbs-hover-item {
    flex: 1;
    min-width: 250px;
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    padding: 30px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    z-index: 101;
}

.abbs-hover-item:hover {
    background-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    z-index: 102;
}

.abbs-item-content {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    text-align: center;
    position: relative;
    z-index: 1;
}

/* Item Icon */
.abbs-item-icon {
    font-size: 48px;
    margin-bottom: 15px;
    color: #ffffff;
    transition: transform 0.3s ease;
    will-change: transform;
}

.abbs-hover-item:hover .abbs-item-icon {
    transform: scale(1.1);
}

.abbs-item-icon i,
.abbs-item-icon svg {
    display: block;
}

/* Item Title */
.abbs-item-title {
    font-size: 18px;
    font-weight: 600;
    color: #ffffff;
    margin: 10px 0;
    line-height: 1.4;
    transition: color 0.3s ease;
}

/* Item Description */
.abbs-item-description {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    margin: 5px 0 0 0;
    line-height: 1.6;
    transition: color 0.3s ease;
}

/* Responsive */
@media (max-width: 1024px) {
    .abbs-main-title {
        font-size: 56px;
        margin-bottom: 40px;
    }
    
    .abbs-hover-item {
        min-width: 200px;
    }
}

@media (max-width: 768px) {
    .abbs-main-title {
        font-size: 42px;
        margin-bottom: 30px;
    }
    
    .abbs-items-container {
        flex-direction: column;
    }
    
    .abbs-hover-item {
        min-width: 100%;
        padding: 20px;
    }
    
    .abbs-item-icon {
        font-size: 40px;
    }
    
    .abbs-item-title {
        font-size: 16px;
    }
    
    .abbs-item-description {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .abbs-main-title {
        font-size: 32px;
        margin-bottom: 20px;
        letter-spacing: 1px;
    }
    
    .abbs-content {
        padding: 20px 15px;
    }
}
