@import url('./variables.css');

* {
    font-family: var(--inter);
}

/* COLORS */
.bg-primary {
    background-color: var(--bg-primary);
}

.bg-secondary {
    background-color: #fff;
}

.bg-tertiary {
    background-color: #f7f1e5;
}

.bg-quaternary {
    background-color: var(--bg-quaternary);
}

.bg-quinary {
    background-color: #000;
}

.bg-senary {
    background-color: #f6f2ea;
}

.color-primary {
    color: #000;
}

.bg-dark-primary {
    background-color: var(--bg-dark-primary);
}

.color-dark-primary {
    color: #fff;
}

.bg-dark-secondary {
    background-color: var(--bg-dark-secondary);
}
.bg-dark-tertiary {
    background-color: var(--bg-dark-secondary);
}

.bg-dark-quaternary {
    background-color: var(--bg-dark-quaternary);
}

.bg-dark-quinary {
    background-color: #fff;
}

.bg-dark-senary {
    background-color: #222;
    border-color: #000;
}


header {
    border-bottom: 1px #d4cebd solid;
    height: 100px;
    position: sticky;
    top: 0;
    z-index: 1;
}

header > div {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    align-items: center;
    padding: 10px 0;
    padding-right: 20px;
}

.logo {
    width: 100%;
    height: 80px;
}

.hamburguer-container {
    cursor: pointer;
    margin: 0 10px 0 0;
    padding: 0;
}

.hamburguer {
    height: 4px;
    margin: 6px 0;
    width: 34px;
    border-radius: 10% / 90%;
    transition: all 0.3s ease;
    position: relative;
}

ul.active li:nth-child(1) {
    transform: translateY(10px) rotate(45deg);
}

ul.active li:nth-child(2) {
    opacity: 0;
}

ul.active li:nth-child(3) {
    transform: translateY(-10px) rotate(-45deg);
}

.hide {
    display: none;
}

.navigation ul {
    display: flex;
    gap: 20px;
}

header > div .theme-button, .theme-button-mobile {
    width: 36px;
    height: 36px;
    border-radius: 18px;
    border: none;
    cursor: pointer;
    background-color: transparent;
    transition: .3s;
}

header > div button:hover {
    background-color: var(--cinza-claro);
}

header > div button i {
    font-size: 20px;
}

.navigation-mob {
    width: 280px;
    padding: 10px;
    position: absolute;
    border-radius: 10px;
    background-color: #f8f8f8;
    box-shadow: 2px 2px 4px #00000029;
    transform: translateY(-20px);
    right: 10px;
    visibility: hidden;
    opacity: 0;
    transition: 
        transform 500ms ease,
        opacity 500ms ease;
    z-index: 1000;
}

.navigation-mob ul {
    display: flex;
    flex-direction: column;
    padding: 0;
    margin: 0;
}

.navigation-mob ul li a, .navigation-mob ul li div {
    display: block;
    text-decoration: none;
    color: #222;
    padding: 16px;
    margin-left: 0;
    font-size: 20px;
    font-weight: 600;
    transition: 0.25s;
    font-family: var(--inter);
}

.navigation-mob.active {
    transform: translateY(10px);
    visibility: visible;
    opacity: 1;
}

nav ul li .nav-link {
    text-decoration: none;
    padding-bottom: 5px;
}

nav ul li .nav-link:hover {
    color: #A7D948;
}

.nav-link.active {
    color: var(--verde-escuro);
    border-bottom: 1px solid var(--verde-escuro);
}

.switch {
    position: relative;
    width: 60px;
    height: 30px;
    padding: 3px 30px;
}

.switch input {
    display: none;
}

.slider {
    position: absolute;
    inset: 0;
    background: #444;
    border-radius: 30px;
    cursor: pointer;
}

.slider::before {
    content: "🌙";
    position: absolute;
    width: 24px;
    height: 24px;
    left: 3px;
    top: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 50%;
    transition: .3s;
}

input:checked + .slider::before {
    content: "☀️";
    transform: translateX(30px);
}

body {
    margin: 0;
    font-family: "Manrope", "Segoe UI", sans-serif;
    color: var(--text);
    background: linear-gradient(180deg, #dcdfe3 0%, var(--bg) 50%, #f7f8fa 100%);
    min-height: 100vh;
    max-width: 100%;
    overflow-x: hidden;
}

.container,
.container_hero {
    width: 90%;
    max-width: 1440px;
    margin: 0 auto;
}

h1, h2, h3 {
    font-family: "Playfair Display", "Georgia", serif;
    margin: 0 0 10px;
}

.destaque {
    color: var(--verde-escuro);
}

/*Define cor para cada categoria*/
.tag.tecnologia {
    background: #2d7ff9;
}

.tag.design {
    background: #ff7b00;
}

.tag.banco-de-dados {
    background: #28a745;
}


.btn,
.btn2 {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    border-radius: 999px;
    border: 1px solid transparent;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
}

.btn {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 10px 18px rgba(31, 143, 77, 0.25);
}

.btn2 {
    background: #fff;
    color: var(--accent-dark);
    border-color: rgba(31, 143, 77, 0.35);
}

.btn:hover,
.btn2:hover:hover {
    transform: translateY(-2px);
}

.filtros {
    padding: 10px 0 26px;
}

.filtros  {
    background: #fff;
    border-radius: 16px;
    padding: 18px 20px;
    box-shadow: var(--shadow);
}

.filters__form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 14px;
    align-items: end;
}

label {
    font-weight: 600;
    color: #2c3338;
}

select,
input {
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid #d4d8dd;
    background: #fff;
    font-size: 15px;
}

.filtros {
    padding: 10px 0 26px;
}

.filtros {
    background: #fff;
    border-radius: 16px;
    padding: 18px 20px;
    box-shadow: var(--shadow);
}

.filters__form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 14px;
    align-items: end;
}

label {
    font-weight: 600;
    color: #2c3338;
}

select,
input {
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid #d4d8dd;
    background: #fff;
    font-size: 15px;
}

footer {
    color: #fff;
    padding: 40px 20px;
    border-top: 2px solid var(--cinza-claro);
}

footer .footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 30px;
    border-bottom: 1px solid #808080;
}

.footer-logo img {
    margin-top: -20px;
    height: 100px;
    width: 100%;
    object-fit: contain;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
    min-width: 200px;
}

.footer-col h3 {
  font-size: 1.1rem;
  margin-bottom: 10px;
  font-weight: normal;
  font-family: var(--poppins);
}

.footer-col ul li a:hover {
  color: #ffffff; 
}

.redes {
    display: flex;
    gap: 20px;
}

.redes > a {
    width: 50px;
    height: 50px;
    border-radius: 5px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    text-decoration: none;
    transition: 100ms;
    &:hover {
        transform: scale(1.1);
    }
}

.redes a i {
    font-size: 45px;
}

.footer-desc {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 40px;
    display: flex;
    justify-content: center;
}

.footer-desc p {
    font-size: 1.1rem;
}

@media screen and (max-width: 1000px) {
    .container {
        width: 100%;
        padding: 0 20px;
    }
}

@media (max-width: 768px) {
    .container,
    .container_hero {
        width: 100%;
    }
    header div {
        padding: 10px 0;
    }

    .theme-button {
        display: none;
    }

    .hamburguer-container {
        display: block;
    }

    .navigation {
        display: none;
    }
}

@media (max-width: 373px) {
    .logo-container {
        width: 250px;
    }
}

.hidden {
    display: none;
}

