:root {
    --primary-gradient: linear-gradient(135deg, #2563eb 0%, #4f46e5 100%);
    --secondary-gradient: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
}

* { box-sizing: border-box; }

body {
    font-family: 'Poppins', system-ui, -apple-system, sans-serif;
    background: #f8fafc;
    color: #1f2937;
    line-height: 1.7;
}

h1, h2, h3, .navbar-brand {
    font-family: 'Space Grotesk', sans-serif;
}

.navbar {
    background: rgba(17, 24, 39, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-md);
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--secondary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.nav-link {
    font-weight: 500;
    position: relative;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary-gradient);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.hero {
    background: var(--primary-gradient);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero .display-5 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(to right, #fff, #e2e8f0);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    position: relative;
    z-index: 1;
}

.hero .fs-5, .hero .lead {
    color: #e6f0ff;
    text-shadow: 0 2px 8px rgba(2,6,23,0.45);
    position: relative;
    z-index: 1;
}

.section-title {
    font-size: 2.25rem;
    font-weight: 700;
    letter-spacing: -0.3px;
    margin-bottom: 2.5rem;
    color: #0b1220;
    position: relative;
    text-align: center;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--secondary-gradient);
    border-radius: 2px;
    margin: 1rem auto 0;
}

.sobre {
    max-width: 960px;
    margin: 4rem auto;
    padding: 2rem;
}

.membro-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.membro-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--secondary-gradient);
}

.membro-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.foto-wrapper {
    position: relative;
    width: 160px;
    height: 160px;
    margin: 0 auto;
}

.equipe-foto {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    border: 4px solid white;
}

.text-gradient {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.timeline-item {
    position: relative;
    padding-left: 1.5rem;
    border-left: 2px solid #e5e7eb;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -5px;
    top: 0;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary-gradient);
}

.timeline-item ul li {
    color: #4b5563;
    margin-bottom: 0.5rem;
}

.especialidade-item {
    padding: 1rem;
    border-radius: 12px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: 1px solid #e2e8f0;
}

.social-links a {
    transition: transform 0.2s ease;
}

.social-links a:hover {
    transform: translateY(-2px);
}

.skills {
    max-width: 960px;
    margin: 4rem auto;
    padding: 2rem;
}

.skill-item {
    background: white;
    border-radius: 12px;
    padding: 1.25rem;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    min-width: 160px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.skill-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.skill-icon {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.skill-item span {
    font-weight: 600;
    color: #0b1220;
    text-align: center;
}

.projetos {
    max-width: 960px;
    margin: 4rem auto;
    padding: 2rem;
}

.projeto-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease;
    position: relative;
    overflow: hidden;
}

.projeto-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--secondary-gradient);
}

.projeto-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.badge {
    padding: 0.5em 1em;
    font-weight: 500;
    border-radius: 8px;
}

.badge-tech {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    color: #0369a1;
    border: 1px solid #bae6fd;
}

footer {
    background: #0b1220;
    color: #cbd5e1;
    padding: 2rem 0;
    margin-top: 4rem;
    position: relative;
    overflow: hidden;
    font-size: 0.9rem;
    font-weight: 500;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary-gradient);
}

footer p {
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

footer p:hover {
    opacity: 1;
}

#voltar-topo {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 48px;
    height: 48px;
    background: var(--secondary-gradient);
    color: white;
    border: none;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

#voltar-topo.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Animações */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

/* Responsividade */
@media (max-width: 767px) {
    .equipe-info {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem;
    }
    
    .equipe-foto {
        width: 140px;
        height: 140px;
        margin-bottom: 1rem;
    }
    
    .section-title {
        font-size: 1.875rem;
    }
    
    .hero .display-5 {
        font-size: 2.5rem;
    }
    
    .skill-item {
        min-width: calc(50% - 1rem);
    }
    
    .projeto-card {
        padding: 1.5rem;
    }
}
