/* Custom CSS for IonFlux - Replicating DoQuizzes Design */

:root {
    --primary-color: #17a2b8;
    --secondary-color: #6c757d;
    --success-color: #28a745;
    --info-color: #17a2b8;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
    --white: #ffffff;
    --light-bg: #f3f6fb;
    --hero-bg: linear-gradient(135deg, #17a2b8 0%, #138496 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
}

/* Header Styles */
.notification-bar {
    background: linear-gradient(45deg, #ff6b6b, #ee5a24);
    color: white;
    padding: 8px 0;
    text-align: center;
    position: relative;
}

.notification-bar a {
    color: white;
    text-decoration: none;
}

.btn-close-notification {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
}

.navbar {
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 1rem 0;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
}

.search-form .form-control {
    border-radius: 20px;
    border: 1px solid #ddd;
    padding: 8px 16px;
}

.search-form .btn {
    border-radius: 20px;
    padding: 8px 16px;
}

/* Hero Section */
.hero-section {
    background: var(--hero-bg);
    color: white;
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 200"><path d="M0,100 C300,150 600,50 900,100 C1050,125 1150,75 1200,100 L1200,200 L0,200 Z" fill="rgba(255,255,255,0.1)"/></svg>') repeat-x;
    background-size: 1200px 200px;
}

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

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-cta .btn {
    padding: 12px 30px;
    font-size: 1.1rem;
    border-radius: 25px;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
}

.hero-cta .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Services Section */
.services-section {
    background: var(--light-bg);
}

.section-title {
    font-size: 2rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 3rem;
    color: #333;
}

.service-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    height: 100%;
}

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

.service-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.service-card:hover .service-image img {
    transform: scale(1.05);
}

.service-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--primary-color);
    color: white;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
}

.service-content {
    padding: 1.5rem;
}

.service-content h3 {
    margin-bottom: 0.5rem;
}

.service-content h3 a {
    color: #333;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 600;
}

.service-content h3 a:hover {
    color: var(--primary-color);
}

.service-content p {
    color: #666;
    margin: 0;
}

/* Feature Lists */
.feature-list {
    list-style: none;
    padding: 0;
}

.feature-list li {
    margin-bottom: 0.5rem;
}

.feature-list h5 a {
    color: #333;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
}

.feature-list h5 a:hover {
    color: var(--primary-color);
}

/* Categories Section */
.categories-section {
    background: var(--light-bg);
}

.categories-slider {
    display: flex;
    gap: 2rem;
    overflow-x: auto;
    padding: 1rem 0;
    scroll-behavior: smooth;
}

.category-card {
    flex: 0 0 200px;
    text-align: center;
}

.category-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 1rem;
    transition: transform 0.3s ease;
}

.category-card:hover img {
    transform: scale(1.05);
}

.category-card h4 a {
    color: #333;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
}

.category-card h4 a:hover {
    color: var(--primary-color);
}

/* Pricing Section */
.pricing-section {
    background: white;
}

.pricing-card {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
}

.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.pricing-card.featured {
    border-color: var(--primary-color);
    transform: scale(1.05);
}

.pricing-header {
    background: var(--light-bg);
    padding: 2rem 1.5rem;
    text-align: center;
    position: relative;
}

.pricing-card.featured .pricing-header {
    background: var(--primary-color);
    color: white;
}

.pricing-header h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.price {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.pricing-card.featured .price {
    color: white;
}

.price span {
    font-size: 1rem;
    font-weight: 400;
    opacity: 0.7;
}

.pricing-header .badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--warning-color);
    color: #333;
    padding: 5px 15px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
}

.pricing-body {
    padding: 2rem 1.5rem;
}

.pricing-body ul {
    list-style: none;
    padding: 0;
    margin-bottom: 2rem;
}

.pricing-body li {
    padding: 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pricing-body .fas {
    color: var(--success-color);
}

/* About Section */
.about-section {
    background: var(--light-bg);
}

.about-section .lead {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

/* Contact Section */
.contact-section {
    background: white;
}

.contact-form-container {
    background: var(--light-bg);
    padding: 3rem;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.contact-form .form-label {
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
}

.contact-form .form-control,
.contact-form .form-select {
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.contact-form .form-control:focus,
.contact-form .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(23, 162, 184, 0.25);
}

.thank-you-message {
    background: white;
    padding: 3rem;
    border-radius: 12px;
    text-align: center;
}

/* Footer */
.footer-section {
    background: #2c3e50 !important;
}

.footer-brand .logo-container {
    margin-bottom: 1rem;
}

.footer-links {
    list-style: none;
    padding: 0;
}

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

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

.footer-links a:hover {
    color: var(--primary-color);
}

.contact-info p {
    margin-bottom: 0.5rem;
    color: #bdc3c7;
}

.contact-info i {
    color: var(--primary-color);
    margin-right: 0.5rem;
    width: 16px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-cta .btn {
        display: block;
        margin-bottom: 1rem;
        width: 100%;
    }
    
    .categories-slider {
        gap: 1rem;
    }
    
    .category-card {
        flex: 0 0 150px;
    }
    
    .contact-form-container {
        padding: 2rem 1.5rem;
    }
    
    .pricing-card.featured {
        transform: none;
    }
}

@media (max-width: 576px) {
    .hero-section {
        padding: 60px 0;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .service-content {
        padding: 1rem;
    }
    
    .pricing-header {
        padding: 1.5rem 1rem;
    }
    
    .pricing-body {
        padding: 1.5rem 1rem;
    }
}

/* Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Utility Classes */
.text-primary {
    color: var(--primary-color) !important;
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

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

.btn-primary:hover {
    background-color: #138496;
    border-color: #117a8b;
}

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

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