:root {
    --primary-color: #4A90E2;
    --secondary-color: #2C3E50;
    --accent-color: #E74C3C;
    --text-color: #333;
    --light-gray: #F5F5F5;
    --dark-gray: #666;
    --white: #FFF;
    --shadow: 0 2px 10px #0000001a;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

html {
    scroll-behavior: smooth;
}

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

/* Navbar Styles */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    background: var(--white);
    box-shadow: var(--shadow);
    z-index: 1000;
}

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

.nav-brand i {
    color: var(--primary-color);
    font-size: 1.5rem;
}

.nav-brand h1 {
    font-size: 1.5rem;
    color: var(--secondary-color);
}

#Searchbar input {
    padding: 0.5rem 1.5rem;
    border: 1.8px solid lightgray;
    outline: none;
    border-radius: 5px;
    font-weight: 500;
    width: 35vw;
}

.nav-menu {
    display: flex;
    gap: 2rem;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: var(--transition);
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--primary-color);
}

.nav-buttons {
    display: flex;
    gap: 1rem;
}

/* Button Styles */
.btn-login,
.btn-signup,
.btn-primary,
.btn-secondary {
    padding: 0.5rem 1.5rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 500;
    transition: var(--transition);
}

.btn-login {
    background: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.btn-signup,
.btn-primary {
    background: var(--primary-color);
    color: var(--white);
}

.btn-secondary {
    background: var(--secondary-color);
    color: var(--white);
}

.btn-login:hover,
.btn-signup:hover,
.btn-primary:hover,
.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

/* Hero Section */
.hero {
    padding: 8rem 5% 4rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    text-align: center;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 3rem;
}

.stat-card {
    background: #ffffff1a;
    padding: 1.5rem;
    border-radius: 10px;
    backdrop-filter: blur(5px);
}

.stat-card:hover {
    transform: scale(1.1);
    transition: 1s;
}

.stat-card h3 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

/* Courses Section */
.courses {
    padding: 4rem 5%;
    background: var(--light-gray);
}

.courses h2,
.features h2,
.testimonials h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--secondary-color);
}

.course-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.course-card {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.course-card:hover {
    transform: translateY(-7px);
    transition: 1s;
}

.course-image {
    position: relative;
    height: 200px;
}

.course-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.course-tag {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--accent-color);
    color: var(--white);
    padding: 0.3rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
}

.course-content {
    padding: 1.5rem;
}

.course-content h3 {
    margin-bottom: 0.5rem;
    color: var(--secondary-color);
}

.course-meta {
    display: flex;
    justify-content: space-between;
    margin: 1rem 0;
    color: var(--dark-gray);
}

/* Demo Video Section */
.container {
    background-color: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

h1,
h2 {
    color: #2c3e50;
    text-align: center;
}

h1 {
    margin-bottom: 10px;
    font-size: 32px;
}

h2 {
    margin: 30px 0 20px;
    font-size: 24px;
}

p.subtitle {
    text-align: center;
    color: #7f8c8d;
    margin-bottom: 30px;
}

.video-container {
    display: flex;
    width: 100%;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    align-items: center;

}

.video-card {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    ;
}

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

.video-thumbnail {
    position: relative;
    width: 45vw;
    height: 0;
    padding-bottom: 56.25%;
    /* 16:9 aspect ratio */
    background-color: #f0f0f0;
    overflow: hidden;
    margin: 1rem;
    background: var(--white);
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.video-thumbnail img {
    width: 100%;
    height: auto;

}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background-color: rgba(52, 152, 219, 0.8);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: background-color 0.3s;
}

.play-button:hover {
    background-color: rgba(41, 128, 185, 0.9);
}

.play-button::after {
    content: "";
    width: 0;
    height: 0;
    border-top: 15px solid transparent;
    border-left: 25px solid white;
    border-bottom: 15px solid transparent;
    margin-left: 5px;
}

.video-info {
    padding: 15px;
}

.video-title {
    font-weight: bold;
    margin-bottom: 8px;
    font-size: 20px;
    color: #2c3e50;
}

.video-duration {
    font-size: 0.9em;
    color: #7f8c8d;
}

.question {
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
    margin-left: 2rem;
}

.question h3 {
    color: #3498db;
    margin-bottom: 10px;

}

.options {
    margin-left: 20px;
}

.option {
    margin: 8px 0;
}

label {
    cursor: pointer;
    display: inline-block;
    padding: 5px;
    transition: color 0.2s;
}

label:hover {
    color: #3498db;
}

button {
    background-color: #3498db;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    display: block;
    margin: 20px auto;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #2980b9;
}

#result {
    text-align: center;
    font-size: 18px;
    margin-top: 20px;
    padding: 15px;
    border-radius: 5px;
    display: none;
}

.correct {
    background-color: #d4edda;
    color: #155724;
}

.feedback {
    margin-top: 10px;
    padding: 10px;
    border-radius: 5px;
    display: none;
}

.correct-feedback {
    background-color: #d4edda;
    color: #155724;
}

.incorrect-feedback {
    background-color: #f8d7da;
    color: #721c24;
}

#try-again-btn {
    background-color: #28a745;
    display: none;
}

#try-again-btn:hover {
    background-color: #218838;
}

.buttons-container {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.section-title {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
}

.section-title h2 {
    margin: 0;
    flex-grow: 1;
}

.section-title .line {
    height: 2px;
    flex-grow: 1;
    background-color: #e0e0e0;
    margin: 0 15px;
}

/* Features Section */
.features {
    padding: 4rem 5%;
}

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

.feature-card {
    text-align: center;
    padding: 2rem;
    background: var(--white);
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 2px solid lightgray;

}

.feature-card:hover {
    transform: translateY(-5px);
    transition: 1s;
}

.feature-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.feature-card h3 {
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

/* Testimonials Section */
.testimonials {
    padding: 4rem 5%;
    background: var(--light-gray);
}

.testimonial-slider {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.testimonial-card {
    display: none;
    text-align: center;
    padding: 2rem;
}

.testimonial-card.active {
    display: block;
}

.testimonial-card img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin-bottom: 1rem;
}

.testimonial-card p {
    font-style: italic;
    margin-bottom: 1rem;
}

.testimonial-card h4 {
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

.testimonial-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.dot {
    width: 10px;
    height: 10px;
    background: var(--dark-gray);
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
}

.dot.active {
    background: var(--primary-color);
}

/* Footer Styles */
.footer {
    background: var(--secondary-color);
    color: var(--white);
    padding: 4rem 5% 2rem;
}

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

.footer-section h3 {
    margin-bottom: 1rem;
}

.footer-section a {
    color: var(--white);
    text-decoration: none;
    display: block;
    margin-bottom: 0.5rem;
    transition: var(--transition);
}

.footer-section a:hover {
    color: var(--primary-color);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    font-size: 1.5rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #ffffff1a;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #00000080;
    z-index: 2000;
}

.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    width: 90%;
    max-width: 400px;
}

.close {
    position: absolute;
    right: 1rem;
    top: 1rem;
    font-size: 1.5rem;
    cursor: pointer;
}

form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

input {
    padding: 0.8rem;
    border: 1px solid var(--dark-gray);
    border-radius: 5px;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    padding: 10px;
    z-index: 1000;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: var(--secondary-color);
    transition: var(--transition);
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    #Searchbar input {
        display: none;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2rem;
        transition: var(--transition);
        box-shadow: var(--shadow);
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-buttons {
        flex-direction: column;
        gap: 1rem;
        width: 100%;
        padding: 0 2rem;
    }

    .nav-buttons button {
        width: 100%;
    }

    /* Hamburger Animation */
    .hamburger.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

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

    .hamburger.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    /* Overlay */
    .nav-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: #00000080;
        z-index: 999;
    }

    .nav-overlay.active {
        display: block;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-stats {
        flex-direction: column;
        gap: 1rem;
    }

    .stat-card {
        width: 100%;
    }

    .video-thumbnail {
        width: 90%;
        height: 0;
        padding-bottom: 56.25%;
        background-color: #f0f0f0;
        overflow: hidden;
        margin: 1rem;
        background: var(--white);
        border-radius: 10px;
        box-shadow: var(--shadow);
        transition: var(--transition);
    }

    .video-thumbnail img {
        width: 100%;
        height: auto;

    }
}