/* Main CSS for Examinex Landing Page */

/* Base Styles */
html, body {
    width: 100vw;
    max-width: 100vw;
    overflow-x: hidden !important;
    box-sizing: border-box;
}

*, *::before, *::after {
    box-sizing: inherit;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Responsive container: full width on mobile, default on desktop */
@media (max-width: 991.98px) {
    .container {
        max-width: 100vw;
        overflow-x: hidden;
    }
}

@media (max-width: 575.98px) {
    .container {
        padding-left: 8px;
        padding-right: 8px;
    }
}

/* CSS Variables */
:root {
    --primary-color: #2563eb;
    --secondary-color: #1e40af;
    --accent-color: #3b82f6;
    --text-color: #1f2937;
    --light-bg: #f3f4f6;
    --gradient: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}



/* Body Styles */
body {
    font-family: 'Inter', sans-serif;
    color: var(--text-color);
    background: var(--light-bg);
    line-height: 1.7;
    font-weight: 400;
    padding-top: 72px; /* Added: space for fixed navbar */
}



/* Hero Section */
.hero {
    background: var(--gradient);
    color: #fff;
    padding: 100px 0 60px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255,255,255,0.12) 0%, rgba(255,255,255,0) 70%);
}

.hero-title {
    font-size: 2.2rem;
    font-weight: 700;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0,0,0,0.08);
}

.hero-sub {
    font-size: 1.1rem;
    font-weight: 400;
    opacity: 0.95;
    margin-bottom: 2rem;
}

.hero-btns .btn {
    font-size: 0.95rem;
    padding: 0.75rem 2rem;
    border-radius: 8px;
    font-weight: 500;
}

.hero-img {
    max-width: 100%;
    filter: drop-shadow(0 6px 12px rgba(0,0,0,0.12));
}

/* Stats Section */
.stats-section {
    background: #fff;
    border-radius: 12px;
    margin: -40px 1rem 0;
    padding: 32px 0;
    position: relative;
    z-index: 2;
    box-shadow: var(--shadow);
}

.stat-card {
    border-radius: 10px;
    padding: 1.2rem;
    text-align: center;
    transition: transform 0.2s;
}

.stat-card:hover {
    transform: translateY(-2px);
}

.stat-card i {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 0.75rem;
}

.stat-card h3 {
    font-size: 1.5rem;
    font-weight: 500;
}

.stat-card p {
    font-size: 0.9rem;
    font-weight: 400;
    color: #6b7280;
}

/* Features Section */
.features-section {
    padding: 60px 0;
}

.feature-card {
    background: #fff;
    border-radius: 10px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform 0.2s;
}

.feature-card:hover {
    transform: translateY(-2px);
}

.feature-icon {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.1rem;
    font-weight: 500;
}

.feature-card p {
    font-size: 0.9rem;
    font-weight: 400;
    color: #6b7280;
}

/* Pricing Section */
.pricing-section {
    background: var(--light-bg);
    padding: 60px 0;
}

.pricing-card {
    background: #fff;
    border-radius: 10px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform 0.2s;
}

.pricing-card:hover {
    transform: translateY(-2px);
}

.pricing-card.popular {
    border: 2px solid var(--primary-color);
    position: relative;
}

.pricing-card.popular::after {
    content: 'Best Value';
    position: absolute;
    top: 10px;
    right: -25px;
    background: var(--primary-color);
    color: #fff;
    padding: 3px 25px;
    transform: rotate(45deg);
    font-size: 0.75rem;
    font-weight: 500;
}

.plan-duration-badge {
    background: var(--primary-color);
    color: #fff;
    font-size: 0.8rem;
    padding: 0.3rem 1rem;
    border-radius: 20px;
    margin-bottom: 1rem;
}

.pricing-card h3 {
    font-size: 1.2rem;
    font-weight: 500;
}

.pricing-card .price {
    font-size: 1.8rem;
    font-weight: 500;
}

.pricing-card ul {
    font-size: 0.9rem;
    font-weight: 400;
    color: #6b7280;
}

.pricing-card .btn {
    font-size: 0.95rem;
    font-weight: 500;
    padding: 0.75rem;
    border-radius: 8px;
}

/* About Section */
.about-section, .testimonials-section, .newsletter-section, .contact {
    padding: 60px 0;
}

.about-img {
    border-radius: 10px;
    box-shadow: var(--shadow);
    max-width: 100%;
}

.about-content h2 {
    font-size: 1.8rem;
    font-weight: 500;
}

.about-content p, .about-content h4 {
    font-size: 0.95rem;
    font-weight: 400;
    color: #6b7280;
}

.about-content h4 {
    font-weight: 500;
}

/* Testimonials Section */
.testimonial-card {
    background: #fff;
    border-radius: 10px;
    padding: 1.2rem;
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform 0.2s;
}

.testimonial-card:hover {
    transform: translateY(-2px);
}

.testimonial-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    margin-bottom: 0.75rem;
}

.testimonial-name {
    font-size: 1rem;
    font-weight: 500;
}

.testimonial-role {
    font-size: 0.85rem;
    font-weight: 400;
    color: #6b7280;
}

.testimonial-quote {
    font-family: 'Noto Sans Sinhala', 'Inter', sans-serif;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 4.8em;
}

.testimonial-stars .fa-star {
    color: #ffd700; /* Gold for filled stars */
    margin: 0 2px;
    font-size: 1.25rem;
}

.testimonial-stars .far.fa-star {
    color: #d1d5db; /* Light gray for outline stars */
}

/* Newsletter Section */
.newsletter-section {
    background: var(--gradient);
    color: #fff;
}

.newsletter-form input[type="email"] {
    border-radius: 8px;
    padding: 0.75rem 1.5rem;
    border: none;
    background: rgba(255,255,255,0.9);
}

.newsletter-form .btn {
    border-radius: 8px;
    background: var(--primary-color);
    color: #fff;
    font-weight: 500;
    padding: 0.75rem 2rem;
}

.newsletter-form .btn:hover {
    background: var(--accent-color);
    transform: translateY(-2px);
}

/* Contact Section */
.contact .contact-info, .contact .contact-form {
    background: #fff;
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
}

.contact-info h2, .contact-form h2 {
    font-size: 1.8rem;
    font-weight: 500;
}

.contact-info p, .contact-info li {
    font-size: 0.95rem;
    font-weight: 400;
    color: #6b7280;
}

.contact-form input, .contact-form textarea {
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    padding: 0.75rem;
    font-size: 0.95rem;
}

.contact-form .btn {
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 500;
    padding: 0.75rem;
}



/* Responsive Design */
@media (min-width: 992px) {
    .hero {
        padding-top: 72px; /* Prevents hero from being hidden behind navbar on desktop */
    }
}
@media (max-width: 991.98px) {
    .hero {
        padding-top: 64px; /* Prevents hero from being hidden behind navbar on mobile */
    }
    .hero-title { 
        font-size: 2rem; 
    }
    .hero { 
        padding: 60px 0 30px; 
    }
    .pricing-card { 
        margin-bottom: 1.2rem; 
    }
    body {
        padding-top: 64px; /* Added: space for fixed navbar on mobile/tablet */
    }
}

@media (max-width: 767.98px) {
    .hero-title { 
        font-size: 1.6rem; 
    }
    .hero-sub { 
        font-size: 1rem; 
    }
    .stats-section, .features-section, .pricing-section, .about-section, .testimonials-section, .contact {
        padding: 40px 0;
        margin: 0;
    }
    .stat-card, .feature-card, .testimonial-card { 
        margin-bottom: 1rem; 
    }
}

/* Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.4s ease-out, transform 0.4s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
} 