/* Global Styles */

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Better transitions */
.transition-colors {
    transition: all 0.3s ease;
}

/* Scrollbar styles */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Cursor styles */
body {
    cursor: default;
}

a {
    cursor: pointer;
}

/* WhatsApp Float Button */
.whatsapp-float {
    position: fixed;
    bottom: 40px;
    right: 40px;
    background-color: #25D366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    z-index: 100;
    transition: all 0.3s ease;
    cursor: pointer !important;
    animation: pulse 2s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 2px 2px 15px rgba(0, 0, 0, 0.3);
}

@keyframes slide-up {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slide-right {
    0% {
        opacity: 0;
        transform: translateX(-20px);
    }

    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slide-left {
    0% {
        opacity: 0;
        transform: translateX(20px);
    }

    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fade-in {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

.animate-slide-up {
    animation: slide-up 0.5s ease-out forwards;
    opacity: 0;
}

.animate-slide-right {
    animation: slide-right 0.5s ease-out forwards;
    opacity: 0;
}

.animate-slide-left {
    animation: slide-left 0.5s ease-out forwards;
    opacity: 0;
}

.animate-fade-in {
    animation: fade-in 1s ease-out forwards;
}

/* Animation delays */
.delay-100 {
    animation-delay: 100ms;
}

.delay-200 {
    animation-delay: 200ms;
}

.delay-300 {
    animation-delay: 300ms;
}

.delay-400 {
    animation-delay: 400ms;
}

.delay-500 {
    animation-delay: 500ms;
}

/* Custom cursor styles */
.cursor-dot {
    width: 8px;
    height: 8px;
    background: rgba(0, 157, 255, 0.8);
    position: fixed;
    border-radius: 50%;
    pointer-events: none;
    z-index: 99999;
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s;
}

.cursor-outline {
    width: 40px;
    height: 40px;
    border: 2px solid rgba(0, 157, 255, 0.5);
    position: fixed;
    border-radius: 50%;
    pointer-events: none;
    z-index: 99998;
    transform: translate(-50%, -50%);
}

/* Dark mode styles */
:root.dark .cursor-dot {
    background: rgba(68, 255, 161, 0.8);
}

:root.dark .cursor-outline {
    border-color: rgba(68, 255, 161, 0.5);
}

/* Click animation */
.cursor-dot.expand {
    width: 16px;
    height: 16px;
    transition: width 0.3s, height 0.3s;
}

/* Hide default cursor */
*, *::before, *::after {
    cursor: none !important;
}

/* Ensure cursor remains hidden on interactive elements */
a, button, input, textarea, select, [role="button"],
a:hover, button:hover, input:hover, textarea:hover, select:hover, [role="button"]:hover {
    cursor: none !important;
}

/* Firefox scrollbar */
* {
    scrollbar-width: thin;
    scrollbar-color: #3b82f6 #dbeafe;
}

@media (prefers-color-scheme: dark) {
    * {
        scrollbar-color: #60a5fa #1e3a8a;
    }
}

/* Webkit scrollbar (Chrome, Safari, Edge) */
::-webkit-scrollbar {
    width: 14px;
}

::-webkit-scrollbar-track {
    background-color: #dbeafe;
}

::-webkit-scrollbar-thumb {
    background-color: #3b82f6;
    border-radius: 20px;
    border: 4px solid #dbeafe;
}

::-webkit-scrollbar-thumb:hover {
    background-color: #2563eb;
}

/* Dark mode scrollbar */
@media (prefers-color-scheme: dark) {
    ::-webkit-scrollbar-track {
        background-color: #1e3a8a;
    }
    
    ::-webkit-scrollbar-thumb {
        background-color: #60a5fa;
        border: 4px solid #1e3a8a;
    }
    
    ::-webkit-scrollbar-thumb:hover {
        background-color: #93c5fd;
    }
}

/* Floating WhatsApp button */
.whatsapp-float {
    position: fixed;
    bottom: 40px;
    right: 40px;
    background: #25D366;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    cursor: pointer !important;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 2px 2px 15px rgba(0, 0, 0, 0.3);
}

.whatsapp-float i {
    color: white;
}

/* Optional animation */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

.whatsapp-float {
    animation: pulse 2s infinite;
} 

/* Add transition to navigation links */
.nav-links a {
    transition: color 0.3s ease, transform 0.3s ease;
}

.nav-links a:hover {
    transform: scale(1.1);
}

.group .dropdown {
    transition: opacity 0.2s ease, visibility 0.2s ease;
    opacity: 0;
    visibility: hidden;
}

.group:hover .dropdown {
    opacity: 1;
    visibility: visible;
}
