/*
  =============================
  VARIÁVEIS E RESET GLOBAL
  =============================
*/
:root {
    /* Cores principais - Atualizadas para TechLearn */
    --primary: #247ba0ff; /* Azul principal */
    --primary-light: #1b98e0ff; /* Azul claro */
    --primary-dark: #13293dff; /* Azul escuro */
    --secondary: #006494ff; /* Azul secundário */
    --accent: #13293dff; /* Cor de destaque */
    --success: #10b981; /* Verde sucesso */
    --error: #ef4444; /* Vermelho erro */
    --dark: #13293dff; /* Fundo escuro */
    --light: #E8F1F2ff; /* Fundo claro */
    --border: #e2e8f0; /* Cor de borda */
    --text-primary: #13293dff; /* Texto principal */
    --text-secondary: #006494ff; /* Texto secundário */
    --text-light: #247ba0ff; /* Texto claro */

    /* Espaçamento */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;

    /* Raio de borda */
    --radius-sm: 0.25rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-full: 9999px;

    /* Transições */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;

    /* Sombras */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

/* Reset de margens, paddings e box-sizing para todos os elementos */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/*
  =============================
  ESTILO BASE DO BODY E ELEMENTOS GERAIS
  =============================
*/
body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    color: var(--text-primary);
    background-color: var(--light);
    line-height: 1.6;
    background: #dbeef6; /* Fundo azul claro para toda a página */
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s, transform 0.2s;
}

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

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-md);
    object-fit: cover;
    transition: transform 0.3s ease;
}

/*
  =============================
  CONTAINER PADRÃO
  =============================
*/
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

/*
  =============================
  HEADER E NAVEGAÇÃO
  =============================
*/
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 4.5rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.logo-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: bold;
    animation: pulse 2s ease-in-out infinite;
}

.logo-icon.small {
    width: 2rem;
    height: 2rem;
    font-size: 0.8rem;
}

.logo-text {
    font-weight: 700;
    font-size: 1.3rem;
}

.primary-text {
    color: #1366CB;
    font-weight: 700;
}

.accent-text {
    color: var(--accent);
    font-weight: 700;
}

.main-nav {
    display: none;
    color: #1366CB;
}

.main-nav ul {
    color: #1366CB;
}

/*
  =============================
  NAVEGAÇÃO DESKTOP
  =============================
*/
@media (min-width: 768px) {
    .main-nav {
        display: block;
    }

    .main-nav ul {
        display: flex;
        gap: var(--spacing-xl);
    }

    .main-nav a {
        font-size: 1rem;
        font-weight: 500;
        color: #1366CB;
        transition: color 0.2s ease, transform 0.2s ease;
        position: relative;
    }

    .main-nav a:hover {
        color: var(--primary);
        transform: translateY(-2px);
    }

    .main-nav a.active {
        color: var(--primary);
    }

    .main-nav a.active:after {
        content: '';
        position: absolute;
        bottom: -8px;
        left: 0;
        width: 100%;
        height: 3px;
        background-color: var(--primary);
        border-radius: var(--radius-full);
    }
}

.user-menu {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.level-badge {
    display: none;
    padding: var(--spacing-xs) var(--spacing-sm);
    background-color: rgba(36, 123, 160, 0.15);
    color: var(--primary);
    border-radius: var(--radius-md);
    font-size: 0.75rem;
    font-weight: 600;
}

.xp-badge {
    display: none;
    padding: var(--spacing-xs) var(--spacing-sm);
    background-color: transparent;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    font-size: 0.75rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 4px;
}

.xp-badge:before {
    content: '🏆';
    font-size: 0.85rem;
}

@media (min-width: 768px) {

    .level-badge,
    .xp-badge {
        display: flex;
    }
}

.avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.3rem;
    height: 2.3rem;
    background: linear-gradient(135deg, var(--secondary), var(--primary));
    color: white;
    border-radius: 50%;
    font-size: 0.8rem;
    font-weight: 600;
    box-shadow: 0 4px 10px rgba(0, 100, 148, 0.25);
}

.menu-toggle {
    display: block;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-primary);
}

@media (min-width: 768px) {
    .menu-toggle {
        display: none;
    }
}

.mobile-menu {
    display: none;
    padding: var(--spacing-md) var(--spacing-lg);
    background-color: white;
    border-top: 1px solid var(--border);
}

.mobile-menu.active {
    display: block;
    animation: fade-down 0.3s ease-out forwards;
}

.mobile-menu ul {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.mobile-menu a {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-secondary);
    padding: var(--spacing-xs) 0;
}

.mobile-menu a:hover {
    color: var(--primary);
}

.mobile-user-info {
    display: flex;
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
    padding-top: var(--spacing-md);
    border-top: 1px solid var(--border);
}

/* Hero Section - Design melhorado */
.hero {
    background: linear-gradient(118deg, #465EB5 0%, #364070 50%, #2B2C41 100%);
    color: white;
    padding: 50px;
    position: relative;
    overflow: hidden;
}

.hero:before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 200 200"><path fill="rgba(255, 255, 255, 0.05)" d="M45.3,-58.6C58.4,-48.8,68.5,-34.5,74.3,-18C80.1,-1.6,81.6,17,73.7,29.3C65.9,41.6,48.8,47.6,32.8,56.1C16.8,64.6,2,75.6,-12.4,74.8C-26.9,74,-41.1,61.5,-51.5,47.3C-62,33,-68.8,17,-69.1,0.2C-69.3,-16.7,-63.1,-33.4,-51.5,-42.9C-39.9,-52.4,-23,-54.7,-6.7,-47.3C9.5,-39.9,32.2,-68.4,45.3,-58.6Z" transform="translate(100 100)" /></svg>') no-repeat center center;
    background-size: cover;
    opacity: 0.4;
    z-index: 0;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-2xl);
    position: relative;
    z-index: 1;
}

@media (min-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr 1fr;
    }
}

.hero-content {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    align-items: flex-start;
}

.badge {
    display: inline-block;
    padding: var(--spacing-xs) var(--spacing-md);
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 500;
    backdrop-filter: blur(4px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transform: translateY(0);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.hero h1 {
    font-size: 2.5rem;
    line-height: 1.2;
    font-weight: 700;
    animation: fade-up 0.8s ease-out;
}

@media (min-width: 768px) {
    .hero h1 {
        font-size: 3.2rem;
    }
}

.hero p {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    animation: fade-up 0.8s ease-out 0.2s forwards;
    opacity: 0;
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    width: 100%;
    margin-top: var(--spacing-md);
    animation: fade-up 0.8s ease-out 0.4s forwards;
    opacity: 0;
}

@media (min-width: 640px) {
    .hero-buttons {
        flex-direction: row;
        width: auto;
    }
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-md) var(--spacing-xl);
    border-radius: var(--radius-lg);
    font-weight: 600;
    transition: all var(--transition-normal);
    cursor: pointer;
    border: none;
    font-family: inherit;
    position: relative;
    overflow: hidden;
}

.btn:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    transform: scale(0);
    opacity: 0;
    border-radius: inherit;
    transition: transform 0.5s ease, opacity 0.3s ease;
}

.btn:active::after {
    transform: scale(2);
    opacity: 1;
    transition: 0s;
}

.btn-sm {
    padding: var(--spacing-xs) var(--spacing-md);
    font-size: 0.875rem;
    border-radius: var(--radius-md);
}

.btn-lg {
    padding: var(--spacing-md) var(--spacing-xl);
    font-size: 1.125rem;
}

.btn-primary {
    background-color: rgb(255, 255, 255);
    color: var(--primary);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.btn-primary:hover {
    background-color: rgba(255, 255, 255, 0.9);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.btn-outline {
    background-color: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
}

.btn-outline:hover {
    background-color: var(--primary-dark);
    color: white;
    border-color: white;
    transform: translateY(-3px);
}

.hero .btn-outline {
    border-color: rgba(255, 255, 255, 0.3);
}

.arrow {
    margin-left: var(--spacing-xs);
    transition: transform 0.3s ease;
}

.btn:hover .arrow {
    transform: translateX(5px);
}

.hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-lg);
    margin-top: var(--spacing-md);
    animation: fade-up 0.8s ease-out 0.6s forwards;
    opacity: 0;
}

/* Code Editor - Design melhorado */
.hero-code-editor {
    display: flex;
    justify-content: center;
    align-items: center;
    transform: translateY(40px);
    opacity: 0;
    animation: fade-up 0.8s ease-out 0.8s forwards;
}

.code-editor {
    width: 100%;
    max-width: 500px;
    background-color: var(--dark);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    position: relative;
}

.code-editor::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    background: linear-gradient(135deg, var(--accent), var(--secondary));
    z-index: -1;
    border-radius: calc(var(--radius-lg) + 5px);
    opacity: 0.7;
    animation: pulse 2s ease-in-out infinite;
}

.code-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--spacing-sm) var(--spacing-md);
    background-color: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(5px);
}

.window-controls {
    display: flex;
    gap: 6px;
}

.control {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    transition: transform 0.2s;
}

.control:hover {
    transform: scale(1.1);
}

.red {
    background-color: #ff5f56;
}

.yellow {
    background-color: #ffbd2e;
}

.green {
    background-color: #27c93f;
}

.language {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
}

.code-actions {
    display: flex;
    gap: var(--spacing-sm);
}

.icon-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7);
    transition: color var(--transition-fast), transform var(--transition-fast);
}

.icon-btn:hover,
.icon-btn:focus-visible {
    color: white;
    transform: scale(1.1);
}

.code-tabs {
    display: flex;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background-color: rgba(0, 0, 0, 0.2);
}

.tab {
    padding: var(--spacing-sm) var(--spacing-lg);
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.875rem;
    font-family: inherit;
    position: relative;
}

.tab.active {
    color: white;
}

.tab.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--accent);
    transform-origin: center;
    animation: tab-indicator 0.3s ease-out forwards;
}

.tab:hover:not(.active) {
    color: white;
    background-color: rgba(255, 255, 255, 0.05);
}

.code-content {
    padding: var(--spacing-md);
    overflow: auto;
    max-height: 300px;
}

.code-content pre {
    margin: 0;
    font-family: 'Fira Code', 'Courier New', monospace;
    font-size: 0.875rem;
    color: white;
    white-space: pre-wrap;
}


/* Seção de features - padding espaçado e fundo branco */
.features {
    padding: var(--spacing-2xl) 0;
    background-color: white;
    position: relative;
    overflow: hidden;
}

/* Círculo decorativo no canto superior direito */
.features::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 300px;
    height: 300px;
    background: rgba(36, 123, 160, 0.05);
    border-radius: 50%;
    z-index: 0;
}

/* Círculo decorativo no canto inferior esquerdo */
.features::after {
    content: '';
    position: absolute;
    bottom: -150px;
    left: -150px;
    width: 400px;
    height: 400px;
    background: rgba(0, 100, 148, 0.05);
    border-radius: 50%;
    z-index: 0;
}

/* Cabeçalho da seção, centralizado */
.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto var(--spacing-2xl);
    position: relative;
    z-index: 1;
}

/* Estilo do título */
.section-header h2 {
    font-size: 2rem;
    margin-bottom: var(--spacing-sm);
    position: relative;
    display: inline-block;
}

/* Barrinha abaixo do título */
.section-header h2:after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--primary);
    margin: 15px auto 0;
    border-radius: var(--radius-full);
}

/* Descrição do título */
.section-header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

/* Grid responsivo para os cards */
.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
    position: relative;
    z-index: 1;
}

/* A partir de 768px, colocar 3 colunas */
@media (min-width: 768px) {
    .features-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Estilização do card de feature */
.feature-card {
    padding: var(--spacing-xl);
    border-radius: var(--radius-lg);
    background-color: white;
    border: 1px solid var(--border);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
}

/* Gradiente de fundo aparece no hover */
.feature-card:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(145deg, rgba(36, 123, 160, 0.03), rgba(0, 100, 148, 0.05));
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Efeito de elevação no hover */
.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
}

.feature-card:hover:before {
    opacity: 1;
}

/* Estilo do ícone do card */
.feature-icon {
    font-size: 1.8rem;
    margin-bottom: var(--spacing-md);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 5rem;
    height: 5rem;
    transition: transform 0.3s ease;
}

/* Aumenta o ícone no hover */
.feature-card:hover .feature-icon {
    transform: scale(1.1);
}

/* Título do card */
.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-sm);
    position: relative;
    color: var(--primary-dark);
    font-weight: 600;
}

/* Texto do card */
.feature-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}


/* Courses Section - Design significativamente melhorado */
.courses {
    padding: var(--spacing-2xl) 0;
    background: #2B2C41;
    position: relative;
    overflow: hidden;
}


.courses:before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: #2B2C41;
    top: -300px;
    right: -300px;
    border-radius: 50%;
}

.section-header-with-button {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: var(--spacing-2xl);
    gap: var(--spacing-lg);
}

@media (min-width: 768px) {
    .section-header-with-button {
        flex-direction: row;
        align-items: center;
    }
}

.section-header-with-button h2 {
    font-size: 2rem;
    margin-bottom: 0.3rem;
    position: relative;
    color:  #1366CB;
    ;
}

.section-header-with-button p {
    color: var(--text-secondary);
}

.section-header-with-button .btn-outline {
    border: 2px solid var(--primary);
    color: var(--primary);
    background-color: transparent;
    padding: 12px 24px;
    font-weight: 600;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 1;
}

.section-header-with-button .btn-outline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    z-index: -1;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.5s ease;
}

.section-header-with-button .btn-outline:hover {
    color: white;
    border-color: transparent;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(36, 123, 160, 0.25);
}

.section-header-with-button .btn-outline:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

.section-header-with-button .btn-outline .arrow {
    transition: transform 0.3s ease;
    font-size: 1.2em;
}

.section-header-with-button .btn-outline:hover .arrow {
    transform: translateX(5px);
}

.section-header-with-button .btn-outline:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(36, 123, 160, 0.2);
}

/* Efeito de brilho no hover */
.section-header-with-button .btn-outline::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent,
        rgba(255, 255, 255, 0.1),
        transparent
    );
    transform: rotate(45deg);
    transition: 0.5s;
    opacity: 0;
}

.section-header-with-button .btn-outline:hover::after {
    opacity: 1;
    animation: shine 1.5s infinite;
}

@keyframes shine {
    0% {
        transform: translateX(-100%) rotate(45deg);
    }
    100% {
        transform: translateX(100%) rotate(45deg);
    }
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-md);
    margin-top: var(--spacing-xl);
}

.course-card {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    max-width: 300px;
}

.course-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.15);
}

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

.course-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.course-badges {
    position: absolute;
    top: var(--spacing-sm);
    right: var(--spacing-sm);
    display: flex;
    gap: var(--spacing-xs);
}

.new-badge {
    background: var(--primary);
    color: white;
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
}

.course-content {
    padding: var(--spacing-lg);
}

.course-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-sm);
}

.course-category {
    color: var(--primary);
    font-size: 0.875rem;
    font-weight: 500;
}

.course-rating {
    color: #f59e0b;
    font-size: 0.875rem;
    font-weight: 500;
}

.course-content h3 {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-sm);
    color: var(--text-primary);
}

.course-content p {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-bottom: var(--spacing-lg);
    line-height: 1.5;
}

.course-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-lg);
    padding-top: var(--spacing-sm);
    border-top: 1px solid var(--border);
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.detail-icon {
    font-size: 1.25rem;
    margin-bottom: 4px;
}

.course-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--spacing-sm);
    border-top: 1px solid var(--border);
}

.level-tag {
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
}

.level-tag.iniciante {
    background: #dcfce7;
    color: #166534;
}

.level-tag.intermediário {
    background: #fef9c3;
    color: #854d0e;
}

.level-tag.avançado {
    background: #fee2e2;
    color: #991b1b;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 0.875rem;
    border-radius: var(--radius-md);
    background: var(--primary);
    color: white;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-sm:hover {
    background: var(--primary-dark);
}

/* CTA Section - Design melhorado */
.cta {
    background: #dbeef6; /* tom azul claro, igual ao da imagem */
    padding: 60px 0;
}

/* Layout flexível para logo e nome TechLearn lado a lado */
.cta-content {
    background: transparent;
    border: none;
    border-radius: 0;
    max-width: 600px;
    margin: 0 auto;
    padding: 0;
    box-shadow: none;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.cta-header-flex {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 18px;
}

/* Logo maior e alinhada */
.cta-logo {
    width: 96px;
    height: 96px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cta-logo img {
    width: 96px;
    height: 96px;
    object-fit: contain;
}

/* Nome TechLearn estilizado igual ao header */
.cta-techlearn {
    font-size: 2.2rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 4px;
}

.cta-techlearn .primary-text {
    color: #1366CB;
    font-weight: 700;
}

.cta-content h2 {
    color: #13293d;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 18px 0;
    text-align: center;
}

.cta-content p {
    color: #247ba0;
    font-size: 1rem;
    margin-bottom: 24px;
    text-align: center;
}

.cta .btn-primary {
    margin-bottom: 18px;
}

.cta-small {
    color: #13293d;
    font-size: 0.9rem;
    margin-top: 0;
}

/* Seção de jornada */
.cta-icon {            /* Logo */
    width: 7vw;
    height: 6vw;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    margin-bottom: var(--spacing-md);
}
.cta-icon img{        /* Logo img */
    width: 10vw;
    height: 7vw;
}
.cta h2 {
    font-size: 2rem;
    margin-bottom: var(--spacing-sm);
    background: linear-gradient(135deg, var(--text-primary), var(--primary-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.cta p {
    color: var(--text-secondary);
    margin-bottom: var(--spacing-md);
    font-size: 1.1rem;
}

.cta .btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border: none;
    padding: var(--spacing-md) var(--spacing-xl);
    font-size: 1.1rem;
    box-shadow: 0 8px 20px rgba(36, 123, 160, 0.25);
    transition: all 0.3s;
}

.cta .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(36, 123, 160, 0.35);
}

.cta-small {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.cta-small a {
    color: var(--primary);
    text-decoration: underline;
    font-weight: 500;
}

/* Footer - Design melhorado */
.footer {
    background-color: var(--dark);
    color: white;
    padding: var(--spacing-2xl) 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-2xl);
}

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

.footer-about p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
    margin-top: var(--spacing-md);
}

.footer-logo {
    margin-bottom: var(--spacing-md);
}

.footer h3 {
    font-size: 1.1rem;
    margin-bottom: var(--spacing-md);
    color: white;
    position: relative;
    padding-bottom: 10px;
    font-weight: 600;
}

.footer h3:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: var(--primary);
}

.footer-links ul,
.footer-contact ul {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.footer-links a,
.footer-contact li {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
}

.footer-links a:before {
    content: '→';
    margin-right: 8px;
    opacity: 0;
    transform: translateX(-5px);
    transition: all 0.2s ease;
    color: var(--accent);
}

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

.footer-links a:hover:before {
    opacity: 1;
    transform: translateX(0);
}

.footer-contact li {
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-contact li:first-child:before {
    content: '✉️';
    font-size: 0.9rem;
}

.footer-contact li:last-child:before {
    content: '📞';
    font-size: 0.9rem;
}

.footer-bottom {
    padding-top: var(--spacing-lg);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-md);
}

@media (min-width: 768px) {
    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
    }
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.8rem;
}

.footer-legal {
    display: flex;
    gap: var(--spacing-lg);
}

.footer-legal a {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.8rem;
    transition: color 0.2s ease;
}

.footer-legal a:hover {
    color: white;
}

/* Animações */
@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

@keyframes fade-up {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fade-down {
    0% {
        opacity: 0;
        transform: translateY(-20px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes tab-indicator {
    0% {
        transform: scaleX(0);
    }

    100% {
        transform: scaleX(1);
    }
}

/* Efeito Ripple para botões */
.ripple {
    position: absolute;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 50%;
    transform: scale(0);
    animation: ripple 0.6s linear;
}

@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

.button-suporte {
    display: inline-block;
    padding: 10px 20px;
    text-align: c;
    text-decoration: none;
    color: white;
    background-color: #007bff;
    /* Cor azul padrão */
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
}

.button-suporte:hover {
    background-color: #0056b3;
    /* Cor azul mais escura ao passar o mouse */
}

/* Chat Flutuante */
.floating-chat {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
}

.chat-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #007bff;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    text-decoration: none;
}

.chat-toggle:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    color: white;
}

.chat-icon {
    font-size: 1.5rem;
}

.chat-label {
    font-weight: 500;
}

.chat-window {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 350px;
    height: 500px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    display: none;
    flex-direction: column;
    overflow: hidden;
}

.chat-window.active {
    display: flex;
}

.chat-header {
    background: var(--primary-color);
    color: white;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-header h3 {
    margin: 0;
    font-size: 1.1rem;
}

.close-chat {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.chat-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.message {
    max-width: 80%;
    padding: 10px 15px;
    border-radius: 12px;
    line-height: 1.4;
}

.message.system {
    background: #f0f2f5;
    align-self: flex-start;
}

.message.user {
    background: var(--primary-color);
    color: white;
    align-self: flex-end;
}

.chat-input {
    padding: 15px;
    border-top: 1px solid #eee;
    display: flex;
    gap: 10px;
}

.chat-input input {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 0.9rem;
}

.chat-input button {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.chat-input button:hover {
    background: var(--primary-dark);
}

/* Animação do chat */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.chat-window.active {
    animation: slideIn 0.3s ease;
}

/* Responsivo para mobile */
@media (max-width: 768px) {
    .floating-chat {
        bottom: 20px;
        right: 20px;
    }

    .chat-window {
        width: calc(100% - 40px);
        height: 60vh;
        bottom: 80px;
        right: 20px;
    }

    .chat-toggle {
        padding: 10px 15px;
    }

    .chat-label {
        display: none;
    }
}

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

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

@media (max-width: 600px) {
    .courses-grid {
        grid-template-columns: 1fr;
    }
}

.more-courses-message {
    text-align: center;
    padding: var(--spacing-xl) 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    margin: var(--spacing-2xl) auto;
    border-radius: var(--radius-lg);
    max-width: 600px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.more-courses-message::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

.more-courses-message p {
    color: white;
    font-size: 1.3rem;
    font-weight: 600;
    position: relative;
    z-index: 1;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.more-courses-message p::before {
    content: '🚀';
    font-size: 1.5rem;
    animation: float 3s ease-in-out infinite;
}

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

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Melhorando as bolhas decorativas */
.blur-circle {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.15;
    z-index: 0;
}

.circle-top-right {
    width: 400px;
    height: 400px;
    top: -200px;
    right: -200px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    animation: float-circle 8s ease-in-out infinite;
}

.circle-bottom-left {
    width: 500px;
    height: 500px;
    bottom: -250px;
    left: -250px;
    background: linear-gradient(135deg, var(--secondary), var(--primary));
    animation: float-circle 12s ease-in-out infinite reverse;
}

@keyframes float-circle {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    50% {
        transform: translate(30px, 30px) scale(1.1);
    }
}

/* Adicionando mais bolhas decorativas */
.circle-center {
    width: 300px;
    height: 300px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(135deg, var(--accent), var(--primary));
    animation: pulse-circle 6s ease-in-out infinite;
}

@keyframes pulse-circle {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.1;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 0.2;
    }
}

/* =============================
   MELHORIAS DE RESPONSIVIDADE
   ============================= */

/* HERO SECTION */
@media (max-width: 600px) {
  .hero {
    padding: 24px 0 32px 0;
  }
  .hero h1 {
    font-size: 1.5rem;
  }
  .hero-container {
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
    padding: 0 var(--spacing-md);
  }
  .hero-content {
    gap: var(--spacing-sm);
  }
  .hero-stats {
    flex-direction: column;
    gap: var(--spacing-sm);
  }
  .hero-code-editor {
    transform: none;
    max-width: 100vw;
    padding: 0;
  }
  .code-editor {
    max-width: 100vw;
    min-width: 0;
  }
}

/* FEATURES SECTION */
@media (max-width: 600px) {
  .features {
    padding: var(--spacing-lg) 0;
  }
  .features-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
    padding: 0 var(--spacing-md);
  }
  .feature-card {
    padding: var(--spacing-lg);
  }
}

/* COURSES SECTION */
@media (max-width: 900px) {
  .courses-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-md);
  }
}
@media (max-width: 600px) {
  .courses {
    padding: var(--spacing-lg) 0;
  }
  .courses-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
  }
  .course-card {
    max-width: 100%;
  }
  .course-image {
    height: 140px;
  }
  .section-header-with-button {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--spacing-md);
    padding: 0 var(--spacing-md);
  }
}

/* CTA SECTION */
@media (max-width: 600px) {
  .cta {
    padding: var(--spacing-lg) 0;
  }
  .cta-content {
    padding: 0 var(--spacing-md);
  }
  .cta-header-flex {
    flex-direction: column;
    gap: 8px;
  }
  .cta-logo {
    width: 64px;
    height: 64px;
  }
  .cta-logo img {
    width: 64px;
    height: 64px;
  }
  .cta-techlearn {
    font-size: 1.3rem;
  }
  .cta-content h2 {
    font-size: 1.1rem;
  }
}

/* FOOTER SECTION */
@media (max-width: 600px) {
  .footer {
    padding: var(--spacing-lg) 0;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
    padding: 0 var(--spacing-md);
  }
  .footer-about p {
    font-size: 0.8rem;
  }
  .footer h3 {
    font-size: 1rem;
    padding-bottom: 6px;
  }
  .footer-links a, .footer-contact li {
    font-size: 0.8rem;
  }
  .footer-bottom {
    gap: var(--spacing-sm);
    padding-top: var(--spacing-md);
  }
  .footer-legal {
    gap: var(--spacing-md);
  }
}

/* BOTÕES */
@media (max-width: 600px) {
  .btn, .btn-primary, .btn-outline {
    padding: var(--spacing-sm) var(--spacing-lg);
    font-size: 0.95rem;
  }
  .btn-sm {
    padding: var(--spacing-xs) var(--spacing-sm);
    font-size: 0.8rem;
  }
}

/* AJUSTES GERAIS PARA MOBILE */
@media (max-width: 600px) {
  .container {
    padding: 0 var(--spacing-md);
  }
  .main-nav ul {
    gap: var(--spacing-md);
  }
  .mobile-menu {
    padding: var(--spacing-md);
  }
  .mobile-menu a {
    font-size: 0.95rem;
  }
}