/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Poppins:wght@400;500;600;700;800&display=swap');

:root {
    --primary-color: #4e54c8;
    --primary-gradient: linear-gradient(135deg, #4e54c8 0%, #8f94fb 100%);
    --secondary-color: #1a1a2e;
    --accent-color: #ff0080;
    --accent-gradient: linear-gradient(135deg, #ff0080 0%, #7928ca 100%);
    --text-color: #2d3748;
    --text-muted: #718096;
    --bg-light: #f8f9fa;
    --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    --card-hover-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
    --border-radius: 16px;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-color);
    background-color: var(--bg-light);
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
}

/* Navbar */
.navbar {
    background-color: rgba(26, 26, 46, 0.95) !important;
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    transition: var(--transition);
}

.navbar-brand img {
    height: 48px;
    transition: var(--transition);
}

.nav-link {
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8) !important;
    transition: var(--transition);
}

.nav-link:hover {
    color: #fff !important;
}

/* Buttons */
.btn {
    border-radius: 50px;
    padding: 0.6rem 1.5rem;
    font-weight: 600;
    transition: var(--transition);
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    border: none;
}

.btn-primary {
    background: var(--primary-gradient);
    box-shadow: 0 4px 15px rgba(78, 84, 200, 0.4);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #3f44a5 0%, #7a7fe0 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(78, 84, 200, 0.6);
}

.btn-outline-light:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: #fff;
    transform: translateY(-2px);
}

.btn-accent {
    background: var(--accent-gradient);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 0, 128, 0.4);
}

.btn-accent:hover {
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 0, 128, 0.6);
}

/* Hero Section */
.hero-section {
    background: var(--secondary-color);
    position: relative;
    padding: 140px 0 100px;
    overflow: hidden;
    color: white;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMDAiIGhlaWdodD0iMTAwIiB2aWV3Qm94PSIwIDAgMTAwIDEwMCI+PGNpcmNsZSBjeD0iNTAiIGN5PSI1MCIgcj0iNDAiIGZpbGw9InJnYmEoMjU1LDI1NSwyNTUsMC4wMykiLz48L3N2Zz4=');
    background-size: 60px 60px;
    opacity: 0.3;
}

.hero-circle {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    opacity: 0.1;
    filter: blur(60px);
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    background: linear-gradient(to right, #fff, #a5b4fc);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2.5rem;
    font-weight: 300;
}

/* Search Section */
.search-container {
    background: white;
    padding: 1rem;
    border-radius: 50px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    max-width: 700px;
    margin: -40px auto 60px;
    position: relative;
    z-index: 10;
}

.search-input {
    border: none;
    padding: 1rem 1.5rem;
    font-size: 1.1rem;
    width: 100%;
    outline: none;
    border-radius: 50px;
}

.search-btn {
    background: var(--primary-gradient);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.search-btn:hover {
    transform: scale(1.1);
}

/* Cursos Section */
.section-title {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--primary-gradient);
    margin-top: 10px;
    border-radius: 2px;
}

.curso-card {
    border: none;
    border-radius: var(--border-radius);
    overflow: hidden;
    background: white;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.curso-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--card-hover-shadow);
}

.curso-img-wrapper {
    position: relative;
    overflow: hidden;
    height: 200px;
}

.curso-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.curso-card:hover img {
    transform: scale(1.1);
}

.curso-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 50%, rgba(0, 0, 0, 0.7));
    opacity: 0;
    transition: var(--transition);
    display: flex;
    align-items: flex-end;
    padding: 20px;
}

.curso-card:hover .curso-overlay {
    opacity: 1;
}

.card-body {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-title {
    font-weight: 700;
    color: var(--secondary-color);
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.card-text {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.card-footer {
    padding: 1.5rem;
    background: white;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.price-tag {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-color);
}

.btn-card {
    background: rgba(78, 84, 200, 0.1);
    color: var(--primary-color);
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    transition: var(--transition);
}

.curso-card:hover .btn-card {
    background: var(--primary-color);
    color: white;
}

/* Produtor Section */
.produtor-section {
    background: var(--secondary-color);
    position: relative;
    padding: 6rem 0;
    color: white;
    overflow: hidden;
}

.produtor-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 80% 50%, rgba(78, 84, 200, 0.2), transparent 50%);
    z-index: 0;
}

.produtor-content {
    position: relative;
    z-index: 1;
}

/* Footer */
footer {
    background: #0f0f1a;
    color: rgba(255, 255, 255, 0.6);
    padding: 4rem 0 2rem;
    font-size: 0.9rem;
}

footer h5 {
    color: white;
    margin-bottom: 1.5rem;
}

footer a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: var(--transition);
    display: block;
    margin-bottom: 0.5rem;
}

footer a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.footer-social a {
    display: inline-flex;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

/* Modal */
.modal-content {
    border: none;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
}

.modal-header {
    background: var(--primary-gradient);
    border: none;
    padding: 1.5rem;
}

.modal-title {
    font-weight: 700;
}

.form-control {
    border-radius: 10px;
    padding: 0.8rem 1rem;
    border: 1px solid #e2e8f0;
    background-color: #f8fafc;
}

.form-control:focus {
    box-shadow: 0 0 0 3px rgba(78, 84, 200, 0.2);
    border-color: var(--primary-color);
    background-color: white;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .search-container {
        margin-left: 1rem;
        margin-right: 1rem;
    }

    .section-title {
        font-size: 2rem;
    }
}