/* ============================================
   Presidente USA — Custom Styles
   ============================================ */

/* Reset & Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    overflow-x: hidden;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: #0A1628;
}
::-webkit-scrollbar-thumb {
    background: #5EEAD4;
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: #2DD4BF;
}

/* Selection */
::selection {
    background: rgba(94, 234, 212, 0.2);
    color: #0A1628;
}

/* ============================================
   Scroll Reveal Animations
   Progressive enhancement — content is visible
   by default; JS adds the animated state.
   ============================================ */
.reveal {
    opacity: 1;
    transform: none;
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

@media (prefers-reduced-motion: no-preference) {
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
    
    .reveal {
        opacity: 0;
        transform: translateY(24px);
    }
}

/* ============================================
   Navbar
   ============================================ */
#navbar {
    background: transparent;
}

#navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(10, 22, 40, 0.06);
}

#navbar.scrolled .nav-link {
    color: #0A1628;
}

#navbar.scrolled .w-8 {
    background: #0A1628;
}

#navbar.scrolled span.bg-midnight-800 {
    background: #0A1628;
}

/* ============================================
   Mobile Menu
   ============================================ */
#mobile-menu.open {
    opacity: 1;
    pointer-events: all;
}

#mobile-menu.closed {
    opacity: 0;
    pointer-events: none;
}

/* Hamburger animation */
#menu-btn.active #menu-icon span:first-child {
    transform: rotate(45deg) translate(3px, 3px);
}
#menu-btn.active #menu-icon span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}
#menu-btn.active #menu-icon span:nth-child(3) {
    transform: rotate(-45deg) translate(3px, -3px);
    width: 1.5rem;
}

/* ============================================
   Service Cards
   ============================================ */
.service-card {
    transition: background-color 0.5s ease;
}

/* ============================================
   Form Inputs
   ============================================ */
input:focus,
textarea:focus {
    outline: none;
}

/* ============================================
   Smooth anchor offset for fixed nav
   ============================================ */
section[id] {
    scroll-margin-top: 80px;
}

/* ============================================
   Responsive adjustments
   ============================================ */
@media (max-width: 768px) {
    section[id] {
        scroll-margin-top: 60px;
    }
}
