:root {
    /* Cores do modo escuro (padrão) */
    --bg-dark: #111827;
    --bg-darker: #0f172a;
    --bg-alt: #1f2937;
    --text-primary: #ffffff;
    --text-secondary: #d1d5db;
    --text-muted: #9ca3af;
    --accent: #34d399;
    --accent-hover: #10b981;
    --accent-dark: #059669;

    /* Cores do modo claro */
    --bg-light: #f9fafb;
    --bg-lighter: #ffffff;
    --bg-light-alt: #e5e7eb;
    --text-primary-light: #111827;
    --text-secondary-light: #374151;
    --text-muted-light: #6b7280;

    /* Transição suave */
    --transition: all 0.3s ease;
}

.light-mode {
    --bg-dark: var(--bg-light);
    --bg-darker: var(--bg-lighter);
    --bg-alt: var(--bg-light-alt);
    --text-primary: var(--text-primary-light);
    --text-secondary: var(--text-secondary-light);
    --text-muted: var(--text-muted-light);
}

/* Estilos do botão de alternância */
.theme-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    margin-left: 1rem;
    color: var(--text-primary);
    transition: var(--transition);
}

.theme-icon {
    width: 24px;
    height: 24px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.theme-toggle .sun {
    display: none;
}

.light-mode .theme-toggle .moon {
    display: none;
}

.light-mode .theme-toggle .sun {
    display: block;
}

/* Adicione transições suaves para as mudanças de tema */
body,
.header,
.nav-link,
.card,
.btn,
.btn-submit,
.input,
.textarea {
    transition: var(--transition);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    scroll-behavior: smooth;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    box-sizing: border-box;
}

html,
body {
    overflow-x: hidden;
    width: 100%;
}

/* Header */
.header {
    background: var(--bg-darker);
    width: 100%;
    position: fixed;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    padding: 1rem 0;
}

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

.logo-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.logo-img {
    height: 4em;
    width: auto;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent);
}

.nav {
    display: flex;
    gap: 1.5rem;
}

.nav-link {
    font-size: 0.875rem;
    transition: color 0.3s;
    color: var(--text-primary);
    text-decoration: none;
}

.nav-link:hover,
.nav-link.active {
    color: var(--accent);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    margin: 5px 0;
    transition: all 0.3s;
}

/* Hero */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 5rem;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

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

.hero-subtitle {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
}

.btn {
    display: inline-block;
    background: var(--accent-hover);
    color: var(--text-primary);
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    text-decoration: none;
    text-align: center;
    transition: background 0.3s;
    border: none;
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
}

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

/* Sections */
.section {
    padding: 6rem 0;
}

.bg-alt {
    background: var(--bg-alt);
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: var(--text-primary);
}

.section-text {
    color: var(--text-secondary);
    max-width: 800px;
    margin: 0 auto;
}

.section-text-light {
    color: var(--text-muted);
}

.center {
    text-align: center;
}

/* Cards */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.card {
    background: var(--bg-alt);
    padding: 1.5rem;
    border-radius: 1rem;
    transition: transform 0.3s, box-shadow 0.3s;
}

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

.card-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.card-text {
    color: var(--text-secondary);
}

/* Form */
.form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 600px;
    margin: 0 auto;
}

.input,
.textarea,
.btn-submit {
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    padding: 0.75rem;
    border-radius: 0.5rem;
    border: 1px solid #374151;
    width: 100%;
}

.textarea {
    resize: none;
    min-height: 150px;
}

.btn-submit {
    background: var(--accent-hover);
    color: var(--text-primary);
    border: none;
    cursor: pointer;
    transition: background 0.3s;
    text-align: center;
}

.btn-submit:hover {
    background: var(--accent-dark);
}

.text-muted {
    margin-top: 1.5rem;
    color: var(--text-muted);
    font-size: 0.875rem;
}

.link {
    color: var(--accent);
    text-decoration: underline;
    transition: color 0.3s;
}

.link:hover {
    color: var(--accent-hover);
}

/* Footer */
.footer {
    background: var(--bg-darker);
    padding: 1.5rem 0;
    text-align: center;
}

.footer-text {
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* Responsivo */
@media (min-width: 768px) {
    .hero-title {
        font-size: 3.5rem;
    }

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

@media (max-width: 768px) {
    body {
        position: relative;
    }

    .nav {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background: var(--bg-darker);
        flex-direction: column;
        align-items: center;
        padding: 1rem 0;
        gap: 1rem;
        transform: translateY(-150%);
        transition: transform 0.3s ease;
        z-index: 99;
        overflow-x: hidden;
    }

    .nav.active {
        transform: translateY(0);
        max-height: calc(100vh - 70px);
        overflow-y: auto;
    }

    .menu-toggle {
        display: block;
    }

    .menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }
}