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

/* CSS Custom Properties */
:root {
    --forest-green: #1B4332;
    --forest-green-light: #2D6A4F;
    --forest-green-dark: #081C15;
    --off-white: #FEFAE0;
    --off-white-light: #FFFCF0;
    --accent-green: #52B788;
    --accent-lime: #95D77E;
    --text-dark: #1A1A1A;
    --text-gray: #4A4A4A;
    --text-light: #F5F5F5;
    --shadow-sm: 0 2px 8px rgba(27, 67, 50, 0.08);
    --shadow-md: 0 8px 30px rgba(27, 67, 50, 0.12);
    --shadow-lg: 0 20px 60px rgba(27, 67, 50, 0.15);
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--off-white);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ========================================
   Navigation
   ======================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(254, 250, 224, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(27, 67, 50, 0.1);
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(254, 250, 224, 0.98);
    box-shadow: var(--shadow-sm);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--forest-green);
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: var(--forest-green);
    color: var(--off-white);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    font-size: 1.2rem;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
}

.nav-links a {
    font-weight: 500;
    color: var(--text-dark);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-green);
    transition: var(--transition);
}

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

.btn-nav {
    background: var(--forest-green);
    color: var(--off-white) !important;
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    font-weight: 600;
}

.btn-nav:hover {
    background: var(--forest-green-light);
    transform: translateY(-2px);
}

.btn-nav::after {
    display: none;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--forest-green);
    padding: 8px;
}

/* Mobile Menu */
.mobile-menu {
    display: none;
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    background: var(--off-white);
    padding: 24px;
    border-bottom: 2px solid var(--accent-green);
    box-shadow: var(--shadow-md);
}

.mobile-menu.active {
    display: block;
}

.mobile-menu ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.mobile-menu a {
    display: block;
    padding: 12px 0;
    font-weight: 500;
    color: var(--text-dark);
    border-bottom: 1px solid rgba(27, 67, 50, 0.1);
}

/* ========================================
   Hero Section
   ======================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: var(--forest-green-dark);
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.4;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(8, 28, 21, 0.95) 0%,
        rgba(27, 67, 50, 0.85) 50%,
        rgba(45, 106, 79, 0.75) 100%
    );
}

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

.geo-circle-1 {
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: var(--accent-lime);
    top: -100px;
    right: -100px;
}

.geo-circle-2 {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: var(--accent-green);
    bottom: 20%;
    left: 5%;
}

.geo-triangle {
    width: 0;
    height: 0;
    border-left: 100px solid transparent;
    border-right: 100px solid transparent;
    border-bottom: 173px solid var(--accent-green);
    top: 30%;
    right: 10%;
    transform: rotate(15deg);
}

.geo-square {
    width: 120px;
    height: 120px;
    background: var(--accent-lime);
    bottom: 15%;
    right: 20%;
    transform: rotate(45deg);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
    padding-top: 80px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(82, 183, 136, 0.2);
    border: 1px solid var(--accent-green);
    padding: 8px 16px;
    border-radius: 50px;
    color: var(--accent-lime);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 24px;
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: var(--accent-green);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

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

.hero-title {
    font-size: clamp(3rem, 8vw, 5rem);
    color: var(--off-white);
    margin-bottom: 24px;
    line-height: 1.1;
}

.hero-title br {
    display: none;
}

@media (min-width: 768px) {
    .hero-title br {
        display: block;
    }
}

.hero-subtitle {
    font-size: 1.25rem;
    color: rgba(254, 250, 224, 0.8);
    margin-bottom: 40px;
    max-width: 500px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 16px 32px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--accent-green);
    color: var(--forest-green-dark);
}

.btn-primary:hover {
    background: var(--accent-lime);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: transparent;
    color: var(--off-white);
    border: 2px solid rgba(254, 250, 224, 0.3);
}

.btn-secondary:hover {
    background: rgba(254, 250, 224, 0.1);
    border-color: var(--off-white);
}

.btn-outline {
    background: transparent;
    color: var(--forest-green);
    border: 2px solid var(--forest-green);
}

.btn-outline:hover {
    background: var(--forest-green);
    color: var(--off-white);
}

.hero-scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: rgba(254, 250, 224, 0.6);
    font-size: 0.875rem;
}

.scroll-indicator {
    width: 24px;
    height: 40px;
    border: 2px solid rgba(254, 250, 224, 0.4);
    border-radius: 12px;
    position: relative;
}

.scroll-indicator::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: var(--accent-green);
    border-radius: 2px;
    animation: scrollDown 2s ease-in-out infinite;
}

@keyframes scrollDown {
    0% { top: 8px; opacity: 1; }
    100% { top: 24px; opacity: 0; }
}

/* ========================================
   Section Common
   ======================================== */
section {
    padding: 100px 0;
    position: relative;
}

.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 60px;
}

.section-tag {
    display: inline-block;
    background: rgba(82, 183, 136, 0.15);
    color: var(--forest-green-light);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.section-title {
    font-size: clamp(2rem, 5vw, 3rem);
    color: var(--forest-green);
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-gray);
}

/* ========================================
   Services Section
   ======================================== */
.services {
    background: var(--off-white);
    overflow: hidden;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.service-card {
    background: white;
    padding: 40px 32px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--forest-green), var(--accent-green));
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    width: 64px;
    height: 64px;
    background: rgba(27, 67, 50, 0.1);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--forest-green);
    margin-bottom: 24px;
}

.service-card h3 {
    font-size: 1.25rem;
    color: var(--forest-green);
    margin-bottom: 12px;
}

.service-card p {
    color: var(--text-gray);
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.service-tag {
    display: inline-block;
    background: var(--off-white);
    color: var(--forest-green-light);
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
}

.geo-accent {
    position: absolute;
    pointer-events: none;
}

.geo-rect-1 {
    width: 300px;
    height: 300px;
    background: var(--accent-green);
    opacity: 0.05;
    border-radius: var(--radius-lg);
    bottom: -100px;
    right: -100px;
    transform: rotate(30deg);
}

/* ========================================
   How It Works Section
   ======================================== */
.how-it-works {
    background: var(--forest-green);
    color: var(--off-white);
}

.how-it-works .section-tag {
    background: rgba(82, 183, 136, 0.2);
    color: var(--accent-lime);
}

.how-it-works .section-title {
    color: var(--off-white);
}

.how-it-works .section-subtitle {
    color: rgba(254, 250, 224, 0.7);
}

.steps-container {
    max-width: 800px;
    margin: 0 auto 60px;
}

.step {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    position: relative;
}

.step-number {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 3rem;
    font-weight: 700;
    color: var(--accent-green);
    line-height: 1;
    min-width: 80px;
}

.step-content {
    flex: 1;
    padding-bottom: 40px;
}

.step-content h3 {
    font-size: 1.5rem;
    margin-bottom: 8px;
    color: var(--off-white);
}

.step-content p {
    color: rgba(254, 250, 224, 0.7);
}

.step-connector {
    position: absolute;
    left: 35px;
    bottom: 0;
    width: 2px;
    height: 40px;
    background: linear-gradient(to bottom, var(--accent-green), transparent);
}

.cta-box {
    background: rgba(254, 250, 224, 0.1);
    border: 1px solid rgba(82, 183, 136, 0.3);
    border-radius: var(--radius-lg);
    padding: 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    flex-wrap: wrap;
}

.cta-content h3 {
    font-size: 1.75rem;
    margin-bottom: 8px;
    color: var(--off-white);
}

.cta-content p {
    color: rgba(254, 250, 224, 0.7);
}

.cta-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.geo-circle-3 {
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: var(--accent-green);
    opacity: 0.05;
    top: -200px;
    left: -200px;
}

/* ========================================
   Location Section
   ======================================== */
.location {
    background: var(--off-white-light);
}

.location-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin: 40px 0;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.contact-icon {
    width: 48px;
    height: 48px;
    background: var(--forest-green);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--off-white);
    flex-shrink: 0;
}

.contact-text strong {
    display: block;
    color: var(--forest-green);
    margin-bottom: 4px;
}

.contact-text p,
.contact-text a {
    color: var(--text-gray);
    font-size: 0.95rem;
}

.contact-text a:hover {
    color: var(--forest-green-light);
}

.map-container {
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.location-visual {
    position: relative;
}

.visual-card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.visual-card img {
    width: 100%;
    height: 500px;
    object-fit: cover;
}

.visual-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 32px;
    background: linear-gradient(to top, rgba(8, 28, 21, 0.9), transparent);
}

.visual-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--accent-green);
    color: var(--forest-green-dark);
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    font-weight: 600;
}

/* ========================================
   Footer
   ======================================== */
.footer {
    background: var(--forest-green-dark);
    color: var(--off-white);
    padding: 60px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand .logo {
    color: var(--off-white);
    margin-bottom: 16px;
}

.footer-tagline {
    color: rgba(254, 250, 224, 0.6);
    font-size: 0.95rem;
}

.footer-links h4,
.footer-contact h4 {
    font-size: 1rem;
    margin-bottom: 16px;
    color: var(--accent-lime);
}

.footer-links ul,
.footer-contact ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a,
.footer-contact a {
    color: rgba(254, 250, 224, 0.6);
    font-size: 0.95rem;
}

.footer-links a:hover,
.footer-contact a:hover {
    color: var(--accent-lime);
}

.footer-bottom {
    border-top: 1px solid rgba(254, 250, 224, 0.1);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-bottom p {
    color: rgba(254, 250, 224, 0.5);
    font-size: 0.875rem;
}

.footer-legal {
    font-size: 0.8rem !important;
}

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

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

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

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 968px) {
    .nav-links {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .location-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .location-visual {
        order: -1;
    }
    
    .visual-card img {
        height: 300px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .cta-box {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 640px) {
    section {
        padding: 60px 0;
    }
    
    .hero-actions {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .step {
        flex-direction: column;
        gap: 12px;
    }
    
    .step-number {
        font-size: 2rem;
        min-width: auto;
    }
    
    .step-connector {
        display: none;
    }
    
    .cta-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .cta-actions .btn {
        width: 100%;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}
