/* ============================================
   LibertyX Bitcoin ATM — Custom Styles
   ============================================ */

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

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

body {
    overflow-x: hidden;
}

/* Selection */
::selection {
    background-color: rgba(45, 76, 50, 0.2);
    color: inherit;
}

/* ============================================
   Navigation
   ============================================ */
#navbar {
    background: transparent;
    transition: background-color 0.5s ease, box-shadow 0.5s ease;
}

#navbar.scrolled {
    background: rgba(250, 249, 246, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(45, 76, 50, 0.08);
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1.5px;
    background: currentColor;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Mobile Menu */
#mobile-menu {
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.mobile-link {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease, color 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; }

.menu-line {
    transition: all 0.3s ease;
}

#menu-toggle.active .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(3px, 3px);
}

#menu-toggle.active .menu-line:nth-child(2) {
    opacity: 0;
}

#menu-toggle.active .menu-line:nth-child(3) {
    width: 24px;
    transform: rotate(-45deg) translate(3px, -3px);
}

/* ============================================
   Hero
   ============================================ */
.hero-eyebrow {
    opacity: 0;
    animation: fadeSlideUp 0.8s ease forwards 0.3s;
}

.hero-headline {
    opacity: 0;
    animation: fadeSlideUp 0.8s ease forwards 0.5s;
}

.hero-subtext {
    opacity: 0;
    animation: fadeSlideUp 0.8s ease forwards 0.7s;
}

.hero-ctas {
    opacity: 0;
    animation: fadeSlideUp 0.8s ease forwards 0.9s;
}

@keyframes fadeSlideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scroll indicator */
.scroll-indicator {
    opacity: 0;
    animation: fadeIn 1s ease forwards 1.5s;
}

@keyframes fadeIn {
    to { opacity: 1; }
}

.scroll-indicator span {
    animation: pulse 2s ease-in-out infinite;
}

.scroll-indicator div {
    animation: scrollDown 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

@keyframes scrollDown {
    0% { transform: scaleY(0); transform-origin: top; }
    50% { transform: scaleY(1); transform-origin: top; }
    51% { transform-origin: bottom; }
    100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ============================================
   Section Headings
   ============================================ */
.section-eyebrow {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #4d7f50;
    margin-bottom: 1rem;
}

.section-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(2rem, 5vw, 3.25rem);
    font-weight: 700;
    line-height: 1.15;
    color: #1c2f21;
    margin-bottom: 1.25rem;
}

.section-subtitle {
    font-size: 1.125rem;
    line-height: 1.75;
    color: #3a6340;
    font-weight: 300;
}

/* Divider */
.divider-line {
    height: 1px;
    background: linear-gradient(to right, transparent, #c6dfc9, transparent);
}

/* ============================================
   Service Cards
   ============================================ */
.service-card {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.service-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.service-card:nth-child(2) {
    transition-delay: 0.15s;
}

/* ============================================
   Step Cards
   ============================================ */
.step-card {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.step-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.step-card:nth-child(2) { transition-delay: 0.15s; }
.step-card:nth-child(3) { transition-delay: 0.3s; }

/* ============================================
   Feature Items
   ============================================ */
.feature-item {
    opacity: 0;
    transform: translateX(-20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.feature-item.visible {
    opacity: 1;
    transform: translateX(0);
}

/* ============================================
   Contact Cards
   ============================================ */
.contact-card {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.contact-card.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   Buttons
   ============================================ */
.cta-primary {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.cta-primary:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.cta-secondary {
    transition: all 0.3s ease;
}

.cta-secondary:hover {
    transform: translateY(-1px);
}

/* ============================================
   Images
   ============================================ */
img {
    display: block;
    max-width: 100%;
}

/* ============================================
   Reduced Motion
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
    
    .hero-eyebrow,
    .hero-headline,
    .hero-subtext,
    .hero-ctas {
        opacity: 1;
        animation: none;
    }
    
    .service-card,
    .step-card,
    .feature-item,
    .contact-card {
        opacity: 1;
        transform: none;
    }
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 768px) {
    .section-title {
        font-size: clamp(1.75rem, 8vw, 2.5rem);
    }
    
    .hero-headline {
        font-size: clamp(2rem, 10vw, 3.5rem);
    }
}
