/* ===== CSS VARIABLES ===== */
:root {
    --primary-color: #6a11cb;
    --secondary-color: #2575fc;
    --accent-color: #ff416c;
    --dark-color: #1a1a2e;
    --light-color: #f8f9fa;
    --gradient-primary: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    --gradient-accent: linear-gradient(135deg, #ff416c 0%, #ff4b2b 100%);
    --transition: all 0.3s ease;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.3);
}

/* ===== RESET & BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: white;
    overflow-x: hidden;
    min-height: 100vh;
}


/* ===== PRELOADER ===== */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--dark-color);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    transition: opacity 0.5s, visibility 0.5s;
}

.loader {
    display: flex;
    gap: 10px;
}

.loader-square {
    width: 20px;
    height: 20px;
    background: var(--gradient-primary);
    animation: loaderAnimation 1.5s ease-in-out infinite;
}

.loader-square:nth-child(2) { animation-delay: 0.2s; }
.loader-square:nth-child(3) { animation-delay: 0.4s; }
.loader-square:nth-child(4) { animation-delay: 0.6s; }
.loader-square:nth-child(5) { animation-delay: 0.8s; }
.loader-square:nth-child(6) { animation-delay: 1s; }
.loader-square:nth-child(7) { animation-delay: 1.2s; }

@keyframes loaderAnimation {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

/* ===== HEADER ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition);
    background: transparent;
}

.header.scrolled {
    background: rgba(26, 26, 46, 0.95);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    box-shadow: var(--shadow);
}

.navbar {
    padding: 0;
}

.logo {
    display: flex;
    flex-direction: column;
}

.logo-text {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.8rem;
    font-weight: 800;
    color: white;
}

.logo-highlight {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-subtitle {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.8) !important;
    font-weight: 500;
    padding: 8px 20px !important;
    margin: 0 5px;
    border-radius: 30px;
    transition: var(--transition);
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: white !important;
    background: rgba(255, 255, 255, 0.1);
}

/* ===== HERO SECTION ===== */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 100px;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 20% 50%, rgba(106, 17, 203, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(37, 117, 252, 0.2) 0%, transparent 50%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-block;
    background: var(--gradient-accent);
    color: white;
    padding: 8px 20px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 30px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientMove 3s ease infinite;
    background-size: 200% 200%;
}

@keyframes gradientMove {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.hero-subtitle {
    font-size: 2.5rem;
    color: white;
    font-weight: 600;
    margin-bottom: 30px;
}

.hero-description {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 40px;
    max-width: 600px;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    margin-bottom: 50px;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    border: none;
    padding: 15px 40px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    text-decoration: none;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(106, 17, 203, 0.3);
    color: white;
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    padding: 15px 40px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    text-decoration: none;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
    color: white;
    transform: translateY(-3px);
}

.hero-stats {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
}

.stat-item h3 {
    font-size: 2.5rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 5px;
}

.stat-item p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

/* ===== COURSES SECTION ===== */
.courses-section {
    padding: 100px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.title-gradient {
    font-size: 3.5rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 15px;
    animation: gradientMove 3s ease infinite;
    background-size: 200% 200%;
}

.title-sub {
    font-size: 2rem;
    color: white;
    font-weight: 600;
    margin-bottom: 20px;
}

.section-description {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto 40px auto !important;
    line-height: 1.6;
    text-align: center !important;
    padding: 0 20px;
    display: block;
    width: 100%;
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.course-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
    height: 100%;
}

.course-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    background: rgba(255, 255, 255, 0.1);
}

.course-image {
    height: 300px;
    overflow: hidden;
    position: relative;
}

.course-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: var(--transition);
    padding: 20px;
    background: rgba(0, 0, 0, 0.2);
}

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

.course-content {
    padding: 25px;
}

.course-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: white;
}

.course-description {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    margin-bottom: 20px;
    line-height: 1.5;
}

.course-features {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 15px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.feature {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

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

.feature span {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.8rem;
}

.course-price {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.price-main {
    font-size: 2rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.price-installments {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.btn-comprar {
    background: var(--gradient-accent);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    width: 100%;
    text-align: center;
    text-decoration: none;
    transition: var(--transition);
    display: block;
}

.btn-comprar:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(255, 65, 108, 0.3);
    color: white;
}

/* ===== TESTIMONIALS SECTION ===== */
.testimonials-section {
    padding: 100px 0;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
}

.testimonial-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    height: 100%;
}

.testimonial-text {
    color: rgba(255, 255, 255, 0.9);
    font-style: italic;
    margin-bottom: 30px;
    line-height: 1.6;
    position: relative;
}

.testimonial-text::before {
    content: '"';
    font-size: 4rem;
    color: var(--primary-color);
    opacity: 0.3;
    position: absolute;
    top: -20px;
    left: -10px;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.author-info h4 {
    color: white;
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.author-info span {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.testimonial-image-container {
    width: 100%;
    height: 300px;
    overflow: hidden;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.testimonial-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
}

/* Responsividade para imagens de depoimento */
@media (max-width: 768px) {
    .testimonial-image-container {
        height: 250px;
    }
}

@media (max-width: 576px) {
    .testimonial-image-container {
        height: 200px;
    }
}

.swiper-pagination-bullet {
    background: white;
    opacity: 0.5;
    width: 12px;
    height: 12px;
    transition: var(--transition);
}

.swiper-pagination-bullet-active {
    background: var(--gradient-primary);
    opacity: 1;
    transform: scale(1.2);
}

/* ===== WHY CHOOSE SECTION ===== */
.why-choose-section {
    padding: 100px 0;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
}

.why-choose-content {
    padding-right: 50px;
}

.features-list {
    margin-top: 40px;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 30px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    transition: var(--transition);
}

.feature-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(10px);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.feature-icon i {
    font-size: 1.5rem;
    color: white;
}

.feature-content h4 {
    color: white;
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.feature-content p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* ===== FOOTER ===== */
.footer {
    background: rgba(26, 26, 46, 0.95);
    padding: 80px 0 30px;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--gradient-primary);
}

.footer-content {
    margin-bottom: 50px;
}

.footer-logo {
    margin-bottom: 20px;
}

.footer-description {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 30px;
    max-width: 300px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-link {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: var(--transition);
}

.social-link:hover {
    background: var(--gradient-primary);
    transform: translateY(-3px);
}

.footer-title {
    color: white;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--gradient-primary);
}

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

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 10px;
}

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

.footer-links i {
    color: var(--primary-color);
    font-size: 0.8rem;
}

.contact-info {
    list-style: none;
    padding: 0;
}

.contact-info li {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.7);
}

.contact-info i {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-top: 3px;
}

.contact-info span {
    font-size: 0.95rem;
    line-height: 1.5;
}

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

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

.payment-methods {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

.payment-method {
    width: 40px;
    height: 25px;
    background: white;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--dark-color);
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1199.98px) {
    .hero-title {
        font-size: 3rem;
    }

    .hero-subtitle {
        font-size: 2rem;
    }

    .section-title {
        font-size: 2.5rem;
    }

    .title-gradient {
        font-size: 3rem;
    }

    .title-sub {
        font-size: 2rem;
    }
}

@media (max-width: 991.98px) {
    .hero-section {
        padding-top: 150px;
        text-align: center;
    }

    .hero-content {
        margin-bottom: 50px;
    }

    .hero-stats {
        justify-content: center;
    }

    .why-choose-content {
        padding-right: 0;
        margin-bottom: 50px;
    }

    .footer-content {
        margin-bottom: 40px;
    }
}

@media (max-width: 767.98px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.8rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .section-title {
        font-size: 2rem;
    }

    .title-gradient {
        font-size: 2.5rem;
    }

    .title-sub {
        font-size: 1.8rem;
    }

    .course-features {
        flex-direction: column;
        gap: 15px;
    }

    .feature {
        flex-direction: row;
        justify-content: flex-start;
        gap: 10px;
    }
}

@media (max-width: 575.98px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.5rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .title-gradient {
        font-size: 2rem;
    }

    .title-sub {
        font-size: 1.5rem;
    }

    .stat-item h3 {
        font-size: 2rem;
    }

    .navbar-nav .nav-link {
        padding: 8px 15px !important;
        margin: 5px 0;
    }

    .btn-comprar {
        width: 100%;
        margin-top: 10px;
    }
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease-out forwards;
}

/* ===== UTILITY CLASSES ===== */
.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bg-gradient {
    background: var(--gradient-primary);
}

.shadow-hover {
    transition: var(--transition);
}

.shadow-hover:hover {
    box-shadow: var(--shadow-lg);
}

.scale-hover {
    transition: var(--transition);
}

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

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
}

::-webkit-scrollbar-thumb {
    background: var(--gradient-primary);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gradient-accent);
}