/* Landing Page CSS Fixes */

/* Ensure CSS variables are available */
:root {
    --primary-color: #4361ee;
    --primary-dark: #3a56d4;
    --secondary-color: #7209b7;
    --accent-color: #4cc9f0;
    --success-color: #2dc653;
    --light-color: #f8f9fa;
    --dark-color: #212529;
    --gray-color: #6c757d;
    --text-secondary: #6c757d;
    --border-radius: 12px;
    --box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
    --transition: all 0.3s ease;
}

/* Force proper font loading */
body, * {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
}

/* Ensure landing container takes full height */
.landing-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Fix hero section styling */
.hero-section {
    flex: 1;
    padding: 4rem 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
    overflow: hidden;
    min-height: 75vh;
}

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

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

/* Fix typography */
.hero-title, .landing-title, .landing-title-small, h1 {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 2rem;
    line-height: 1.2;
}

.hero-subtitle, .landing-subtitle, .lead {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    max-width: 600px;
}

/* Fix buttons */
.hero-btn, .btn-primary, .cta-button {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    padding: 1rem 2.5rem;
    font-size: 1.2rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(67, 97, 238, 0.3);
    color: white;
    text-decoration: none;
    display: inline-block;
}

.hero-btn:hover, .btn-primary:hover, .cta-button:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(67, 97, 238, 0.4);
    color: white;
    text-decoration: none;
}

/* Fix feature cards */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-card {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

.feature-icon {
    width: 70px;
    height: 70px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    font-size: 1.8rem;
    color: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-card:hover .feature-icon {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    transform: scale(1.05);
    background: var(--secondary-color);
}

.feature-icon i {
    font-size: 1.8rem;
    color: white;
    margin: 0;
}

.feature-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

/* Fix navigation */
.navbar {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-radius: 0;
    margin-bottom: 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: #f8f9fa;
}

.navbar-brand {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 1.5rem;
}

.navbar-brand:hover {
    color: var(--secondary-color);
}

.navbar-nav .nav-link {
    font-weight: 500;
    color: var(--gray-color);
    padding: 0.75rem 1rem;
    border-radius: 5px;
    margin: 0 0.25rem;
    transition: var(--transition);
}

.navbar-nav .nav-link:hover {
    color: var(--primary-color);
    background-color: rgba(67, 97, 238, 0.1);
}

.navbar-nav .nav-link i {
    color: var(--primary-color);
    margin-right: 0.5rem;
}

/* Fix logo */
.logo {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    display: inline-block;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
    color: var(--secondary-color);
}

/* Fix hero features list */
.hero-features {
    list-style: none;
    padding: 0;
    margin: 2rem 0;
}

.hero-features li {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    color: var(--text-secondary);
}

.hero-features i {
    color: var(--primary-color);
    margin-right: 1rem;
    font-size: 1.2rem;
}

/* Fix QR code sample */
.sample-qr-grid {
    display: grid;
    grid-template-columns: repeat(15, 1fr);
    gap: 2px;
    width: 180px;
    height: 180px;
    padding: 10px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.qr-cell {
    background-color: white;
    border-radius: 1px;
    transition: all 0.3s ease;
}

.qr-cell.filled {
    background-color: var(--primary-color);
}

.sample-qr-grid:hover .qr-cell.filled {
    background-color: var(--secondary-color);
}

/* Fix sections */
.section {
    padding: 4rem 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 3rem;
}

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

/* Content section fixes */
.content-section {
    padding: 4rem 0;
    background: white;
}

.content-card {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
    background-color: #fff;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.content-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.content-card-header {
    background-color: var(--primary-color);
    color: white;
    padding: 1rem 1.5rem;
}

.content-card-body {
    padding: 1.5rem;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .hero-title, .landing-title, .landing-title-small, h1 {
        font-size: 2.5rem;
    }
    
    .hero-btn, .btn-primary, .cta-button {
        padding: 0.8rem 2rem;
        font-size: 1.1rem;
        display: block;
        width: 100%;
        text-align: center;
        margin-bottom: 1rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .sample-qr-grid {
        width: 150px;
        height: 150px;
    }
}

/* Ensure Font Awesome icons work */
.fas, .fa, .fab, .far, .fal, .fad, .fat, .fass {
    font-family: "Font Awesome 6 Free", "Font Awesome 6 Pro", "Font Awesome 6 Brands" !important;
    font-weight: 900 !important;
    display: inline-block !important;
    font-style: normal !important;
    font-variant: normal !important;
    text-rendering: auto !important;
    line-height: 1 !important;
}

/* Icon fallbacks */
.fa-qrcode:before { content: "\f029"; }
.fa-link:before { content: "\f0c1"; }
.fa-font:before { content: "\f031"; }
.fa-file-pdf:before { content: "\f1c1"; }
.fa-wifi:before { content: "\f1eb"; }
.fa-image:before { content: "\f03e"; }
.fa-phone:before { content: "\f095"; }
.fa-home:before { content: "\f015"; }
.fa-cogs:before { content: "\f085"; }
.fa-info-circle:before { content: "\f05a"; }
.fa-envelope:before { content: "\f0e0"; }
.fa-check-circle:before { content: "\f058"; }
