@import url('https://fonts.googleapis.com/css2?family=Cousine:ital,wght@0,400;0,700;1,400;1,700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Alan+Sans:wght@300..900&family=Bebas+Neue&family=Cousine:ital,wght@0,400;0,700;1,400;1,700&display=swap');

* {
    box-sizing: border-box;
}

body {
    font-family: 'Cousine', monospace;
    background-color: #cea8f0;
    color: #333;
    margin: 0;
    padding: 0;
    padding-top: 80px; /* Espaço para o header fixo menor */
    padding-bottom: 100px; /* Espaço para o footer fixo menor */
    transition: all 0.3s ease;
}

/* Header e Navegação */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: 15px 0 5px 0;
    background-color: #cea8f0;
    z-index: 1000;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

nav {
    margin-right: 20px;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: flex-end;
    gap: 30px;
    margin: 0;
    padding: 0;
}

nav li {
    transform: translateY(0);
    transition: transform 0.3s ease;
}

nav li:hover {
    transform: translateY(-3px);
}

nav a {
    text-decoration: none;
    color: #333;
    font-weight: 700;
    font-size: 1.1em;
    padding: 10px 15px;
    transition: all 0.3s ease;
    position: relative;
}

nav a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: #333;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

nav a:hover::before {
    width: 100%;
}

nav a:hover {
    color: #222;
    text-shadow: 0 0 8px rgba(51, 51, 51, 0.3);
}

/* Logo/Home Button */
.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: #333;
    font-weight: 700;
    font-size: 1.1em;
    padding: 10px 15px;
    transition: all 0.3s ease;
    margin-left: 20px;
    position: relative;
    transform: translateY(0);
}

.logo:hover {
    transform: translateY(-3px);
    color: #222;
    text-shadow: 0 0 8px rgba(51, 51, 51, 0.3);
}

.logo::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: #333;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.logo:hover::before {
    width: 100%;
}

.logo img {
    width: 16px !important;
    height: 16px !important;
    max-width: 16px !important;
    max-height: 16px !important;
    transition: transform 0.3s ease;
}

.logo:hover img {
    transform: rotate(360deg);
}

/* Menu Hamburger */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5em;
    color: #333;
    cursor: pointer;
    padding: 10px;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.menu-toggle:hover {
    color: #222;
}

.nav-menu {
    transition: all 0.3s ease;
}

.nav-menu.active {
    display: flex !important;
}

/* Footer */
footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px 0;
    background-color: #cea8f0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.contatos ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 30px;
    margin: 0;
    padding: 0;
}

.contatos a {
    text-decoration: none;
    color: #333;
    font-weight: 600;
    padding: 12px 20px;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    align-items: center;
    gap: 6px;
}

.contatos .icon {
    display: none;
}

.contatos .text {
    font-size: 1em;
}

.contatos a:hover .icon {
    filter: brightness(0) saturate(100%);
    transform: scale(1.1);
}

.contatos a:visited .icon,
.contatos a:active .icon,
.contatos a:focus .icon {
    filter: brightness(0) saturate(100%);
}

.contatos a:visited:hover .icon,
.contatos a:active:hover .icon,
.contatos a:focus:hover .icon {
    filter: brightness(0) saturate(100%);
    transform: scale(1.1);
}

.contatos a::after {
    content: '';
    position: absolute;
    bottom: 8px;
    left: 50%;
    width: 0;
    height: 1px;
    background: #333;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.contatos a:hover::after {
    width: 80%;
}

.contatos a:hover {
    transform: translateY(-2px);
    text-shadow: 0 0 8px rgba(51, 51, 51, 0.3);
}

/* Animações */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Responsividade para dispositivos móveis */
@media (max-width: 768px) {
    /* Ajustar padding do body para footer menor */
    body {
        padding-bottom: 80px;
    }
    
    /* Footer responsivo */
    footer {
        padding: 15px 10px;
    }
    
    .contatos ul {
        gap: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .contatos a {
        padding: 8px 12px;
        font-size: 0.9em;
    }
    
    .contatos .icon {
        display: inline-block;
        width: 18px;
        height: 18px;
        object-fit: contain;
        filter: brightness(0) saturate(100%);
        transition: all 0.3s ease;
    }
    
    .contatos a:hover .icon {
        filter: brightness(0) saturate(100%);
        transform: scale(1.1);
    }
}

@media (max-width: 480px) {
    /* Ajustar padding do body para footer extra pequeno */
    body {
        padding-bottom: 70px;
    }
    
    /* Footer extra pequeno - apenas ícones */
    footer {
        padding: 10px 2px;
    }
    
    .contatos ul {
        gap: 15px;
        flex-wrap: nowrap;
        justify-content: center;
    }
    
    .contatos a {
        padding: 8px 10px;
        gap: 0;
    }
    
    /* Esconder texto, mostrar apenas ícones */
    .contatos .text {
        display: none;
    }
    
    .contatos .icon {
        display: inline-block;
        width: 24px;
        height: 24px;
        object-fit: contain;
        filter: brightness(0) saturate(100%);
        transition: all 0.3s ease;
    }
    
    .contatos a:hover .icon {
        filter: brightness(0) saturate(100%);
        transform: scale(1.1);
    }
}