/* ==========================================
   Mohammed Forekan - Certificate Portfolio
   style.css
========================================== */

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

html{
    scroll-behavior:smooth;
}

body{

    font-family:'Inter',sans-serif;

    background:#f6f8fb;

    color:#222;

    line-height:1.7;

}


/* ==========================================
   Header
========================================== */

header{

    max-width:900px;

    margin:auto;

    padding:80px 20px 60px;

    text-align:center;

}

header h1{

    font-size:52px;

    font-weight:800;

    color:#111827;

    margin-bottom:10px;

}

.subtitle{

    color:#2563eb;

    font-size:18px;

    font-weight:600;

    margin-bottom:35px;

    letter-spacing:.5px;

}

.intro{

    font-size:20px;

    color:#222;

    margin-bottom:20px;

}

.description{

    color:#666;

    max-width:760px;

    margin:0 auto 18px;

    font-size:17px;

}


/* ==========================================
   Certificate Grid
========================================== */

main{

    max-width:1400px;

    margin:auto;

    padding:10px 20px 70px;

    display:grid;

    grid-template-columns:repeat(3,1fr);

    gap:28px;

}


/* ==========================================
   Certificate Card
========================================== */

.card{

    background:#fff;

    border-radius:16px;

    border:1px solid #e5e7eb;

    padding:28px;

    box-shadow:0 10px 25px rgba(0,0,0,.05);

    transition:.30s;

    display:flex;

    flex-direction:column;

    justify-content:space-between;

}

.card:hover{

    transform:translateY(-6px);

    box-shadow:0 20px 40px rgba(0,0,0,.10);

}

.card h2{

    font-size:23px;

    line-height:1.45;

    margin-bottom:22px;

    color:#111827;

}

.card p{

    margin-bottom:10px;

    color:#555;

    font-size:15px;

}

.card strong{

    color:#111827;

}


/* ==========================================
   Button
========================================== */

.btn{

    display:block;

    margin-top:25px;

    text-align:center;

    text-decoration:none;

    background:#111827;

    color:#fff;

    padding:14px;

    border-radius:10px;

    font-weight:600;

    transition:.25s;

}

.btn:hover{

    background:#2563eb;

}


/* ==========================================
   Contact
========================================== */

.contact{

    max-width:1200px;

    margin:auto;

    padding:40px 20px 70px;

    text-align:center;

}

.contact h2{

    font-size:34px;

    color:#111827;

    margin-bottom:12px;

}

.contact-text{

    color:#666;

    max-width:700px;

    margin:0 auto 40px;

}

.contact-grid{

    display:grid;

    grid-template-columns:repeat(3,1fr);

    gap:25px;

}

.contact-item{

    background:#fff;

    border-radius:16px;

    border:1px solid #e5e7eb;

    padding:30px 20px;

    box-shadow:0 10px 25px rgba(0,0,0,.05);

    transition:.30s;

}

.contact-item:hover{

    transform:translateY(-5px);

    box-shadow:0 18px 35px rgba(0,0,0,.10);

}

.icon{

    font-size:42px;

    margin-bottom:15px;

}

.contact-item h3{

    margin-bottom:8px;

    color:#111827;

}

.contact-item a{

    color:#2563eb;

    text-decoration:none;

    font-weight:600;

    word-break:break-word;

}

.contact-item a:hover{

    text-decoration:underline;

}


/* ==========================================
   Footer
========================================== */

footer{

    border-top:1px solid #e5e7eb;

    padding:30px 20px;

    text-align:center;

    color:#777;

    font-size:15px;

}


/* ==========================================
   Tablet
========================================== */

@media(max-width:992px){

    main{

        grid-template-columns:repeat(2,1fr);

    }

    .contact-grid{

        grid-template-columns:repeat(2,1fr);

    }

}


/* ==========================================
   Mobile
========================================== */

@media(max-width:768px){

    header{

        padding:60px 20px 40px;

    }

    header h1{

        font-size:38px;

    }

    .subtitle{

        font-size:16px;

    }

    .intro{

        font-size:18px;

    }

    .description{

        font-size:16px;

    }

    main{

        grid-template-columns:1fr;

    }

    .contact-grid{

        grid-template-columns:1fr;

    }

}