/* ===============================
   Junaid Hossain Portfolio
   style.css
================================= */

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

body{
    font-family:Arial, Helvetica, sans-serif;
    background:#0f172a;
    color:#f8fafc;
    line-height:1.7;
}

.container{
    width:90%;
    max-width:1100px;
    margin:auto;
}

/* Header */

header{
    position:sticky;
    top:0;
    z-index:1000;
    background:#111827;
    box-shadow:0 2px 10px rgba(0,0,0,.4);
}

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

.logo{
    color:#38bdf8;
    font-size:28px;
}

.nav-links{
    display:flex;
    list-style:none;
}

.nav-links li{
    margin-left:25px;
}

.nav-links a{
    color:#fff;
    text-decoration:none;
    transition:.3s;
    font-weight:500;
}

.nav-links a:hover{
    color:#38bdf8;
}

/* Hero */

.hero{
    min-height:100vh;
    display:flex;
    align-items:center;
}

.hero-content{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:60px;
    flex-wrap:wrap;
}

.hero-text{
    flex:1;
}

.hero-text h1{
    font-size:52px;
    margin-bottom:15px;
}

.hero-text span{
    color:#38bdf8;
}

.hero-text h3{
    color:#94a3b8;
    margin-bottom:20px;
}

.hero-text p{
    margin-bottom:30px;
    max-width:600px;
}

.hero-image{
    flex:1;
    text-align:center;
}

.hero-image img{
    width:320px;
    max-width:100%;
    border-radius:50%;
    border:5px solid #38bdf8;
    box-shadow:0 0 30px rgba(56,189,248,.3);
}

/* Buttons */

.buttons{
    display:flex;
    gap:15px;
    flex-wrap:wrap;
}

.btn{
    display:inline-block;
    padding:14px 28px;
    background:#38bdf8;
    color:#fff;
    text-decoration:none;
    border-radius:8px;
    border:none;
    cursor:pointer;
    transition:.3s;
}

.btn:hover{
    transform:translateY(-3px);
    background:#0ea5e9;
}

.secondary{
    background:#334155;
}

.secondary:hover{
    background:#475569;
}

/* Sections */

section{
    padding:80px 0;
}

section h2{
    text-align:center;
    font-size:36px;
    margin-bottom:35px;
    color:#38bdf8;
}

.section-text{
    max-width:800px;
    margin:auto;
    text-align:center;
    color:#cbd5e1;
}

/* Cards */

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

.card,
.project-card{
    background:#1e293b;
    padding:30px;
    border-radius:12px;
    text-align:center;
    transition:.3s;
}

.card:hover,
.project-card:hover{
    transform:translateY(-8px);
    box-shadow:0 12px 25px rgba(0,0,0,.35);
}

.card i{
    font-size:42px;
    color:#38bdf8;
    margin-bottom:15px;
}

.project-card h3{
    margin-bottom:15px;
}

/* Timeline */

.timeline{
    max-width:700px;
    margin:auto;
    list-style:none;
}

.timeline li{
    background:#1e293b;
    margin:15px 0;
    padding:18px;
    border-left:5px solid #38bdf8;
    border-radius:6px;
}

/* Contact */

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

input,
textarea{
    width:100%;
    padding:16px;
    margin-bottom:20px;
    border:none;
    border-radius:8px;
    background:#1e293b;
    color:white;
    font-size:16px;
}

input:focus,
textarea:focus{
    outline:2px solid #38bdf8;
}

/* Footer */

footer{
    background:#111827;
    text-align:center;
    padding:40px 0;
}

.social{
    margin-bottom:20px;
}

.social a{
    color:#fff;
    margin:0 12px;
    font-size:28px;
    transition:.3s;
}

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

/* WhatsApp */

.whatsapp{
    position:fixed;
    right:25px;
    bottom:25px;
    width:60px;
    height:60px;
    background:#25D366;
    color:#fff;
    border-radius:50%;
    display:flex;
    align-items:center;
    justify-content:center;
    text-decoration:none;
    font-size:30px;
    box-shadow:0 5px 20px rgba(0,0,0,.35);
    transition:.3s;
}

.whatsapp:hover{
    transform:scale(1.1);
}

/* Responsive */

@media(max-width:768px){

.hero{
    padding-top:100px;
}

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

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

.nav-links{
    gap:15px;
    flex-wrap:wrap;
    justify-content:center;
}

nav{
    flex-direction:column;
    gap:15px;
}

.hero-image img{
    width:250px;
}

.buttons{
    justify-content:center;
}

section{
    padding:60px 0;
}

}
