/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

:root {
    --primary-color: #4f46e5;
    --primary-dark: #4338ca;
    --primary-light: #c7d2fe;
    --secondary-color: #0ea5e9;
    --accent-color: #f97316;
    --background-color: #f9fafb;
    --text-color: #111827;
    --text-light: #4b5563;
    --border-color: #e5e7eb;
    --success-color: #10b981;
    --error-color: #ef4444;
    --warning-color: #f59e0b;
    --card-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --hover-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    --gradient-primary: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) a100%);
}

body {
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
}

/* Prevent scrolling when mobile menu is open */
body.menu-open {
    overflow: hidden;
}

/* Navigation */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    height: 70px;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    height: 60px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.nav-brand {
    display: flex;
    align-items: center;
}

.nav-brand h1 {
    font-size: 1.8rem;
    font-weight: 700;
    background: var(--gradient-primary);
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    margin: 0;
    letter-spacing: -0.5px;
}

/* Hamburger Menu */
.hamburger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    height: 24px;
    width: 30px;
    cursor: pointer;
    z-index: 1010;
    position: relative;
}

.bar {
    width: 100%;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.hamburger-menu.active .bar:nth-child(1) {
    transform: translateY(10px) rotate(45deg);
}

.hamburger-menu.active .bar:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.active .bar:nth-child(3) {
    transform: translateY(-10px) rotate(-45deg);
}

.nav-links {
    display: flex;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    font-size: 0.95rem;
    position: relative;
    margin: 0 0.3rem;
}

.nav-links a:not(.btn-primary):after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background: var(--primary-color);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-links a:not(.btn-primary):hover:after {
    width: 70%;
}

.nav-links a:hover {
    color: var(--primary-color);
}

.nav-links a.active {
    color: var(--primary-color);
    font-weight: 600;
}

.nav-links a.active:not(#signinBtn):after {
    width: 70%;
}

.nav-links a.btn-primary {
    background: var(--primary-color);
    color: white;
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    box-shadow: 0 4px 10px rgba(79, 70, 229, 0.2);
    margin-left: 0.5rem;
    margin-right: 0.5rem;
}

.nav-links a.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(79, 70, 229, 0.3);
    background: var(--primary-dark);
}

/* Buttons */
.btn-primary {
    background-color: var(--primary-color);
    color: white;
    padding: 0.9rem 1.8rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    display: inline-block;
    box-shadow: 0 4px 10px rgba(79, 70, 229, 0.2);
    font-size: 0.95rem;
    letter-spacing: 0.3px;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(79, 70, 229, 0.3);
}

.btn-secondary {
    background-color: white;
    color: var(--primary-color);
    padding: 0.9rem 1.8rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    border: 2px solid var(--primary-color);
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 0.95rem;
    letter-spacing: 0.3px;
}

.btn-secondary:hover {
    background-color: var(--primary-light);
    color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(79, 70, 229, 0.1);
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 5%;
    background: linear-gradient(135deg, #f8f9ff 0%, #e9f1ff 100%);
    position: relative;
    overflow: hidden;
    margin-top: 70px; /* Account for fixed navbar */
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%234f46e5' fill-opacity='0.03' fill-rule='evenodd'/%3E%3C/svg%3E");
    opacity: 1;
}

.hero::after {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.2) 0%, rgba(14, 165, 233, 0.2) 100%);
    top: -250px;
    right: -250px;
    z-index: 0;
    animation: float 15s infinite ease-in-out;
}

.hero-circle {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.15) 0%, rgba(79, 70, 229, 0.15) 100%);
    z-index: 0;
}

.hero-circle-1 {
    width: 300px;
    height: 300px;
    bottom: -150px;
    left: -150px;
    animation: float 18s infinite ease-in-out reverse;
}

.hero-circle-2 {
    width: 200px;
    height: 200px;
    top: 30%;
    left: 10%;
    animation: float 20s infinite ease-in-out 2s;
}

.hero-circle-3 {
    width: 120px;
    height: 120px;
    bottom: 20%;
    right: 15%;
    animation: float 12s infinite ease-in-out 1s;
}

@keyframes float {
    0% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(10px, -10px) rotate(5deg); }
    50% { transform: translate(0, 15px) rotate(0deg); }
    75% { transform: translate(-10px, -5px) rotate(-5deg); }
    100% { transform: translate(0, 0) rotate(0deg); }
}

.hero-content {
    margin-bottom: 30px;
    max-width: 900px;
    position: relative;
    z-index: 1;
    padding: 3rem;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.8);
    animation: fadeIn 1s ease-out;
}

.hero-content h1 {
    font-size: 4.2rem;
    margin-bottom: 1.5rem;
    font-weight: 800;
    line-height: 1.2;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    position: relative;
}

.hero-content h1::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

.hero-content p {
    font-size: 1.4rem;
    margin-bottom: 2.5rem;
    color: var(--text-light);
    line-height: 1.6;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 1.2s ease-out forwards;
    opacity: 0;
    transform: translateY(20px);
    animation-delay: 0.3s;
}

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

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-top: 2rem;
    animation: fadeInUp 1.2s ease-out forwards;
    opacity: 0;
    transform: translateY(20px);
    animation-delay: 0.6s;
}

.hero-buttons .btn-primary,
.hero-buttons .btn-secondary {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    border-radius: 50px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.hero-buttons .btn-primary {
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.3);
}

.hero-buttons .btn-secondary {
    box-shadow: 0 4px 15px rgba(14, 165, 233, 0.2);
}

.hero-buttons .btn-primary::before,
.hero-buttons .btn-secondary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transition: all 0.4s ease;
    z-index: 1;
}

.hero-buttons .btn-primary:hover::before,
.hero-buttons .btn-secondary:hover::before {
    left: 100%;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 4rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    animation: fadeInUp 1.2s ease-out forwards;
    opacity: 0;
    transform: translateY(20px);
    animation-delay: 0.9s;
}

.stat-item {
    text-align: center;
    position: relative;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    position: relative;
    display: inline-block;
}

.stat-number::after {
    content: '';
    position: absolute;
    bottom: 0px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
    opacity: 0.7;
}

.stat-label {
    font-size: 1.1rem;
    color: var(--text-light);
    font-weight: 500;
}

/* Responsive Hero */
@media (max-width: 768px) {
    .navbar {
        padding: 0 4%;
        height: 60px; /* Smaller height on mobile */
    }
    
    .nav-brand h1 {
        font-size: 1.5rem; /* Smaller logo on mobile */
    }

    .hero {
        padding: 0 15px;
        height: auto;
        min-height: 100vh;
    }

    .hero-content {
        padding: 2rem 1rem;
        margin-top: 30px;
    }

    .hero-content h1 {
        font-size: 2.2rem;
        line-height: 1.3;
    }
    
    .hero-content p {
        font-size: 1rem;
        line-height: 1.5;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
    }

    .hero-buttons .btn-primary,
    .hero-buttons .btn-secondary {
        width: 100%;
        padding: 12px;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 1.5rem;
        padding-top: 1.5rem;
    }
    
    .courses-grid {
        grid-template-columns: 1fr;
    }
}

/* Courses Section */
.courses {
    padding: 5rem 5% 3rem;
    background-color: white;
}

.courses h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--text-color);
    position: relative;
    font-weight: 700;
}

.courses h2:after {
    content: "";
    position: absolute;
    width: 80px;
    height: 4px;
    background: var(--primary-color);
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2.5rem;
    margin-top: 1rem;
}

/* Course Card */
.course-card {
    background-color: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid var(--border-color);
    position: relative;
}

.course-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-light);
}

.course-card:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.course-card:hover:before {
    transform: scaleX(1);
}

.course-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 1px solid var(--border-color);
    transition: all 0.4s ease;
}

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

.course-content {
    padding: 1.8rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    position: relative;
}

.course-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
    color: var(--text-color);
    line-height: 1.4;
    transition: color 0.3s ease;
}

.course-card:hover .course-title {
    color: var(--primary-color);
}

.course-description {
    font-size: 0.95rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.6;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.course-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
}

.course-card .btn-primary {
    width: 100%;
    text-align: center;
    padding: 0.8rem;
    border-radius: 8px;
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    overflow: hidden;
    position: relative;
    z-index: 1;
}

.course-card .btn-primary:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.4s ease;
    z-index: -1;
}

.course-card .btn-primary:hover:before {
    left: 100%;
}

/* Footer */
.footer {
    background: linear-gradient(to right, #111827, #1f2937);
    color: white;
    padding: 5rem 5% 2rem;
    margin-top: 5rem;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 8px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 4rem;
    margin-bottom: 3rem;
}

.footer-section {
    text-align: center;
    padding: 0 1rem;
}

.footer-section h3 {
    font-size: 1.4rem;
    margin-bottom: 2rem;
    position: relative;
    font-weight: 600;
    color: white;
    display: inline-block;
}

.footer-section h3:after {
    content: '';
    position: absolute;
    width: 50%;
    height: 3px;
    background: var(--primary-color);
    left: 50%;
    transform: translateX(-50%);
    bottom: -8px;
    border-radius: 2px;
}

.footer-section p {
    color: #d1d5db;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.footer-links li {
    margin: 0;
}

.footer-links a {
    color: #d1d5db;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-links a:hover {
    color: white;
    transform: translateX(5px);
}

.contact-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.contact-info p {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #d1d5db;
    font-size: 0.95rem;
    margin: 0;
}

.contact-info i {
    color: var(--primary-color);
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
}

.footer-social {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1.5rem;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-social a:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    text-align: center;
    font-size: 0.9rem;
    color: #9ca3af;
}

/* Responsive Footer */
@media (max-width: 768px) {
    .footer {
        padding: 3rem 1rem 1rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    .footer-section {
        padding: 0;
    }
    
    .footer-section h3 {
        margin-bottom: 1.5rem;
    }
    
    .contact-info {
        margin-bottom: 1rem;
    }
}

/* Modals */
.modal {
    display: none;
    position: fixed;
    z-index: 1100;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 2.5rem;
    border-radius: 16px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
    position: relative;
    animation: slideDown 0.4s ease;
    border: 1px solid var(--border-color);
}

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

.close {
    position: absolute;
    right: 20px;
    top: 20px;
    color: var(--text-light);
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    background: var(--background-color);
}

.close:hover {
    color: var(--primary-color);
    background: var(--primary-light);
}

.modal-content h2 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: var(--text-color);
    font-weight: 700;
    text-align: center;
}

/* Form Elements */
.form-group {
    margin-bottom: 1.5rem;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-color);
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.9rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background-color: #f9fafb;
    color: var(--text-color);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
    outline: none;
    background-color: white;
}

.auth-switch {
    text-align: center;
    margin-top: 1.5rem;
    color: var(--text-light);
    font-size: 0.95rem;
}

.auth-switch a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

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

/* Loading Spinner */
.spinner {
    display: none;
    position: fixed;
    z-index: 1200;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(5px);
    justify-content: center;
    align-items: center;
}

.spinner:after {
    content: '';
    display: block;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 3px solid var(--primary-color);
    border-color: var(--primary-color) transparent var(--primary-color) transparent;
    animation: spin 1.2s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Toast Notifications */
.toast {
    display: none;
    position: fixed;
    bottom: 30px;
    right: 30px;
    padding: 1rem 1.5rem;
    background: white;
    color: var(--text-color);
    border-radius: 8px;
    font-weight: 500;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    z-index: 1100;
    animation: slideIn 0.3s forwards;
    max-width: 350px;
    border-left: 4px solid var(--primary-color);
}

.toast.success {
    border-left-color: var(--success-color);
    background-color: rgba(16, 185, 129, 0.1);
}

.toast.error {
    border-left-color: var(--error-color);
    background-color: rgba(239, 68, 68, 0.1);
}

@keyframes slideIn {
    from { transform: translateX(110%); }
    to { transform: translateX(0); }
}

/* Mobile Menu Backdrop */
.nav-backdrop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 98;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.nav-backdrop.active {
    display: block;
    opacity: 1;
    pointer-events: auto;
}

/* Responsive Design */
@media (max-width: 992px) {
    .hamburger-menu {
        display: flex;
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: -300px;
        width: 300px;
        height: 100vh;
        background: var(--background-color);
        padding: 80px 20px 20px;
        flex-direction: column;
        gap: 20px;
        transition: right 0.3s ease;
        z-index: 99;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .nav-links a {
        margin: 10px 0;
        width: 100%;
        padding: 12px 25px;
        border-radius: 0;
        font-size: 16px; /* Larger font size for mobile */
    }
    
    .nav-links a:not(.btn-primary):after {
        display: none;
    }
    
    .nav-links a.btn-primary {
        margin: 10px 25px;
        width: calc(100% - 50px);
        text-align: center;
    }
    
    /* Fix hero section padding */
    .hero {
        padding-top: 70px;
        margin-top: 0;
    }
}

/* Dashboard */
.dashboard {
    padding: 7rem 5% 3rem;
    background-color: var(--background-color);
    min-height: 100vh;
}

.dashboard-header {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.dashboard-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
    color: var(--text-color);
}

.dashboard-header p {
    font-size: 1.2rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

.dashboard-section {
    background-color: white;
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 3rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border-color);
}

.dashboard-section h3 {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: var(--text-color);
    font-weight: 600;
    position: relative;
    padding-left: 1rem;
    border-left: 4px solid var(--primary-color);
}

.no-courses {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-light);
    font-size: 1.1rem;
    background-color: var(--background-color);
    border-radius: 8px;
    border: 1px dashed var(--border-color);
}

/* Responsive Dashboard */
@media (max-width: 768px) {
    .dashboard {
        padding: 5rem 1rem 1rem;
    }

    .dashboard-header h2 {
        font-size: 2rem;
    }

    .dashboard-section h3 {
        font-size: 1.5rem;
    }
}

.admin-link {
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    margin-left: 0.5rem !important;
    padding: 0.5rem 1rem !important;
    border-radius: 8px;
    color: var(--text-color);
    background-color: rgba(79, 70, 229, 0.05);
    transition: all 0.3s ease;
}

.admin-link:hover {
    background-color: rgba(79, 70, 229, 0.1);
    color: var(--primary-color);
}

/* Styling for Courses link in navbar */
.courses-link {
    color: var(--primary-color) !important;
    font-weight: 500;
}

.courses-link:after {
    width: 70%;
}

/* Admin Dashboard Styles */
#adminContent {
    padding: 7rem 5% 3rem;
    background-color: var(--background-color);
}

#adminContent .container {
    max-width: 1200px;
    margin: 0 auto;
}

#adminContent h1 {
    font-size: 2.5rem;
    margin-bottom: 2.5rem;
    text-align: center;
    font-weight: 700;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

#adminContent h1:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

#adminContent .section {
    background: white;
    border-radius: 16px;
    padding: 2.5rem;
    margin-bottom: 3rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

#adminContent .section:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    transform: translateY(-5px);
}

#adminContent .section h2 {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    color: var(--text-color);
    font-weight: 600;
    position: relative;
    padding-left: 1rem;
    border-left: 4px solid var(--primary-color);
}

/* Admin Course Form */
#createCourseForm {
    display: grid;
    gap: 1.8rem;
    max-width: 700px;
    margin: 0 auto;
}

#createCourseForm input,
#createCourseForm textarea {
    width: 100%;
    padding: 0.9rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background-color: #f9fafb;
    color: var(--text-color);
}

#createCourseForm textarea {
    min-height: 150px;
    resize: vertical;
}

#createCourseForm input:focus,
#createCourseForm textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
    outline: none;
    background-color: white;
}

#createCourseForm button {
    padding: 1rem;
    margin-top: 1rem;
    border-radius: 8px;
    font-weight: 600;
    position: relative;
    overflow: hidden;
}

#createCourseForm button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transition: all 0.4s ease;
    z-index: 1;
}

#createCourseForm button:hover::before {
    left: 100%;
}

/* Admin Course Grid */
#adminCourses {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2.5rem;
    margin-top: 2rem;
}

/* Admin Course Card */
#adminCourses .course-card {
    position: relative;
}

#adminCourses .course-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
    justify-content: space-between;
}

#adminCourses .btn-secondary,
#adminCourses .btn-danger {
    flex: 1;
    text-align: center;
    padding: 0.8rem 0.5rem;
    border-radius: 8px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

#adminCourses .btn-secondary {
    background-color: var(--secondary-color);
    color: white;
    border: none;
}

#adminCourses .btn-secondary:hover {
    background-color: #0284c7;
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.3);
    transform: translateY(-3px);
}

#adminCourses .btn-danger {
    background-color: var(--error-color);
    color: white;
    border: none;
}

#adminCourses .btn-danger:hover {
    background-color: #dc2626;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
    transform: translateY(-3px);
}

/* Admin Modal Styles */
#adminContent .modal-content {
    max-width: 400px;
}

#adminContent .modal-content h2 {
    text-align: center;
    margin-bottom: 1.5rem;
}

/* Responsive Admin Dashboard */
@media (max-width: 768px) {
    #adminContent {
        padding: 5rem 1rem 1rem;
    }

    #adminContent h1 {
        font-size: 2rem;
    }

    #adminContent .section {
        padding: 1.5rem;
    }

    #adminContent .section h2 {
        font-size: 1.5rem;
    }

    #adminCourses {
        grid-template-columns: 1fr;
    }
}

/* Admin Loading and Toast */
#adminContent .loading-spinner {
    border-top-color: var(--primary-color);
}

#adminContent .toast {
    bottom: 2rem;
    right: 2rem;
}

/* Admin Form Validation */
#adminContent .form-group.error input,
#adminContent .form-group.error textarea {
    border-color: var(--error-color);
}

#adminContent .error-message {
    color: var(--error-color);
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

/* Admin Success Message */
#adminContent .success-message {
    color: var(--success-color);
    text-align: center;
    padding: 1rem;
    background-color: rgba(40, 167, 69, 0.1);
    border-radius: 5px;
    margin-bottom: 1rem;
}

/* Admin Welcome Page */
#adminWelcome {
    padding: 7rem 5% 5rem;
    background-color: var(--background-color);
    min-height: 100vh;
}

.admin-welcome-container {
    max-width: 1200px;
    margin: 0 auto;
}

.admin-welcome-header {
    text-align: center;
    margin-bottom: 4rem;
}

.admin-welcome-header h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

.admin-welcome-header p {
    font-size: 1.5rem;
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto;
}

.admin-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    margin-bottom: 5rem;
}

.feature-card {
    background: white;
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    text-align: center;
    border: 1px solid var(--border-color);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-light);
}

.feature-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    display: inline-block;
    position: relative;
}

.feature-icon:after {
    content: '';
    position: absolute;
    width: 50px;
    height: 50px;
    background: rgba(79, 70, 229, 0.1);
    border-radius: 50%;
    z-index: -1;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-color);
    font-weight: 600;
}

.feature-card p {
    color: var(--text-light);
    line-height: 1.7;
}

.admin-cta {
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.05) 0%, rgba(14, 165, 233, 0.05) 100%);
    padding: 4rem 2rem;
    border-radius: 16px;
    text-align: center;
    margin-bottom: 2rem;
    border: 1px solid var(--primary-light);
}

.admin-cta h2 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
    color: var(--text-color);
    font-weight: 700;
}

.admin-cta p {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

.cta-buttons button {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

@media (max-width: 768px) {
    .admin-welcome-header h1 {
        font-size: 2.2rem;
    }
    
    .admin-welcome-header p {
        font-size: 1.1rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        max-width: 300px;
        margin: 0 auto;
    }
}

/* Welcome Message in Signup Modal */
.welcome-message {
    text-align: center;
    margin-bottom: 2rem;
    padding: 1rem;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(16, 185, 129, 0.1));
    border-radius: 10px;
    position: relative;
    z-index: 1;
}

.welcome-message h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.benefits-list {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
    text-align: left;
}

.benefits-list li {
    margin: 0.75rem 0;
    color: var(--text-color);
}

.benefits-list i {
    color: var(--success-color);
    margin-right: 0.5rem;
}

/* Course Details Modal */
.course-details-modal {
    max-width: 900px;
    padding: 0;
    overflow: hidden;
    background-color: white;
    border-radius: 1rem;
}

.course-details {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2rem;
    max-height: 90vh;
    overflow-y: auto;
}

.course-details-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 1rem 0 0 1rem;
    position: sticky;
    top: 0;
}

.course-details-content {
    padding: 2rem;
    overflow-y: auto;
}

.course-details-modal .close {
    position: absolute;
    right: 1.5rem;
    top: 1.5rem;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-light);
    background-color: white;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    z-index: 10;
    transition: all 0.3s ease;
}

.course-details-modal .close:hover {
    background-color: var(--error-color);
    color: white;
    transform: rotate(90deg);
}

.course-details-content h2 {
    font-size: 2rem;
    color: var(--text-color);
    margin-bottom: 1rem;
    padding-right: 2rem;
}

.course-meta {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
    color: var(--text-light);
    flex-wrap: wrap;
}

.course-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background-color: rgba(37, 99, 235, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 2rem;
}

.course-description-full {
    margin-bottom: 2rem;
}

.course-description-full h3 {
    color: var(--text-color);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.learning-points {
    list-style: none;
    padding: 0;
}

.learning-points li {
    margin: 0.75rem 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-color);
    padding: 0.5rem;
    background-color: rgba(37, 99, 235, 0.05);
    border-radius: 0.5rem;
}

.learning-points i {
    color: var(--success-color);
}

.course-features {
    margin-bottom: 2rem;
}

.course-features h3 {
    color: var(--text-color);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.feature {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: rgba(37, 99, 235, 0.1);
    border-radius: 8px;
    color: var(--text-color);
}

.feature i {
    color: var(--primary-color);
    font-size: 1.25rem;
}

.course-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
    position: sticky;
    bottom: 0;
    background-color: white;
    margin-top: 2rem;
}

.course-price-large {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
}

/* Responsive Course Details */
@media (max-width: 768px) {
    .course-details {
        grid-template-columns: 1fr;
    }

    .course-details-image {
        height: 200px;
        border-radius: 1rem 1rem 0 0;
    }

    .course-meta {
        flex-direction: column;
        gap: 1rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .course-actions {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

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