/* ===== КНОПКИ ТА ПЕРЕМИКАЧІ ===== */
.btn-primary {
    padding: 0.25rem 0.75rem !important;
    font-size: 0.9rem !important;
}

.nav-switch-container {
    display: flex;
    background: rgba(240, 240, 240, 0.8);
    border-radius: 50px;
    padding: 3px;
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 2px 4px rgba(0, 0, 0, 0.05),
        inset 0 1px 2px rgba(255, 255, 255, 0.8);
    transition: box-shadow 0.3s ease;
}

.nav-switch-container:hover {
    box-shadow: 
        0 4px 10px rgba(0, 0, 0, 0.1),
        inset 0 1px 2px rgba(255, 255, 255, 0.9);
}

.nav-switch-btn {
    min-width: 120px;
    padding: 0.7rem 1.8rem !important;
    font-size: 1.1rem !important;
    text-decoration: none;
    color: #333;
    font-weight: 500;
    text-align: center;
    position: relative;
    border: none;
    background: none;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 1;    
}

.left-btn {
    border-top-left-radius: 50px;
    border-bottom-left-radius: 50px;
}

.right-btn {
    border-top-right-radius: 50px;
    border-bottom-right-radius: 50px;
}

.nav-divider {
    width: 1px;
    background: rgba(0, 0, 0, 0.15);
    margin: 5px 0;
    z-index: 2;
}

.nav-switch-btn.active {
    color: white;
    cursor: default;
    background:linear-gradient(to bottom, #5a5a5a, #3a3a3a);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 3;
    animation: switchAnimation 0.6s ease;
}

.nav-switch-btn:not(.active):hover {
    transform: translateY(-2px);
    color: #0d6efd;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    background: rgba(224, 224, 224, 0.7);
    z-index: 2;
}

.application-btn-container .btn {
    min-width: 120px;
    padding: 0.7rem 1.8rem !important;
    font-size: 1.1rem !important;
    border-radius: 30px !important;
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    border: none;
    color: white;
    box-shadow: 0 4px 15px rgba(37, 117, 252, 0.3);
    transition:  all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.application-btn-container .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 7px 20px rgba(37, 117, 252, 0.4);
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 70%);
}

.application-btn-container .btn:active {
    transform: translateY(1px);
    box-shadow: 0 2px 10px rgba(37, 117, 252, 0.3);
}

.application-btn-container .btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 30px;
    animation: pulse 2s infinite;
    opacity: 0.7;
    z-index: -1;
}

.application-btn-container .btn::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: rgba(255, 255, 255, 0.1);
    transform: rotate(30deg);
    transition: all 0.8s;
    opacity: 0;
}

.application-btn-container .btn:hover::before {
    opacity: 1;
    top: -30%;
    left: -30%;
}

/*Стиль для плаваючої кнопки*/
.floating-btn{
    position: relative;
    z-index: 2;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    box-shadow: 0 4px 15px rgba(37, 17, 252, 0.3);
    transition: 
        transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275),
        opacity 0.5s ease;
    cursor: pointer;
    will-change: transform, opacity;
}
.floating-btn:hover {
    transform: scale(1.1) rotate(10deg);
    box-shadow: 0 7px 20px rgba(37, 117, 252, 0.4);
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 70%);
}

.floating-btn:not(.hidden) {
    opacity: 1;
    transform: scale(1) rotate(0deg);
    transition: 
        transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275),
        opacity 0.5s ease;
}

.floating-btn.hidden {
    opacity: 0;
    transform: scale(0) rotate(30deg);
    pointer-events: none;
}

.contact-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
}

.contact-popup {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 70px;
    height: 70px;
    overflow: hidden;
    background: white;
    border-radius: 50%;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    transition: 
        width 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55),
        height 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55),
        border-radius 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55),
        transform 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55),
        opacity 0.5s ease;
    opacity: 0;
    transform: scale(0.1);
    transform-origin: bottom right;
    z-index: 1;
    will-change: width, height, border-radius, transform, opacity;
}

.contact-popup.active {
    width: 300px;
    height: 250px;
    border-radius: 20px;
    opacity: 1;
    transform: scale(1);
    z-index: 3;
}

.contact-popup.closing {
    animation: scaleOut 0.5s forwards;
}

.popup-content {
    font-size: 1rem;
    line-height: 1.2;
    padding: 10px;
    opacity: 0;
    transition: opacity 0.5s ease;
    will-change: opacity;
    color: #1e293b;
}

.popup-content h4 {
    text-align: center;
    padding-bottom: 10px;
}

.popup-content.visible {
    opacity: 1;
}

.popup-content.hiding {
    opacity: 0;
    transition: opacity 0.3s ease;
} 

/* Кнопка для соц мереж */
.social-icons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(40px, 1fr));
    gap: 15px;
    margin-top: 20px;
    justify-content: center;
}

.social-icon {
    font-size: 1.25rem;
    text-decoration: none;
    transition: all 0.4s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color:  #486079;
    color: #ffffff;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-icon:hover {
    color: #2c3e50;
    background-color: #ecf0f1;
    transform: translateY(-3px);
}

.social-icon.instagram:hover {background-color: #e1306c;}

.social-icon.facebook:hover {background-color: #1877f2;}

.social-icon.linkedin:hover {background-color: #0077b5;}

.social-icon.tiktok:hover {background-color:#000000; color: #ffffff;}