/* Floating Action Button Styles */
.fab-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
}

.fab {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    position: relative;
    z-index: 10000;
    animation: pulse 2s infinite;
}

.fab:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-hover);
    animation: none;
}

.fab i {
    color: white;
    font-size: 28px;
    transition: transform 0.3s ease;
}

.fab.active i {
    transform: rotate(45deg);
}

/* Pulse Animation */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(52, 152, 219, 0.7);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(52, 152, 219, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(52, 152, 219, 0);
    }
}

/* Action Buttons */
.action-buttons {
    position: absolute;
    bottom: 90px;
    right: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 15px;
    opacity: 0;
    pointer-events: none;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55);
    z-index: 9998;
}

.fab-container.active .action-buttons {
    opacity: 1;
    pointer-events: all;
    transform: translateY(-10px);
}

.action-btn {
    display: flex;
    align-items: center;
    background: var(--surface-color);
    padding: 12px 20px;
    border-radius: 50px;
    box-shadow: var(--shadow);
    cursor: pointer;
    transition: all 0.3s ease;
    transform: translateX(20px);
    opacity: 0;
    text-decoration: none;
    color: var(--text-color);
    height: 50px;
    z-index: 9997;
}

.fab-container.active .action-btn {
    transform: translateX(0);
    opacity: 1;
}

.action-btn:nth-child(1) { transition-delay: 0.05s; }
.action-btn:nth-child(2) { transition-delay: 0.1s; }
.action-btn:nth-child(3) { transition-delay: 0.15s; }
.action-btn:nth-child(4) { transition-delay: 0.2s; }

.action-btn:hover {
    transform: translateX(-5px) !important;
    box-shadow: var(--shadow-hover);
}

.action-btn i {
    font-size: 20px;
    margin-right: 10px;
    width: 24px;
    text-align: center;
}

.action-btn span {
    font-weight: 600;
    white-space: nowrap;
}

.whatsapp { color: #25D366; }
.admissions { color: var(--primary-color); }
.contact { color: #9b59b6; }
.facebook { color: #3b5998; }

/* Overlay */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 9996;
}

.fab-container.active ~ .overlay {
    opacity: 1;
    pointer-events: all;
}

/* Responsive */
@media (max-width: 768px) {
    .fab {
        width: 60px;
        height: 60px;
    }
    
    .fab i {
        font-size: 24px;
    }
    
    .action-btn {
        padding: 10px 16px;
        font-size: 14px;
    }
}