/* css/style.css */

/* Base Styles */
body { 
    background-color: #0A0A0F; 
    color: #e5e7eb;
    background-image: radial-gradient(circle at 10% 20%, rgba(28, 58, 173, 0.10) 0%, transparent 20%),
                      radial-gradient(circle at 90% 80%, rgba(124, 58, 237, 0.10) 0%, transparent 20%);
}

/* Light Mode Styles */
.light-mode body {
    background-color: #f8fafc;
    color: #1e293b;
    background-image: radial-gradient(circle at 10% 20%, rgba(139, 92, 246, 0.05) 0%, transparent 20%),
                      radial-gradient(circle at 90% 80%, rgba(124, 58, 237, 0.05) 0%, transparent 20%);
}

.light-mode .glass-panel {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(139, 92, 246, 0.15);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.light-mode .neon-border {
    border: 1px solid rgba(139, 92, 246, 0.2);
    box-shadow: 0 0 12px rgba(139, 92, 246, 0.08),
                inset 0 0 8px rgba(139, 92, 246, 0.04);
}

.light-mode .neon-border:hover {
    border: 1px solid rgba(139, 92, 246, 0.3);
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.12),
                inset 0 0 15px rgba(139, 92, 246, 0.06);
}

/* Scrollbar for Light Mode */
.light-mode ::-webkit-scrollbar-track {
    background: #f1f5f9;
}

.light-mode ::-webkit-scrollbar-thumb {
    background: rgba(139, 92, 246, 0.4);
    border-radius: 10px;
}

.light-mode ::-webkit-scrollbar-thumb:hover {
    background: #8B5CF6;
}

/* Grid Pattern for Light Mode */
.light-mode .bg-grid-pattern {
    background-image: linear-gradient(to right, rgba(139, 92, 246, 0.07) 1px, transparent 1px),
                      linear-gradient(to bottom, rgba(139, 92, 246, 0.07) 1px, transparent 1px);
}

/* Footer for Light Mode */
.light-mode footer {
    background: #ffffff;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

/* WhatsApp Float for Light Mode */
.light-mode .whatsapp-float {
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
}

/* Theme Toggle Animation */
#theme-toggle.active .bg-primaryLight {
    transform: translateX(24px);
    opacity: 0;
    scale: 0;
}

#theme-toggle.active .bg-yellow-500 {
    transform: translateX(-24px);
    opacity: 1;
    scale: 1;
}

/* Text Colors for Light Mode */
.light-mode .text-gray-400 {
    color: #64748b !important;
}

.light-mode .text-gray-500 {
    color: #6b7280 !important;
}

.light-mode .text-gray-300 {
    color: #4b5563 !important;
}

.light-mode .text-white {
    color: #1e293b !important;
}

.light-mode .text-primaryLight {
    color: #7C3AED !important;
}

/* Border Colors for Light Mode */
.light-mode .border-white\/10 {
    border-color: rgba(0, 0, 0, 0.08) !important;
}

.light-mode .border-white\/5 {
    border-color: rgba(0, 0, 0, 0.05) !important;
}

.light-mode .border-white\/20 {
    border-color: rgba(0, 0, 0, 0.1) !important;
}

/* Background Colors for Light Mode */
.light-mode .bg-white\/5 {
    background-color: rgba(0, 0, 0, 0.03) !important;
}

.light-mode .hover\:bg-white\/5:hover {
    background-color: rgba(0, 0, 0, 0.05) !important;
}

.light-mode .bg-black {
    background-color: #ffffff !important;
}

.light-mode .bg-surfaceHighlight {
    background-color: #f8fafc !important;
}

.light-mode .bg-surface {
    background-color: #f1f5f9 !important;
}

.light-mode .from-surfaceHighlight {
    --tw-gradient-from: #f8fafc !important;
}

.light-mode .to-surface {
    --tw-gradient-to: #f1f5f9 !important;
}

/* Specific Component Styles for Light Mode */
.light-mode .bg-\[\#0a0a0a\] {
    background-color: #f1f5f9 !important;
}

.light-mode .bg-primary\/10 {
    background-color: rgba(139, 92, 246, 0.1) !important;
}

.light-mode .bg-primary\/20 {
    background-color: rgba(139, 92, 246, 0.15) !important;
}

.light-mode .bg-red-600\/20 {
    background-color: rgba(220, 38, 38, 0.1) !important;
}

.light-mode .bg-green-500\/20 {
    background-color: rgba(34, 197, 94, 0.1) !important;
}

.light-mode .bg-emerald-500\/20 {
    background-color: rgba(16, 185, 129, 0.1) !important;
}

.light-mode .bg-blue-500\/20 {
    background-color: rgba(59, 130, 246, 0.1) !important;
}

.light-mode .bg-pink-500\/20 {
    background-color: rgba(236, 72, 153, 0.1) !important;
}

.light-mode .bg-red-500\/20 {
    background-color: rgba(239, 68, 68, 0.1) !important;
}

/* Selection Color for Light Mode */
.light-mode .selection\:bg-primaryLight {
    background-color: #A78BFA !important;
    color: black !important;
}

/* Tab Active State for Light Mode */
.light-mode .tab-btn.active {
    color: #1e293b !important;
    border-bottom-color: #8B5CF6 !important;
}

/* Button Colors for Light Mode */
.light-mode .btn-primary {
    color: white !important;
}

.light-mode .bg-primary {
    background-color: #8B5CF6 !important;
}

/* Card Backgrounds for Light Mode */
.light-mode .spotlight-group::before {
    background: radial-gradient(600px circle at var(--mouse-x, 0) var(--mouse-y, 0), rgba(139, 92, 246, 0.08), transparent 40%);
}

/* Input Fields for Light Mode */
.light-mode input,
.light-mode textarea,
.light-mode select {
    background-color: #ffffff !important;
    color: #1e293b !important;
    border-color: rgba(0, 0, 0, 0.1) !important;
}

.light-mode input::placeholder,
.light-mode textarea::placeholder {
    color: #9ca3af !important;
}

/* Noise Overlay for Light Mode */
.noise-overlay {
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%;
    pointer-events: none; 
    z-index: 50; 
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

.light-mode .noise-overlay {
    opacity: 0.01;
}

/* Premium Glass Panel */
.glass-panel {
    background: rgba(26, 26, 46, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(168, 85, 247, 0.15);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* Orb Effects */
.orb { 
    position: fixed; 
    border-radius: 50%; 
    filter: blur(120px); 
    z-index: -1; 
    opacity: 0.25; 
    pointer-events: none; 
}

.orb-1 { 
    width: 600px; 
    height: 600px; 
    background: #8B5CF6; 
    top: -300px; 
    left: -200px; 
}

.orb-2 { 
    width: 500px; 
    height: 500px; 
    background: #D8B4FE; 
    bottom: -200px; 
    right: -200px; 
}

.light-mode .orb {
    opacity: 0.08;
}

/* Minimal Grid Pattern */
.bg-grid-pattern {
    background-image: linear-gradient(to right, rgba(168, 85, 247, 0.08) 1px, transparent 1px),
                      linear-gradient(to bottom, rgba(168, 85, 247, 0.08) 1px, transparent 1px);
    background-size: 40px 40px;
    mask-image: radial-gradient(circle at center, black 40%, transparent 100%);
    -webkit-mask-image: radial-gradient(circle at center, black 40%, transparent 100%);
}

/* Spotlight Effect on Cards */
.spotlight-group {
    position: relative;
    overflow: hidden;
}

.spotlight-group::before {
    content: '';
    position: absolute;
    top: 0; 
    left: 0; 
    right: 0; 
    bottom: 0;
    background: radial-gradient(600px circle at var(--mouse-x, 0) var(--mouse-y, 0), rgba(168, 85, 247, 0.08), transparent 40%);
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
    z-index: 2;
}

.spotlight-group:hover::before {
    opacity: 1;
}

/* View Router Transitions */
.view-section { 
    display: none; 
    opacity: 0; 
    transition: opacity 0.3s ease; 
}

.view-section.active { 
    display: block; 
    opacity: 1; 
}

/* Scrollbar */
.scrollbar-hide::-webkit-scrollbar { 
    display: none; 
}

.scrollbar-hide { 
    -ms-overflow-style: none; 
    scrollbar-width: none; 
}

/* Custom Scrollbar */
::-webkit-scrollbar { 
    width: 5px; 
}

::-webkit-scrollbar-track { 
    background: #0A0A0F; 
}

::-webkit-scrollbar-thumb { 
    background: rgba(139, 92, 246, 0.5); 
    border-radius: 10px; 
}

::-webkit-scrollbar-thumb:hover { 
    background: #8B5CF6; 
}

/* Confetti Canvas */
#confetti-canvas {
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    pointer-events: none; 
    z-index: 100;
}

/* Tab Active State */
.tab-btn.active {
    border-bottom: 2px solid #8B5CF6;
    color: white;
}

/* Gradient Text */
.gradient-text {
    background: linear-gradient(90deg, #8B5CF6, #D8B4FE, #C084FC);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    background-size: 200% auto;
    animation: gradient 8s ease infinite;
}

/* Button Hover Effects */
.btn-primary {
    background: linear-gradient(90deg, #7C3AED, #8B5CF6);
    color: white;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(124, 58, 237, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(90deg, #8B5CF6, #A78BFA);
    box-shadow: 0 6px 20px rgba(124, 58, 237, 0.4);
    transform: translateY(-2px);
}

/* Neon Border Effect */
.neon-border {
    border: 1px solid rgba(139, 92, 246, 0.3);
    box-shadow: 0 0 10px rgba(139, 92, 246, 0.1),
                inset 0 0 10px rgba(139, 92, 246, 0.05);
}

.neon-border:hover {
    border: 1px solid rgba(139, 92, 246, 0.5);
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.2),
                inset 0 0 20px rgba(139, 92, 246, 0.1);
}

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 100;
    background: #25D366;
    color: white;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    transition: all 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(37, 211, 102, 0.6);
}

.whatsapp-float i {
    width: 30px;
    height: 30px;
}

/* Animation Keyframes */
@keyframes pulse-glow {
    0%, 100% { 
        opacity: 1; 
        box-shadow: 0 0 20px rgba(139, 92, 246, 0.4); 
    }
    50% { 
        opacity: .7; 
        box-shadow: 0 0 5px rgba(139, 92, 246, 0.2); 
    }
}

@keyframes slide-down {
    0% { 
        transform: translateY(-100%); 
    }
    100% { 
        transform: translateY(0); 
    }
}

@keyframes float {
    0%, 100% { 
        transform: translateY(0); 
    }
    50% { 
        transform: translateY(-20px); 
    }
}

@keyframes gradient {
    0%, 100% { 
        background-position: 0% 50%; 
    }
    50% { 
        background-position: 100% 50%; 
    }
}

/* Animation Classes */
.animate-pulse-glow {
    animation: pulse-glow 3s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.animate-slide-down {
    animation: slide-down 0.5s ease-out forwards;
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

.animate-float-delayed {
    animation: float 6s ease-in-out 3s infinite;
}

.animate-gradient {
    animation: gradient 8s ease infinite;
}