:root {
    --primary-color: #4F30B2; /* Deep Purple */
    --primary-light: #8A6FFC; /* Lavender */
    --accent-color: #00C4CC; /* Teal/Cyan for modern tech feel */
    --text-dark: #2C3E50;
    --text-light: #ECF0F1;
    --background-light: #FDFDFD;
    --background-dark: #F2F4F7;
    --card-bg: #FFFFFF;
    --border-color: #E0E0E0;
    --shadow-light: rgba(0, 0, 0, 0.08);
    --shadow-medium: rgba(0, 0, 0, 0.12);

    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Montserrat', sans-serif;

    --max-width: 1200px;
    --padding-sm: 1rem;
    --padding-md: 2rem;
    --padding-lg: 4rem;
    --border-radius: 12px;

    --transition-speed: 0.3s ease-in-out;
}

/* Base Styles & Resets */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--background-light);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
/* Optional: Prevent scroll when mobile menu is open */
body.no-scroll {
    overflow: hidden;
}

a {
    text-decoration: none;
    color: var(--primary-light);
    transition: color var(--transition-speed);
}

a:hover {
    color: var(--primary-color);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    margin-bottom: 0.8em;
    font-weight: 700;
    color: var(--text-dark);
}

h1 { font-size: 3.2em; line-height: 1.1; }
h2 { font-size: 2.5em; line-height: 1.2; }
h3 { font-size: 1.8em; line-height: 1.3; }
p { margin-bottom: 1em; }

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--padding-md);
}

.section-padding {
    padding: var(--padding-lg) 0;
}

.bg-light {
    background-color: var(--background-dark);
}

.section-title {
    text-align: center;
    margin-bottom: 0.5em;
    position: relative;
    padding-bottom: 0.3em;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: linear-gradient(to right, var(--primary-light), var(--accent-color));
    margin: 0.5em auto 0;
    border-radius: 2px;
}

.section-subtitle {
    text-align: center;
    margin-bottom: 3em;
    font-size: 1.1em;
    color: #666;
}

.highlight {
    color: var(--accent-color);
    position: relative;
    display: inline-block;
}

/* Main Header */
.main-header {
    background: var(--card-bg);
    box-shadow: 0 4px 10px var(--shadow-light);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: background-color var(--transition-speed), box-shadow var(--transition-speed);
}

.main-header.sticky {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 6px 20px var(--shadow-medium);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--padding-md) 0;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.8em;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: -0.5px;
}

.nav-menu {
    display: flex;
    list-style: none;
}

.nav-menu li {
    margin-left: var(--padding-lg);
}

.nav-link {
    font-weight: 500;
    color: var(--text-dark);
    position: relative;
    padding: 0.5em 0;
    transition: color var(--transition-speed);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(to right, var(--primary-light), var(--accent-color));
    transition: width var(--transition-speed);
    border-radius: 2px;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    cursor: pointer;
    transition: all var(--transition-speed);
}

.nav-toggle span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: var(--text-dark);
    border-radius: 5px;
    transition: all var(--transition-speed);
}

.nav-toggle.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 1;
}

.nav-toggle.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    color: var(--text-light);
    padding: 8rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 70vh; /* Ensures it takes a good portion of the viewport height */
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 50% 50%, rgba(255,255,255,0.08) 0%, transparent 70%);
    animation: rotateGradient 20s linear infinite;
    opacity: 1;.6;
}

@keyframes rotateGradient {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 800px;
}

.hero-content h1 {
    font-size: 4.5em;
    margin-bottom: 0.3em;
    color: var(--text-light);
    text-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.hero-content h1 .highlight {
    color: var(--accent-color);
}

.hero-content p {
    font-size: 1.4em;
    max-width: 700px;
    margin: 0 auto 2.5em;
    opacity: 1;.9;
    font-weight: 300;
}

/* Non-interactive CTA display */
.hero-cta-display,
.view-all-courses-display,
.cta-display-text {
    display: inline-flex;
    align-items: center;
    padding: 1.2em 2.5em;
    background: linear-gradient(45deg, var(--accent-color), #00A6B2);
    color: var(--text-light);
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1em;
    letter-spacing: 0.5px;
    box-shadow: 0 10px 30px rgba(0, 196, 204, 0.4);
    transition: all var(--transition-speed);
    cursor: default; /* Indicate it's not interactive */
}

.hero-cta-display svg,
.view-all-courses-display svg,
.cta-display-text svg {
    margin-left: 10px;
    transition: transform var(--transition-speed);
}
/* Center the view-all-courses-display for consistency */
.view-all-courses-display {
    justify-content: center;
    margin-left: auto;
    margin-right: auto;
    display: flex; /* Override inline-flex to allow margin auto */
}

/* General Grids */
.grid-two-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--padding-lg);
}

.align-center {
    align-items: center;
}

/* About Section */
.about-image {
    position: relative;
}

.about-image img {
    border-radius: var(--border-radius);
    box-shadow: 0 15px 40px var(--shadow-medium);
    transition: transform var(--transition-speed);
}

.about-image img:hover {
    transform: translateY(-5px);
}

.about-content h2 {
    font-size: 3em;
    margin-bottom: 0.5em;
}

.about-content p {
    font-size: 1.1em;
    color: #555;
}

/* Courses Section */
.course-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--padding-md);
    margin-bottom: var(--padding-md);
}

.course-card {
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 8px 25px var(--shadow-light);
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
    display: flex;
    flex-direction: column;
}

.course-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px var(--shadow-medium);
}

.course-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 1px solid var(--border-color);
}

.course-card .card-content {
    padding: var(--padding-md);
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.course-card h3 {
    font-size: 1.3em;
    margin-bottom: 0.5em;
    color: var(--primary-color);
}

.course-card p {
    font-size: 0.95em;
    color: #666;
    margin-bottom: 1em;
    flex-grow: 1;
}

.course-tag {
    display: inline-block;
    background-color: var(--background-dark);
    color: var(--text-dark);
    padding: 0.4em 0.8em;
    border-radius: 20px;
    font-size: 0.8em;
    font-weight: 600;
    letter-spacing: 0.5px;
    align-self: flex-start;
}

/* Features Section */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--padding-md);
}

.feature-card {
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    padding: var(--padding-md);
    text-align: center;
    box-shadow: 0 6px 20px var(--shadow-light);
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px var(--shadow-medium);
}

.feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: linear-gradient(45deg, var(--primary-color), var(--primary-light));
    border-radius: 50%;
    margin-bottom: var(--padding-md);
    color: var(--text-light);
    font-size: 1.8em;
    box-shadow: 0 5px 15px rgba(79, 48, 178, 0.3);
}

.feature-icon svg {
    width: 30px;
    height: 30px;
}

.feature-card h3 {
    font-size: 1.4em;
    margin-bottom: 0.5em;
}

.feature-card p {
    font-size: 0.95em;
    color: #666;
}

/* Testimonials Section */
.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--padding-md);
}

.testimonial-card {
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    padding: var(--padding-md);
    box-shadow: 0 8px 25px var(--shadow-light);
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
    position: relative;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.testimonial-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px var(--shadow-medium);
}

.testimonial-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--primary-light);
    margin-bottom: 1em;
}

.testimonial-card h3 {
    font-size: 1.2em;
    margin-bottom: 0.5em;
    color: var(--primary-color);
}

.testimonial-quote {
    font-style: italic;
    color: #555;
    margin-bottom: 1em;
    flex-grow: 1;
    font-size: 1.05em;
}

.testimonial-rating {
    color: #FFD700; /* Gold */
    font-size: 1.2em;
    letter-spacing: 2px;
}

/* CTA Banner */
.cta-banner {
    background: linear-gradient(90deg, var(--primary-color) 0%, #6E49D3 100%);
    color: var(--text-light);
    text-align: center;
    padding: var(--padding-lg) 0;
}

.cta-banner h2 {
    color: var(--text-light);
    font-size: 3em;
    margin-bottom: 0.4em;
}

.cta-banner p {
    font-size: 1.3em;
    max-width: 700px;
    margin: 0 auto 2.5em;
    opacity: 1;.9;
}

/* Footer */
.main-footer {
    background-color: var(--text-dark);
    color: var(--text-light);
    padding: var(--padding-lg) 0 var(--padding-md) 0;
    font-size: 0.95em;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--padding-lg);
    margin-bottom: var(--padding-md);
}

.footer-brand .logo {
    color: var(--accent-color);
    margin-bottom: 1em;
    display: inline-block;
}

.footer-brand p {
    opacity: 1;.8;
    line-height: 1.8;
}

.footer-links h3, .footer-social h3 {
    color: var(--primary-light);
    margin-bottom: 1em;
    font-size: 1.2em;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.8em;
}

.footer-links a {
    color: var(--text-light);
    opacity: 1;.8;
    transition: opacity var(--transition-speed), color var(--transition-speed);
}

.footer-links a:hover {
    opacity: 1;
    color: var(--accent-color);
}

.social-icons {
    display: flex;
    gap: 1.5em;
}

.social-icons a {
    color: var(--text-light);
    opacity: 1;.8;
    transition: transform var(--transition-speed), opacity var(--transition-speed), color var(--transition-speed);
}

.social-icons a:hover {
    transform: translateY(-3px);
    opacity: 1;
    color: var(--accent-color);
}

.social-icons svg {
    width: 24px;
    height: 24px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: var(--padding-md);
    margin-top: var(--padding-md);
    text-align: center;
    opacity: 1;.7;
    font-size: 0.85em;
}

.footer-bottom p {
    margin-bottom: 0.5em;
}

.footer-bottom a {
    color: var(--text-light);
    transition: color var(--transition-speed);
}

.footer-bottom a:hover {
    color: var(--accent-color);
}

/* Scroll Reveal Animations */
.reveal {
    opacity: 1;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.reveal.reveal-active {
    opacity: 1;
    transform: translateY(0);
}

.reveal.fade-bottom {
    transform: translateY(50px);
}

.reveal.fade-bottom.reveal-active {
    transform: translateY(0);
}


/* Media Queries for Responsiveness */
@media (max-width: 992px) {
    h1 { font-size: 3.5em; }
    h2 { font-size: 2em; }
    .hero-content p { font-size: 1.2em; }
    .hero-section { padding: 6rem 0; min-height: 60vh; }
    .section-padding { padding: 3rem 0; }
    .nav-menu li { margin-left: var(--padding-md); }
}

@media (max-width: 768px) {
    .container { padding: 0 var(--padding-sm); }
    h1 { font-size: 2.8em; }
    h2 { font-size: 1.8em; }
    h3 { font-size: 1.5em; }
    .hero-section { padding: 4rem 0; min-height: 50vh; }
    .hero-content p { font-size: 1em; }

    .nav-toggle {
        display: flex;
        z-index: 1001; /* Ensure toggle is above menu when open */
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%; /* Hidden by default */
        width: 70%;
        max-width: 300px; /* Limit width on larger mobile devices */
        height: 100vh;
        background-color: var(--primary-color);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right var(--transition-speed);
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.3);
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-menu li {
        margin: 1.5rem 0;
        opacity: 1;
        transform: translateY(20px);
        transition: opacity 0.4s ease-out, transform 0.4s ease-out;
    }

    .nav-menu.active li {
        opacity: 1;
        transform: translateY(0);
    }
    .nav-menu.active li:nth-child(1) { transition-delay: 0.1s; }
    .nav-menu.active li:nth-child(2) { transition-delay: 0.2s; }
    .nav-menu.active li:nth-child(3) { transition-delay: 0.3s; }
    .nav-menu.active li:nth-child(4) { transition-delay: 0.4s; }


    .nav-link {
        color: var(--text-light);
        font-size: 1.5em;
        padding: 0.5em 1em;
    }
    .nav-link::after {
        background: var(--accent-color);
        height: 2px;
    }

    .grid-two-cols {
        grid-template-columns: 1fr;
        gap: var(--padding-md);
    }
    .about-image { order: -1; } /* Image above text on mobile */

    .course-grid, .features-grid, .testimonial-grid {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .footer-brand .logo { margin: 0 auto 1em; }
    .footer-links ul {
        padding-left: 0;
    }
    .social-icons {
        justify-content: center;
    }

    .cta-banner h2 { font-size: 2.2em; }
    .cta-banner p { font-size: 1.1em; }
    .hero-cta-display, .view-all-courses-display, .cta-display-text {
        padding: 1em 2em;
        font-size: 1em;
    }
}

@media (max-width: 480px) {
    h1 { font-size: 2.2em; }
    h2 { font-size: 1.6em; }
    .hero-section { padding: 3rem 0; min-height: 40vh; }
    .hero-content h1 .highlight { display: block; } /* For better line break on small screens */
    .section-subtitle { margin-bottom: 2em; font-size: 1em;}
    .hero-cta-display, .view-all-courses-display, .cta-display-text {
        font-size: 0.9em;
        padding: 0.8em 1.5em;
    }
}


javascript
/* Visible state helpers */
+ .animate-fade-in-up.visible,
+ .animate-fade-in-left.visible,
+ .animate-fade-in-right.visible,
+ .animate-bounce-y.visible,
+ .section-scroll-animate.visible,
+ .text-animate-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Safe visibility overrides (auto-added) */
:root, html, body, main, header, footer, section, .container, .content {
  opacity: 1 !important;
  visibility: visible !important;
}
