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

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

html{
    scroll-behavior:smooth;
}

body{
    background:#070b14;
    color:#f5f7fa;
    font-family:'Poppins', sans-serif;
    overflow-x:hidden;
}

/* =========================================
   VARIÁVEIS
========================================= */

:root{

    --bg-primary:#070b14;
    --bg-secondary:#0f172a;
    --bg-card:#131c31;
    --blue:#3b82f6;
    --purple:#7c3aed;
    --text-primary:#f8fafc;
    --text-secondary:#94a3b8;
    --border-color:rgba(255,255,255,0.05);
    --shadow: 0 20px 40px rgba(0,0,0,0.35);
}

/* =========================================
   SCROLLBAR
========================================= */

::-webkit-scrollbar{
    width:10px;
}

::-webkit-scrollbar-track{
    background:#0b1120;
}

::-webkit-scrollbar-thumb{
    background:linear-gradient(
    180deg,
    var(--blue),
    var(--purple)
    );

    border-radius:20px;
}

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

header{
    width:100%;
    position:fixed;
    top:0;
    left:0;
    z-index:1000;
    padding:12px 8%;
    background:rgba(7,11,20,0.82);
    backdrop-filter:blur(12px);
    border-bottom: 1px solid rgba(255,255,255,0.04);
}

/* =========================================
   NAV
========================================= */

nav{
    display:flex;
    align-items:center;
    justify-content:space-between;
    height:70px;
}

/* =========================================
   LOGO
========================================= */

.logo{
    display:flex;
    align-items:center;
}

.logo img{
    height:110px;
    width:auto;
    object-fit:contain;
    transition:0.3s ease;
}

.logo img{
    height:140px;
    width:auto;
    object-fit:contain;
    display:block;
    filter: drop-shadow(0 0 10px rgba(59,130,246,0.18));
}

.logo img:hover{
    transform:scale(1.03);
}

/* =========================================
   MENU
========================================= */

nav ul{
    display:flex;
    gap:34px;
    list-style:none;
}

nav ul li a{
    color:var(--blue);
    text-decoration:none;
    font-size:15px;
    font-weight:800;
    transition:0.3s ease;
    position:relative;
}

nav ul li a:hover{
    color:var(--text-primary);
}

nav ul li a::after{
    content:'';
    width:0%;
    height:2px;
    background: linear-gradient( 90deg, var(--blue), var(--purple));
    position:absolute;
    left:0;
    bottom:-7px;
    transition:0.3s;
}

nav ul li a:hover::after{
    width:100%;
}

/* =========================================
   MAIN
========================================= */

main{
    width:100%;
}

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

.hero{
    min-height:100vh;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:60px;
    padding:0 8%;
}

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

.hero-text{
    max-width:650px;
}

.hero-text h1{
    font-size:68px;
    line-height:1.1;
    margin-bottom:24px;
    font-weight:700;
}

.hero-text h1 span{
    background: linear-gradient( 90deg, var(--blue), var(--purple));
    -webkit-background-clip:text;
    -webkit-text-fill-color:transparent;
}

.hero-text p{
    color:var(--text-secondary);
    line-height:1.9;
    font-size:18px;
    margin-bottom:40px;
}

/* =========================================
   BOTÕES
========================================= */

.buttons{
    display:flex;
    gap:18px;
}

.btn{
    padding:15px 30px;
    border-radius:14px;
    text-decoration:none;
    font-weight:600;
    transition:0.3s ease;
}

.btn-primary{
    background: linear-gradient( 135deg, var(--blue), var(--purple));
    color:#fff;
    box-shadow: 0 10px 30px rgba(59,130,246,0.25);
}

.btn-primary:hover{
    transform:translateY(-4px);
    box-shadow: 0 15px 35px rgba(59,130,246,0.35);
}

.btn-secondary{
    border:1px solid rgba(255,255,255,0.08);
    background:var(--bg-secondary);
    color:var(--text-primary);
}

.btn-secondary:hover{
    background:#18243f;
}

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

.hero-card{
    margin-top: 20px;
    width:420px;
    background:rgba(19,28,49,0.75);
    backdrop-filter:blur(12px);
    border:
    1px solid rgba(255,255,255,0.06);
    border-radius:24px;
    padding:34px;
    box-shadow:var(--shadow);
}

.hero-card h3{
    font-size:22px;
    margin-bottom:24px;
    color:var(--blue);
}

/* =========================================
   CARD ITEM
========================================= */

.card-item{
    background:#17233b;
    padding:20px;
    border-radius:16px;
    margin-bottom:18px;
    transition:0.3s ease;
    border:
    1px solid rgba(255,255,255,0.04);
}

.card-item:hover{
    transform:translateX(6px);
    border-color:rgba(59,130,246,0.3);
    background:#1c2a47;
}

.card-item strong{
    display:block;
    margin-bottom:10px;
    font-size:15px;
    color:var(--text-primary);
}

.card-item p{
    color:var(--text-secondary);
    line-height:1.7;
    font-size:14px;
}

/* =========================================
   SECTIONS
========================================= */

section{
    padding:120px 8%;
}

/* =========================================
   TITLES
========================================= */

.section-title{
    text-align:center;
    font-size:48px;
    margin-bottom:70px;
    font-weight:700;
}

.section-title span{
    background: linear-gradient(90deg, var(--blue), var(--purple));
    -webkit-background-clip:text;
    -webkit-text-fill-color:transparent;
}

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

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

/* =========================================
   PROJECT CARD
========================================= */

.project-card{
    background:var(--bg-card);
    border-radius:24px;
    overflow:hidden;
    transition:0.4s ease;
    border: 1px solid rgba(255,255,255,0.05);
    box-shadow: 0 10px 30px rgba(0,0,0,0.25);
}

.project-card:hover{
    transform:translateY(-10px);
    border-color: rgba(59,130,246,0.25);
    box-shadow: 0 20px 40px rgba(0,0,0,0.35);
}

/* =========================================
   PROJECT IMAGE
========================================= */

.project-image{
    width:100%;
    height:240px;
    overflow:hidden;
    background:#0f172a;
}

.project-image img{
    width:100%;
    height:100%;
    object-fit:cover;
    transition:0.4s ease;
}

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

/* =========================================
   PROJECT CONTENT
========================================= */

.project-content{
    padding:28px;
}

.project-content h3{
    font-size:23px;
    margin-bottom:18px;
    line-height:1.4;
}

.project-content p{
    color:var(--text-secondary);
    line-height:1.8;
    margin-bottom:24px;
    font-size:15px;
}

/* =========================================
   TAGS
========================================= */

.tags{
    display:flex;
    flex-wrap:wrap;
    gap:10px;
    margin-bottom:24px;
}

.tag{
    padding:9px 14px;
    border-radius:12px;
    background:#17233b;
    border: 1px solid rgba(255,255,255,0.05);
    color:#dbe4ee;
    font-size:13px;
    font-weight:500;
}

/* =========================================
   LINKS DOS PROJETOS
========================================= */

.project-links{
    display:flex;
    gap:14px;
}

.project-links a{
    text-decoration:none;
    color:var(--text-primary);
    font-size:14px;
    font-weight:600;
    padding:12px 18px;
    border-radius:12px;
    background:#17233b;
    transition:0.3s ease;
}

.project-links a:hover{
    background: linear-gradient( 135deg, var(--blue), var(--purple));
}

/* =========================================
   ABOUT
========================================= */

.about{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:60px;
    align-items:center;
}

.about-text p{
    color:var(--text-secondary);
    line-height:1.9;
    margin-bottom:24px;
    font-size:16px;
}

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

.skills{
    display:flex;
    flex-wrap:wrap;
    gap:14px;
    margin-top:30px;
}

.skill{
    padding:12px 18px;
    border-radius:14px;
    background:#17233b;
    border: 1px solid rgba(255,255,255,0.05);
    transition:0.3s ease;
    font-size:14px;
}

.skill:hover{
    transform:translateY(-3px);
    border-color: rgba(59,130,246,0.35);
}

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

.contact{
    text-align:center;
}

.contact p{
    color:var(--text-secondary);
    margin-bottom:40px;
    font-size:17px;
}

/* =========================================
   SOCIALS
========================================= */

.socials{
    display:flex;
    justify-content:center;
    gap:22px;
}

.socials img{
    width:60px;
    height:60px;
    background-color: #3b82f6;
    border-radius:50%;
}

.social{
    width:60px;
    height:60px;
    display:flex;
    align-items:center;
    justify-content:center;
    border-radius:50%;
    text-decoration:none;
    color:var(--text-primary);
    background:#17233b;
    border: 1px solid rgba(255,255,255,0.05);
    transition:0.3s ease;
    font-weight:600;
}

.social:hover{
    transform:translateY(-5px);
    background: linear-gradient( 135deg, var(--blue), var(--purple));
}

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

footer{
    padding:35px;
    text-align:center;
    color:#64748b;
    border-top: 1px solid rgba(255,255,255,0.05);
    font-size:14px;
}

/* =========================================
   ANIMAÇÕES
========================================= */

.project-card, .hero-card, .skill{
    animation:fadeUp 0.8s ease;
}

@keyframes fadeUp{
    from{
        opacity:0;
        transform:translateY(20px);
    }

    to{
        opacity:1;
        transform:translateY(0);
    }
}

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

@media(max-width:1100px){
    .hero{
        flex-direction:column;
        justify-content:center;
        text-align:center;
        padding-top:160px;
    }

    .buttons{
        justify-content:center;
    }

    .hero-card{
        width:100%;
        max-width:700px;
    }

    .about{
        grid-template-columns:1fr;
    }
}

@media(max-width:850px){
    nav ul{
        display:none;
    }

    .hero-text h1{
        font-size:50px;
    }

    .section-title{
        font-size:38px;
    }
}

@media(max-width:600px){
    .hero-text h1{
        font-size:40px;
    }

    .hero-text p{
        font-size:16px;
    }

    .projects{
        grid-template-columns:1fr;
    }

    .project-content{
        padding:24px;
    }

    section{
        padding:90px 6%;
    }

    header{
        padding:15px 6%;
    }
}
