/* --- CSS Variables & Global Styles --- */
:root {
    --primary-color: #4f46e5;
    --primary-hover: #6366f1; /* Lighter hover for gradient */
    --background-color: #f7f8f9;
    --card-background: #ffffff;
    --text-color: #1f2937;
    --muted-text: #6b7280;
    --border-color: #e5e7eb;
    --shadow-color: rgba(0, 0, 0, 0.05);
    --shadow-hover-color: rgba(0, 0, 0, 0.1); /* New shadow for hover */
    --success-color: #34d399;
    --font-sans: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

/* Dark Mode support */
@media (prefers-color-scheme: dark) {
    :root {
        --background-color: #111827;
        --card-background: #1f2937;
        --text-color: #f3f4f6;
        --muted-text: #9ca3af;
        --border-color: #374151;
        --shadow-color: rgba(0, 0, 0, 0.2);
        --shadow-hover-color: rgba(0, 0, 0, 0.3); /* New shadow for hover in dark mode */
    }
}

/* General Reset and Base Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
    font-family: var(--font-sans);
}

/* --- Preloader --- */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--background-color);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease;
}
.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid var(--border-color);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Utility Classes */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 20px;
}
.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 50px;
    /* Gradient effect for titles */
    background: linear-gradient(90deg, var(--primary-color), var(--primary-hover));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-emphasis-color: transparent;
}
.small-text {
    font-size: 14px;
    color: var(--muted-text);
}
.text-center {
    text-align: center;
}
.mt-4 {
    margin-top: 3rem; /* Increased margin top */
}

/* --- Animations --- */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}


/* --- Header & Navigation --- */
header {
    background-color: var(--card-background);
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 2px 10px var(--shadow-color);
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: background-color 0.3s, border-color 0.3s;
}
.brand {
    display: flex;
    align-items: center;
    gap: 10px;
}
.brand .logo img {
    width: 40px;
    height: 40px;
}
.site-name {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-color);
}
.tagline {
    font-size: 0.75rem;
    color: var(--muted-text);
}
nav a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    padding: 10px 15px;
    border-radius: 8px;
    position: relative;
    transition: background-color 0.3s, color 0.3s;
}
nav a:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--primary-color);
    transition: width 0.3s;
}
nav a:hover {
    color: var(--primary-color);
}
nav a:hover:after {
    width: 50%;
}


/* --- Buttons & CTAs --- */
.cta-primary, .btn-card, .cta-secondary {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}
.cta-primary {
    background-color: var(--primary-color);
    color: #fff;
    border: 2px solid var(--primary-color);
}
.cta-primary:hover {
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(79, 70, 229, 0.4);
}
.cta-secondary {
    background-color: transparent;
    color: #fff;
    border: 2px solid #fff;
}
.cta-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
}
.btn-card {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    font-size: 1rem;
    padding: 10px 20px;
}
.btn-card:hover {
    background-color: var(--primary-color);
    color: #fff;
}

/* --- Video Hero Section --- */
.video-hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}
.video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
#heroVideo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}
.hero-content-video {
    max-width: 800px;
    padding: 0 20px;
    animation: fadeIn 1s ease-out 0.5s forwards;
    opacity: 0;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
.hero-content-video h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
}
.hero-content-video p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}
.hero-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* --- Feature, Course, and Review Card Shared Styles --- */
.feature-card, .course-card, .review-card {
    background-color: var(--card-background);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 15px var(--shadow-color);
    transition: transform 0.3s, box-shadow 0.3s;
}
/* Enhanced hover effect */
.feature-card:hover, .course-card:hover, .review-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 28px var(--shadow-hover-color);
}


/* --- Feature Section --- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}
.feature-card {
    padding: 30px;
    text-align: center;
}
.feature-card img {
    width: 70px;
    height: 70px;
    margin-bottom: 15px;
}
.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

/* --- Stats Section --- */
.stats-section {
    background-color: var(--primary-color);
    color: #fff;
    padding: 60px 20px;
}
.stats-section .section-title {
    color: #fff;
    background: none;
    -webkit-text-fill-color: initial;
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    text-align: center;
}
.stat-item h3 {
    font-size: 3rem;
    font-weight: 700;
}
.stat-item p {
    font-size: 1rem;
    opacity: 0.9;
}

/* --- Courses Section --- */
.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}
.course-card {
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.course-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}
.course-card .card-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.course-card h3 {
    margin-bottom: 10px;
    color: var(--primary-color);
}
.course-card p {
    color: var(--muted-text);
    margin-bottom: 15px;
    flex-grow: 1;
}
.btn-card {
    align-self: flex-start;
}

/* --- "How It Works" Timeline --- */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}
.timeline::after {
    content: '';
    position: absolute;
    width: 4px;
    background-color: var(--primary-color);
    opacity: 0.3;
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -2px;
}
.timeline-item {
    padding: 10px 40px;
    position: relative;
    width: 50%;
}
.timeline-item:nth-child(odd) {
    left: 0;
}
.timeline-item:nth-child(even) {
    left: 50%;
}
.timeline-item:nth-child(odd) .timeline-content {
    text-align: right;
}
.timeline-icon {
    position: absolute;
    width: 50px;
    height: 50px;
    right: -25px;
    top: 20px;
    background-color: var(--primary-color);
    color: #fff;
    border: 4px solid var(--background-color);
    border-radius: 50%;
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    font-weight: bold;
}
.timeline-item:nth-child(even) .timeline-icon {
    left: -25px;
}
.timeline-content {
    padding: 20px 30px;
    background-color: var(--card-background);
    border-radius: 8px;
    box-shadow: 0 4px 15px var(--shadow-color);
}

/* --- Reviews Section --- */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}
.review-card {
    padding: 30px;
    border-left: 5px solid var(--primary-color);
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.review-card p {
    font-style: italic;
    color: var(--text-color);
}
.review-author {
    display: flex;
    align-items: center;
    gap: 15px;
}
.review-author img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary-color);
}
.review-author h4 {
    margin: 0;
    font-size: 1rem;
}

/* --- Hiring Partners Section --- */
.partners-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 40px;
}
.partner-logo {
    opacity: 0.7;
    transition: opacity 0.3s, transform 0.3s;
}
.partner-logo:hover {
    opacity: 1;
    transform: scale(1.1);
}
.partner-logo img {
    max-width: 150px;
    filter: grayscale(100%);
    transition: filter 0.3s;
}
.partner-logo:hover img {
    filter: grayscale(0%);
}

/* --- FAQ Section --- */
.faq-accordion {
    max-width: 800px;
    margin: 0 auto;
}
.faq-item {
    border-bottom: 1px solid var(--border-color);
}
.faq-question {
    width: 100%;
    background: none;
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    font-size: 1.1rem;
    font-weight: 600;
    text-align: left;
    color: var(--text-color);
    cursor: pointer;
}
.faq-icon {
    font-size: 1.5rem;
    color: var(--primary-color);
    transition: transform 0.3s;
}
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
}
.faq-answer p {
    padding: 0 0 20px;
    color: var(--muted-text);
}
.faq-item.active .faq-icon {
    transform: rotate(45deg);
}


/* --- Contact Section --- */
.contact-form-container {
    max-width: 600px;
    margin: 0 auto;
    background-color: var(--card-background);
    padding: 40px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 15px var(--shadow-color);
}
.form-group {
    margin-bottom: 20px;
}
.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}
.form-group input, .form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background-color: var(--background-color);
    color: var(--text-color);
    font-size: 1rem;
    transition: border-color 0.3s, box-shadow 0.3s;
}
.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.2);
}
.form-group textarea {
    resize: vertical;
    min-height: 120px;
}
.contact-form-container .cta-primary {
    width: 100%;
}
#message-box {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    padding: 15px 25px;
    border-radius: 8px;
    font-weight: 600;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s, bottom 0.3s;
}
#message-box.show {
    opacity: 1;
    visibility: visible;
    bottom: 30px;
}


/* --- Footer --- */
footer {
    background-color: var(--card-background);
    padding: 60px 20px;
    border-top: 1px solid var(--border-color);
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}
.footer-about p {
    color: var(--muted-text);
    max-width: 400px;
    margin-top: 15px;
}
.social-links {
    margin-top: 20px;
    display: flex;
    gap: 15px;
}
.social-links svg {
    width: 24px;
    height: 24px;
    color: var(--muted-text);
    transition: color 0.3s, transform 0.3s;
}
.social-links a:hover svg {
    color: var(--primary-color);
    transform: translateY(-3px);
}
.footer-links h3, .footer-contact h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: var(--text-color);
}
.footer-links ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.footer-links a {
    text-decoration: none;
    color: var(--muted-text);
    transition: color 0.3s;
}
.footer-links a:hover {
    color: var(--primary-color);
}
.footer-contact p {
    color: var(--muted-text);
    margin-bottom: 10px;
}
.footer-contact a {
    color: var(--primary-color);
    text-decoration: none;
}
.footer-bottom {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    color: var(--muted-text);
}

/* --- Scroll to Top Button --- */
#scrollToTopBtn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 1001;
    display: none; /* Hidden by default */
    opacity: 0;
    transition: opacity 0.3s, transform 0.3s;
}
#scrollToTopBtn:hover {
    background-color: var(--primary-hover);
    transform: translateY(-3px);
}


/* --- Responsive Design --- */
@media (max-width: 992px) {
    .timeline::after {
        left: 31px;
    }
    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }
    .timeline-item:nth-child(odd), .timeline-item:nth-child(even) {
        left: 0;
    }
    .timeline-item:nth-child(odd) .timeline-content, .timeline-item:nth-child(even) .timeline-content {
        text-align: left;
    }
    .timeline-icon {
        left: 6px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .footer-about, .footer-links, .footer-contact {
        align-items: center;
    }
}

@media (max-width: 768px) {
    header {
        flex-direction: column;
        text-align: center;
    }
    nav {
        margin-top: 15px;
    }
    .video-hero {
        height: 80vh;
    }
    .hero-content-video h1 {
        font-size: 2.5rem;
    }
    .hero-content-video p {
        font-size: 1rem;
    }
    .section-title {
        font-size: 2rem;
    }
    .container {
        padding: 60px 20px;
    }
}