/* ============================================
   OpenQuiz Landing Page - Custom Styles
   ============================================ */

/* Base Styles */
:root {
    --primary-dark: #000000;
    --text-dark: #1a1a1a;
    --text-muted: #6c757d;
    --bg-white: #ffffff;
    --bg-light: #f8f9fa;
    --border-light: #e9ecef;
    --accent-yellow: #ffd700;
}

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

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* Skip to main content link for accessibility */
.skip-to-main {
    position: absolute;
    top: -40px;
    left: 0;
    background: #000;
    color: #fff;
    padding: 8px 16px;
    text-decoration: none;
    z-index: 100;
}

.skip-to-main:focus {
    top: 0;
}

/* Navigation */
.navbar {
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.navbar-brand {
    font-size: 1.5rem;
    letter-spacing: -0.5px;
}

.nav-link {
    font-weight: 500;
    color: var(--text-dark);
    transition: color 0.3s ease;
    padding: 0.5rem 1rem;
}

.nav-link:hover {
    color: var(--primary-dark);
}

/* Hero Section */
.hero-section {
    padding: 4rem 0;
    background-color: var(--bg-white);
}

.min-vh-75 {
    min-height: 75vh;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1.25rem;
    background-color: var(--bg-light);
    border: 1px solid var(--border-light);
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 500;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -1px;
    margin-bottom: 1.5rem;
}

.hero-title .text-emphasis {
    position: relative;
    display: inline-block;
    z-index: 1;
}

.hero-title .text-emphasis::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 12px;
    background-color: var(--accent-yellow);
    z-index: -1;
    opacity: 0.8;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    line-height: 1.7;
    max-width: 600px;
}

.hero-stats {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    padding-top: 1rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-item strong {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
}

.stat-item span {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.hero-image {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.hero-image img {
    max-width: 120%;
    height: auto;
}

.hero-card {
    background-color: var(--bg-white);
    border: 2px solid var(--primary-dark);
    border-radius: 16px;
    padding: 3rem 2rem;
    text-align: center;
    box-shadow: 8px 8px 0px rgba(0, 0, 0, 1);
    transition: all 0.3s ease;
}

.hero-card:hover {
    transform: translate(-4px, -4px);
    box-shadow: 12px 12px 0px rgba(0, 0, 0, 1);
}

.hero-card i {
    color: var(--primary-dark);
}

.hero-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.hero-card p {
    color: var(--text-muted);
    margin-bottom: 0;
}

/* Buttons */
.btn {
    font-weight: 600;
    padding: 0.75rem 2rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

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

.btn-dark:hover {
    background-color: #333333;
    border-color: #333333;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.btn-outline-dark {
    background-color: transparent;
    border-color: var(--primary-dark);
    color: var(--primary-dark);
}

.btn-outline-dark:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    color: white;
    transform: translateY(-2px);
}

/* Section Styles */
section {
    padding: 5rem 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 1rem;
}

/* Problem Section */
.problem-section {
    background-color: var(--bg-light);
}

.problem-card {
    background-color: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    height: 100%;
    transition: all 0.3s ease;
}

.problem-card:hover {
    border-color: var(--primary-dark);
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.problem-card i {
    color: var(--text-muted);
}

.problem-card h4 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.problem-card p {
    color: var(--text-muted);
    margin-bottom: 0;
}

/* Features Section */
.features-section {
    background-color: var(--bg-white);
}

.feature-icon-box {
    width: 60px;
    height: 60px;
    background-color: var(--primary-dark);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.feature-icon-box i {
    font-size: 1.75rem;
    color: white;
}

.feature-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: -0.5px;
}

.feature-description {
    font-size: 1.125rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

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

.feature-list li {
    display: flex;
    align-items: center;
    padding: 0.75rem 0;
    font-size: 1rem;
}

.feature-list i {
    color: var(--primary-dark);
    margin-right: 0.75rem;
    font-size: 1.25rem;
}

.feature-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.feature-box {
    background-color: var(--bg-light);
    border: 2px solid var(--primary-dark);
    border-radius: 16px;
    padding: 3rem 2rem;
    text-align: center;
    width: 100%;
    max-width: 400px;
}

.feature-box i {
    color: var(--primary-dark);
}

.feature-box p {
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--text-dark);
}

/* How It Works Section */
.how-it-works-section {
    background-color: var(--bg-light);
}

.step-card {
    background-color: var(--bg-white);
    border: 2px solid var(--border-light);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    height: 100%;
    position: relative;
    transition: all 0.3s ease;
}

.step-card:hover {
    border-color: var(--primary-dark);
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.step-number {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    background-color: var(--primary-dark);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.25rem;
}

.step-card i {
    color: var(--primary-dark);
    margin-top: 1rem;
}

.step-card h4 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.step-card p {
    color: var(--text-muted);
    margin-bottom: 0;
}

/* Testimonials Section */
.testimonials-section {
    background-color: var(--bg-white);
}

.testimonial-card {
    background-color: var(--bg-light);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 2rem;
    height: 100%;
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    border-color: var(--primary-dark);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.testimonial-rating {
    color: var(--accent-yellow);
}

.testimonial-rating i {
    font-size: 1rem;
    margin-right: 0.15rem;
}

.testimonial-text {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
}

.testimonial-author {
    display: flex;
    flex-direction: column;
}

.testimonial-author strong {
    font-size: 0.95rem;
    color: var(--text-dark);
}

.testimonial-author span {
    font-size: 0.875rem;
}

/* Pricing Section */
.pricing-section {
    background-color: var(--bg-light);
}

.pricing-card {
    background-color: var(--bg-white);
    border: 2px solid var(--border-light);
    border-radius: 16px;
    padding: 2.5rem;
    height: 100%;
    position: relative;
    transition: all 0.3s ease;
}

.pricing-card:hover {
    border-color: var(--primary-dark);
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.pricing-card-featured {
    border-color: var(--primary-dark);
    border-width: 3px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

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

.pricing-badge-savings {
    background-color: #28a745;
}

.pricing-tier {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.pricing-price {
    margin-bottom: 0.5rem;
}

.price-amount {
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: -1px;
}

.price-period {
    font-size: 1rem;
    color: var(--text-muted);
}

.pricing-savings {
    font-size: 0.95rem;
    color: #28a745;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin: 2rem 0;
}

.pricing-features li {
    display: flex;
    align-items: flex-start;
    padding: 0.75rem 0;
    font-size: 1rem;
}

.pricing-features i {
    color: var(--primary-dark);
    margin-right: 0.75rem;
    font-size: 1.125rem;
    margin-top: 0.15rem;
}

/* CTA Section */
.cta-section {
    background-color: var(--bg-white);
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
}

/* Footer */
.footer {
    background-color: var(--bg-white);
}

.footer h5, .footer h6 {
    color: var(--text-dark);
}

.footer a {
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer a:hover {
    color: var(--primary-dark) !important;
}

/* Responsive Design */
@media (max-width: 991px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.125rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .feature-title {
        font-size: 1.5rem;
    }
    
    .hero-stats {
        gap: 1.5rem;
    }
}

@media (max-width: 767px) {
    .hero-section {
        padding: 2rem 0;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .feature-title {
        font-size: 1.35rem;
    }
    
    .btn-lg {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
    
    .hero-card {
        padding: 2rem 1.5rem;
    }
    
    .feature-box {
        padding: 2rem 1.5rem;
    }
    
    section {
        padding: 3rem 0;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-section > .container > .row {
    animation: fadeInUp 0.8s ease-out;
}

/* Accessibility */
a:focus,
button:focus,
.btn:focus {
    outline: 2px solid var(--primary-dark);
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .navbar,
    .footer,
    .cta-section {
        display: none;
    }
}
