/* ============================================
   Custom Styles for Tailwind
   ============================================ */

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

/* ============================================
   Background Animations
   ============================================ */

.bubble {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(135deg, #3b82f6 0%, #06b6d4 50%, #0ea5e9 100%);
    opacity: 0.08;
    filter: blur(60px);
    animation: float 30s infinite ease-in-out;
}

.bubble:nth-child(1) {
    width: 500px;
    height: 500px;
    top: -10%;
    left: -10%;
    animation-delay: 0s;
}

.bubble:nth-child(2) {
    width: 600px;
    height: 600px;
    top: 40%;
    right: -15%;
    animation-delay: 5s;
}

.bubble:nth-child(3) {
    width: 450px;
    height: 450px;
    bottom: -10%;
    left: 20%;
    animation-delay: 10s;
}

.bubble:nth-child(4) {
    width: 550px;
    height: 550px;
    top: 60%;
    left: -20%;
    animation-delay: 15s;
}

.bubble:nth-child(5) {
    width: 500px;
    height: 500px;
    bottom: 20%;
    right: 10%;
    animation-delay: 20s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -30px) scale(1.1); }
    66% { transform: translate(-20px, 20px) scale(0.9); }
}

/* ============================================
   Navigation
   ============================================ */

/* Theme toggle animation */
.sun-icon {
    opacity: 1;
    transform: scale(1) rotate(0deg);
    transition: all 0.3s ease;
}

.moon-icon {
    opacity: 0;
    transform: scale(0.5) rotate(90deg);
    transition: all 0.3s ease;
}

.dark .sun-icon {
    opacity: 0;
    transform: scale(0.5) rotate(-90deg);
}

.dark .moon-icon {
    opacity: 1;
    transform: scale(1) rotate(0deg);
}

/* Language dropdown */
.lang-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Active navigation link */
.nav-link.active {
    background: linear-gradient(to right, #8b5cf6, #c084fc);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.nav-link.active::after {
    width: 100% !important;
}

/* Hamburger menu animation */
.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* ============================================
   Mobile Menu
   ============================================ */

@media (max-width: 1023px) {
    .nav-menu {
        position: fixed;
        top: 90px;
        left: 1rem;
        right: 1rem;
        width: calc(100% - 2rem);
        max-height: calc(100vh - 120px);
        display: none;
        flex-direction: column;
        gap: 0.5rem;
        padding: 1.5rem;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-radius: 1.5rem;
        border: 1px solid rgba(226, 232, 240, 0.8);
        box-shadow: 0 20px 60px rgba(139, 92, 246, 0.2);
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
        overflow-y: auto;
        z-index: 40;
    }
    
    .nav-menu.active {
        display: flex;
        opacity: 1;
        visibility: visible;
    }
    
    .dark .nav-menu {
        background: rgba(15, 23, 42, 0.95);
        border-color: rgba(100, 116, 139, 0.3);
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
    }
    
    .nav-menu li {
        width: 100%;
    }
    
    .nav-menu a {
        display: block;
        padding: 1rem 1.25rem;
        border-radius: 1rem;
        width: 100%;
        font-weight: 600;
        background: rgba(248, 250, 252, 0.5);
        border: 1px solid rgba(226, 232, 240, 0.5);
        transition: all 0.3s ease;
    }
    
    .dark .nav-menu a {
        background: rgba(30, 41, 59, 0.5);
        border-color: rgba(100, 116, 139, 0.3);
    }
    
    .nav-menu a::after {
        display: none;
    }
    
    .nav-menu a:hover,
    .nav-menu a.active {
        background: linear-gradient(135deg, rgba(139, 92, 246, 0.15), rgba(192, 132, 252, 0.15));
        border-color: rgba(139, 92, 246, 0.3);
        transform: translateX(4px);
        color: #8b5cf6;
    }
    
    .dark .nav-menu a:hover,
    .dark .nav-menu a.active {
        background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(192, 132, 252, 0.2));
        border-color: rgba(192, 132, 252, 0.4);
        color: #c084fc;
    }
}

/* Contact Menu */
#contactMenu {
    display: none;
}

#contactMenu.show {
    display: block;
}
