/* ================= RESET ================= */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: #0f172a;
    color: #e2e8f0;
    line-height: 1.6;
}

/* ================= LAYOUT ================= */

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ================= HEADER ================= */

.header {
    position: fixed;
    width: 100%;
    top: 0;
    background: rgba(15, 23, 42, 0.85);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.logo {
    font-weight: 600;
    font-size: 1.2rem;
    letter-spacing: 1px;
}

.menu {
    display: flex;
    gap: 30px;
    list-style: none;
}

.menu a {
    text-decoration: none;
    color: #cbd5e1;
    font-size: 0.95rem;
    transition: 0.3s ease;
    position: relative;
}

.menu a::after {
    content: "";
    position: absolute;
    width: 0%;
    height: 2px;
    bottom: -5px;
    left: 0;
    background: #38bdf8;
    transition: 0.3s ease;
}

.menu a:hover {
    color: #38bdf8;
}

.menu a:hover::after {
    width: 100%;
}

/* ================= HERO ================= */

.hero {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 100vh;
    padding-top: 120px;
    gap: 50px;
}

.hero-text h1 {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 0px;
    background: linear-gradient(90deg, #38bdf8, #22d3ee);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}



.hero-text h3 {
    margin-top: 0px; /* remove espaço superior */
    margin-bottom: 25px;
    font-weight: 400;
    color: #94a3b8;
}

.hero-text p {
    color: #94a3b8;
    margin-bottom: 25px;
    font-size: 1.1rem;
}

button {
    padding: 12px 28px;
    border-radius: 50px;
    border: none;
    background: linear-gradient(90deg, #38bdf8, #0ea5e9);
    color: white;
    font-weight: 500;
    cursor: pointer;
    transition: 0.3s ease;
}

button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(56,189,248,0.3);
}

.hero-img img {
    width: 320px;
    border-radius: 50%;
    border: 4px solid rgba(56,189,248,0.3);
    box-shadow: 0 0 60px rgba(56,189,248,0.2);
}

/* ================= SEÇÕES ================= */
section:not(.hero) {
    border-bottom: 1px solid rgba(255,255,255,0.03);
    padding-bottom: 120px;
}

h2 {
    font-size: 2rem;
    margin-bottom: 30px;
    position: relative;
}

h2::after {
    content: "";
    width: 50px;
    height: 3px;
    background: #38bdf8;
    position: absolute;
    bottom: -10px;
    left: 0;
}

/* ================= PROJETOS ================= */

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

.card {
    background: #1e293b;
    padding: 25px;
    border-radius: 15px;
    transition: 0.3s ease;
    border: 1px solid rgba(255,255,255,0.05);
}

.card:hover {
    transform: translateY(-8px);
    border: 1px solid #38bdf8;
}

/* ================= SKILLS ================= */

/* Percentuais */

.p75 {
    width: 75%;
}

.p100 {
    width: 100%;
}

.skill-bar {
    margin-bottom: 25px;
}

.progress {
    background: #1e293b;
    height: 8px;
    border-radius: 10px;
    margin-top: 8px;
    overflow: hidden;
}

.progress div {
    height: 100%;
    background: linear-gradient(90deg, #38bdf8, #22d3ee);
    border-radius: 10px;
}


/* ================= CONTATO ================= */

#contato a {
    color: #38bdf8;
    text-decoration: none;
}

#contato a:hover {
    text-decoration: underline;
}

/* ================= FOOTER ================= */

footer {
    text-align: center;
    padding: 40px 0;
    background: #0b1120;
    font-size: 0.9rem;
    color: #64748b;
}

/* ================= REVEAL ================= */

.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ================= RESPONSIVO ================= */

@media (max-width: 900px) {

    .hero {
        flex-direction: column;
        text-align: center;
    }

    .hero-text h1 {
        font-size: 2rem;
    }

    .menu {
        gap: 15px;
    }

    .hero-img img {
        width: 220px;
        margin-top: 30px;
    }
}