/* Mwangolé Creative - Custom CSS */

/* Scrollbar Personalizada */
::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #A300FF, #7000CC);
    border-radius: 10px;
    border: 2px solid #f1f1f1;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #7000CC, #5000AA);
}

.dark ::-webkit-scrollbar-track {
    background: #0f172a;
    /* Slate 900 */
}

.dark ::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #A300FF, #7000CC);
    border-color: #0f172a;
}

.dark ::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #C040FF, #A300FF);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }
}

.animate-fadeInUp {
    animation: fadeInUp 0.6s ease-out;
}

.animate-fadeIn {
    animation: fadeIn 0.6s ease-out;
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Components */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: linear-gradient(135deg, #A300FF 0%, #7000CC 100%);
    z-index: 9999;
    transition: right 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    overflow-y: auto;
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.card-hover {
    transition: all 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(163, 0, 255, 0.2);
}

.counter {
    transition: all 0.5s ease;
}

/* Dark Mode Toggle */
.dark-mode-toggle {
    width: 50px;
    height: 26px;
    background-color: #cbd5e1;
    /* Slate 300 */
    border-radius: 50px;
    position: relative;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.dark .dark-mode-toggle {
    background-color: #A300FF;
}

.dark-mode-toggle::before {
    content: '';
    position: absolute;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background-color: white;
    top: 2px;
    left: 2px;
    transition: transform 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.dark .dark-mode-toggle::before {
    transform: translateX(24px);
}

.dark-mode-toggle .sun-icon,
.dark-mode-toggle .moon-icon {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
    transition: opacity 0.3s ease;
}

.dark-mode-toggle .sun-icon {
    left: 6px;
    color: #f59e0b;
}

.dark-mode-toggle .moon-icon {
    right: 6px;
    color: white;
    opacity: 0;
}

.dark .dark-mode-toggle .sun-icon {
    opacity: 0;
}

.dark .dark-mode-toggle .moon-icon {
    opacity: 1;
}


/* Scroll horizontal suave para filtros no mobile */
#portfolio-filters .overflow-x-auto {
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE e Edge */
}

#portfolio-filters .overflow-x-auto::-webkit-scrollbar {
    display: none;
    /* Chrome, Safari, Opera */
}

#portfolio-filters .overflow-x-auto {
    -webkit-overflow-scrolling: touch;
    /* Scroll suave no iOS */
}

/* 
 * PREMIUM DARK MODE THEME (Slate/Midnight Palette)
 * Base: #0f172a (Slate 900) - Main Background
 * Surface: #1e293b (Slate 800) - Cards/Sections
 * Border: #334155 (Slate 700) - Dividers
 * Text Main: #f8fafc (Slate 50)
 * Text Muted: #94a3b8 (Slate 400)
 */

body {
    transition: background-color 0.3s ease, color 0.3s ease;
    position: relative;
}

.dark {
    background-color: #0f172a !important;
    /* Deep Slate */
    color: #f8fafc !important;
}

/* Texture Overlay */
.dark::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(148, 163, 184, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(148, 163, 184, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
    z-index: -1;
    opacity: 0.5;
}

/* Header */
.dark header {
    background-color: rgba(15, 23, 42, 0.9) !important;
    border-color: rgba(255, 255, 255, 0.05) !important;
    backdrop-filter: blur(12px);
}

/* Typography Overrides */
.dark .text-gray-900 {
    color: #f8fafc !important;
}

/* White-ish */
.dark .text-gray-700 {
    color: #cbd5e1 !important;
}

/* Light Slate */
.dark .text-gray-600 {
    color: #94a3b8 !important;
}

/* Muted Slate */
.dark .text-gray-500 {
    color: #64748b !important;
}

/* Darker Slate */
.dark .text-gray-400 {
    color: #94a3b8 !important;
}

/* Backgrounds */
.dark .bg-white {
    background-color: #1e293b !important;
    /* Surface Color (Slate 800) */
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.dark .bg-gray-50 {
    background-color: #0f172a !important;
    /* Main Background */
}

.dark .bg-gray-100 {
    background-color: #1e293b !important;
}


.dark .bg-gray-900 {
    background-color: #334155 !important;
    /* Lighter Surface (Slate 700) */
}

/* Override for custom dark utility */
.dark .bg-mwangole-dark {
    background-color: #1e293b !important;
    /* Surface Color (Slate 800) */
}

/* Gradients */
/* Note: kept specific hero gradient below, removed generic override */

.dark section[id*="hero"] {
    background: radial-gradient(circle at top right, #1e1b4b 0%, #0f172a 100%) !important;
}

/* Hide "white light" gradient in Hero Dark Mode */
.dark section[id*="hero"]>div.absolute.bg-gradient-to-l {
    opacity: 0 !important;
    display: none !important;
}

/* Border Overrides */
.dark .border-gray-100,
.dark .border-gray-200,
.dark .border-gray-300 {
    border-color: rgba(255, 255, 255, 0.08) !important;
    /* Very subtle borders */
}

.dark footer {
    background-color: #1e293b !important;
    /* Surface Color (Slate 800) */
    border-top: 1px solid rgba(163, 0, 255, 0.1);
}

/* Shadow Glows */
.dark .card-hover:hover {
    box-shadow: 0 20px 40px rgba(163, 0, 255, 0.15) !important;
    border-color: rgba(163, 0, 255, 0.3) !important;
}

/* Specific Element Overrides */
.dark .bg-purple-50 {
    background-color: rgba(163, 0, 255, 0.1) !important;
}

.dark .bg-purple-100 {
    background-color: rgba(163, 0, 255, 0.15) !important;
}

/* Fix for "white shadow" on buttons in Dark Mode */
.dark .shadow-gray-200 {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.5), 0 4px 6px -2px rgba(0, 0, 0, 0.3) !important;
}

/* Hero Buttons Overrides for Dark Mode */
.dark #hero a.bg-mwangole-dark {
    background-color: #A300FF !important;
    /* Make Primary CTA Pop */
    color: #ffffff !important;
    border: 1px solid #A300FF;
}

.dark #hero a.bg-white {
    background-color: transparent !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
    color: #f8fafc !important;
}

.dark #hero a.bg-white:hover {
    border-color: #A300FF !important;
    color: #A300FF !important;
}