:root {
    --cor-primaria: #F07335;
    --cor-secundaria: #606062;
    --cor-terciaria: #F2EBDF;
    --cor-quaternaria: #E6E7E8;
    --cor-branco: #ffffff;
    --cor-texto: #2c3e50;
    --cor-texto-claro: #7f8c8d;
    --cor-sucesso: #27ae60;
    --cor-erro: #e74c3c;
    --cor-aviso: #f39c12;
    --cor-info: #3498db;
}

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

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, var(--cor-terciaria) 0%, var(--cor-quaternaria) 100%);
    color: var(--cor-texto);
    height: 100vh;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
}

/* Background Animation */
.background-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--cor-primaria);
    border-radius: 50%;
    opacity: 0.3;
    animation: float 15s infinite ease-in-out;
    box-shadow: 0 0 10px var(--cor-primaria);
}

.particle:nth-child(1) {
    left: 10%;
    animation-delay: 0s;
    animation-duration: 12s;
}

.particle:nth-child(2) {
    left: 20%;
    animation-delay: 2s;
    animation-duration: 18s;
}

.particle:nth-child(3) {
    left: 30%;
    animation-delay: 4s;
    animation-duration: 14s;
}

.particle:nth-child(4) {
    left: 40%;
    animation-delay: 1s;
    animation-duration: 16s;
}

.particle:nth-child(5) {
    left: 50%;
    animation-delay: 3s;
    animation-duration: 13s;
}

.particle:nth-child(6) {
    left: 60%;
    animation-delay: 5s;
    animation-duration: 17s;
}

.particle:nth-child(7) {
    left: 70%;
    animation-delay: 2.5s;
    animation-duration: 15s;
}

.particle:nth-child(8) {
    left: 80%;
    animation-delay: 4.5s;
    animation-duration: 19s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(100vh) translateX(0) scale(0);
        opacity: 0;
    }
    10% {
        opacity: 0.3;
    }
    90% {
        opacity: 0.3;
    }
    100% {
        transform: translateY(-100px) translateX(50px) scale(1);
        opacity: 0;
    }
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background: var(--cor-primaria);
    color: var(--cor-branco);
    padding: 1rem 0;
    position: relative;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
}

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

.menu-toggle {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 5px;
    z-index: 1001;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--cor-branco);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.menu-toggle:hover span {
    background: var(--cor-terciaria);
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
    justify-content: center;
}

.logo-container i {
    font-size: 2rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

.logo-container h1 {
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* Sidebar */
.sidebar {
    position: fixed;
    top: 0;
    left: -300px;
    width: 300px;
    height: 100vh;
    background: var(--cor-branco);
    box-shadow: 2px 0 20px rgba(0, 0, 0, 0.1);
    z-index: 2000;
    transition: left 0.3s ease;
    overflow-y: auto;
}

.sidebar.active {
    left: 0;
}

.sidebar-content {
    padding: 2rem;
}

.close-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--cor-texto);
    cursor: pointer;
    margin-bottom: 2rem;
    float: right;
    transition: transform 0.3s ease;
}

.close-btn:hover {
    transform: rotate(90deg);
}

.sidebar-menu {
    list-style: none;
    clear: both;
}

.sidebar-menu li {
    margin-bottom: 1rem;
}

.sidebar-menu a {
    display: flex;
    align-items: center;
    gap: 15px;
    color: var(--cor-texto);
    text-decoration: none;
    padding: 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.sidebar-menu a:hover {
    background: var(--cor-terciaria);
    color: var(--cor-primaria);
    transform: translateX(5px);
}

.sidebar-menu i {
    font-size: 1.2rem;
    width: 25px;
}

/* Main Content */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-height: 0;
    padding-bottom: 60px; /* espaço para o footer */
}

/* Hero Section */
.hero-section {
    padding: 0.8rem 0;
    text-align: center;
    position: relative;
    z-index: 1;
    flex-shrink: 0;
}

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

.hero-title {
    font-size: clamp(1.2rem, 3vw, 2rem);
    font-weight: 700;
    color: var(--cor-texto);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: linear-gradient(135deg, var(--cor-primaria), var(--cor-secundaria));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: clamp(0.9rem, 2vw, 1.1rem);
    color: var(--cor-texto-claro);
    font-weight: 300;
    letter-spacing: 0.5px;
}

.animate-fade-in {
    animation: fadeInUp 1s ease-out;
}

.animate-fade-in-delay {
    animation: fadeInUp 1s ease-out 0.3s both;
}

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

/* Services Section */
.services-section {
    padding: 0.3rem 0;
    position: relative;
    z-index: 1;
    flex: 1;
    display: flex;
    align-items: center;
    min-height: 0;
    overflow: visible;
}

.services-section .container {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    width: 100%;
    margin: 0;
}

.service-card {
    position: relative;
    background: var(--cor-branco);
    border-radius: 20px;
    padding: 1.5rem 1.5rem;
    text-decoration: none;
    color: var(--cor-texto);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    animation: cardFadeIn 0.6s ease-out both;
}

.service-card:nth-child(1) { animation-delay: 0.1s; }
.service-card:nth-child(2) { animation-delay: 0.2s; }
.service-card:nth-child(3) { animation-delay: 0.3s; }
.service-card:nth-child(4) { animation-delay: 0.4s; }
.service-card:nth-child(5) { animation-delay: 0.5s; }
.service-card:nth-child(6) { animation-delay: 0.6s; }

@keyframes cardFadeIn {
    from {
        opacity: 0;
        transform: translateY(50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: var(--cor-primaria);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card:hover {
    transform: translateY(-15px) scale(1.03);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

.service-card[data-color="orange"]:hover {
    box-shadow: 0 20px 50px rgba(240, 115, 53, 0.4);
}

.service-card[data-color="blue"]:hover {
    box-shadow: 0 20px 50px rgba(52, 152, 219, 0.4);
}

.service-card[data-color="green"]:hover {
    box-shadow: 0 20px 50px rgba(39, 174, 96, 0.4);
}

.service-card[data-color="red"]:hover {
    box-shadow: 0 20px 50px rgba(231, 76, 60, 0.4);
}

.card-shine {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 30%,
        rgba(255, 255, 255, 0.3) 50%,
        transparent 70%
    );
    transform: rotate(45deg);
    transition: all 0.6s;
    opacity: 0;
}

.service-card:hover .card-shine {
    animation: shine 0.6s ease-in-out;
}

@keyframes shine {
    0% {
        left: -50%;
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        left: 150%;
        opacity: 0;
    }
}

.card-icon {
    position: relative;
    width: 80px;
    height: 80px;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-icon i {
    font-size: 2.5rem;
    z-index: 2;
    position: relative;
    transition: all 0.4s ease;
}

.service-card[data-color="orange"] .card-icon i {
    color: var(--cor-primaria);
}

.service-card[data-color="blue"] .card-icon i {
    color: var(--cor-info);
}

.service-card[data-color="green"] .card-icon i {
    color: var(--cor-sucesso);
}

.service-card[data-color="red"] .card-icon i {
    color: var(--cor-erro);
}

.icon-glow {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    opacity: 0.3;
    transition: all 0.4s ease;
    filter: blur(20px);
}

.service-card[data-color="orange"] .icon-glow {
    background: var(--cor-primaria);
}

.service-card[data-color="blue"] .icon-glow {
    background: var(--cor-info);
}

.service-card[data-color="green"] .icon-glow {
    background: var(--cor-sucesso);
}

.service-card[data-color="red"] .icon-glow {
    background: var(--cor-erro);
}

.service-card:hover .icon-glow {
    opacity: 0.6;
    transform: scale(1.2);
}

.service-card:hover .card-icon i {
    transform: scale(1.2) rotate(5deg);
}

.card-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
    color: var(--cor-texto);
    transition: color 0.3s ease;
}

.service-card:hover .card-title {
    color: var(--cor-primaria);
}

.card-url {
    font-size: 0.9rem;
    color: var(--cor-texto-claro);
    font-weight: 300;
}

/* Footer */
.footer {
    background: var(--cor-secundaria);
    color: var(--cor-branco);
    padding: 0.8rem 0;
    text-align: center;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    width: 100%;
    display: block;
    min-height: 50px;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

.footer p {
    font-size: 0.85rem;
    opacity: 1;
    margin: 0;
    font-weight: 400;
}

/* Responsive Design */
@media (max-width: 768px) {
    .logo-container h1 {
        font-size: 1.2rem;
    }

    .logo-container i {
        font-size: 1.5rem;
    }

    .hero-section {
        padding: 0.8rem 0;
    }

    .services-section {
        padding: 0.3rem 0;
    }

    .services-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.6rem;
        padding: 0 0.5rem;
    }

    .service-card {
        padding: 1rem 0.6rem;
    }

    .card-icon {
        width: 50px;
        height: 50px;
        margin-bottom: 0.5rem;
    }

    .card-icon i {
        font-size: 1.8rem;
    }

    .card-title {
        font-size: 0.75rem;
        margin-bottom: 0.2rem;
    }

    .card-url {
        font-size: 0.65rem;
    }

    .menu-toggle {
        position: relative;
        z-index: 1001;
    }

    .main-content {
        padding-bottom: 50px;
    }

    .footer {
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 1000;
        padding: 0.7rem 0;
        min-height: 45px;
        display: block !important;
        visibility: visible !important;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 1rem 0;
    }

    .logo-container h1 {
        font-size: 1rem;
    }

    .hero-section {
        padding: 0.6rem 0;
    }

    .hero-title {
        font-size: 1rem;
        margin-bottom: 0.3rem;
    }

    .hero-subtitle {
        font-size: 0.85rem;
    }

    .services-section {
        padding: 0.3rem 0;
    }

    .services-grid {
        gap: 0.4rem;
        padding: 0 0.3rem;
    }

    .service-card {
        padding: 0.8rem 0.4rem;
    }

    .card-icon {
        width: 45px;
        height: 45px;
        margin-bottom: 0.4rem;
    }

    .card-icon i {
        font-size: 1.5rem;
    }

    .card-title {
        font-size: 0.7rem;
        margin-bottom: 0.2rem;
    }

    .card-url {
        font-size: 0.6rem;
    }

    .main-content {
        padding-bottom: 45px;
    }

    .footer {
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 1000;
        padding: 0.6rem 0;
        min-height: 40px;
        display: block !important;
        visibility: visible !important;
    }

    .footer p {
        font-size: 0.65rem;
    }
}

/* Animações adicionais */
@keyframes floatIcon {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.service-card:hover .card-icon {
    animation: floatIcon 2s ease-in-out infinite;
}

/* Efeito de ondas no fundo */
.services-section::before {
    content: '';
    position: absolute;
    top: -100px;
    left: 0;
    width: 100%;
    height: 200px;
    background: linear-gradient(180deg, transparent, var(--cor-terciaria));
    z-index: -1;
}

