/* Common CSS for all pages */

/* Visitor Counter Styles */
.visitor-counter {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    animation: pulse-glow 2s infinite;
}

.visitor-pulse {
    width: 8px;
    height: 8px;
    background-color: #22c55e;
    border-radius: 50%;
    margin-right: 8px;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.2); }
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3); }
    50% { box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5); }
}

/* Hamburger Menu Styles */
.hamburger {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 2rem;
    height: 2rem;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 10;
}

.hamburger span {
    width: 2rem;
    height: 0.25rem;
    background: #1f2937;
    border-radius: 10px;
    transition: all 0.3s linear;
    position: relative;
    transform-origin: 1px;
}

.hamburger.open .hamburger-top {
    transform: rotate(45deg);
}

.hamburger.open .hamburger-middle {
    opacity: 0;
}

.hamburger.open .hamburger-bottom {
    transform: rotate(-45deg);
}

/* Navigation Styles */
.nav-link {
    color: #374151;
    text-decoration: none;
    font-weight: 500;
    padding: 8px 0;
    transition: all 0.3s ease;
}

.nav-link:hover {
    color: #3b82f6;
}

/* Dropdown Menu Styles */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: white;
    min-width: 280px;
    width: max-content;
    max-width: 400px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    z-index: 1000;
    border: 1px solid #e5e7eb;
    padding: 8px 0;
    margin-top: 4px;
}

.dropdown:hover .dropdown-content {
    display: block;
    animation: dropdownFadeIn 0.3s ease-out;
}

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

.dropdown-item {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    text-decoration: none;
    color: #374151;
    transition: all 0.3s ease;
    font-weight: 500;
    border-bottom: 1px solid #f3f4f6;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dropdown-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, #e5e7eb, transparent);
    margin: 8px 0;
    border: none;
}

.dropdown-item:hover {
    background-color: #f3f4f6;
    color: #2563eb;
    transform: translateX(5px);
}

.dropdown-item i {
    margin-right: 10px;
    width: 16px;
    text-align: center;
}

/* Active dropdown arrow */
.dropdown .nav-link i.fa-chevron-down {
    transition: transform 0.3s ease;
    margin-left: 5px;
    font-size: 0.8rem;
}

.dropdown:hover .nav-link i.fa-chevron-down {
    transform: rotate(180deg);
}

.text-capgemini-blue {
    color: #0070AD;
}

/* Floating Contact Buttons with Bubble */
.floating-contact-group {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.join-group-bubble {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 12px 20px;
    border-radius: 25px;
    position: relative;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    animation: pulse 2s infinite;
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 200px;
    justify-content: center;
}

.join-group-bubble::after {
    content: '';
    position: absolute;
    bottom: -8px;
    right: 25px;
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid #764ba2;
}

.floating-buttons {
    display: flex;
    gap: 15px;
}

.floating-contact-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: white;
    font-size: 28px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    animation: float 3s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}

.floating-contact-btn:hover {
    transform: scale(1.15) translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.whatsapp-btn {
    background: #25D366;
    animation-delay: 0.5s;
}

.whatsapp-btn:hover {
    background: #128C7E;
}

.telegram-btn {
    background: #0088cc;
    animation-delay: 1s;
}

.telegram-btn:hover {
    background: #005577;
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .floating-contact-group {
        bottom: 20px;
        right: 20px;
    }

    .join-group-bubble {
        font-size: 12px;
        padding: 10px 16px;
        min-width: 180px;
    }

    .floating-contact-btn {
        width: 50px;
        height: 50px;
        font-size: 22px;
    }
    
    .floating-buttons {
        gap: 10px;
    }
    
    /* Mobile dropdown fix */
    .dropdown-content {
        position: static;
        display: none;
        min-width: 100%;
        margin-top: 8px;
        margin-bottom: 8px;
        box-shadow: none;
        border: none;
        border-left: 3px solid #3b82f6;
        padding-left: 12px;
        background-color: #f9fafb;
    }
    
    .dropdown.active .dropdown-content {
        display: block;
    }
    
    .dropdown-item {
        padding: 10px 16px;
        font-size: 14px;
    }
}

/* Back to Top Button */
#backToTop {
    transition: all 0.3s ease;
}

#backToTop:hover {
    transform: translateY(-2px);
}

/* Common utility classes */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}