:root {
    --primary-color: #3d5af1;
    --primary-dark: #304ffe;
    --secondary-color: #f5f5f5;
    --text-color: #333;
    --bg-color: #fff;
    --card-bg: #fff;
    --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.7;
    transition: background-color 0.3s ease, color 0.3s ease; /* Smooth transition for theme change */
}

header {
    background-color: var(--bg-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    padding: 1rem 5%;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.logo img {
    height: 30px;
    width: auto;
}

.language-selector select {
    padding: 0.5rem 1rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: transparent;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    color: var(--text-color); /* Ensure text color changes with theme */
    transition: border-color 0.3s ease, background-color 0.3s ease, color 0.3s ease;
}

main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 5%;
}

.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding: 4rem 0;
    text-align: left;
}

.hero-content {
    max-width: 50%;
}

.hero-content h1 {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--primary-dark);
    transition: color 0.3s ease;
}

.hero-content p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: var(--text-color); /* Ensure text color changes with theme */
    transition: color 0.3s ease;
}

.hero-image {
    max-width: 45%;
    position: relative; /* Necessário para os botões do carrossel */
}

.carousel-container {
    overflow: hidden;
    border-radius: 15px;
    box-shadow: var(--card-shadow);
    transition: box-shadow 0.3s ease;
}

.carousel-slide {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.carousel-slide img {
    width: 100%;
    height: auto;
    flex-shrink: 0;
}

.carousel-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    cursor: pointer;
    border-radius: 5px;
    z-index: 100;
}

.carousel-button.prev {
    left: 10px;
}

.carousel-button.next {
    right: 10px;
}

.cta-button {
    background: linear-gradient(45deg, var(--primary-color), var(--primary-dark));
    color: white;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: inline-block;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(61, 90, 241, 0.3);
}

.features {
    padding: 4rem 0;
    text-align: center;
}

.features h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    color: var(--primary-dark);
    transition: color 0.3s ease;
}

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

.feature-card {
    background-color: var(--card-bg);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--card-shadow);
    text-align: left;
    transition: transform 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
}

.feature-card h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-top: 0;
    margin-bottom: 1rem;
    transition: color 0.3s ease;
}

.feature-card p {
    color: var(--text-color); /* Ensure text color changes with theme */
    transition: color 0.3s ease;
}

.call-to-action {
    background-color: var(--secondary-color);
    padding: 4rem 2rem;
    border-radius: 15px;
    text-align: center;
    margin: 4rem 0;
    transition: background-color 0.3s ease;
}

.call-to-action h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--primary-dark);
    transition: color 0.3s ease;
}

.call-to-action p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: var(--text-color); /* Ensure text color changes with theme */
    transition: color 0.3s ease;
}

footer {
    text-align: center;
    padding: 2rem 0;
    border-top: 1px solid var(--secondary-color); /* Adjust border color for dark theme */
    margin-top: 2rem;
    transition: border-color 0.3s ease;
}

@media (max-width: 768px) {
    .hero {
        flex-direction: column;
        text-align: center;
    }

    .hero-content, .hero-image {
        max-width: 100%;
    }
}

/* Theme Switcher Styles */
.theme-switcher-container {
    display: flex;
    align-items: center;
    margin-left: 20px; /* Adjust as needed */
}

.theme-icon {
    font-size: 1.5rem;
    margin: 0 5px;
    cursor: pointer;
    color: var(--text-color); /* Ensure icon color changes with theme */
    transition: color 0.3s ease;
}

.theme-switcher {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 20px;
}

.theme-switcher input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    -webkit-transition: .4s;
    transition: .4s;
    border-radius: 20px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 2px;
    bottom: 2px;
    background-color: white;
    -webkit-transition: .4s;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: var(--primary-color);
}

input:focus + .slider {
    box-shadow: 0 0 1px var(--primary-color);
}

input:checked + .slider:before {
    -webkit-transform: translateX(20px);
    -ms-transform: translateX(20px);
    transform: translateX(20px);
}

/* Rounded sliders */
.slider.round {
    border-radius: 20px;
}

.slider.round:before {
    border-radius: 50%;
}

/* Dark theme variables */
body.dark-theme {
    --primary-color: #5d7aff; /* Adjusted for dark theme visibility */
    --primary-dark: #4d6aff; /* Adjusted for dark theme visibility */
    --secondary-color: #3a3a3a; /* Darker secondary for background */
    --text-color: #f5f5f5;
    --bg-color: #1a1a1a;
    --card-bg: #2a2a2a;
    --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

body.dark-theme .language-selector select {
    border-color: #555;
    background-color: #2a2a2a;
}
/* Help Page Specific Styles */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 5%;
}

.help-section {
    background-color: var(--card-bg);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--card-shadow);
    margin-bottom: 2rem;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.help-section h2 {
    color: var(--primary-dark);
    border-bottom: 2px solid var(--secondary-color);
    padding-bottom: 0.5rem;
    margin-top: 0;
    margin-bottom: 1.5rem;
}

.help-section h3 {
    color: var(--primary-color);
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

.help-section h4 {
    color: var(--text-color);
    font-weight: 600;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
}

.help-section p, .help-section li {
    color: var(--text-color);
    line-height: 1.8;
}

.help-section ul, .help-section ol {
    padding-left: 20px;
}

.help-section .section-content {
    padding-left: 1rem;
    border-left: 3px solid var(--primary-color);
}

.note {
    background-color: var(--secondary-color);
    border-left: 5px solid var(--primary-color);
    padding: 1rem 1.5rem;
    margin: 2rem 0;
    border-radius: 8px;
}

.note p {
    margin: 0;
}

.note a {
    color: var(--primary-dark);
    font-weight: 600;
    text-decoration: none;
}

.note a:hover {
    text-decoration: underline;
}

body.dark-theme .note {
    background-color: #2c2c2c;
    border-color: var(--primary-color);
}