:root {
    --bg-color: #0b0b0b;
    --card-bg: #161616;
    --primary-color: #8a2be2;
    --secondary-color: #bc13fe;
    --text-white: #ffffff;
    --text-gray: #a0a0a0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-white);
    overflow-x: hidden;
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 8%;
    background: rgba(11, 11, 11, 0.8);
    backdrop-filter: blur(10px);
    position: fixed;
    width: 100%;
    z-index: 1000;
}

.logo { font-size: 1.5rem; font-weight: 700; }
.logo span { color: var(--primary-color); }

.nav-links { display: flex; list-style: none; }
.nav-links li { margin-left: 30px; }
.nav-links a { color: var(--text-white); text-decoration: none; transition: 0.3s; }
.nav-links a:hover { color: var(--primary-color); text-shadow: 0 0 10px var(--primary-color); }

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 10%;
    background: radial-gradient(circle at top right, #250a47 0%, transparent 40%);
}

.hero-content h1 { font-size: 3.5rem; margin-bottom: 10px; }
.hero-content h1 span { color: var(--primary-color); }
.hero-content p { color: var(--text-gray); font-size: 1.2rem; margin-bottom: 30px; }

.btn-glow {
    padding: 12px 30px;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    box-shadow: 0 0 20px rgba(138, 43, 226, 0.5);
    transition: 0.4s;
}

.btn-glow:hover {
    box-shadow: 0 0 40px rgba(138, 43, 226, 0.8);
    transform: translateY(-3px);
}

.img-box {
    width: 320px;
    height: 320px;
    border: 3px solid var(--primary-color);
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    overflow: hidden;
    animation: morph 6s ease-in-out infinite;
    box-shadow: 0 0 50px rgba(138, 43, 226, 0.3);
}

.img-box img { width: 100%; height: 100%; object-fit: cover; }

/* Projetos */
.portfolio { padding: 100px 8%; }
.section-title { text-align: center; font-size: 2.5rem; margin-bottom: 50px; }

.grid-projects {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.project-card {
    background: var(--card-bg);
    border-radius: 15px;
    overflow: hidden;
    transition: 0.4s;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.project-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(138, 43, 226, 0.2);
}

.project-img img { width: 100%; transition: 0.5s; }
.project-card:hover .project-img img { transform: scale(1.1); }

.project-info { padding: 20px; }
.project-info h3 { margin-bottom: 10px; }
.project-info p { color: var(--text-gray); font-size: 0.9rem; margin-bottom: 15px; }

.link-projeto { color: var(--secondary-color); text-decoration: none; font-weight: bold; }

/* Animações */
@keyframes morph {
    0% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
    50% { border-radius: 50% 50% 33% 67% / 55% 27% 73% 45%; }
    100% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
}

/* Responsividade */
@media (max-width: 768px) {
    .hero { flex-direction: column-reverse; text-align: center; justify-content: center; gap: 50px; }
    .hero-content h1 { font-size: 2.5rem; }
    .nav-links { display: none; }
}

footer {
    text-align: center;
}