/* =========================
   GLOBAL
========================= */

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

body{
    background:#081b3a;
    color:#ffffff;
    line-height:1.6;
}

/* =========================
   NAVBAR
========================= */

header{
    position:sticky;
    top:0;
    z-index:1000;
}

.navbar{
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:20px 8%;
    background:#0b2348;
}

.logo{
    font-size:1.2rem;
    color:#ffffff;
}

.navbar ul{
    display:flex;
    list-style:none;
    gap:25px;
}

.navbar ul li a{
    text-decoration:none;
    color:white;
    transition:0.3s;
}

.navbar ul li a:hover{
    color:#60a5fa;
}

.menu{
    display:none;
    font-size:28px;
    cursor:pointer;
}

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

.hero{
    min-height:100vh;
    display:flex;
    justify-content:center;
    align-items:center;
    text-align:center;
    padding:80px 20px;
}

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

.profile-pic{
    width:180px;
    height:180px;
    object-fit:cover;
    border-radius:50%;
    border:5px solid #2563eb;
    margin-bottom:25px;
}

.hero h1{
    font-size:3rem;
    margin-bottom:15px;
}

.hero h1 span{
    color:#60a5fa;
}

.hero p{
    color:#cbd5e1;
    margin-bottom:20px;
}

/* =========================
   BUTTONS
========================= */

.btn{
    display:inline-block;
    text-decoration:none;
    background:#2563eb;
    color:white;
    padding:12px 25px;
    border-radius:8px;
    margin:10px;
    transition:0.3s;
}

.btn:hover{
    transform:translateY(-3px);
}

.cv-btn{
    background:#1e40af;
}

/* =========================
   CONTACT INFO
========================= */

.contact-item{
    margin:15px 0;
    color:#dbeafe;
}

.contact-buttons{
    margin:20px 0;
}

.whatsapp{
    background:#22c55e;
}

.email{
    background:#2563eb;
}

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

.section{
    padding:80px 8%;
    text-align:center;
}

.section h2{
    margin-bottom:20px;
    font-size:2.2rem;
}

.dark{
    background:#0b2348;
}

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

.grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(150px,1fr));
    gap:20px;
    margin-top:30px;
}

.card{
    background:#102a56;
    padding:25px;
    border-radius:12px;
    transition:0.3s;
}

.card:hover{
    transform:translateY(-5px);
}

/* =========================
   CERTIFICATES
========================= */

.cert-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
    gap:25px;
    margin-top:40px;
}

.cert-card{
    background:#102a56;
    padding:15px;
    border-radius:15px;
}

.cert-card img{
    width:100%;
    border-radius:10px;
}

.cert-card p{
    margin-top:10px;
}

/* =========================
   MY WORK
========================= */

#work{
    background:#081b3a;
    padding:80px 8%;
    text-align:center;
}

#work h2{
    font-size:2.3rem;
    margin-bottom:10px;
}

#work p{
    color:#cbd5e1;
    margin-bottom:40px;
}

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

.project-card{
    background:#102a56;
    border-radius:20px;
    overflow:hidden;
    transition:0.4s;
    box-shadow:0 8px 20px rgba(0,0,0,.3);
}

.project-card:hover{
    transform:translateY(-10px);
}

.project-card img{
    width:100%;
    height:220px;
    object-fit:cover;
}

.project-card h3{
    margin:20px 0 10px;
}

.project-card p{
    padding:0 20px;
    color:#dbeafe;
}

.project-card a{
    display:inline-block;
    margin:15px 8px 20px;
    text-decoration:none;
    padding:10px 18px;
    border-radius:8px;
    background:#2563eb;
    color:white;
}

.project-card a:hover{
    background:#1d4ed8;
}

.github-btn{
    background:transparent !important;
    border:2px solid #2563eb;
}

.github-btn:hover{
    background:#2563eb !important;
}

/* =========================
   CONTACT FORM
========================= */

form{
    max-width:600px;
    margin:auto;
}

form input,
form textarea{
    width:100%;
    padding:15px;
    margin:10px 0;
    border:none;
    border-radius:8px;
    background:#102a56;
    color:white;
}

form textarea{
    height:150px;
}

form button{
    background:#2563eb;
    color:white;
    border:none;
    padding:12px 25px;
    border-radius:8px;
    cursor:pointer;
}

form button:hover{
    background:#1d4ed8;
}

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

footer{
    text-align:center;
    padding:20px;
    background:#06142d;
}

/* =========================
   MOBILE NAVBAR
========================= */

@media(max-width:768px){

    .navbar ul{
        display:none;
        flex-direction:column;
        position:absolute;
        top:70px;
        right:20px;
        background:#0b2348;
        padding:20px;
        border-radius:10px;
    }

    .navbar ul.active{
        display:flex;
    }

    .menu{
        display:block;
    }

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

    .project-card img{
        height:200px;
    }
}

/* =========================
   DESKTOP
========================= */

@media(min-width:1024px){

    .project-container{
        grid-template-columns:repeat(3,1fr);
    }

    .cert-grid{
        grid-template-columns:repeat(4,1fr);
    }

    .hero h1{
        font-size:3.5rem;
    }
}