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

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

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

body {
    background-color: #FFFBF5;
    color: #1A1512;
    font-family: 'Outfit', sans-serif;
    overflow-x: hidden;
}

/* Geometric Background Shapes */
.geo-shape {
    position: fixed;
    pointer-events: none;
    z-index: 0;
    opacity: 0.4;
}

.shape-circle-1 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(224, 82, 55, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    top: 10%;
    right: -100px;
    animation: float 8s ease-in-out infinite;
}

.shape-square-1 {
    width: 200px;
    height: 200px;
    background: rgba(226, 179, 74, 0.08);
    bottom: 20%;
    left: -50px;
    transform: rotate(45deg);
    animation: float 10s ease-in-out 2s infinite;
}

.shape-triangle-1 {
    width: 0;
    height: 0;
    border-left: 100px solid transparent;
    border-right: 100px solid transparent;
    border-bottom: 173px solid rgba(224, 82, 55, 0.05);
    top: 50%;
    left: 5%;
    animation: float 12s ease-in-out 1s infinite;
}

.shape-circle-2 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(226, 179, 74, 0.06) 0%, transparent 70%);
    border-radius: 50%;
    bottom: 5%;
    right: 10%;
    animation: float 9s ease-in-out 3s infinite;
}

.shape-dots {
    width: 200px;
    height: 200px;
    background-image: radial-gradient(circle, rgba(224, 82, 55, 0.1) 1px, transparent 1px);
    background-size: 20px 20px;
    top: 30%;
    left: 2%;
    opacity: 0.5;
    animation: float 11s ease-in-out 4s infinite;
}

/* Hero Geometric Decorations */
.geo-deco {
    position: absolute;
    pointer-events: none;
}

.geo-deco-1 {
    width: 300px;
    height: 300px;
    border: 3px solid rgba(255, 251, 245, 0.15);
    border-radius: 50%;
    top: 10%;
    left: -5%;
    animation: spin 25s linear infinite;
}

.geo-deco-2 {
    width: 150px;
    height: 150px;
    background: rgba(255, 251, 245, 0.08);
    border-radius: 30px;
    top: 20%;
    right: 5%;
    transform: rotate(45deg);
    animation: float 7s ease-in-out infinite;
}

.geo-deco-3 {
    width: 80px;
    height: 80px;
    background: rgba(255, 251, 245, 0.12);
    border-radius: 50%;
    bottom: 25%;
    left: 10%;
    animation: float 5s ease-in-out 1s infinite;
}

.geo-deco-4 {
    width: 200px;
    height: 200px;
    border: 2px solid rgba(255, 251, 245, 0.1);
    border-radius: 40px;
    bottom: 10%;
    right: 15%;
    transform: rotate(30deg);
    animation: spin 30s linear infinite reverse;
}

.geo-deco-5 {
    width: 60px;
    height: 60px;
    background: rgba(255, 251, 245, 0.15);
    border-radius: 15px;
    top: 45%;
    right: 25%;
    transform: rotate(60deg);
    animation: float 6s ease-in-out 2s infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

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

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

/* 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;
    }
    
    .reveal {
        opacity: 1;
        transform: none;
    }
}

/* Navbar Scroll Effect */
.navbar-scrolled {
    background: rgba(255, 251, 245, 0.95) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 20px rgba(26, 21, 18, 0.08);
}

/* Mobile Menu */
#mobile-menu {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, opacity 0.3s ease;
}

#mobile-menu.open {
    max-height: 400px;
    opacity: 1;
}

#menu-line-1.open {
    transform: rotate(45deg) translate(5px, 5px);
}

#menu-line-2.open {
    opacity: 0;
}

#menu-line-3.open {
    transform: rotate(-45deg) translate(5px, -5px);
    width: 24px;
}

/* Button Hover Effects */
a[href^="tel"] {
    text-decoration: none;
}

/* Image Hover Zoom */
.rounded-3xl.overflow-hidden img {
    transition: transform 0.6s ease;
}

.rounded-3xl.overflow-hidden:hover img {
    transform: scale(1.05);
}

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

::-webkit-scrollbar-track {
    background: #FFFBF5;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #e05237, #e2b34a);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #d13b24, #cc9735);
}

/* Selection Color */
::selection {
    background: rgba(224, 82, 55, 0.2);
    color: #1A1512;
}

/* Focus Styles */
a:focus-visible,
button:focus-visible {
    outline: 3px solid #e05237;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Loading Animation for Images */
img {
    background: linear-gradient(90deg, #fdf2f0 0%, #faf0c8 50%, #fdf2f0 100%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

img[src] {
    animation: none;
    background: none;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .geo-shape {
        display: none;
    }
    
    .geo-deco-1,
    .geo-deco-4 {
        display: none;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .geo-shape.shape-dots {
        display: none;
    }
}
