/* Ekarth Academy - Main Stylesheet */

:root {
    --primary-color: #af0618;
    --secondary-color: #7f1d1d;
    --text-dark: #000000;
    --text-white: #ffffff;
    --gray-light: #f5f6fa;
    --gray-medium: #6c757d;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Lato', sans-serif;
    font-weight: 700;
}

.btn {
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    padding: 12px 30px;
    border-radius: 8px;
    transition: var(--transition);
}

.btn-primary {
    background: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-primary:hover {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(175, 6, 24, 0.3);
}

.btn-outline-light:hover {
    background: var(--text-white);
    color: var(--primary-color);
}

/* Navbar */
.navbar {
    padding: 15px 0;
    transition: var(--transition);
    background: transparent;
}

.navbar.scrolled {
    background: var(--text-white);
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
    padding: 10px 0;
}

.navbar.scrolled .nav-link {
    color: var(--text-dark) !important;
}

.navbar-brand {
    font-family: 'Lato', sans-serif;
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-color) !important;
}

.nav-link {
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    color: var(--text-dark) !important;
    margin: 0 10px;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

.nav-link:hover::after {
    width: 100%;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #fff5f5 0%, #ffffff 50%, #fff5f5 100%);
    padding: 120px 0 80px;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 80%;
    height: 150%;
    background: radial-gradient(circle, rgba(175, 6, 24, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.hero-title span {
    color: var(--primary-color);
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--gray-medium);
    margin-bottom: 30px;
}

.hero-stats {
    display: flex;
    gap: 40px;
    margin-top: 40px;
}

.stat-item h3 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.stat-item p {
    color: var(--gray-medium);
    font-size: 0.9rem;
}

/* Section Styles */
.section-padding {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.section-title p {
    color: var(--gray-medium);
    font-size: 1.1rem;
}

/* Course Cards */
.course-card {
    background: var(--text-white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    transition: var(--transition);
    height: 100%;
}

.course-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}

.course-image {
    height: 200px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-white);
    font-size: 3rem;
}

.course-content {
    padding: 25px;
}

.course-content h4 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.course-content p {
    color: var(--gray-medium);
    font-size: 0.95rem;
    margin-bottom: 15px;
}

.course-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

/* Video Cards */
.video-card {
    background: var(--text-white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 25px rgba(0,0,0,0.08);
    transition: var(--transition);
}

.video-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.12);
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.video-title {
    padding: 20px;
    font-weight: 600;
    color: var(--text-dark);
}

/* Result Cards */
.result-card {
    background: var(--text-white);
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    transition: var(--transition);
}

.result-card:hover {
    transform: translateY(-5px);
}

.result-image {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 20px;
    border: 5px solid var(--primary-color);
}

.result-rank {
    background: var(--primary-color);
    color: var(--text-white);
    padding: 5px 20px;
    border-radius: 20px;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 15px;
}

.result-name {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.result-exam {
    color: var(--gray-medium);
}

/* Testimonial Cards */
.testimonial-card {
    background: var(--text-white);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    position: relative;
}

.testimonial-card::before {
    content: '"';
    font-size: 80px;
    color: var(--primary-color);
    opacity: 0.2;
    position: absolute;
    top: 20px;
    left: 30px;
    font-family: Georgia, serif;
    line-height: 1;
}

.testimonial-text {
    font-size: 1.1rem;
    color: var(--gray-medium);
    margin-bottom: 25px;
    font-style: italic;
    position: relative;
    z-index: 1;
}

.testimonial-author {
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 5px;
}

.testimonial-designation {
    color: var(--primary-color);
    font-size: 0.9rem;
}

/* Blog Cards */
.blog-card {
    background: var(--text-white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    transition: var(--transition);
    height: 100%;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 60px rgba(0,0,0,0.12);
}

.blog-image {
    height: 220px;
    background: linear-gradient(135deg, var(--gray-light), #e0e0e0);
    overflow: hidden;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.blog-card:hover .blog-image img {
    transform: scale(1.1);
}

.blog-content {
    padding: 25px;
}

.blog-date {
    color: var(--primary-color);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.blog-title {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.blog-excerpt {
    color: var(--gray-medium);
    font-size: 0.95rem;
    margin-bottom: 15px;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: var(--text-white);
    padding: 60px 0 30px;
}

.footer-brand {
    font-family: 'Lato', sans-serif;
    font-size: 28px;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 20px;
}

.footer p {
    color: rgba(255,255,255,0.7);
    line-height: 1.8;
}

.footer h5 {
    color: var(--text-white);
    margin-bottom: 25px;
    font-size: 1.2rem;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    margin-top: 40px;
    text-align: center;
    color: rgba(255,255,255,0.5);
}

/* WhatsApp Float Button */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-white);
    font-size: 30px;
    box-shadow: 0 5px 20px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    transition: var(--transition);
    text-decoration: none;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    color: var(--text-white);
}

/* Lead Popup */
.lead-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
}

.lead-popup-overlay.active {
    display: flex;
}

.lead-popup {
    background: var(--text-white);
    border-radius: 20px;
    padding: 40px;
    max-width: 450px;
    width: 90%;
    position: relative;
    animation: popupSlide 0.3s ease;
}

@keyframes popupSlide {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.lead-popup-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    color: var(--gray-medium);
    cursor: pointer;
    background: none;
    border: none;
}

.lead-popup h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

.lead-popup p {
    color: var(--gray-medium);
    margin-bottom: 25px;
}

/* Contact Form */
.contact-form .form-control {
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    padding: 15px;
    font-size: 15px;
    transition: var(--transition);
}

.contact-form .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(175, 6, 24, 0.25);
}

/* About Page */
.about-hero {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    padding: 100px 0 60px;
    color: var(--text-white);
}

.about-hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
}

/* Animations */
.fade-in {
    animation: fadeIn 0.5s ease forwards;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Course, Blog, Result Cards - Default visible */
.course-card, .blog-card, .result-card, .testimonial-card {
    opacity: 1 !important;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 20px;
    }
    
    .section-title h2 {
        font-size: 1.8rem;
    }
    
    .navbar-collapse {
        background: var(--text-white);
        padding: 20px;
        border-radius: 10px;
        margin-top: 10px;
    }
}
