.logo_s{
    width:12%;
}
.font_h{
    background-color: #be0b32;
}
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: #BE0B32;
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    overflow: hidden;
    transition: all 0.4s ease;
}

.airplane-icon {
    font-size: 20px;
    position: relative;
    z-index: 2;
}

.launch-trail {
    position: absolute;
    bottom: -100%;
    left: 50%;
    width: 2px;
    height: 100%;
    background: rgba(255, 255, 255, 0.6);
    transform: translateX(-50%);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top.show .airplane-icon {
    animation: launchPlane 1s ease infinite;
}

.back-to-top.show .launch-trail {
    animation: launchTrail 1s ease infinite;
}

@keyframes launchPlane {
    0% {
        transform: translateY(0) rotate(-0deg);
    }
    50% {
        transform: translateY(-15px) rotate(0deg);
    }
    100% {
        transform: translateY(0) rotate(0deg);
    }
}

@keyframes launchTrail {
    0% {
        height: 0;
        opacity: 0;
    }
    50% {
        height: 100%;
        opacity: 0.6;
    }
    100% {
        height: 0;
        opacity: 0;
    }
}

.back-to-top:hover {
    background-color: #9a0929;
    transform: scale(1.1);
    box-shadow: 0 6px 15px rgba(190, 11, 50, 0.3);
}

@media (max-width: 768px) {
    .back-to-top {
        width: 40px;
        height: 40px;
    }
    
    .airplane-icon {
        font-size: 16px;
    }
}

/* Gallery Filter Buttons */
.btn-group-custom {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.filter-btn {
    display: inline-block;
    background: #ffffff;
    border: 2px solid #e0e0e0;
    padding: 12px 25px;
    border-radius: 30px;
    color: #333;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.filter-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary-color, #007bff);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: -1;
}

.filter-btn:hover::before,
.filter-btn.active::before {
    transform: translateX(0);
}

.filter-btn:hover,
.filter-btn.active {
    color: #ffffff;
    border-color: var(--primary-color, #007bff);
    text-decoration: none;
}

.btn-text {
    position: relative;
    z-index: 1;
}

/* Gallery Container */
.gallery-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    padding: 20px 0;
}

.gallery-item {
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-filter {
    display: inline-block;
    padding: 10px 25px;
    margin: 0 5px 10px;
    border: 1px solid var(--primary);
    color: var(--primary);
    font-weight: 500;
    text-transform: uppercase;
    transition: .5s;
    text-decoration: none;
    border-radius: 30px;
}

.gallery-filter:hover,
.gallery-filter.active {
    color: #700b0b;
    background: var(--primary);
}

.portfolio-item {
    margin-bottom: 30px;
}

.portfolio-overlay {
    position: absolute;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    opacity: 0;
    background: rgba(0, 0, 0, .5);
    transition: .5s;
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}