/* Define custom properties for our theme colors for easy management */
:root {
    --light-bg: #ffffff;
    --dark-text: #343a40; /* A standard dark text color */
    --brand-purple: #9D50BB; /* A lighter, modern purple */
    --brand-purple-hover: #8E44AD; /* A slightly darker purple for hover */
    --white-text: #ffffff;
}
*{
    margin: 0;
    padding: 0;
    box-sizing: border-box; /* Added for consistent box model */
}
.btn-social{
    background-color: var(--brand-purple); 
    color: var(--white-text);
}

/* 
   For a more professional font, consider using a Google Font. 
   1. Go to fonts.google.com and find a font (e.g., 'Poppins').
   2. Add the <link> for the font in your HTML <head> before the stylesheets.
   3. Uncomment the line below.
*/
body { font-family: 'Poppins', sans-serif; }

/* Custom Navbar Styling */
.navbar-custom {
    padding-top: 0.2rem;
    padding-bottom: 0.2rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05); /* Subtle shadow for depth */
}

/* Brand/Logo Styling */
.navbar-custom .navbar-brand {
    margin-left: 1rem; /* Shifts the logo slightly to the right */
}

.logo-img {
    height: 50px; /* Reduced for a more compact navbar */
    width: auto;
}

/* Navigation Links Styling */
.navbar-custom .nav-link {
    font-size: 1rem; /* Standardized font size */
    color: var(--dark-text);
    font-weight: 500;
    margin-left: 1rem;
    margin-right: 1rem;
    position: relative; /* Needed for the underline effect */
    padding-bottom: 0.3rem;
    transition: color 0.3s ease-in-out;
}

.navbar-custom .nav-link:hover,
.navbar-custom .nav-link.active {
    color: var(--brand-purple);
}

/* Underline effect on hover/active for nav links */
.navbar-custom .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background-color: var(--brand-purple);
    transition: width 0.3s ease-in-out;
}

.navbar-custom .nav-link:hover::after,
.navbar-custom .nav-link.active::after {
    width: 60%; /* Width of the underline */
}

/* Custom Button Styling */
.btn-custom-purple {
    background-color: var(--brand-purple);
    border-color: var(--brand-purple);
    color: var(--white-text);
    font-weight: 500;
    padding: 0.5rem 1.5rem;
    border-radius: 50px; /* Pill-shaped button */
    transition: all 0.3s ease-in-out;
}

.btn-custom-purple:hover {
    background-color: var(--brand-purple-hover);
    border-color: var(--brand-purple-hover);
    color: var(--white-text);
    transform: translateY(-2px); /* Slight lift on hover */
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* Ensure the button has some margin on mobile when in the collapsed menu */
@media (max-width: 991.98px) {
    .navbar-nav .btn-custom-purple {
        margin-top: 0.5rem;
    }
}

/* --- Hero Section --- */
.hero-section {
    /* A dark overlay on top of a background image */
    background: linear-gradient(rgba(28, 27, 41, 0.8), rgba(47, 48, 69, 0.8)), url('https://images.unsplash.com/photo-1522202176988-66273c2fd55f?q=80&w=2071');
    background-size: cover;
    background-position: center;
    min-height: 60vh; /* Increased height to better showcase the image */
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white-text); /* Ensure text is white */
}

.hero-section .btn-custom-purple {
    background-color: var(--light-bg);
    color: var(--brand-purple);
    border-color: var(--light-bg);
}
.bg-custom-purple{
    background-color: var(--brand-purple);
}

.hero-section .btn-custom-purple:hover {
    background-color: #f8f9fa; /* A slightly off-white for hover */
    color: var(--brand-purple-hover);
    border-color: #f8f9fa;
}

/* --- Why Choose Us Section --- */
.feature-box {
    padding: 2rem 1rem;
}

/* --- Course Card Styles --- */
.course-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.course-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

/* --- Services Section --- */
.service-card {
    background-color: var(--light-bg);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.07);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

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

.text-purple {
    color: var(--brand-purple);
}

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

/* --- How It Works (Timeline) --- */
.timeline-step {
    position: relative;
    padding-bottom: 2rem;
}

.timeline-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--brand-purple);
    color: var(--white-text);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    border: 3px solid var(--light-bg);
    box-shadow: 0 0 0 4px var(--brand-purple);
}

/* Timeline connector line for desktop */
@media (min-width: 768px) {
    .timeline-step:not(:last-child)::after {
        content: '';
        position: absolute;
        top: 25px;
        left: 50%;
        transform: translateX(50%);
        width: 100%;
        height: 2px;
        background-color: #ddd;
        z-index: -1;
    }
}

/* --- Testimonials Section --- */
.testimonial-card {
    border: none;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}
.testimonial-card .card-body {
    font-style: italic;
    color: #555;
}

/* --- Animation Utilities --- */
.animate-fade-in {
    opacity: 0;
    animation: fadeIn 1s ease-out forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

.reveal {
    position: relative;
    transform: translateY(50px);
    opacity: 0;
    transition: all 1s ease;
}

.reveal.active {
    transform: translateY(0);
    opacity: 1;
}

/* --- Authentication Modal --- */
.auth-modal-content {
    border-radius: 15px;
    border: none;
    overflow: hidden; /* Ensures the child elements conform to the border radius */
}

/* Custom close button position */
.auth-modal-content .btn-close {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 10;
    background-color: #f1f1f1;
    border-radius: 50%;
}

/* Tab styling */
.auth-modal-content .nav-pills {
    background-color: #f8f9fa;
}

.auth-modal-content .nav-pills .nav-link {
    border-radius: 0;
    padding: 1rem;
    font-weight: 500;
    color: #6c757d;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
}

.auth-modal-content .nav-pills .nav-link.active {
    color: var(--brand-purple);
    background-color: var(--light-bg);
    border-bottom-color: var(--brand-purple);
}

/* Form styling */
.auth-modal-content .form-control {
    border-radius: 8px;
    padding: 0.75rem 1rem;
    border: 1px solid #ced4da;
}

.auth-modal-content .form-control:focus {
    border-color: var(--brand-purple);
    box-shadow: 0 0 0 0.25rem rgba(157, 80, 187, 0.25);
}

.auth-modal-content .form-check-input:checked {
    background-color: var(--brand-purple);
    border-color: var(--brand-purple);
}

.auth-modal-content .form-text {
    font-size: 0.875rem;
}

.auth-modal-content a {
    color: var(--brand-purple);
    text-decoration: none;
}

.auth-modal-content a:hover {
    text-decoration: underline;
}

/* --- Social Login --- */
.divider {
    text-align: center;
    position: relative;
    color: #adb5bd;
}

.divider::before,
.divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 40%;
    height: 1px;
    background-color: #dee2e6;
}

.divider::before {
    left: 0;
}

.divider::after {
    right: 0;
}

.divider span {
    background-color: var(--light-bg);
    padding: 0 10px;
    position: relative;
    z-index: 1;
}

.btn-social {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s ease; /* Animate all properties */
    background-color: var(--white-text);
    border: 2px solid #e0e0e0; /* A light grey border by default */
}
/* Set the icon color to the brand color by default */
.btn-google { color: #DB4437; }
.btn-facebook { color: #4267B2; }
.btn-github { color: #333; }
 
.btn-social:hover {
    color: var(--white-text); /* Icon becomes white on hover */
    transform: translateY(-3px); /* Add a lift effect */
    box-shadow: 0 5px 10px rgba(0,0,0,0.2);
}

/* Set the background and border to the brand color on hover */
.btn-google:hover { background-color: #DB4437; border-color: #DB4437; }
.btn-facebook:hover { background-color: #4267B2; border-color: #4267B2; }
.btn-github:hover { background-color: #333; border-color: #333; }