/* ============================================
   Travelex Currency Services — Custom Styles
   ============================================ */

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

::selection {
    background: #fbbf24;
    color: #1a0e1a;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: #f9f7f9;
}
::-webkit-scrollbar-thumb {
    background: #c4a9c4;
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: #8b528b;
}

/* Smooth scroll offset for fixed nav */
html {
    scroll-padding-top: 80px;
}

/* ============================================
   Navigation
   ============================================ */
#navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid transparent;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

#navbar.scrolled {
    border-bottom-color: #e0d4e0;
    box-shadow: 0 1px 20px rgba(139, 82, 139, 0.06);
}

.nav-text {
    transition: color 0.3s ease;
}

.nav-text-light {
    transition: color 0.3s ease;
}

#navbar.scrolled .nav-text {
    color: #1a0e1a;
}

#navbar.scrolled .nav-text-light {
    color: #8b528b;
}

/* ============================================
   Mobile Menu
   ============================================ */
#menu-btn {
    z-index: 60;
}

#menu-btn.active #line1 {
    transform: rotate(45deg) translate(4px, 4px);
}
#menu-btn.active #line2 {
    opacity: 0;
}
#menu-btn.active #line3 {
    transform: rotate(-45deg) translate(4px, -4px);
}

.mobile-link {
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

#mobile-menu.open .mobile-link {
    opacity: 1;
    transform: translateY(0);
}

#mobile-menu.open .mobile-link:nth-child(1) { transition-delay: 0.1s; }
#mobile-menu.open .mobile-link:nth-child(2) { transition-delay: 0.15s; }
#mobile-menu.open .mobile-link:nth-child(3) { transition-delay: 0.2s; }
#mobile-menu.open .mobile-link:nth-child(4) { transition-delay: 0.25s; }
#mobile-menu.open .mobile-link:nth-child(5) { transition-delay: 0.3s; }

/* ============================================
   Animations
   ============================================ */
.reveal-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), 
                transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-float {
    opacity: 0;
    transform: translateY(20px);
    animation: floatIn 0.8s 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes floatIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scroll line animation */
@keyframes scrollLine {
    0% {
        top: -16px;
    }
    100% {
        top: 100%;
    }
}

.animate-scroll-line {
    animation: scrollLine 1.5s ease-in-out infinite;
}

/* ============================================
   Service Cards
   ============================================ */
.service-card {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(139, 82, 139, 0.08);
}

/* ============================================
   Input Focus States
   ============================================ */
input:focus,
textarea:focus {
    border-bottom-color: #fbbf24 !important;
}

input:focus::placeholder,
textarea:focus::placeholder {
    color: transparent;
}

/* ============================================
   Button Hover Effects
   ============================================ */
a[href]:hover {
    cursor: pointer;
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 768px) {
    html {
        scroll-padding-top: 70px;
    }
    
    #hero h1 {
        font-size: 2.5rem;
    }
    
    .service-card {
        padding: 2rem !important;
    }
}

@media (max-width: 640px) {
    #hero {
        min-height: auto;
        padding: 6rem 0 4rem;
    }
    
    #hero .order-1 {
        order: 2 !important;
    }
    
    #hero .order-2 {
        order: 1 !important;
    }
    
    #hero .lg\:pr-16 {
        padding-right: 0 !important;
    }
}

/* ============================================
   Print Styles
   ============================================ */
@media print {
    #navbar,
    #menu-btn,
    .animate-scroll-line {
        display: none !important;
    }
    
    body {
        color: #000;
        background: #fff;
    }
}
