/* --- 1. CORE VARIABLES & GLOBAL RESET --- */
html, body {
    width: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden; /* This stops the horizontal dragging */
    position: relative;
    -webkit-overflow-scrolling: touch;
}

:root {
    --bg: #05070A;
    --card-bg: rgba(255, 255, 255, 0.03);
    --primary: #00F2FF;
    --secondary: #7000FF;
    --text-main: #FFFFFF;
    --text-dim: #94A3B8;
    --glass-border: rgba(255, 255, 255, 0.1);
    --success: #25D366;
}

* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
    scroll-behavior: smooth; 
}

body {
    background-color: var(--bg);
    color: var(--text-main);
    font-family: 'Plus Jakarta Sans', sans-serif;
    overflow-x: hidden;
    width: 100%;
}

/* --- 2. NAVIGATION --- */
nav {
    display: flex; 
    justify-content: space-between; 
    align-items: center;
    padding: 1rem 5%;
    position: sticky; 
    top: 0; 
    z-index: 1000;
    backdrop-filter: blur(15px); 
    background: rgba(5, 7, 10, 0.8);
    border-bottom: 1px solid var(--glass-border);
}

.logo { font-weight: 800; font-size: 1.3rem; white-space: nowrap; }
.logo span { color: var(--primary); }

.nav-links { display: flex; gap: 1.5rem; list-style: none; align-items: center; }
.nav-links a { 
    text-decoration: none; 
    color: var(--text-dim); 
    transition: 0.3s; 
    font-size: 0.9rem; 
}
.nav-links a:hover { color: var(--primary); }

.badge { 
    background: var(--secondary); 
    color: white; 
    font-size: 0.65rem; 
    padding: 2px 6px; 
    border-radius: 4px; 
    margin-left: 5px; 
}

/* --- 3. PREMIUM BUTTONS & ANIMATIONS --- */
.btn { 
    padding: 1rem 2rem; 
    border-radius: 12px; 
    font-weight: 700; 
    text-decoration: none; 
    display: inline-flex; 
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    cursor: pointer; 
    border: none;
    position: relative;
    overflow: hidden;
}

.btn-primary { 
    background: linear-gradient(135deg, var(--primary) 0%, #00d4ff 100%); 
    color: #080B12 !important; 
    box-shadow: 0 4px 15px rgba(0, 242, 255, 0.3);
    animation: button-pulse 3s infinite;
}

.btn-primary::before {
    content: ""; position: absolute; top: 0; left: -100%; width: 100%; height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: all 0.6s;
}

.btn-primary:hover::before { left: 100%; }

.btn-secondary { 
    background: rgba(255,255,255,0.05); 
    color: #fff; 
    border: 1px solid var(--glass-border); 
}

.btn:hover { transform: translateY(-3px); opacity: 0.9; }

@keyframes button-pulse {
    0% { box-shadow: 0 0 0 0 rgba(0, 242, 255, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(0, 242, 255, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 242, 255, 0); }
}

/* --- 4. SECTIONS & LAYOUT --- */
section {
    width: 100%;
    padding: 4rem 5%; /* Use percentages or small rem for padding */
    overflow: hidden; /* Clips any stray animations */
}

.section-tag { 
    color: var(--primary); 
    font-size: 0.8rem; 
    font-weight: 700; 
    text-transform: uppercase; 
    letter-spacing: 2px; 
    display: block; 
    margin-bottom: 1rem; 
}

h2 { font-size: clamp(1.8rem, 5vw, 2.8rem); margin-bottom: 1.5rem; }

.hero {
    padding: clamp(6rem, 15vh, 10rem) 5% 4rem;
    text-align: center;
    background: radial-gradient(circle at 50% -20%, rgba(0, 242, 255, 0.15), transparent 50%);
}

.hero h1 { 
    font-size: clamp(2.2rem, 8vw, 4rem); 
    font-weight: 800; 
    line-height: 1.1; 
    margin-bottom: 1.5rem; 
    letter-spacing: -1px; 
}

.hero p { 
    color: var(--text-dim); 
    font-size: clamp(1rem, 2.5vw, 1.2rem); 
    max-width: 800px; 
    margin: 0 auto 2.5rem; 
}

/* --- 5. CARDS & MOCKUPS --- */
.services-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); 
    gap: 1.5rem; 
}

.service-card { 
    background: var(--card-bg); 
    border: 1px solid var(--glass-border); 
    padding: clamp(1.5rem, 5vw, 3rem); 
    border-radius: 24px;
    transition: 0.4s;
}

.ats-highlight { 
    background: linear-gradient(135deg, rgba(112, 0, 255, 0.1) 0%, rgba(5, 7, 10, 1) 100%);
    border: 1px solid rgba(112, 0, 255, 0.3); 
    border-radius: clamp(20px, 5vw, 40px); 
    padding: clamp(2rem, 8vw, 5rem); 
}

.browser-frame {
    background: #1A1D23;
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    overflow: hidden;
    transition: 0.4s;
}

.browser-frame.light { background: #F8FAFC; border: 1px solid #E2E8F0; }
.browser-dots { padding: 10px 15px; background: rgba(0,0,0,0.1); display: flex; gap: 6px; }
.browser-dots span { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.2); }
.browser-dots.dark span { background: #CBD5E1; }

/* --- 6. PRICING TABLE --- */
.pricing-table-container {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    background: var(--card-bg);
    position: relative;
}

table { 
    width: 100%; 
    border-collapse: separate; 
    border-spacing: 0;
    min-width: 850px; /* Ensures enough space for columns */
}
.table-group-header td { 
    padding: 1.2rem; 
    background: rgba(255,255,255,0.05); 
    color: var(--primary); 
    font-weight: 700; 
    text-transform: uppercase; 
    font-size: 0.75rem; 
}
.table-row td { 
    padding: 1.2rem; 
    border-bottom: 1px solid rgba(255,255,255,0.03); 
    color: var(--text-dim); 
    text-align: center;
    vertical-align: middle; /* Add this */
    height: 60px; /* Add this to keep rows perfectly aligned */
}


.table-row td:first-child, 
.table-group-header td:first-child {
    text-align: left; 
    position: sticky; 
    left: 0; 
    background: #080B12; 
    z-index: 10; 
    min-width: 200px; 
    border-right: 2px solid var(--primary); /* Brighter border to show the edge */
    box-shadow: 10px 0 15px -10px rgba(0,0,0,0.5); /* Adds depth */
}

.table-row td:not(:first-child) {
    white-space: nowrap;
    font-family: 'monospace'; /* Optional: makes numbers line up better */
    font-weight: 700;
    color: var(--text-main);
}
/* --- 7. PORTFOLIO DEMO CARDS --- */
.demo-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; }
.demo-card { background: var(--card-bg); border: 1px solid var(--glass-border); border-radius: 20px; overflow: hidden; transition: 0.4s; }
.demo-image-wrapper { position: relative; height: 200px; }
.demo-image-wrapper img { width: 100%; height: 100%; object-fit: cover; }
.demo-badge { position: absolute; top: 15px; left: 15px; background: rgba(0,0,0,0.8); color: var(--primary); padding: 4px 12px; border-radius: 50px; font-size: 0.75rem; border: 1px solid var(--primary); }
.demo-content { padding: 1.5rem; }
.demo-actions { display: flex; flex-direction: column; gap: 0.8rem; }
.demo-btn { text-align: center; padding: 0.8rem; border-radius: 10px; font-weight: 600; text-decoration: none; display: flex; align-items: center; justify-content: center; gap: 8px; transition: 0.3s; }
.demo-btn.primary { background: var(--success); color: white; }
.demo-btn.secondary { background: rgba(255,255,255,0.05); color: white; border: 1px solid var(--glass-border); }
.demo-btn:hover { transform: scale(1.02); }

/* --- 8. FOOTER AREA --- */
/* --- 5. FOOTER FIXES (Preventing Messy Alignment) --- */
.saas-footer { background: #080B12; padding: 4rem 5% 2rem; border-top: 1px solid var(--glass-border); }

.footer-cta {
    display: flex; 
    justify-content: space-between; 
    align-items: center;
    background: rgba(255, 255, 255, 0.02); 
    padding: 2rem; 
    border-radius: 24px;
    border: 1px solid rgba(0, 242, 255, 0.1); 
    margin-bottom: 3rem;
    flex-wrap: wrap; /* Important for mobile */
    gap: 1.5rem;
}
.footer-wa-btn { 
    background: var(--success); color: white; padding: 1rem 2rem; 
    border-radius: 12px; text-decoration: none; font-weight: 700;
    display: flex; align-items: center; gap: 10px; transition: 0.3s;
}

.footer-main-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); 
    gap: 2rem; 
    margin-bottom: 3rem; 
}
.footer-logo { font-size: 1.4rem; font-weight: 800; margin-bottom: 1.5rem; color: #fff; }
.footer-logo span { color: var(--primary); }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 1rem; }
.footer-links a { color: var(--text-dim); text-decoration: none; transition: 0.3s; font-size: 0.95rem; }
.footer-links a:hover { color: var(--primary); padding-left: 5px; }

.contact-icons { display: flex; gap: 15px; margin-top: 1.5rem; }
.contact-icons a { color: var(--text-dim); transition: 0.3s; }
.contact-icons a:hover { color: var(--primary); transform: translateY(-3px); }

.pro-tip { background: rgba(255,255,255,0.03); padding: 1.2rem; border-radius: 12px; font-size: 0.85rem; color: var(--text-dim); border-left: 3px solid var(--secondary); }

.footer-bottom { border-top: 1px solid rgba(255,255,255,0.05); padding-top: 2rem; display: flex; justify-content: space-between; font-size: 0.85rem; color: #64748B; }

/* --- 9. FLOATING WHATSAPP --- */
.whatsapp-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25D366; /* Official WhatsApp Green */
    color: white !important;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    z-index: 9999;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    transition: all 0.3s ease;
    text-decoration: none;
    animation: whatsapp-glow 2s infinite;
}
.whatsapp-btn:hover {
    transform: scale(1.1) translateY(-5px);
    background-color: #20ba5a;
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.6);
}
/* Attractive Pulse Animation */
@keyframes whatsapp-glow {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* Mobile Adjustment to keep it from hitting the edge */
@media (max-width: 768px) {
    .whatsapp-btn {
        bottom: 20px;
        right: 20px;
        width: 55px;
        height: 55px;
        font-size: 25px;
    }
}


/* --- GLOBAL MOBILE FIXES --- */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* --- NAV REPAIR --- */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    position: fixed;
    width: 100%;
    z-index: 1000;
    background: rgba(5, 7, 10, 0.95);
    backdrop-filter: blur(10px);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
}

@media (max-width: 768px) {
    .menu-toggle { display: block; }
    .nav-cta-desktop { display: none; }
    
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #0a0c10;
        flex-direction: column;
        padding: 2rem;
        gap: 1.5rem;
        border-bottom: 1px solid var(--primary);
    }

    .nav-links.active { display: flex; }
    
    /* Hero fixes */
    .hero { padding: 8rem 5% 4rem; text-align: center; }
    .hero h1 { font-size: 1.8rem !important; line-height: 1.3; }
    .hero-btns { display: flex; flex-direction: column; gap: 1rem; }
    .btn { width: 100%; justify-content: center; }

    /* PDF Card Repair */
    .exclusive-feature-card {
        flex-direction: column !important;
        padding: 1.5rem !important;
        text-align: center;
    }
    .feature-icons { margin-top: 1.5rem; justify-content: center; }

    /* Product Gallery Image Fix */
    .interface-grid {
        grid-template-columns: 1fr !important; /* Forces 1 column */
        gap: 2rem;
    }
    .browser-frame {
        width: 100%;
        overflow: hidden;
    }

    /* Pricing Table Rescue */
    .pricing-scroll-wrapper {
        margin: 0 -5%;
        padding: 0 5%;
        overflow-x: auto;
    }
    .pricing-table-container {
    min-width: 800px; /* Increased from 600px to prevent squishing */
}
    
    /* Portfolio/Sample Card Fix */
    .demo-grid {
        grid-template-columns: 1fr !important;
    }
    
    /* WhatsApp Button Professional Fix */
.whatsapp-btn {
    position: fixed; /* Ensures it stays in view while scrolling */
    bottom: 20px;
    right: 20px;
    width: 55px; /* Slightly larger for better thumb-tap (UX) */
    height: 55px;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    /* This next line prevents it from causing layout shifts */
    pointer-events: auto; 
}
}
/* 1. Hide the desktop table on mobile */
@media (max-width: 768px) {
    .pricing-table-container {
        display: none; /* Hides the table that is causing trouble */
    }

    /* 2. Style for the New Mobile Cards */
    .mobile-pricing-wrapper {
        display: flex;
        flex-direction: column;
        gap: 2rem;
        padding: 1rem 0;
    }

    .mobile-plan-card {
        background: var(--card-bg);
        border: 1px solid var(--glass-border);
        border-radius: 20px;
        padding: 1.5rem;
        transition: 0.3s;
    }

    .mobile-plan-card.featured {
        border-color: var(--primary);
        background: linear-gradient(135deg, rgba(0, 242, 255, 0.05) 0%, rgba(5, 7, 10, 1) 100%);
    }

    .mobile-plan-header {
        border-bottom: 1px solid var(--glass-border);
        padding-bottom: 1rem;
        margin-bottom: 1rem;
    }

    .mobile-plan-name {
        color: var(--primary);
        font-size: 1.2rem;
        font-weight: 800;
        text-transform: uppercase;
    }

    .mobile-plan-price {
        font-size: 2rem;
        font-weight: 800;
        margin: 0.5rem 0;
    }

    .mobile-feature-list {
        list-style: none;
    }

    .mobile-feature-item {
        display: flex;
        justify-content: space-between;
        padding: 0.8rem 0;
        border-bottom: 1px solid rgba(255,255,255,0.05);
        font-size: 0.9rem;
    }

    .feature-label { color: var(--text-dim); }
    .feature-value { color: #fff; font-weight: 600; }
}

/* Hide mobile version on desktop */
@media (min-width: 769px) {
    .mobile-pricing-wrapper {
        display: none;
    }
}
/* Styling for the Accordion inside Cards */
.standard-features {
    margin-top: 1.5rem;
    border-top: 1px solid var(--glass-border);
    padding-top: 1rem;
}

.standard-features summary {
    list-style: none;
    text-align: center;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary);
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.standard-features summary::after {
    content: ' ▾';
    transition: 0.3s;
}

.standard-features[open] summary::after {
    content: ' ▴';
}

.accordion-content {
    margin-top: 1rem;
    animation: slideDown 0.3s ease-out;
}

/* Specific highlight for top metrics */
.mobile-feature-item.highlight {
    background: rgba(255, 255, 255, 0.02);
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 5px;
    border-left: 2px solid var(--primary);
}

.price-period {
    font-size: 0.9rem;
    color: var(--text-dim);
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Special Styling for the Enterprise Card */
.enterprise-gradient {
    border: 1px solid var(--secondary) !important;
    background: linear-gradient(135deg, rgba(112, 0, 255, 0.05) 0%, rgba(5, 7, 10, 1) 100%) !important;
}

/* Ensure the Enterprise text doesn't look squashed */
.enterprise-gradient .mobile-plan-price {
    font-size: 1.8rem;
    letter-spacing: -0.5px;
    color: var(--text-main);
}

/* Standardizing the accordion spacing */
.accordion-content .mobile-feature-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    padding: 12px 0;
}
