/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2563eb;
    --primary-dark: #1e40af;
    --secondary-color: #0f172a;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --bg-light: #f8fafc;
    --bg-white: #ffffff;
    --border-color: #e2e8f0;
    --success-color: #10b981;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text-primary);
    line-height: 1.6;
    background-color: var(--bg-white);
}

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

/* Navigation */
.navbar {
    background: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
    position: relative; /* Important for mobile menu positioning */
}

.navbar .container {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.nav-brand {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.nav-brand .logo {
    height: 80px;
    width: auto;
}

/* Main Navigation (Left Side) - Next to Logo */
.nav-main {
    display: flex !important;
    gap: 2rem !important;
    align-items: center !important;
    margin-left: 3rem !important;
    flex: 0 0 auto !important;
}

/* Action Links (Right Side) */
.nav-actions {
    display: flex !important;
    gap: 1.5rem !important;
    align-items: center !important;
    margin-left: auto !important;
    flex: 0 0 auto !important;
}

.nav-links .nav-link {
    text-decoration: none;
    color: #0f172a;
    font-weight: 600;
    font-size: 18px;  /* Changed from 0.95rem */
    transition: color 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
}
.nav-link:hover {
    color: var(--primary-color) !important;
}

.btn-primary {
    background: var(--primary-color) !important;
    color: white !important;
    padding: 0.625rem 1.5rem !important;
    border-radius: 0.5rem !important;
    transition: background 0.2s;
    font-weight: 600 !important;
    text-decoration: none !important;
    white-space: nowrap;
    display: inline-block !important;
}

.btn-primary:hover {
    background: var(--primary-dark) !important;
}

/* Hero Section */
.hero {
    background: #f8fafc;
    padding: 5rem 2rem;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    font-weight: 500;
}

.btn-hero {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 1rem 2.5rem;
    border-radius: 0.625rem;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s;
    box-shadow: 0 4px 6px rgba(37, 99, 235, 0.2);
}

.btn-hero:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(37, 99, 235, 0.3);
}

/* Products Section */
.products {
    padding: 6rem 0;
    background: var(--bg-white);
}

/* Benefits Section */
.benefits {
    padding: 6rem 0;
    background: var(--bg-light);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.benefit-card {
    background: var(--bg-white);
    padding: 2.5rem;
    border-radius: 1rem;
    text-align: center;
    transition: all 0.3s;
    border: 1px solid var(--border-color);
}

.benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
}

.benefit-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.benefit-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

.benefit-card p {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 0.95rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1.5rem;
    color: var(--secondary-color);
    letter-spacing: -0.02em;
}

.section-subtitle {
    text-align: center;
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 800px;
    margin: 0 auto 4rem;
    line-height: 1.7;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
}

.product-card {
    background: var(--bg-light);
    padding: 3rem;
    border-radius: 1rem;
    transition: all 0.3s;
    border: 1px solid var(--border-color);
}

.product-card.featured {
    border: 2px solid var(--primary-color);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.1);
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
}

.product-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.product-name {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--secondary-color);
}

.product-subtitle {
    font-size: 0.95rem;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.product-description {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.feature-list {
    list-style: none;
    padding: 0;
    margin-top: 1.5rem;
}

.feature-list li {
    padding: 0.5rem 0;
    color: var(--text-primary);
    font-size: 0.95rem;
}

/* Why Maverick Section */
.why-maverick {
    padding: 6rem 0;
    background: var(--bg-light);
}

.why-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.why-text {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 4rem;
    line-height: 1.8;
}

.why-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    text-align: left;
}

.feature h4 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--secondary-color);
}

.feature p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Contact Section */
.contact {
    padding: 6rem 0;
    background: var(--bg-white);
}

.contact-subtitle {
    text-align: center;
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.875rem;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.2s;
    background-color: var(--bg-white);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
}

.btn-submit {
    width: 100%;
    background: var(--primary-color);
    color: white;
    padding: 1rem;
    border: none;
    border-radius: 0.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-submit:hover {
    background: var(--primary-dark);
}

.form-message {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 0.5rem;
    text-align: center;
    font-weight: 500;
    display: none;
}

.form-message.success {
    background: #d1fae5;
    color: #065f46;
    display: block;
}

.form-message.error {
    background: #fee2e2;
    color: #991b1b;
    display: block;
}

/* Footer */
.footer {
    background: var(--secondary-color);
    color: white;
    padding: 2.5rem 0;
    text-align: center;
}

.footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: white;
}

/* Floating Chatbot */
.chat-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 15px 25px;
    background: linear-gradient(135deg, #003DA5 0%, #002870 100%);
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 61, 165, 0.4);
    z-index: 1000;
    transition: transform 0.2s;
    color: white;
    font-weight: 700;
    font-size: 16px;
    white-space: nowrap;
    letter-spacing: 0.5px;
}

.chat-button:hover {
    transform: scale(1.05);
}

.chat-window {
    display: none;
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 400px;
    height: 600px;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    overflow: hidden;
    background: white;
}

.chat-window.open {
    display: block;
    position: fixed;
}

.chat-window-header {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 1002;
    padding: 10px;
}

.chat-close {
    width: 30px;
    height: 30px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 20px;
    transition: background 0.2s;
}

.chat-close:hover {
    background: rgba(0, 0, 0, 0.8);
}

/* ============================================
   MOBILE RESPONSIVE DESIGN
   ============================================ */

/* Tablet and below (768px and smaller) */
@media (max-width: 768px) {
    /* Navigation */
    .navbar .container {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }
    
    .nav-links {
        flex-direction: column;
        width: 100%;
        gap: 0.5rem;
    }
    
    .nav-link, .btn-primary {
        width: 100%;
        text-align: center;
    }
    
    /* Logo */
    .logo {
        height: 60px;
        margin: 0 auto;
    }
    
    /* Hero Section */
    .hero {
        padding: 3rem 1rem;
        min-height: auto;
    }
    
    .hero-content {
        max-width: 100%;
    }
    
    .hero-title {
        font-size: 2rem !important;
        line-height: 1.2;
        white-space: normal !important;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        line-height: 1.6;
    }
    
    .hero-cta {
        flex-direction: column;
        gap: 1rem;
    }
    
    .btn-primary, .btn-secondary, .btn-hero {
        width: 100%;
        padding: 1rem;
    }
    
    /* Features/Products */
    .features-grid,
    .product-grid,
    .why-features,
    .benefits-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    /* Contact Form */
    .contact-form {
        padding: 2rem 1rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    /* Footer */
    .footer .container {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    /* Sections */
    .products,
    .benefits,
    .why-maverick,
    .contact {
        padding: 4rem 0;
    }
}

/* Mobile Navigation */
.mobile-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border-top: 1px solid #e5e7eb;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 1rem 0;
    z-index: 1000;
}

.mobile-menu-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 2rem;
    text-decoration: none;
    color: #363636;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 18px;
    border-bottom: 1px solid #f3f4f6;
    transition: background 0.2s;
}

.mobile-menu-item:hover {
    background: #f9fafb;
}

/* Responsive Behavior */
@media (max-width: 1024px) {
    /* Hide desktop menu */
    .nav-menu-desktop {
        display: none !important;
    }
    
    /* Show hamburger button */
    .hamburger-menu {
        display: block !important;
    }
    
    /* Make logo smaller */
    .nav-wrapper img {
        height: 60px !important;
    }
}

@media (max-width: 640px) {
    /* Even smaller logo */
    .nav-wrapper img {
        height: 50px !important;
    }
    
    /* Smaller action buttons */
    .nav-actions a {
        font-size: 0.85rem !important;
    }
    
    .nav-actions a[href="#contact"] {
        padding: 0.5rem 1rem !important;
    }
}

/* Mobile phones (480px and smaller) */
@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }
    
    .hero {
        padding: 4rem 0 3rem;
    }
    
    .hero-title {
        font-size: 1.75rem !important;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
    }
    
    .section-title,
    h2 {
        font-size: 1.75rem;
    }
    
    h3 {
        font-size: 1.25rem;
    }
    
    .product-card,
    .benefit-card {
        padding: 2rem 1.5rem;
    }
    
    .product-name {
        font-size: 1.5rem;
    }
    
    .why-text {
        font-size: 1.1rem;
    }
    
    /* Chatbot button - make smaller on mobile */
    .chat-button {
        padding: 12px 20px;
        font-size: 14px;
    }
    
    .chat-window {
        width: calc(100vw - 40px);
        right: 20px;
        left: 20px;
    }
}
    /* Smooth Scrolling */
    html {
        scroll-behavior: smooth;
    }

    /* Content Sections - Clean & Aligned */
    .content-section {
        padding: 5rem 0;
        background: white;
    }

    .content-section.alt-bg {
        background: #f9fafb;
    }

    .content-container {
        max-width: 1200px;
        margin: 0 auto;
        padding: 0 2rem;
    }

    .content-title {
        font-size: 2.5rem;
        font-weight: 700;
        text-align: center;
        color: #0f172a;
        margin-bottom: 1rem;
    }

    .content-subtitle {
        font-size: 1.15rem;
        text-align: center;
        color: #64748b;
        margin-bottom: 3rem;
        max-width: 700px;
        margin-left: auto;
        margin-right: auto;
    }

    /* Card Grid */
    .card-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 2rem;
        margin-top: 3rem;
    }

    .info-card {
        background: white;
        padding: 2rem;
        border-radius: 8px;
        border: 1px solid #e5e7eb;
    }

    .content-section.alt-bg .info-card {
        background: white;
    }

    .info-card h3 {
        font-size: 1.5rem;
        font-weight: 600;
        color: #0f172a;
        margin-bottom: 1rem;
    }

    .info-card p {
        color: #64748b;
        line-height: 1.7;
        margin-bottom: 1rem;
    }

    .feature-list {
        list-style: none;
        padding: 0;
        margin: 1.5rem 0 0 0;
    }

    .feature-list li {
        color: #475569;
        padding: 0.5rem 0;
        padding-left: 1.5rem;
        position: relative;
    }

    .feature-list li::before {
        content: "•";
        position: absolute;
        left: 0;
        color: #2563eb;
        font-weight: bold;
    }

    /* About Section */
    .about-content {
        max-width: 900px;
        margin: 0 auto;
    }

    .about-section {
        margin-bottom: 3rem;
    }

    .about-section h3 {
        font-size: 1.75rem;
        font-weight: 600;
        color: #0f172a;
        margin-bottom: 1rem;
    }

    .about-section p {
        color: #64748b;
        line-height: 1.8;
        font-size: 1.05rem;
    }

    .steps-list {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 2rem;
        margin-top: 2rem;
    }

    .step h4 {
        font-size: 1.15rem;
        font-weight: 600;
        color: #0f172a;
        margin-bottom: 0.5rem;
    }

    .step p {
        color: #64748b;
        line-height: 1.6;
        font-size: 0.95rem;
    }

    .why-list {
        list-style: none;
        padding: 0;
    }

    .why-list li {
        padding: 0.75rem 0;
        padding-left: 1.5rem;
        color: #475569;
        font-size: 1.05rem;
        line-height: 1.6;
        position: relative;
    }

    .why-list li::before {
        content: "✓";
        position: absolute;
        left: 0;
        color: #2563eb;
        font-weight: bold;
    }

    /* CTA Box */
    .cta-box {
        background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
        padding: 3rem;
        border-radius: 8px;
        text-align: center;
        margin-top: 4rem;
        color: white;
    }

    .cta-box h3 {
        font-size: 2rem;
        font-weight: 700;
        margin-bottom: 1rem;
        color: white;
    }

    .cta-box p {
        font-size: 1.1rem;
        margin-bottom: 2rem;
        opacity: 0.95;
    }

    .btn-cta {
        display: inline-block;
        background: white;
        color: #2563eb;
        padding: 1rem 2.5rem;
        border-radius: 6px;
        font-weight: 600;
        text-decoration: none;
        transition: transform 0.2s;
    }

    .btn-cta:hover {
        transform: translateY(-2px);
    }

    /* Mobile Responsive */
    @media (max-width: 768px) {
        .content-title {
            font-size: 2rem;
        }
        
        .content-container {
            padding: 0 1.5rem;
        }
        
        .card-grid {
            grid-template-columns: 1fr;
        }
        
        .cta-box {
            padding: 2rem 1.5rem;
        }
        
        .cta-box h3 {
            font-size: 1.5rem;
        }
    }
    /* Navigation Actions Hover Effects */
    .nav-actions a:hover {
        transform: translateY(-2px);
    }

    .nav-actions a[href="/login"]:hover {
        background: #2563eb;
        color: white;
    }

    .nav-actions a[href="#contact"]:hover {
        box-shadow: 0 6px 16px rgba(37, 99, 235, 0.4);
        transform: translateY(-2px);
    }