:root {
    --primary-color: #6366f1;
    --secondary-color: #4f46e5;
    --accent-color: #818cf8;
    --background-color: #ffffff;
    --text-color: #1f2937;
    --light-gray: #f3f4f6;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
}

body.no-scroll {
    overflow: hidden;
}

/* Header and Navigation */
header {
    position: fixed;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 0; /* Add padding to nav for better spacing */
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
}

.nav-links li a {
    color: #1e293b;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.3s ease;
}

.nav-links li a:hover {
    color: var(--primary-color);
}

.menu-toggle {
    display: none; /* Hidden by default on desktop */
    background: none;
    border: none;
    font-size: 1.8rem;
    color: #1e293b;
    cursor: pointer;
    z-index: 101;
}

/* Mobile Styles */
@media (max-width: 768px) {
    /* Force hide the redundant mobile-menu-button */
    .mobile-menu-button {
        display: none !important;
    }

    nav {
        width: 90%;
        justify-content: space-between;
    }

    .logo {
        font-size: 1.8rem; /* Revert to default size */
        text-indent: 0; /* Revert text indent */
        width: auto;
        height: auto;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: 0; /* Align to the right */
        width: 250px; /* Width of the side navigation */
        height: 100vh; /* Full viewport height */
        background-color: rgba(255, 255, 255, 0.9); /* Semi-transparent background for the side nav */
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transform: translateX(100%); /* Hidden by default by pushing it off-screen to the right */
        transition: transform 0.5s ease-in-out; /* Only transition transform */
        z-index: 100; /* Above content, below toggle */
        gap: 2rem;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        display: none; /* STRICTLY hidden by default on mobile, takes no space */
        pointer-events: none; /* Prevent interaction when hidden */
        overflow: hidden; /* Hide any overflowing content */
    }

    .nav-links.nav-active {
        transform: translateX(0%); /* Slide into view */
        display: flex; /* Display as flex when active */
        pointer-events: auto; /* Allow interaction when active */
    }

    .nav-links li a {
        font-size: 1.5rem;
    }

    .menu-toggle {
        display: block; /* Show toggle on mobile */
        margin-left: auto; /* Push to the right */
    }

    .overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5); /* Semi-transparent overlay */
        z-index: 90; /* Below nav, above content */
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.5s ease-in-out, visibility 0.5s ease-in-out;
    }

    .overlay.active {
        opacity: 1;
        visibility: visible;
    }
}

/* Hero Section */
#hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 6rem 2rem 2rem;
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 750px;
    z-index: 1;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    color: #4b5563;
}

#hero-animation {
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
}

/* Features Section */
#features {
    padding: 6rem 2rem;
    background-color: var(--light-gray);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    text-align: center;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.feature-card:hover {
    transform: translateY(-10px);
}

.feature-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(45deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.1));
    border-radius: 16px;
    padding: 1rem;
    flex-shrink: 0;
}

.feature-icon svg {
    width: 32px;
    height: 32px;
    color: #6366f1;
}

.feature-card h3 {
    color: #1e293b;
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.feature-card p {
    color: #64748b;
    line-height: 1.5;
    font-size: 0.95rem;
}

@media (max-width: 1200px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .feature-card {
        padding: 1.5rem;
    }
    
    .feature-icon {
        width: 56px;
        height: 56px;
        padding: 0.875rem;
        margin-bottom: 1rem;
    }
    
    .feature-icon svg {
        width: 28px;
        height: 28px;
    }
}

/* Courses Section */
#courses {
    padding: 6rem 2rem;
}

.courses-grid {
    max-width: 1200px;
    margin: 3rem auto 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.course-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.course-card:hover {
    transform: translateY(-10px);
}

.course-image {
    width: 100%;
    height: 200px;
    border-radius: 15px;
    margin-bottom: 1rem;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: white;
}

.course-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.course-card:hover .course-image img {
    transform: scale(1.1);
}

.course-card h3 {
    color: #1e293b;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.course-card p {
    color: #64748b;
    line-height: 1.6;
    font-size: 1rem;
}

.course-overview {
    padding: 1.5rem;
    background: #f8fafc;
    border-top: 1px solid #e5e7eb;
    margin-top: auto;
}

.course-overview h4 {
    color: var(--text-color);
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.course-overview ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.course-overview li {
    color: #4b5563;
    font-size: 0.9rem;
    padding: 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.course-overview li::before {
    content: "•";
    color: var(--primary-color);
    font-weight: bold;
}

/* Footer */
footer {
    background: #1e293b;
    color: white;
    padding: 4rem 0 0;
    position: relative;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr 300px;
    gap: 3rem;
    padding: 0 2rem;
}

.footer-section h3 {
    color: white;
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
}

.footer-section p {
    color: #94a3b8;
    margin-bottom: 0.75rem;
    line-height: 1.6;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 0.75rem;
}

.footer-section ul li a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: white;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    color: #94a3b8;
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: white;
}

.footer-bottom {
    margin-top: 4rem;
    padding: 1.5rem 0;
    text-align: center;
    border-top: 1px solid rgba(148, 163, 184, 0.1);
}

.footer-bottom p {
    color: #94a3b8;
    font-size: 0.95rem;
}

#footer-animation {
    width: 300px;
    height: 200px;
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    #footer-animation {
        width: 100%;
        height: 150px;
        margin: 0 auto;
    }

    .social-links {
        justify-content: center;
    }
}

/* Buttons */
.cta-button {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 0.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.cta-button:hover {
    background: var(--secondary-color);
}

/* Testimonials Section */
#testimonials {
    padding: 6rem 2rem;
    background-color: var(--light-gray);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-top: 3rem;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

.testimonial-card {
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.testimonial-card:hover {
    transform: translateY(-5px);
}

.testimonial-content {
    margin-bottom: 1rem;
    flex-grow: 1;
}

.testimonial-content p {
    color: #1e293b;
    font-size: 0.95rem;
    line-height: 1.5;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.author-info h4 {
    color: #1e293b;
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.author-info p {
    color: #64748b;
    font-size: 0.85rem;
}

@media (max-width: 1200px) {
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .testimonial-card {
        padding: 1.25rem;
    }
}

/* Contact Section */
#contact {
    padding: 6rem 2rem;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
}

.contact-wrapper {
    max-width: 1200px;
    margin: 0 auto;
}

.contact-header {
    text-align: center;
    margin-bottom: 4rem;
}

.contact-header h2 {
    font-size: 2.5rem;
    color: var(--text-color);
    margin-bottom: 1rem;
}

.contact-header p {
    color: #4b5563;
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

.contact-container {
    background: white;
    border-radius: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 3rem;
}

.contact-form-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    color: var(--text-color);
    font-weight: 500;
    font-size: 0.9rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.875rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: all 0.3s ease;
    background-color: #f8fafc;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background-color: white;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.submit-button {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 0.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 1rem;
}

.submit-button:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

.submit-button i {
    font-size: 1rem;
    transition: transform 0.3s ease;
}

.submit-button:hover i {
    transform: translateX(4px);
}

/* Responsive Design for Contact Section */
@media (max-width: 768px) {
    .contact-container {
        padding: 2rem;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .contact-header h2 {
        font-size: 2rem;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    #hero-animation {
        width: 100%;
        opacity: 0.2;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }
    
    #footer-animation {
        width: 100%;
    }
    
    .contact-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact-info {
        text-align: center;
    }
    
    .contact-details {
        align-items: center;
    }
}

/* Notifications */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 1rem 1.5rem;
    border-radius: 0.5rem;
    background: white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transform: translateX(120%);
    transition: transform 0.3s ease;
    z-index: 1000;
}

.notification.show {
    transform: translateX(0);
}

.notification.success {
    border-left: 4px solid #10b981;
}

.notification.error {
    border-left: 4px solid #ef4444;
}

.notification i {
    font-size: 1.25rem;
}

.notification.success i {
    color: #10b981;
}

.notification.error i {
    color: #ef4444;
}

.notification span {
    color: var(--text-color);
    font-size: 0.875rem;
}

/* Button States */
.submit-button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none !important;
}

.submit-button i.fa-spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Responsive adjustments for course cards */
@media (max-width: 768px) {
    .courses-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .course-card {
        padding: 1.5rem;
    }
    
    .course-image {
        height: 180px;
    }
    
    .course-image::after {
        width: 60px;
        height: 60px;
    }
}

@media (max-width: 768px) {
    .feature-card {
        padding: 1.5rem;
    }
    
    .feature-icon {
        width: 56px;
        height: 56px;
        padding: 0.875rem;
    }
    
    .feature-icon svg {
        width: 28px;
        height: 28px;
    }
} 