/* Custom Styles for LibertyX Bitcoin ATM */

/* Base & Typography */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.font-display {
    font-family: 'Space Grotesk', sans-serif;
}

/* Geometric Background Shapes */
.geo-shape {
    position: absolute;
    pointer-events: none;
    opacity: 0.5;
}

.shape-circle-1 {
    top: 15%;
    right: 5%;
    width: 120px;
    height: 120px;
    background: #C05746;
    border-radius: 50%;
    opacity: 0.06;
    animation: float 8s ease-in-out infinite;
}

.shape-circle-2 {
    top: 45%;
    left: 3%;
    width: 80px;
    height: 80px;
    background: #D4A94E;
    border-radius: 50%;
    opacity: 0.06;
    animation: float 6s ease-in-out infinite reverse;
}

.shape-circle-3 {
    bottom: 20%;
    right: 10%;
    width: 60px;
    height: 60px;
    background: #C05746;
    border-radius: 50%;
    opacity: 0.04;
    animation: float 10s ease-in-out infinite;
}

.shape-square-1 {
    top: 30%;
    left: 8%;
    width: 50px;
    height: 50px;
    background: #D4A94E;
    opacity: 0.05;
    transform: rotate(45deg);
    animation: spin 20s linear infinite;
}

.shape-triangle-1 {
    bottom: 35%;
    right: 6%;
    width: 0;
    height: 0;
    border-left: 35px solid transparent;
    border-right: 35px solid transparent;
    border-bottom: 60px solid #C05746;
    opacity: 0.04;
    animation: float 7s ease-in-out infinite;
}

.shape-rect-1 {
    top: 60%;
    left: 5%;
    width: 100px;
    height: 40px;
    background: #D4A94E;
    opacity: 0.04;
    border-radius: 8px;
    transform: rotate(-15deg);
    animation: float 9s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

@keyframes spin {
    from { transform: rotate(45deg); }
    to { transform: rotate(405deg); }
}

/* Navigation */
.nav-scrolled {
    background: rgba(250, 247, 242, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(224, 194, 122, 0.2);
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.06);
}

#navbar {
    transition: background 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

#navbar:not(.nav-scrolled) {
    background: transparent;
    border-bottom: 1px solid transparent;
    box-shadow: none;
}

/* Mobile Menu */
#mobile-menu {
    max-height: 0;
}

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

#menu-line-1 {
    transform-origin: center;
}

#menu-line-2 {
    transform-origin: center;
}

#menu-line-3 {
    transform-origin: center;
}

body.menu-open #menu-line-1 {
    transform: translateY(8px) rotate(45deg);
}

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

body.menu-open #menu-line-3 {
    transform: translateY(-8px) rotate(-45deg);
    width: 1.25rem;
}

/* Scroll Reveal Animations */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal[data-reveal-state="hidden"] {
    opacity: 0;
    transform: translateY(30px);
}

/* Button Hover Effects */
a:hover {
    transition: all 0.2s ease;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #C05746;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .geo-shape,
    .shape-circle-1,
    .shape-circle-2,
    .shape-circle-3,
    .shape-square-1,
    .shape-triangle-1,
    .shape-rect-1 {
        animation: none;
    }
    
    .reveal {
        transition: none;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .shape-circle-1 {
        width: 80px;
        height: 80px;
    }
    
    .shape-square-1 {
        width: 35px;
        height: 35px;
    }
    
    .shape-triangle-1 {
        border-left-width: 25px;
        border-right-width: 25px;
        border-bottom-width: 42px;
    }
}

/* Print Styles */
@media print {
    .geo-shape,
    #navbar,
    .reveal[data-reveal-state="hidden"] {
        display: none !important;
    }
    
    body {
        background: white;
        color: black;
    }
}
