/* --- RESET & GLOBAL --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-dark: #020205;
    --text-white: #ffffff;
    --text-gray: #b3b3b3;
    --blue-glow: #0070f3;
    --border-color: rgba(255, 255, 255, 0.1);
}

body {
    background-color: var(--bg-dark);
    font-family: 'Inter', sans-serif;
    color: var(--text-white);
    overflow-x: hidden;
}

.background-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: -1;
    background: 
        radial-gradient(circle at 80% 20%, rgba(30, 30, 60, 0.4) 0%, transparent 50%),
        radial-gradient(circle at 20% 80%, rgba(20, 20, 40, 0.4) 0%, transparent 50%);
    pointer-events: none;
}

.main-wrapper {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- HERO --- */
.hero-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 40px 0 40px;
}

.hero-content {
    flex: 1;
}

.hero-content h1.name {
    font-size: 3.5rem;
    font-weight: 600;
    letter-spacing: -1px;
    margin-bottom: 5px;
}

.hero-content .role {
    font-size: 1.2rem;
    color: var(--text-gray);
    font-weight: 300;
    margin-bottom: 30px;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    position: relative;
}

.hero-image img {
    width: 400px;
    height: 400px;
    object-fit: cover;
    border-radius: 50%;
    z-index: 2;
    mask-image: linear-gradient(to bottom, black 70%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 70%, transparent 100%);
}

/* --- DIVISORES --- */
.section-divider {
    display: flex;
    align-items: center;
    gap: 20px;
    margin: 40px 0 30px;
}

.section-divider h2 {
    font-size: 1.5rem;
    font-weight: 400;
    color: #e0e0e0;
    white-space: nowrap;
}

.section-divider .line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
}

/* --- ABOUT --- */
.about-section {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px;
    color: var(--text-gray);
    font-weight: 300;
    line-height: 1.6;
}

/* --- TECH STACK --- */
.tech-section {
    margin-bottom: 60px;
}

.tech-icons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.tech-box {
    width: 50px;
    height: 50px;
    background: #0e0c0c;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #fff;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.8);
    transition: 
        transform 0.25s ease,
        box-shadow 0.25s ease,
        border-color 0.25s ease;
}

.tech-box img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    display: block;
    transition: transform 0.25s ease;
}

.tech-box:hover {
    transform: scale(1.15);
    box-shadow: 
        inset 0 0 10px rgba(0,0,0,0.8),
        0 8px 20px rgba(0,0,0,0.6);
    border-color: rgba(255,255,255,0.25);
}

.tech-box:hover img {
    transform: scale(1.05);
}

.neon-line {
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--blue-glow), transparent);
    box-shadow: 0 0 15px var(--blue-glow);
    opacity: 0.7;
}

/* --- CONTACT --- */
.certificate {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    justify-items: center;
}

.contact-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    position: relative;
    z-index: 2;
}

.btn-contact {
    border: 1px solid rgba(0, 100, 255, 0.2);
    color: #fff;
    padding: 12px 30px;
    border-radius: 6px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    transition: 0.3s;
    background: linear-gradient(180deg, rgba(255,255,255,0.05) 0%, rgba(0,0,0,0) 100%);
}

.btn-contact:hover {
    border-color: var(--blue-glow);
    box-shadow: 0 0 15px rgba(0, 112, 243, 0.2);
}

.footer-wave {
    position: absolute;
    bottom: -50px;
    left: 0;
    width: 100%;
    height: 150px;
    background: radial-gradient(ellipse at center, rgba(0, 112, 243, 0.15) 0%, transparent 70%);
    filter: blur(20px);
    z-index: 1;
}

/* --- FOOTER --- */
.footer-section {
    text-align: center;
    padding: 40px 0 60px;
    position: relative;
}

/* --- MOBILE --- */
@media (max-width: 768px) {
    .hero-section {
        flex-direction: column-reverse;
        text-align: center;
        gap: 40px;
    }

    .hero-image {
        justify-content: center;
    }

    .contact-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn-contact {
        width: 100%;
        justify-content: center;
        max-width: 300px;
    }
}
