/* Custom styles for LibertyX Bitcoin ATM */

:root {
    --burgundy: #c41e3a;
    --burgundy-dark: #7a1225;
    --blush: #ffebeb;
    --blush-light: #fff5f5;
}

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

/* Base styles */
body {
    font-family: 'Inter', system-ui, sans-serif;
    color: #1a1a1a;
    background-color: var(--blush-light);
    overflow-x: hidden;
}

/* Typography */
.font-serif {
    font-family: 'Playfair Display', Georgia, serif;
}

/* Hero section */
.hero-gradient {
    background: linear-gradient(135deg, #7a1225 0%, #c41e3a 50%, #e97272 100%);
}

/* Text gradient */
.text-gradient {
    background: linear-gradient(135deg, #7a1225, #c41e3a);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Reveal animations - only for below-fold content */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Ensure animations only work when JS is enabled and user prefers motion */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
    }
    .reveal.active {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Primary button */
.btn-primary {
    background: linear-gradient(135deg, #7a1225, #c41e3a);
    color: white;
    padding: 1rem 2rem;
    border-radius: 0.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(196, 30, 58, 0.3);
    display: inline-block;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(196, 30, 58, 0.4);
}

.btn-primary:focus {
    outline: 2px solid #c41e3a;
    outline-offset: 2px;
}

/* Navigation links */
.nav-link {
    position: relative;
    color: #1a1a1a;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #7a1225, #c41e3a);
    transition: width 0.3s ease;
}

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

.nav-link:focus {
    outline: 2px solid #c41e3a;
    outline-offset: 4px;
    border-radius: 2px;
}

/* Card hover effects */
.card-hover {
    transition: all 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(196, 30, 58, 0.15);
}

/* Feature icons */
.feature-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #7a1225, #c41e3a);
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

/* Mobile menu */
.mobile-menu {
    transform: translateX(100%);
    transition: transform 0.3s ease;
}

.mobile-menu.open {
    transform: translateX(0);
}

/* Hamburger menu */
.hamburger {
    display: flex;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 0.375rem;
    transition: background-color 0.3s ease;
}

.hamburger:hover {
    background-color: rgba(196, 30, 58, 0.1);
}

.hamburger:focus {
    outline: 2px solid #c41e3a;
    outline-offset: 2px;
}

.hamburger span {
    width: 24px;
    height: 2px;
    background: #1a1a1a;
    transition: all 0.3s ease;
    display: block;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile links */
.mobile-link {
    transition: color 0.3s ease;
}

.mobile-link:hover {
    color: #c41e3a;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-gradient {
        background: linear-gradient(180deg, #7a1225 0%, #c41e3a 100%);
    }
    
    .font-serif {
        font-size: 2rem;
    }
    
    .feature-icon {
        width: 48px;
        height: 48px;
    }
    
    .feature-icon svg {
        width: 24px;
        height: 24px;
    }
}

/* Print styles */
@media print {
    .hero-gradient,
    .btn-primary,
    .feature-icon {
        background: none !important;
        color: #000 !important;
        box-shadow: none !important;
    }
    
    .reveal {
        opacity: 1 !important;
        transform: none !important;
    }
}

/* Accessibility: Focus visible styles */
*:focus-visible {
    outline: 2px solid #c41e3a;
    outline-offset: 2px;
}

/* High contrast mode support */
@media (forced-colors: active) {
    .btn-primary {
        border: 2px solid ButtonText;
    }
    
    .feature-icon {
        border: 2px solid ButtonText;
    }
}
