/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #1A0505 0%, #2A0808 50%, #0A0505 100%);
    color: #FFFFFF;
    line-height: 1.6;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Header Styles */
.header {
    background: linear-gradient(to right, #1A0505, #0A0A0A);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
}

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

.logo-img {
    height: 2.5rem;
    width: auto;
}

.logo-text {
    font-size: 1.25rem;
    font-weight: bold;
}

.logo-white {
    color: #FFFFFF;
}

.logo-red {
    color: #FF3333;
}

.nav-desktop {
    display: none;
    gap: 2rem;
}

.nav-link {
    color: #FFFFFF;
    text-decoration: none;
    transition: color 0.3s;
}

.nav-link:hover {
    color: #FF3333;
}

.btn-signin {
    background: #FF3333;
    color: #FFFFFF;
    border: none;
    padding: 0.5rem 1.5rem;
    border-radius: 0.5rem;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s;
}

.btn-signin:hover {
    background: #CC0000;
}

.mobile-menu-toggle {
    background: none;
    border: none;
    color: #FFFFFF;
    font-size: 1.5rem;
    cursor: pointer;
}

@media (min-width: 1024px) {
    .nav-desktop {
        display: flex;
    }
    
    .mobile-menu-toggle {
        display: none;
    }
}

/* Hero Section */
.hero {
    background: #0A0505;
    padding: 5rem 0;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}

.hero-title {
    font-size: 2.5rem;
    line-height: 1.2;
    margin-bottom: 2rem;
}

.text-red {
    color: #FF3333;
}

.search-bar {
    position: relative;
    max-width: 600px;
    margin-bottom: 3rem;
}

.search-input {
    width: 100%;
    padding: 1rem 4rem 1rem 1.5rem;
    border-radius: 9999px;
    border: none;
    font-size: 1rem;
    background: #FFFFFF;
    color: #000000;
}

.search-input::placeholder {
    color: #666666;
}

.search-btn {
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    background: #FF3333;
    color: #FFFFFF;
    border: none;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s;
}

.search-btn:hover {
    background: #FF4444;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

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

.stat-icon {
    width: 3rem;
    height: 3rem;
    margin: 0 auto 1rem;
    background: rgba(255, 51, 51, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FF3333;
    font-size: 1.5rem;
}

.stat-number {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
}

.hero-image {
    text-align: center;
}

.hero-image img {
    max-width: 100%;
    height: auto;
}

@media (min-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr 1fr;
    }
    
    .hero-title {
        font-size: 3.5rem;
    }
}

/* Stats Section */
.stats-section {
    padding: 3rem 0;
    background: rgba(18, 4, 4, 0.5);
}

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

.stat-box {
    text-align: center;
}

.stat-value {
    font-size: 2.5rem;
    font-weight: bold;
    color: #FF3333;
    margin-bottom: 0.5rem;
}

.stat-desc {
    color: rgba(255, 255, 255, 0.7);
}

@media (min-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Section Styles */
.section-title {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.section-subtitle {
    color: rgba(255, 255, 255, 0.7);
    max-width: 700px;
    margin: 0 auto 3rem;
}

.section-header {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.view-all {
    color: #FF3333;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.3s;
}

.view-all:hover {
    color: #FF5555;
}

@media (min-width: 768px) {
    .section-header {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}

/* Featured Categories */
.featured-categories {
    padding: 4rem 0;
}

.categories-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.category-card {
    position: relative;
    height: 20rem;
    border-radius: 1rem;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s;
    cursor: pointer;
    background: linear-gradient(to top, #0A0505, rgba(10, 5, 5, 0.7));
}

.category-card:hover {
    border-color: rgba(255, 51, 51, 0.5);
    transform: translateY(-5px);
}

.category-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem;
}

.category-icon {
    width: 4rem;
    height: 4rem;
    margin-bottom: 1rem;
    background: rgba(255, 51, 51, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    border: 1px solid rgba(255, 51, 51, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FF3333;
    font-size: 1.5rem;
}

.category-title {
    font-size: 1.25rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    transition: color 0.3s;
}

.category-card:hover .category-title {
    color: #FF3333;
}

.category-desc {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
    margin-bottom: 0.75rem;
}

.category-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.category-count {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.875rem;
}

.category-arrow {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

.category-card:hover .category-arrow {
    background: #FF3333;
}

@media (min-width: 768px) {
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .categories-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1280px) {
    .categories-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

/* Popular Courses */
.popular-courses {
    padding: 4rem 0;
    background: rgba(18, 4, 4, 0.3);
}

.category-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.filter-btn {
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.3s;
    white-space: nowrap;
}

.filter-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.filter-btn.active {
    background: #FF3333;
    color: #FFFFFF;
}

.courses-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.course-card {
    background: #000000;
    border-radius: 1rem;
    overflow: hidden;
    border: 1px solid #000000;
    transition: all 0.3s;
    cursor: pointer;
}

.course-card:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transform: translateY(-5px);
}

.course-header {
    position: relative;
    height: 12rem;
    background: #000000;
    border-bottom: 1px solid #000000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.course-category {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: #FF3333;
    color: #FFFFFF;
    padding: 0.25rem 0.75rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    font-weight: 500;
}

.course-icon {
    margin-bottom: 1rem;
    color: #FF3333;
    font-size: 3rem;
}

.course-title {
    font-size: 1.125rem;
    font-weight: bold;
    text-align: center;
    transition: color 0.3s;
}

.course-card:hover .course-title {
    color: #FF3333;
}

.course-body {
    padding: 1.25rem;
    background: #000000;
}

.course-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    font-size: 0.875rem;
}

.rating-value {
    color: #FFA500;
}

.stars {
    display: flex;
    gap: 0.125rem;
}

.star {
    color: #FFA500;
}

.star.empty {
    color: rgba(255, 255, 255, 0.2);
}

.review-count {
    color: rgba(255, 255, 255, 0.5);
}

.course-instructor {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.instructor-avatar {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: #000000;
    border: 1px solid #000000;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
}

.instructor-name {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
}

.course-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.course-price {
    font-size: 1.125rem;
    font-weight: bold;
}

.original-price {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.875rem;
    text-decoration: line-through;
    margin-left: 0.5rem;
}

.course-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.75rem;
}

.text-center {
    text-align: center;
    margin-top: 2.5rem;
}

.btn-outline {
    background: transparent;
    border: 1px solid #FF3333;
    color: #FF3333;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-size: 1.125rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-outline:hover {
    background: #FF3333;
    color: #FFFFFF;
}

@media (min-width: 768px) {
    .courses-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .courses-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1280px) {
    .courses-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Testimonials */
.testimonials {
    padding: 4rem 0;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 3rem;
}

.testimonial-card {
    background: rgba(26, 8, 8, 0.5);
    backdrop-filter: blur(10px);
    border-radius: 1rem;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
}

.testimonial-content {
    margin-bottom: 1.5rem;
}

.testimonial-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.testimonial-text {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
}

.quote-icon {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    color: #FF3333;
    font-size: 1.5rem;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.author-avatar {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background: #FF3333;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1rem;
}

.author-name {
    font-weight: 500;
}

.author-role {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.875rem;
}

@media (min-width: 768px) {
    .testimonials-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Contact Form */
.contact-section {
    padding: 4rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
}

.contact-form-container {
    max-width: 800px;
    margin: 3rem auto 0;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 1rem;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-label {
    color: #FFFFFF;
    font-size: 0.875rem;
    font-weight: 500;
}

.form-input,
.form-textarea {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    color: #FFFFFF;
    font-size: 1rem;
    transition: all 0.3s;
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: #FF3333;
    background: rgba(255, 255, 255, 0.15);
}

.form-textarea {
    min-height: 100px;
    resize: vertical;
}

.btn-submit {
    width: 100%;
    background: #FF3333;
    color: #FFFFFF;
    border: none;
    padding: 1rem;
    border-radius: 0.5rem;
    font-size: 1.125rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-submit:hover {
    background: #FF5555;
}

@media (min-width: 768px) {
    .form-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* CTA Section */
.cta-section {
    padding: 4rem 0;
}

.cta-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.cta-card {
    position: relative;
    background: rgba(26, 8, 8, 0.5);
    backdrop-filter: blur(10px);
    border-radius: 1rem;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    height: 300px;
    display: flex;
    align-items: center;
}

.cta-content {
    position: relative;
    z-index: 10;
    max-width: 50%;
}

.cta-title {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 0.75rem;
}

.cta-text {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1.5rem;
}

.btn-primary {
    background: #FF3333;
    color: #FFFFFF;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-primary:hover {
    background: #FF4444;
}

@media (min-width: 768px) {
    .cta-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Partners */
.partners {
    padding: 4rem 0;
}

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

.partner-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.5rem;
    transition: color 0.3s;
    cursor: pointer;
}

.partner-item:hover {
    color: #FF3333;
}

.partner-item span {
    font-size: 1rem;
    font-weight: 600;
}

@media (min-width: 768px) {
    .partners-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1024px) {
    .partners-grid {
        grid-template-columns: repeat(6, 1fr);
    }
}

/* Footer */
.footer {
    background: #0A0505;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 4rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    margin-bottom: 2.5rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.footer-logo img {
    height: 3rem;
    width: auto;
}

.footer-desc {
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 1.5rem;
}

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

.social-link {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    text-decoration: none;
    transition: background 0.3s;
}

.social-link:hover {
    background: #FF3333;
}

.footer-title {
    font-size: 1.125rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #FF3333;
}

.footer-contact {
    list-style: none;
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.footer-contact i {
    color: #FF3333;
    margin-top: 0.25rem;
}

.footer-contact span {
    color: rgba(255, 255, 255, 0.6);
}

.footer-bottom {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-copyright {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.875rem;
}

.footer-legal {
    display: flex;
    gap: 1.5rem;
}

.footer-legal a {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.3s;
}

.footer-legal a:hover {
    color: #FFFFFF;
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .footer-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}