/* Reset e Variáveis */
:root {
    /* Cores baseadas na referência */
    --bg-dark: #1e0d3d;
    --bg-gradient-1: #2b1b54;
    --bg-gradient-2: #3d2569;
    --bg-gradient-3: #583196;
    
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --accent-color: #8b5cf6;
    
    /* Fontes */
    --font-main: 'Montserrat', sans-serif;
    
    /* Glassmorphism */
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-dark);
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.6;
    position: relative;
}

/* Background com Formas Orgânicas (Blobs) */
.bg-shape {
    position: fixed;
    border-radius: 50%;
    filter: blur(80px);
    z-index: -1;
    opacity: 0.6;
    animation: float 20s infinite alternate ease-in-out;
}

.shape-1 {
    width: 600px;
    height: 600px;
    background: var(--bg-gradient-3);
    top: -100px;
    left: -200px;
}

.shape-2 {
    width: 800px;
    height: 800px;
    background: var(--bg-gradient-2);
    bottom: -300px;
    right: -200px;
    animation-delay: -5s;
}

.shape-3 {
    width: 400px;
    height: 400px;
    background: var(--accent-color);
    top: 40%;
    left: 60%;
    animation-delay: -10s;
    opacity: 0.4;
}

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(50px, 30px) scale(1.1); }
    100% { transform: translate(-30px, 50px) scale(0.9); }
}

/* Utilitários */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 100px 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: var(--text-primary);
    border-radius: 2px;
}

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: var(--glass-shadow);
    transition: transform 0.3s ease, background 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.08);
}

/* Botões baseados na imagem referência */
.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 50px; /* Pill shape */
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--text-primary);
}

.btn-outline:hover {
    background: var(--text-primary);
    color: var(--bg-dark);
}

.btn-solid {
    background: var(--text-primary);
    color: var(--bg-dark);
}

.btn-solid:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.btn-text {
    background: transparent;
    color: var(--text-primary);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 0.8rem 1rem;
}

.btn-text .arrow {
    transition: transform 0.3s ease;
}

.btn-text:hover .arrow {
    transform: translateX(5px);
}

/* Header e Nav */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: all 0.3s ease;
}

.header.scrolled {
    background: rgba(30, 13, 61, 0.85);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

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

.logo {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    width: 20px;
    height: 20px;
    border: 3px solid var(--text-primary);
    border-radius: 50%;
    display: inline-block;
}

.navbar {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 400;
    transition: color 0.3s ease;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--text-primary);
    font-weight: 600;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.menu-toggle .bar {
    width: 25px;
    height: 3px;
    background-color: var(--text-primary);
    transition: 0.3s;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
}

.hero-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    width: 100%;
}

.hero-content {
    max-width: 600px;
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image .image-wrapper {
    padding: 1rem;
    border-radius: 50%;
    width: 100%;
    max-width: 480px;
    aspect-ratio: 1/1;
    overflow: hidden;
    position: relative;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    transition: transform 0.5s ease;
}

.hero-image:hover img {
    transform: scale(1.05);
}

.subtitle {
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.title {
    font-size: 5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 0.5rem;
    letter-spacing: -1px;
}

.profession {
    font-size: 2rem;
    font-weight: 400;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    letter-spacing: 2px;
}

.description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin-bottom: 3rem;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 2rem;
}

.about-text p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.skills-column {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.skills h3 {
    margin-bottom: 1.5rem;
}

.skills-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.skills-tags span {
    background: rgba(255, 255, 255, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Portfolio Section */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}

.project-card {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.project-image {
    width: 100%;
    height: 200px;
    border-radius: 12px;
    background-size: cover;
    background-position: center;
    transition: transform 0.5s ease;
}

.project-card:hover .project-image {
    transform: scale(1.03);
}

.project-info h3 {
    margin-bottom: 0.5rem;
}

.project-info p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.btn-link {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-block;
    transition: color 0.3s;
}

.btn-link:hover {
    color: var(--text-primary);
}

.btn-link-inline {
    color: var(--accent-color);
    text-decoration: underline;
    font-weight: 600;
    transition: color 0.3s;
}

.btn-link-inline:hover {
    color: var(--text-primary);
}

/* Footer */
.contact-box {
    text-align: center;
    padding: 4rem 2rem;
    margin-bottom: 4rem;
}

.contact-box h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.contact-box p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.social-links {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-social {
    padding: 0;
    font-size: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    overflow: hidden;
}

.btn-social img {
    width: 24px;
    height: 24px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.btn-social:hover img {
    transform: scale(1.1);
}

.footer-bottom {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Responsividade */

/* Tablet */
@media (max-width: 992px) {
    .section { padding: 70px 0; }
    .title { font-size: 4rem; }
    .profession { font-size: 1.5rem; }
    .about-grid { grid-template-columns: 1fr; }
    .hero-wrapper {
        grid-template-columns: 1fr;
        text-align: center;
        margin-top: 2rem;
        gap: 2rem;
    }
    .hero-content { margin: 0 auto; }
    .hero-actions { justify-content: center; }
    .hero-image .image-wrapper { max-width: 360px; }
}

/* Mobile */
@media (max-width: 768px) {
    .navbar {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 100%;
        background: var(--bg-dark);
        flex-direction: column;
        justify-content: center;
        transition: right 0.4s ease;
        z-index: 1000;
    }

    .navbar.active { right: 0; }

    .nav-links {
        flex-direction: column;
        align-items: center;
        gap: 2rem;
    }

    .menu-toggle {
        display: flex;
        z-index: 1001;
    }

    .section { padding: 60px 0; }
    .section-title { font-size: 2rem; }
    .title { font-size: 3rem; }
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
}

/* Mobile pequeno */
@media (max-width: 480px) {
    .container { padding: 0 1.2rem; }
    .section { padding: 50px 0; }

    .title { font-size: 2.4rem; letter-spacing: -0.5px; }
    .subtitle { font-size: 1.1rem; }
    .profession { font-size: 1.1rem; letter-spacing: 1px; }
    .description { font-size: 1rem; }
    .section-title { font-size: 1.8rem; }

    .hero-image .image-wrapper { max-width: 240px; }

    .about-text p { font-size: 1rem; }
    .glass-card { padding: 1.2rem; }

    .contact-box { padding: 2.5rem 1rem; }
    .contact-box h2 { font-size: 1.6rem; }

    .btn { padding: 0.7rem 1.5rem; font-size: 0.85rem; }
}
