* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    transition: background 0.3s ease;
    color: #1f2937;
}

body.dark-mode {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: #e5e7eb;
}

/* Navegação */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

body.dark-mode .navbar {
    background: rgba(22, 33, 62, 0.95);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: bold;
    color: #1f2937;
    transition: color 0.3s ease;
}

body.dark-mode .logo {
    color: #e5e7eb;
}

.logo i {
    color: #667eea;
    font-size: 2rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #1f2937;
    transition: color 0.3s ease;
}

body.dark-mode .mobile-menu-btn {
    color: #e5e7eb;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    color: #4b5563;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #667eea;
    transition: width 0.3s;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

body.dark-mode .nav-links a {
    color: #9ca3af;
}

.nav-links a:hover,
.nav-links a.active {
    color: #667eea;
}

/* Botão de Tema */
.theme-toggle {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.theme-toggle:hover {
    transform: rotate(180deg) scale(1.1);
}

.theme-toggle i {
    font-size: 1.2rem;
    color: #ffffff;
}

/* Portfolio Hero */
.portfolio-hero {
    position: relative;
    padding: 6rem 2rem;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.circle {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    animation: float 20s infinite;
}

.circle-1 {
    width: 300px;
    height: 300px;
    top: -100px;
    left: -100px;
    animation-delay: 0s;
}

.circle-2 {
    width: 200px;
    height: 200px;
    top: 50%;
    right: -50px;
    animation-delay: 5s;
}

.circle-3 {
    width: 150px;
    height: 150px;
    bottom: -50px;
    left: 50%;
    animation-delay: 10s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(50px, 50px) rotate(90deg); }
    50% { transform: translate(0, 100px) rotate(180deg); }
    75% { transform: translate(-50px, 50px) rotate(270deg); }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero-content {
    text-align: center;
    color: white;
}

.page-title {
    font-size: 3.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
    animation: fadeInUp 0.6s ease-out;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.2);
}

.page-subtitle {
    font-size: 1.3rem;
    opacity: 0.95;
    animation: fadeInUp 0.8s ease-out;
    max-width: 600px;
    margin: 0 auto 2rem;
    line-height: 1.6;
}

.hero-icons {
    display: flex;
    justify-content: center;
    gap: 2rem;
    animation: fadeInUp 1s ease-out;
}

.hero-icons i {
    font-size: 2.5rem;
    color: white;
    animation: bounce 2s infinite;
}

.hero-icons i:nth-child(2) {
    animation-delay: 0.2s;
}

.hero-icons i:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* Portfolio Grid */
.portfolio-grid {
    padding: 4rem 2rem;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
}

.project-card {
    background-color: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    text-decoration: none;
    opacity: 0;
    transform: translateY(30px);
}

.project-card.animate-in {
    opacity: 1;
    transform: translateY(0);
}

body.dark-mode .project-card {
    background-color: rgba(22, 33, 62, 0.8);
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}

.project-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 25px 60px rgba(102, 126, 234, 0.3);
}

body.dark-mode .project-card:hover {
    box-shadow: 0 25px 60px rgba(102, 126, 234, 0.4);
}

.project-image {
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.project-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
}

.project-card:hover .project-img {
    transform: scale(1.1);
}

.project-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.9) 0%, rgba(118, 75, 162, 0.9) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-overlay i {
    color: #ffffff;
    font-size: 2.5rem;
    animation: bounceIcon 0.6s ease;
}

@keyframes bounceIcon {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

.project-info {
    padding: 2rem;
}

.project-category {
    font-size: 0.875rem;
    color: #667eea;
    font-weight: 600;
    text-transform: uppercase;
    border-left: 3px solid;
    padding-left: 0.5rem;
    display: inline-block;
    margin-bottom: 0.75rem;
    transition: color 0.3s ease;
}

body.dark-mode .project-category {
    color: #818cf8;
}

.project-title {
    font-size: 1.6rem;
    font-weight: bold;
    margin-bottom: 0.75rem;
    color: #1f2937;
    transition: color 0.3s ease;
}

body.dark-mode .project-title {
    color: #e5e7eb;
}

.project-description {
    color: #6b7280;
    line-height: 1.7;
    transition: color 0.3s ease;
}

body.dark-mode .project-description {
    color: #9ca3af;
}

/* Footer */
.footer {
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    color: #ffffff;
    padding: 3rem 2rem;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: bold;
}

.footer-logo i {
    font-size: 2rem;
    color: #667eea;
}

.footer-text {
    opacity: 0.9;
    text-align: center;
}

/* WhatsApp Float Button */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 65px;
    height: 65px;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.5);
    z-index: 999;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
}

.whatsapp-float:hover {
    transform: scale(1.15) rotate(10deg);
    box-shadow: 0 12px 35px rgba(37, 211, 102, 0.7);
}

.whatsapp-float i {
    color: #ffffff;
    font-size: 2.2rem;
}

.whatsapp-tooltip {
    position: absolute;
    right: 80px;
    background: white;
    color: #25D366;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-weight: bold;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.whatsapp-float:hover .whatsapp-tooltip {
    opacity: 1;
}

/* Animações */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsivo */
@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }

    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        padding: 1.5rem 2rem;
        box-shadow: 0 8px 20px rgba(0,0,0,0.1);
        display: none;
    }

    body.dark-mode .nav-links {
        background-color: rgba(22, 33, 62, 0.98);
    }

    .nav-links.active {
        display: flex;
    }

    .page-title {
        font-size: 2.5rem;
    }

    .page-subtitle {
        font-size: 1.1rem;
    }

    .hero-icons i {
        font-size: 2rem;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .whatsapp-float {
        width: 55px;
        height: 55px;
        bottom: 20px;
        right: 20px;
    }

    .whatsapp-float i {
        font-size: 1.8rem;
    }

    .whatsapp-tooltip {
        display: none;
    }

    .nav-right {
        gap: 1rem;
    }

    .theme-toggle {
        width: 40px;
        height: 40px;
    }

    .theme-toggle i {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .page-title {
        font-size: 2rem;
    }

    .page-subtitle {
        font-size: 1rem;
    }

    .project-info {
        padding: 1.5rem;
    }

    .project-title {
        font-size: 1.4rem;
    }

    .project-description {
        font-size: 0.95rem;
    }
}
