/* Global Styles & Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #1e40af;
    --secondary-color: #f59e0b;
    --accent-color: #10b981;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --background: #ffffff;
    --background-light: #f8fafc;
    --border-color: #e2e8f0;
    --highlight: #fef3c7;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
}

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

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

/* Header & Navigation */
.main-header {
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid #e2e8f0;
}

.navbar {
    padding: 1.25rem 0;
}

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

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
    max-width: 100%;
    padding: 0 1.5rem;
}

.logo {
    margin-right: auto;
    flex-shrink: 0;
}

.logo a {
    text-decoration: none;
    color: #1f2937;
    display: flex;
    align-items: center;
    gap: 0.875rem;
    transition: all 0.3s;
}

.logo a:hover {
    transform: translateY(-2px);
}

.logo-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #f59e0b, #fbbf24);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    font-weight: 900;
    color: #1e40af;
    box-shadow: 0 4px 16px rgba(245, 158, 11, 0.5);
    position: relative;
    flex-shrink: 0;
}

.logo-icon::before {
    content: 'S';
    font-family: 'Inter', sans-serif;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.logo-icon::after {
    content: '';
    position: absolute;
    top: -3px;
    right: -3px;
    width: 14px;
    height: 14px;
    background: #10b981;
    border-radius: 50%;
    border: 3px solid #ffffff;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.5);
}

.logo h1 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    letter-spacing: 0.5px;
    line-height: 1.2;
}

.logo-text-wrapper {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.logo-brand {
    font-size: 1.35rem;
    font-weight: 800;
    color: #1f2937;
    letter-spacing: -0.5px;
}

.logo-tagline {
    font-size: 0.75rem;
    font-weight: 600;
    color: #f59e0b;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.logo .logo-text {
    color: #1f2937;
    font-weight: 700;
}

.logo .highlight {
    color: inherit;
    font-weight: 900;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 0.5rem;
    margin: 0 0 0 auto;
    padding: 0;
    align-items: center;
}

.nav-menu a {
    text-decoration: none;
    color: #4b5563;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.75rem 1.25rem;
    border-radius: 8px;
    transition: all 0.2s ease;
    position: relative;
    white-space: nowrap;
    display: inline-block;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    user-select: none;
}

.nav-menu a:hover {
    color: #1e40af;
    background: rgba(30, 64, 175, 0.08);
    border-bottom-color: #1e40af;
    cursor: pointer;
}

.nav-menu a.active {
    color: #1e40af;
    background: rgba(30, 64, 175, 0.12);
    font-weight: 700;
    border-bottom-color: #1e40af;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: #1f2937;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #1e40af 0%, #3730a3 50%, #1e3a8a 100%);
    color: white;
    padding: 4rem 0;
    text-align: center;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #f59e0b 0%, #fb923c 50%, #f59e0b 100%);
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.5);
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin: 3rem 0;
}

.hero-stats .stat h3 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.hero-stats .stat p {
    font-size: 1rem;
    opacity: 0.9;
}

/* Loan Application Form */
.loan-application-form {
    margin: 3rem 0;
    padding: 2.5rem;
    background: #ffffff;
    border-radius: 16px;
    border: 3px solid #f59e0b;
    box-shadow: 0 8px 24px rgba(245, 158, 11, 0.2), 0 4px 8px rgba(0, 0, 0, 0.08);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
}

.loan-application-form::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    background: linear-gradient(135deg, #f59e0b, #fb923c, #f59e0b);
    border-radius: 16px;
    z-index: -1;
    opacity: 0.3;
}

.loan-application-form #_lg_form_ {
    width: 100%;
}


.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.875rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    cursor: pointer;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: #1d4ed8;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.btn-secondary {
    background-color: white;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: white;
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 0.625rem 1.5rem;
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: white;
}

.btn-large {
    padding: 1.25rem 3rem;
    font-size: 1.125rem;
}

/* Special styling for CTA button */
.final-cta .btn {
    background: linear-gradient(135deg, #f59e0b, #fbbf24);
    color: #1e40af;
    font-weight: 700;
    border: 3px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 24px rgba(245, 158, 11, 0.4);
    transition: all 0.3s ease;
}

.final-cta .btn:hover {
    background: linear-gradient(135deg, #fbbf24, #fcd34d);
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(245, 158, 11, 0.6);
    border-color: rgba(255, 255, 255, 0.5);
}

.cta-center {
    text-align: center;
    margin-top: 2rem;
}

/* Quick Navigation Section */
.quick-nav {
    padding: 4rem 0;
    background-color: var(--background-light);
}

.quick-nav h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

.quick-nav-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.nav-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    text-decoration: none;
    color: var(--text-dark);
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.nav-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.nav-card .icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.nav-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.nav-card p {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Content Sections */
.content-section,
.how-it-works,
.comparison-teaser,
.alternatives-preview,
.reviews-section,
.industries-section,
.faq-preview,
.tools-section {
    padding: 4rem 0;
}

.content-section h2,
.how-it-works h2,
.comparison-teaser h2,
.alternatives-preview h2,
.reviews-section h2,
.industries-section h2,
.faq-preview h2,
.tools-section h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-align: center;
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    font-size: 1.125rem;
    margin-bottom: 3rem;
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.content-text ul.check-list {
    list-style: none;
    margin: 1.5rem 0;
}

.content-text ul.check-list li {
    padding: 0.5rem 0;
    font-size: 1.05rem;
}

.info-box {
    background: var(--background-light);
    padding: 2rem;
    border-radius: 12px;
    border: 2px solid var(--border-color);
}

.info-box h3 {
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.info-box ul {
    list-style: none;
}

.info-box ul li {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
}

.info-box ul li:last-child {
    border-bottom: none;
}

.info-box strong {
    color: var(--text-dark);
}

/* How It Works Steps */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.step {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.step-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #1e40af, #f59e0b);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 1.5rem;
}

.step h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.step p {
    color: var(--text-light);
}

/* Comparison Table */
.comparison-teaser {
    background-color: var(--background-light);
}

.comparison-table-wrapper {
    overflow-x: auto;
    margin-bottom: 2rem;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.comparison-table th {
    background-color: var(--primary-color);
    color: white;
    padding: 1rem;
    text-align: left;
    font-weight: 600;
}

.comparison-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.comparison-table tr:last-child td {
    border-bottom: none;
}

.comparison-table .highlight {
    background-color: var(--highlight);
    font-weight: 600;
}

/* Alternatives Section */
.alternatives-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.alternative-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    position: relative;
}

.alternative-card.featured {
    border: 3px solid var(--primary-color);
}

.featured-badge {
    position: absolute;
    top: -12px;
    right: 20px;
    background: var(--primary-color);
    color: white;
    padding: 0.375rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
}

.alternative-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.alternative-card p {
    color: var(--text-light);
    margin-bottom: 1rem;
}

.alternative-card ul {
    list-style: none;
    margin: 1.5rem 0;
}

.alternative-card ul li {
    padding: 0.5rem 0;
    color: var(--text-light);
}

.alternative-card ul li:before {
    content: "✓ ";
    color: var(--success);
    font-weight: bold;
}

/* Reviews Section */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.review-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.rating {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.review-text {
    font-style: italic;
    color: var(--text-dark);
    margin-bottom: 1rem;
    line-height: 1.7;
}

.review-author {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}

.review-source {
    color: var(--text-light);
    font-size: 0.875rem;
}

.rating-summary {
    display: flex;
    justify-content: center;
    gap: 4rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.rating-item {
    text-align: center;
}

.rating-item h3 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.rating-item p {
    font-weight: 600;
    color: var(--text-dark);
}

.rating-item small {
    color: var(--text-light);
    font-size: 0.875rem;
}

/* Industries Section */
.industries-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.industry-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    text-decoration: none;
    color: var(--text-dark);
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: all 0.3s;
}

.industry-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

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

.industry-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.industry-card p {
    color: var(--text-light);
    margin-bottom: 1rem;
}

.learn-more {
    color: var(--primary-color);
    font-weight: 600;
}

/* FAQ Section */
.faq-list {
    max-width: 900px;
    margin: 0 auto 2rem;
}

.faq-item {
    background: white;
    padding: 2rem;
    margin-bottom: 1rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.faq-item h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.faq-item p {
    color: var(--text-light);
    line-height: 1.7;
}

/* Tools Section */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.tool-card {
    background: white;
    padding: 2.5rem;
    border-radius: 12px;
    text-decoration: none;
    color: var(--text-dark);
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: all 0.3s;
    text-align: center;
}

.tool-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

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

.tool-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.tool-card p {
    color: var(--text-light);
}

/* Final CTA Section */
.final-cta {
    background: linear-gradient(135deg, #1e40af 0%, #3730a3 50%, #1e3a8a 100%);
    color: white;
    padding: 4rem 0;
    text-align: center;
}

.final-cta h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

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

/* Footer */
.main-footer {
    background-color: var(--text-dark);
    color: white;
    padding: 3rem 0 1rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-column h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.footer-column h4 {
    font-size: 1.125rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.footer-column p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.7;
}

.footer-column .disclaimer {
    margin-top: 1rem;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 1rem;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 0.5rem;
}

.footer-column ul li a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-column ul li a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 1.5rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
}

.footer-bottom p {
    margin-bottom: 0.5rem;
}

/* Responsive Design */
@media (max-width: 968px) {
    .nav-menu {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .content-grid {
        grid-template-columns: 1fr;
    }
    
    .comparison-table-wrapper {
        overflow-x: scroll;
    }
}

@media (max-width: 640px) {
    .hero-content h1 {
        font-size: 1.75rem;
    }
    
    .cta-buttons {
        flex-direction: column;
    }
    
    .btn {
        display: block;
        width: 100%;
    }
    
    .quick-nav-grid,
    .alternatives-grid,
    .reviews-grid,
    .industries-grid,
    .tools-grid {
        grid-template-columns: 1fr;
    }
}

/* Print Styles */
@media print {
    .main-header,
    .mobile-menu-toggle,
    .cta-buttons,
    .btn,
    .final-cta,
    .main-footer {
        display: none;
    }
}

/* Accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Focus States */
a:focus,
button:focus,
input:focus,
textarea:focus {
    outline: 3px solid var(--primary-color);
    outline-offset: 2px;
}

/* Loading Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

/* Professional Blue & Gold Theme - Additional Styling */

/* Gold accent for featured elements */
.featured-badge {
    background: linear-gradient(135deg, #f59e0b, #d97706) !important;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
}

/* Alternative card featured with gold border */
.alternative-card.featured {
    border: 3px solid #f59e0b;
    box-shadow: 0 4px 16px rgba(245, 158, 11, 0.15);
}

/* Highlight color with gold tint */
.comparison-table .highlight {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    color: #1e40af;
    font-weight: 600;
}

/* Button hover with gold accent */
.btn-secondary:hover {
    background: linear-gradient(135deg, #1e40af, #3730a3);
    color: white;
    border-color: #1e40af;
}

/* Gold success color for positive elements */
.info-box h3 {
    color: #1e40af;
}

/* Premium gold underline for headings */
h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #f59e0b, #fbbf24);
    margin: 1rem auto 0;
    border-radius: 2px;
}

/* Remove underline from specific sections */
.content-section h2::after,
.hero h1::after,
.hero h2::after {
    content: none;
}

/* Navy blue for premium feel */
.nav-menu a:hover,
.nav-menu a.active {
    color: #1e40af;
    border-bottom: 2px solid #f59e0b;
}

/* Gold glow effect for CTA buttons */
.btn-primary:hover {
    background: linear-gradient(135deg, #1e40af, #1e3a8a);
    box-shadow: 0 4px 20px rgba(30, 64, 175, 0.4), 0 0 20px rgba(245, 158, 11, 0.2);
}

/* Professional card hover with gold accent */
.nav-card:hover,
.tool-card:hover,
.industry-card:hover {
    box-shadow: 0 8px 24px rgba(30, 64, 175, 0.15);
    border-top: 3px solid #f59e0b;
}

/* Premium rating stars color */
.rating {
    color: #f59e0b;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

/* Trustworthy green for success messages */
.result-value {
    color: #fbbf24 !important;
}

/* Professional footer with navy theme */
.main-footer {
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%);
}

.footer-column h4 {
    color: #fbbf24;
}

/* ============================================
   ENHANCED HERO SECTION STYLING
============================================ */

/* Hero badge at top */
.hero-badge {
    display: inline-block;
    background: linear-gradient(135deg, #f59e0b, #fbbf24);
    color: #1e3a8a;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
    animation: pulse-badge 2s infinite;
}

@keyframes pulse-badge {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* Enhanced stat icons */
.stat-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

/* Feature badges below stats */
.hero-features {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin: 2rem 0;
}

.feature-badge {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    color: white;
    padding: 0.625rem 1.25rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s;
}

.feature-badge:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

/* Trust indicators */
.hero-trust {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

/* Button pulse animation */
.btn-pulse {
    position: relative;
    overflow: hidden;
}

.btn-pulse::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-pulse:hover::before {
    width: 300px;
    height: 300px;
}

.btn-pulse span {
    position: relative;
    z-index: 1;
}

/* Enhanced hero gradient with overlay */
.hero {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 50%, #ffffff 100%);
    position: relative;
    overflow: hidden;
    color: #1e40af;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(30,64,175,0.03)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 1;
}

.hero-content {
    position: relative;
    z-index: 1;
}

/* Improved stat styling */
.hero-stats .stat {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 2rem 1.5rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s;
}

.hero-stats .stat:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.hero-stats .stat h3 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #ffffff, #fbbf24);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Button icons spacing */
.btn span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    justify-content: center;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-badge {
        font-size: 0.75rem;
        padding: 0.375rem 1rem;
    }
    
    .feature-badge {
        font-size: 0.8rem;
        padding: 0.5rem 1rem;
    }
    
    .hero-stats .stat h3 {
        font-size: 2rem;
    }
    
    .stat-icon {
        font-size: 1.5rem;
    }
}

/* Shine effect on hover */
@keyframes shine {
    0% { left: -100%; }
    100% { left: 100%; }
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s;
}

.btn-primary:hover::after {
    animation: shine 0.75s;
}

/* Floating animation for hero content */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.hero-badge {
    animation: float 3s ease-in-out infinite;
}

/* ============================================
   ENHANCED HEADER ANIMATIONS & EFFECTS
============================================ */

/* Logo pulse animation */
@keyframes logo-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.logo-icon {
    animation: logo-pulse 3s ease-in-out infinite;
}

/* Shine effect on logo */
@keyframes logo-shine {
    0% { background-position: -100% 0; }
    100% { background-position: 200% 0; }
}

.logo-icon {
    background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 50%, #f59e0b 100%);
    background-size: 200% 100%;
}

.logo a:hover .logo-icon {
    animation: logo-shine 2s ease-in-out infinite;
}

/* Active indicator dot */
.logo-icon::after {
    animation: dot-pulse 2s ease-in-out infinite;
}

@keyframes dot-pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.2); opacity: 0.8; }
}

/* Navigation hover effect enhancement */
.nav-menu a {
    overflow: hidden;
}

.nav-menu a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    transition: left 0.5s;
}

.nav-menu a:hover::before {
    left: 100%;
}

/* Sticky header shadow on scroll */
.main-header.scrolled {
    box-shadow: 0 6px 30px rgba(30, 64, 175, 0.4);
}

/* Mobile menu button styling */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    transition: all 0.3s;
}

.mobile-menu-toggle:hover {
    background: rgba(255, 255, 255, 0.2);
}

.mobile-menu-toggle span {
    width: 28px;
    height: 3px;
    background: white;
    border-radius: 2px;
    transition: all 0.3s;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Responsive header */
@media (max-width: 968px) {
    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        background: linear-gradient(135deg, #1e40af 0%, #1e3a8a 100%);
        flex-direction: column;
        padding: 2rem;
        gap: 0;
        transition: left 0.3s;
        box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu a {
        width: 100%;
        padding: 1rem 1.5rem;
        border-radius: 8px;
        margin-bottom: 0.5rem;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .logo h1 {
        font-size: 1.35rem;
    }
    
    .logo-icon {
        width: 38px;
        height: 38px;
        font-size: 1.25rem;
    }
}

/* Desktop only: Mega menu effect (optional for future) */
@media (min-width: 969px) {
    .nav-menu li {
        position: relative;
    }
    
    /* Dropdown indicator for future submenu */
    .nav-menu .has-submenu > a::after {
        content: '▼';
        font-size: 0.7rem;
        margin-left: 0.35rem;
        opacity: 0.7;
    }
}

/* Professional glow effect on active nav */
.nav-menu a.active {
    box-shadow: 0 0 15px rgba(245, 158, 11, 0.3);
}

/* ============================================
   RESPONSIVE HEADER FIXES
============================================ */

/* Better responsive behavior */
@media (max-width: 1200px) {
    .nav-menu a {
        font-size: 0.85rem;
        padding: 0.5rem 0.875rem;
    }
}

@media (max-width: 968px) {
    .navbar {
        padding: 1rem 0;
    }
    
    .logo-brand {
        font-size: 1.15rem;
    }
    
    .logo-icon {
        width: 42px;
        height: 42px;
        font-size: 1.5rem;
    }
    
    .logo-icon::after {
        width: 12px;
        height: 12px;
        border: 2px solid #1e40af;
    }
}

@media (max-width: 640px) {
    .logo-brand {
        font-size: 1rem;
    }
    
    .logo-icon {
        width: 38px;
        height: 38px;
        font-size: 1.35rem;
    }
}

/* Ensure navigation doesn't wrap */
.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
}

/* Fix navigation overflow */
.nav-menu {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.nav-menu::-webkit-scrollbar {
    display: none;
}

/* Desktop optimization */
@media (min-width: 969px) {
    .nav-menu {
        overflow-x: visible;
    }
}

/* ============================================
   WHITE BACKGROUND HERO ADJUSTMENTS
============================================ */

/* Update hero text colors for white background */
.hero h1 {
    color: #1e40af;
    text-shadow: none;
}

.hero-subtitle {
    color: #475569;
    opacity: 1;
}

.hero-badge {
    background: linear-gradient(135deg, #f59e0b, #fbbf24);
    color: #1e3a8a;
    box-shadow: 0 4px 20px rgba(245, 158, 11, 0.25);
}

/* Stats with navy background on white */
.hero-stats .stat {
    background: linear-gradient(135deg, #1e40af, #1e3a8a);
    backdrop-filter: none;
    border: none;
    color: white;
}

.hero-stats .stat h3 {
    color: white;
    background: none;
    -webkit-text-fill-color: white;
}

.hero-stats .stat p {
    color: rgba(255, 255, 255, 0.9);
}

.stat-icon {
    color: #fbbf24;
}

/* Feature badges on white background */
.feature-badge {
    background: #1e40af;
    backdrop-filter: none;
    color: white;
    border: 1px solid #1e3a8a;
}

.feature-badge:hover {
    background: #1e3a8a;
    transform: translateY(-2px);
}

/* Trust section text */
.hero-trust p {
    color: #64748b !important;
    opacity: 1 !important;
}

/* Button adjustments for white bg */
.btn-primary {
    box-shadow: 0 4px 20px rgba(30, 64, 175, 0.25);
}

.btn-secondary {
    background: white;
    color: #1e40af;
    border: 2px solid #1e40af;
}

.btn-secondary:hover {
    background: #1e40af;
    color: white;
}

/* ============================================
   FIX: WHITE BACKGROUND STATS VISIBILITY
============================================ */

/* Ensure stats are visible on white background */
.hero-stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin: 3rem 0;
    flex-wrap: wrap;
}

.hero-stats .stat {
    background: linear-gradient(135deg, #1e40af, #1e3a8a) !important;
    backdrop-filter: none !important;
    padding: 2.5rem 2rem !important;
    border-radius: 16px !important;
    border: none !important;
    transition: all 0.3s !important;
    box-shadow: 0 4px 20px rgba(30, 64, 175, 0.2) !important;
    min-width: 200px;
}

.hero-stats .stat:hover {
    background: linear-gradient(135deg, #1e3a8a, #1e40af) !important;
    transform: translateY(-8px) scale(1.05) !important;
    box-shadow: 0 12px 40px rgba(30, 64, 175, 0.3) !important;
}

.hero-stats .stat h3 {
    font-size: 3rem !important;
    font-weight: 800 !important;
    margin-bottom: 0.5rem !important;
    color: white !important;
    background: none !important;
    -webkit-background-clip: unset !important;
    -webkit-text-fill-color: white !important;
    background-clip: unset !important;
}

.hero-stats .stat p {
    color: rgba(255, 255, 255, 0.95) !important;
    font-size: 1rem !important;
    font-weight: 500 !important;
}

.hero-stats .stat-icon {
    font-size: 2.5rem !important;
    margin-bottom: 0.75rem !important;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1)) !important;
    color: #fbbf24 !important;
}

/* Ensure hero section has proper spacing */
.hero {
    padding: 4rem 0 !important;
    min-height: auto !important;
}

/* Make sure hero content is centered properly */
.hero-content {
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
}
