/* Reset + base */
* { margin:0; padding:0; box-sizing:border-box; }
body { font-family:'Inter',sans-serif; line-height:1.6; color:#222; background:#fafafa; }
.container { max-width:1100px; margin:auto; padding:0 20px; }
section { padding:80px 0; }
h2 { font-weight:600; margin-bottom:30px; font-size:2rem; }
.accent { color:#0077b6; }
.btn-primary { display:inline-block; background:#0077b6; color:#fff; padding:12px 28px; border:none; border-radius:4px; cursor:pointer; transition:.3s; }
.btn-primary:hover { background:#005f8f; }
.primary { display:inline-block; color:#005F8FFF; padding:12px 28px; border:none; border-radius:4px; cursor:pointer; transition:.3s; }
.primary:hover { background:#005f8f; color:#FFFFFF; }
/* Navbar */
header { background:#fff; box-shadow:0 2px 8px rgba(0,0,0,.05); position:sticky; top:0; z-index:999; }
.nav-container { display:flex; align-items:center; justify-content:space-between; padding:15px 20px; }
.logo { font-weight:600; font-size:1.5rem; color:#0077b6; }
nav ul { list-style:none; display:flex; gap:30px; }
nav a { text-decoration:none; color:#222; font-weight:500; transition:.3s; }
nav a:hover { color:#0077b6; }
.hamburger { display:none; background:none; border:none; font-size:1.4rem; cursor:pointer; }

/* Hero */
#hero { background:linear-gradient(135deg,#0077b6 0%, #00b4d8 100%); color:#fff; text-align:center; padding:120px 20px; }
.hero-content h1 { font-size:2.8rem; margin-bottom:15px; }
.hero-content p { font-size:1.2rem; margin-bottom:30px; max-width:600px; margin-left:auto; margin-right:auto; }

/* About */
.grid-2 { display:grid; grid-template-columns:1fr 300px; gap:50px; align-items:center; }
.profile-img { width:100%; border-radius:8px; box-shadow:0 4px 20px rgba(0,0,0,.1); }
.skills-list { margin-top:20px; list-style:none; display:flex; flex-wrap:wrap; gap:10px; }
.skills-list li { background:#e0f0ff; padding:6px 14px; border-radius:4px; font-size:.9rem; }

/* Projects */
.projects-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(300px,1fr)); gap:30px; }
.project-card { background:#fff; border-radius:8px; overflow:hidden; box-shadow:0 4px 12px rgba(0,0,0,.08); transition:.3s; }
.project-card:hover { transform:translateY(-5px); }
.project-card img { width:100%; height:180px; object-fit:cover; }
.project-card h3 { padding:15px 20px 5px; font-size:1.2rem; }
.project-card p { padding:0 20px 15px; font-size:.95rem; color:#555; }
.tags { padding:0 20px 10px; display:flex; flex-wrap:wrap; gap:8px; }
.tags span { background:#f3f3f3; font-size:.75rem; padding:4px 10px; border-radius:3px; }
.link { display:block; margin:0 20px 20px; text-decoration:none; font-weight:600; color:#0077b6; }

/* Blog */
.blog-list { display:flex; flex-direction:column; gap:20px; }
.blog-card { background:#fff; border-radius:8px; padding:20px; box-shadow:0 2px 8px rgba(0,0,0,.06); text-decoration:none; color:#222; transition:.3s; }
.blog-card:hover { box-shadow:0 4px 16px rgba(0,0,0,.1); }
.blog-card h3 { margin-bottom:8px; font-size:1.2rem; }
.blog-card p { color:#555; }
.blog-card small { color:#888; }

/* Contact */
form { display:flex; flex-direction:column; gap:15px; max-width:600px; margin:0 auto 30px; }
input, textarea { padding:12px; border:1px solid #ccc; border-radius:4px; font-family:inherit; }
.socials { display:flex; justify-content:center; gap:25px; font-size:1.6rem; }
.socials a { color:#0077b6; transition:.3s; }
.socials a:hover { color:#005f8f; }

/* Footer */
footer { text-align:center; padding:30px 0; background:#f0f0f0; color:#666; }

/* Responsive */
@media (max-width:768px) {
    nav { display:none; width:100%; }
    nav.active { display:block; }
    nav ul { flex-direction:column; gap:15px; padding:20px 0; }
    .hamburger { display:block; }
    .grid-2 { grid-template-columns:1fr; text-align:center; }
}
/* --- Blog article pages --- */
.article-header{
    background:#0077b6;
    color:#fff;
    padding:60px 20px 30px;
    text-align:center;
}
.article-header h1{ font-size:2.2rem; margin-bottom:10px; }
.article-meta{ font-size:0.9rem; opacity:0.9; }

.article-body{
    max-width:700px;
    margin:40px auto;
    padding:0 20px;
    line-height:1.8;
}
.article-body h2{ margin:40px 0 15px; }
.article-body pre{
    background:#f4f4f4;
    padding:15px;
    border-radius:4px;
    overflow-x:auto;
}
.back-link{
    display:inline-block;
    margin-top:40px;
    color:#0077b6;
    font-weight:600;
}

/* ---- TIME SLIDER ---- */
.time-slider-bar{
    position:sticky;
    top:60px;          /* just below the nav */
    z-index:98;
    background:#fff;
    padding:12px 0;
    box-shadow:0 2px 4px rgba(0,0,0,.1);
}
.time-slider-bar label{ margin-right:10px; font-weight:600; }
#dateSlider{
    width:250px;
    vertical-align:middle;
}
#sliderLabel{
    margin-left:10px;
    min-width:80px;
    display:inline-block;
}
/* highlight effect on target heading */
.scroll-target{
    animation:flash .8s ease-in-out;
}
@keyframes flash{
    0%  {background:#fff;}
    50% {background:#0077b61a;}
    100%{background:#fff;}
}
/* Contact form tweaks */
form label{
    display:block;
    margin:18px 0 6px;
    font-weight:600;
}
form input, form textarea{
    width:100%;
    padding:12px;
    border:1px solid #ccc;
    border-radius:4px;
    font-family:inherit;
}
/* Hero two-column layout */
.hero-with-stats{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:40px;
    flex-wrap:wrap;
}
.hero-text{
    flex:1 1 400px;
}
.hero-stats{
    flex:0 0 360px;
}
.hero-stats img{
    width:100%;
    border-radius:8px;
    box-shadow:0 4px 12px rgba(0,0,0,.15);
}

/* Mobile stack */
@media(max-width:768px){
    .hero-with-stats{
        flex-direction:column;
        text-align:center;
    }
    .hero-stats{
        flex:1 1 auto;
        max-width:280px;
    }
}