/* ========================================================
   Farmena Digital Services - Enterprise Master CSS 
   Focus: 3D Particles, Advanced Glassmorphism, 3-Tier Grids, & Mobile Centering
======================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;600;800&display=swap');



:root {
    --primary: #6366f1;
    --accent: #a855f7;
    --bg: #030712;
    --glass: rgba(17, 24, 39, 0.7);
    --border: rgba(255, 255, 255, 0.1);
    --text-dim: #9ca3af;
    --success: #22c55e;
}

/* 1. Global Reset & Base */
* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
    scroll-behavior: smooth; 
}

body {
    background-color: var(--bg);
    color: white;
    font-family: 'Plus Jakarta Sans', sans-serif;
    overflow-x: hidden; /* PREVENTS MOBILE CUT-OFF */
    line-height: 1.6;
}

/* 2. Interactive Background Layers */
.mesh-bg {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at 0% 0%, rgba(99, 102, 241, 0.15) 0%, transparent 50%),
                radial-gradient(circle at 100% 100%, rgba(168, 85, 247, 0.15) 0%, transparent 50%);
    z-index: -2;
}

#canvas-container {
    position: fixed; 
    top: 0; left: 0; width: 100%; height: 100vh; 
    z-index: 1; pointer-events: none;
}

.content-wrapper { position: relative; z-index: 10; width: 100%; }

/* 3. Navigation Header */
header {
    position: fixed; top: 0; width: 100%; z-index: 1000;
    padding: 1.2rem 8%; backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--border);
    display: flex; justify-content: space-between; align-items: center;
    background: rgba(3, 7, 18, 0.7);
}

.logo { font-size: 1.6rem; font-weight: 800; letter-spacing: -1px; z-index: 1002; }

.nav-links { display: flex; gap: 2.5rem; align-items: center; }

.nav-links a {
    color: #e5e7eb !important; text-decoration: none !important;
    font-weight: 500; transition: 0.3s; font-size: 0.95rem;
}

.nav-links a:hover { color: var(--primary) !important; }

/* 4. Universal Buttons */
.btn-glow {
    background: linear-gradient(135deg, var(--primary), var(--accent)) !important;
    padding: 14px 28px !important; border-radius: 12px !important;
    color: #ffffff !important; font-weight: 700 !important; font-size: 1rem !important;
    box-shadow: 0 10px 20px -10px rgba(99, 102, 241, 0.5) !important;
    display: inline-block !important; border: none !important;
    text-align: center !important; cursor: pointer !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
    box-sizing: border-box !important; text-decoration: none !important;
}

.btn-glow:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px -10px rgba(99, 102, 241, 0.7) !important;
}

/* 5. Enterprise Glass Cards & Tier Boxes (For Index, Checkout & Verify) */
.glass-card, .pricing-card {
    background: var(--glass);
    border: 1px solid var(--border);
    backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px);
    border-radius: 24px;
    box-sizing: border-box;
}

.pricing-card {
    padding: 2.5rem; transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    height: 100%; position: relative; overflow: hidden;
}

.pricing-card:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-15px) rotateX(5deg);
    border-color: var(--primary);
}

.tier-box {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.tier-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.special-offer-tag {
    background: rgba(239, 68, 68, 0.1); color: #ef4444;
    padding: 4px 12px; border-radius: 20px; font-size: 0.8rem;
    border: 1px solid #ef4444; display: inline-block;
}

/* 6. Form Inputs & Checkout Elements */
form input[type="text"],
form input[type="email"],
form input[type="tel"] {
    width: 100% !important; padding: 15px 18px !important;
    background: rgba(255, 255, 255, 0.06) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    border-radius: 8px !important; color: #ffffff !important;
    font-size: 1rem !important; margin-top: 6px !important;
    box-sizing: border-box !important; transition: all 0.3s ease !important;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

form input::placeholder { color: rgba(255, 255, 255, 0.3) !important; }

form input:focus {
    border-color: var(--primary) !important; background: rgba(255, 255, 255, 0.1) !important;
    outline: none !important; box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2) !important;
}

.checkout-grid {
    max-width: 900px; width: 100%; display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 3rem;
    padding: 3.5rem; margin: 0 auto;
}

/* 7. Mobile Responsiveness & Centering (The Fixes) */
.menu-toggle { display: none; flex-direction: column; gap: 6px; cursor: pointer; z-index: 1001; }
.menu-toggle span { width: 30px; height: 3px; background: white; border-radius: 10px; transition: 0.4s; }

@media (max-width: 768px) {
    .menu-toggle { display: flex; }
    
    .nav-links {
        position: fixed; top: 0; right: -100%; width: 80%; height: 100vh;
        background: rgba(3, 7, 18, 0.98); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
        flex-direction: column; justify-content: center; align-items: center;
        gap: 2.5rem; transition: 0.5s cubic-bezier(0.77, 0.2, 0.05, 1.0); border-left: 1px solid var(--border);
    }
    .nav-links.active { right: 0; }
    
    .menu-toggle.active span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
    .menu-toggle.active span:nth-child(2) { opacity: 0; }
    .menu-toggle.active span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

    /* Fix Centering for Checkout & Index */
    .checkout-grid {
        display: flex; flex-direction: column; align-items: center;
        padding: 2rem 1.5rem; gap: 2.5rem; text-align: center;
    }
    
    .checkout-grid > div { width: 100%; display: flex; flex-direction: column; align-items: center; }
    
    h1 { font-size: 2.5rem !important; }
    h2 { text-align: center; width: 100%; font-size: 1.8rem !important; }
    
    .form-group label, form label { text-align: center !important; width: 100%; display: block; }
    form input { text-align: center; }
    
    .whatsapp-float { width: 50px; height: 50px; bottom: 20px; right: 20px; font-size: 26px; }
}

/* 8. Utilities */
.whatsapp-float {
    position: fixed; bottom: 30px; right: 30px;
    background: #25d366; color: white;
    width: 60px; height: 60px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 30px; z-index: 1000; 
    box-shadow: 0 10px 20px rgba(0,0,0,0.3); text-decoration: none;
    transition: transform 0.3s;
}
.whatsapp-float:hover { transform: scale(1.1); }
.text-success { color: var(--success); }