/* Custom styles for LibertyX Bitcoin ATM */

/* Base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: #060f18;
    color: #f0f4f8;
    overflow-x: hidden;
    line-height: 1.6;
}

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

/* Navigation */
.nav-glass {
    background: rgba(6, 15, 24, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(79, 191, 168, 0.1);
}

.nav-link {
    position: relative;
    transition: color 0.3s ease;
}

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

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

/* Hero section */
.hero-bg {
    background: linear-gradient(135deg, #030910 0%, #0d1c2b 50%, #060f18 100%);
    position: relative;
}

.hero-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(ellipse 80% 50% at 20% 40%, rgba(45, 157, 135, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse 60% 40% at 80% 60%, rgba(46, 82, 114, 0.15) 0%, transparent 50%);
    pointer-events: none;
}

.hero-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(rgba(79, 191, 168, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(79, 191, 168, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
}

/* Floating animation */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-12px); }
}

.float-card {
    animation: float 6s ease-in-out infinite;
}

.float-card:nth-child(2) {
    animation-delay: -2s;
    animation-duration: 7s;
}

.float-card:nth-child(3) {
    animation-delay: -4s;
    animation-duration: 5s;
}

/* Card styles */
.elegant-card {
    background: linear-gradient(145deg, rgba(13, 28, 43, 0.8), rgba(6, 15, 24, 0.9));
    border: 1px solid rgba(79, 191, 168, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.elegant-card:hover {
    border-color: rgba(79, 191, 168, 0.3);
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3), 0 0 40px rgba(79, 191, 168, 0.1);
}

/* Mint glow effect */
.mint-glow {
    box-shadow: 0 0 40px rgba(79, 191, 168, 0.15), 0 0 80px rgba(79, 191, 168, 0.05);
}

/* Icon containers */
.icon-circle {
    background: linear-gradient(135deg, rgba(79, 191, 168, 0.15), rgba(45, 157, 135, 0.05));
    border: 1px solid rgba(79, 191, 168, 0.2);
}

/* Button styles */
.btn-primary {
    background: linear-gradient(135deg, #2d9d87, #1f7d6b);
    border: none;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    box-shadow: 0 10px 40px rgba(45, 157, 135, 0.3);
    transform: translateY(-2px);
}

.btn-outline {
    border: 1px solid rgba(79, 191, 168, 0.4);
    background: transparent;
    transition: all 0.3s ease;
}

.btn-outline:hover {
    background: rgba(79, 191, 168, 0.1);
    border-color: #4fbfa8;
}

/* Gradient text */
.gradient-text {
    background: linear-gradient(135deg, #4fbfa8, #1f7d6b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Section dividers */
.section-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(79, 191, 168, 0.3), transparent);
}

/* Scroll reveal */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

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

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

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

/* Stat numbers */
.stat-number {
    font-variant-numeric: tabular-nums;
}

/* Footer pattern */
.footer-pattern {
    background-image: 
        linear-gradient(rgba(79, 191, 168, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(79, 191, 168, 0.02) 1px, transparent 1px);
    background-size: 40px 40px;
}

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

::-webkit-scrollbar-track {
    background: #060f18;
}

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

::-webkit-scrollbar-thumb:hover {
    background: #2e5272;
}

/* Map container */
.map-container {
    position: relative;
    overflow: hidden;
}

.map-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 60%, #060f18);
    pointer-events: none;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .font-serif {
        font-size: 2rem;
    }
    
    .hero-bg {
        min-height: auto;
        padding: 80px 0;
    }
    
    .float-card {
        display: none;
    }
}

/* Print styles */
@media print {
    .nav-glass,
    .hero-pattern,
    .float-card,
    .reveal {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
}
