body {
    position: relative;
    scroll-behavior: smooth;
}

header {
    background: #0d6efd;
    color: #fff;
    padding: 100px 0;
    text-align: center;
}

section {
    padding: 60px 0;
}

.section-title {
    margin-bottom: 40px;
    font-weight: 700;
    text-transform: uppercase;
    color: #0d6efd;
    text-align: center;
}

footer {
    background: #0d6efd;
    color: #fff;
    text-align: center;
    padding: 20px;
}

.btn-primary {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

.card {
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 8px 25px rgba(13, 110, 253, 0.15) !important;
}

.profile-image {
    width: 180px;
    height: 180px;
    object-fit: cover;
    border: 4px solid #0d6efd;
}

/* Tema claro — mantém o comportamento padrão */
[data-bs-theme="light"] .theme-btn-github {
  color: #212529;
  border-color: #212529;
}

[data-bs-theme="light"] .theme-btn-github:hover {
  background-color: #212529;
  color: #fff;
}

[data-bs-theme="dark"] .theme-btn-github {
  color: #f8f9fa !important;
  border-color: #f8f9fa !important;
}

[data-bs-theme="dark"] .theme-btn-github:hover {
  background-color: #f8f9fa !important;
  color: #212529 !important;
}

.navbar {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.navbar .nav-link.active {
    font-weight: 700;
    color: #fff !important;
    border-bottom: 3px solid #fff;
    transition: all 0.3s ease;
}

.navbar .form-check.form-switch {
  display: flex;
  align-items: center;
}

@media (min-width: 992px) {
  .navbar .collapse.navbar-collapse {
    order: 1;
  }
  .navbar .d-flex.order-lg-2 {
    order: 2;
  }
}

.section-divider {
    width: 40%;
    height: 4px;
    margin: 1rem auto;
    border: none;
    border-radius: 50px;
    background: linear-gradient(50deg,
            transparent,
            var(--bs-primary),
            var(--bs-secondary),
            var(--bs-primary),
            transparent);
    background-size: 200% 100%;
    box-shadow: 0 0 10px rgba(var(--bs-body-color-rgb), 0.15);
    animation: gradientMove 5s ease-in-out infinite;
    opacity: 0.7;
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

.skill-badge {
    background-color: #f1f3f5;
    color: #343a40;
    font-weight: 500;
    padding: 8px 14px;
    border-radius: 25px;
    display: inline-block;
    font-size: 0.95rem;
    border: 1px solid #dee2e6;
    transition: all 0.3s ease;
}

.skill-badge:hover {
    background-color: #0d6efd;
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(13, 110, 253, 0.3);
}

.typing-animation {
    width: 100%;
    display: inline-block;
    overflow: hidden;
    white-space: nowrap;
    border-right: 3px solid #0d6efd;
    font-family: 'Poppins', sans-serif;
    animation: typing 3.5s steps(30, end), blink 0.7s step-end infinite;
}

@media (max-width: 576px) {

    .typing-animation,
    .description-bio {
        font-size: 1.1em;
    }
}

.curtain-text {
    opacity: 0;
    transform: translateY(-30px);
    overflow: hidden;
    animation: curtain 0.8s ease-out forwards;
    animation-delay: 2.2s;
}

@keyframes curtain {
    0% {
        opacity: 0;
        transform: translateY(-30px);
        clip-path: inset(100% 0 0 0);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
        clip-path: inset(0 0 0 0);
    }
}

@keyframes typing {
    from {
        width: 0;
    }

    to {
        width: 100%;
    }
}

@keyframes blink {
    50% {
        border-color: transparent;
    }
}

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

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}