/* ========================================
   Marcela Vitor Learning Center
   Custom Styles
   ======================================== */

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Selection color */
::selection {
    background: #c2204b;
    color: white;
}

/* Navbar scroll state */
#navbar.scrolled {
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.08);
}

#navbar.scrolled .nav-link {
    color: #1e2c48;
}

#navbar.scrolled .nav-link:hover {
    color: #811335;
}

/* Mobile menu animation */
#mobileMenu {
    animation: slideDown 0.25s ease-out;
}

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

/* Mobile links */
.mobile-link {
    display: block;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    font-weight: 500;
    color: #1e2c48;
    transition: all 0.2s ease;
}

.mobile-link:hover {
    background: #fdf2f4;
    color: #811335;
}

/* Input focus styles */
input:focus,
select:focus,
textarea:focus {
    outline: none;
}

/* Card hover lift */
.group:hover .group-hover\:scale-110 {
    transform: scale(1.1);
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f4f6fb;
}

::-webkit-scrollbar-thumb {
    background: #a3b8db;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #7090c2;
}

/* Button press effect */
button, a {
    -webkit-tap-highlight-color: transparent;
}

button:active, a:active {
    transform: scale(0.98);
}

/* Focus visible for accessibility */
:focus-visible {
    outline: 2px solid #c2204b;
    outline-offset: 2px;
}

/* Print styles */
@media print {
    #navbar,
    #contactForm,
    #successMessage {
        display: none !important;
    }
    
    body {
        color: #000;
        background: white;
    }
    
    a {
        color: #000;
    }
}
