/* Custom CSS for DataSaksham */
:root {
    --primary-color: #28a745;
    --secondary-color: #007bff;
    --accent-color: #17a2b8;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --dark-color: #343a40;
    --light-color: #f8f9fa;
    --purple-color: #6f42c1;
    --hero-primary: #2c3e50;
    --hero-secondary: #34495e;
    --hero-accent: #3498db;
}

body {
    font-family: 'Noto Sans Devanagari', 'Inter', sans-serif;
    line-height: 1.6;
    color: #333;
}

/* Hindi text support */
.hindi-text {
    font-family: 'Noto Sans Devanagari', sans-serif;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--hero-primary) 0%, var(--hero-secondary) 50%, var(--hero-accent) 100%);
    min-height: 80vh;
    position: relative;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(44, 62, 80, 0.9) 0%, rgba(52, 73, 94, 0.8) 50%, rgba(52, 152, 219, 0.7) 100%);
    z-index: 1;
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

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

.hero-image {
    transition: transform 0.3s ease;
}

.hero-image:hover {
    transform: scale(1.05);
}

/* Hero text styling with modern typography */
.hero-section h1 {
    color: #ffffff !important;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    font-weight: 700;
    letter-spacing: -0.5px;
}

.hero-section .lead {
    color: #f8f9fa !important;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
    font-weight: 400;
    opacity: 0.95;
}

/* Course Cards */
.course-card {
    transition: all 0.3s ease;
    border: none;
    overflow: hidden;
    background: white;
}

.course-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1) !important;
}

.course-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

/* Ensure all card text is dark */
.course-card .card-title,
.course-card .card-text,
.course-card li span {
    color: #333 !important;
}

/* Feature Icons */
.feature-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.feature-icon-large {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

/* WhatsApp Chat Demo */
.whatsapp-chat-demo {
    max-width: 400px;
    margin: 0 auto;
}

.message {
    margin-bottom: 1rem;
}

.user-message {
    text-align: right;
}

.user-message .message-bubble {
    display: inline-block;
    max-width: 80%;
    border: 1px solid #e0e0e0;
}

.bot-message .message-bubble {
    display: inline-block;
    max-width: 80%;
}

/* Ensure chat text is readable */
.chat-header h6 {
    color: white !important;
}

.user-message .message-bubble span {
    color: #333 !important;
}

.bot-message .message-bubble {
    color: white !important;
}

/* CTA Box */
.cta-box {
    box-shadow: 0 10px 30px rgba(40, 167, 69, 0.3);
}

.cta-box h5 {
    color: white !important;
}

/* Feature Cards */
.feature-card {
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-card h6 {
    color: #333 !important;
}

/* Custom Button Styles */
.btn {
    border-radius: 8px;
    font-weight: 500;
    padding: 0.7rem 1.5rem;
    transition: all 0.3s ease;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.btn-success {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
    color: white !important;
}

.btn-success:hover {
    background-color: #218838;
    border-color: #1e7e34;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4);
    color: white !important;
}

/* Hero CTA Button - Special styling */
.hero-section .btn-success {
    background: linear-gradient(45deg, var(--primary-color), #20c997);
    border: none;
    box-shadow: 0 8px 25px rgba(40, 167, 69, 0.4);
    font-weight: 600;
    text-transform: none;
    letter-spacing: 0.5px;
}

.hero-section .btn-success:hover {
    background: linear-gradient(45deg, #218838, #1ea085);
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(40, 167, 69, 0.5);
}

/* Custom Colors */
.text-purple {
    color: var(--purple-color) !important;
}

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

/* Text color fixes */
.text-dark {
    color: #333 !important;
}

.text-secondary {
    color: #6c757d !important;
}

.text-white {
    color: white !important;
}

.text-light {
    color: #f8f9fa !important;
}

/* Section backgrounds */
.bg-white {
    background-color: white !important;
}

.bg-light {
    background-color: #f8f9fa !important;
}

/* Footer text colors */
footer h5,
footer h6,
footer p {
    color: white !important;
}

footer .text-light {
    color: #f8f9fa !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .display-4 {
        font-size: 2rem;
    }
    
    .display-5 {
        font-size: 1.8rem;
    }
    
    .display-6 {
        font-size: 1.6rem;
    }
    
    .hero-section {
        min-height: 70vh;
    }
    
    .navbar-brand {
        font-size: 1.1rem;
    }
    
    .navbar-brand .text-dark {
        display: none;
    }
    
    .feature-icon-large {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
}

@media (max-width: 576px) {
    .btn-lg {
        font-size: 1rem;
        padding: 0.8rem 1.5rem;
    }
    
    .course-icon {
        font-size: 2.5rem;
    }
    
    .whatsapp-chat-demo {
        margin: 0;
    }
    
    .hero-section h1 {
        font-size: 1.8rem;
        line-height: 1.3;
    }
    
    .hero-section .lead {
        font-size: 1rem;
    }
}

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

/* Loading Animation */
.course-card {
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Additional spacing utilities */
.py-6 {
    padding-top: 4rem !important;
    padding-bottom: 4rem !important;
}

/* Enhanced shadows */
.shadow-lg {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15) !important;
}

/* Improved card hover effects */
.card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Better spacing for mobile */
@media (max-width: 767px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    section {
        padding-top: 3rem !important;
        padding-bottom: 3rem !important;
    }
}

/* Modern gradient text effect for hero */
.hero-section .display-4 {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: white !important;
}