/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Segoe UI', Helvetica, Arial, sans-serif;
    color: #1e1e1e;
    line-height: 1.6;
    background: #fff;
}
a { color: #2980b9; text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; border-radius: 4px; }

/* ── Nav ── */
nav {
    position: fixed; top: 0; width: 100%; z-index: 100;
    background: rgba(0, 35, 75, 0.97);
    backdrop-filter: blur(6px);
    padding: 0.6rem 0;
}
nav .nav-inner {
    max-width: 960px; margin: 0 auto; padding: 0 1.5rem;
    display: flex; justify-content: space-between; align-items: center;
}
nav .logo { color: #fff; font-weight: 700; font-size: 1.05rem; }
nav .nav-links a {
    color: rgba(255,255,255,0.8); margin-left: 1.5rem;
    font-size: 0.85rem; font-weight: 500;
    transition: color 0.2s;
}
nav .nav-links a:hover { color: #fff; text-decoration: none; }

/* ── Hero ── */
.hero {
    background: linear-gradient(135deg, #00234b 0%, #003366 50%, #1a5276 100%);
    color: #fff;
    padding: 7rem 1.5rem 3.5rem;
    text-align: center;
}
.hero h1 { font-size: 2.4rem; font-weight: 700; margin-bottom: 0.3rem; }
.hero .subtitle {
    font-size: 1.1rem; color: rgba(255,255,255,0.75);
    margin-bottom: 1.2rem;
}
.hero .contact-links a {
    color: rgba(255,255,255,0.85); margin: 0 0.6rem;
    font-size: 0.9rem;
}
.hero .contact-links a:hover { color: #fff; }
.hero .highlight-bar {
    display: inline-block;
    background: rgba(41,128,185,0.3);
    border: 1px solid rgba(41,128,185,0.5);
    border-radius: 6px;
    padding: 0.5rem 1.2rem;
    margin-top: 1.2rem;
    font-size: 0.95rem;
}
.hero .highlight-bar strong { color: #5dade2; }

/* ── Sections ── */
.section {
    max-width: 960px; margin: 0 auto;
    padding: 3rem 1.5rem 2rem;
}
.section h2 {
    font-size: 1.4rem; color: #003366;
    border-left: 4px solid #2980b9;
    padding-left: 0.7rem;
    margin-bottom: 1.2rem;
}
.section-alt { background: #f4f7fb; }
.section-alt .section { padding-top: 2.5rem; padding-bottom: 2.5rem; }

/* ── About ── */
.about-text { font-size: 0.95rem; max-width: 750px; color: #333; }

/* ── Project Cards ── */
.project-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}
.project-card {
    background: #fff;
    border: 1px solid #e0e6ed;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.section-alt .project-card { background: #fff; }
.project-card .card-body { padding: 1.2rem 1.5rem; }
.project-card h3 {
    font-size: 1.1rem; color: #003366; margin-bottom: 0.3rem;
}
.project-card .card-meta {
    font-size: 0.8rem; color: #888; margin-bottom: 0.5rem;
}
.project-card p { font-size: 0.9rem; color: #444; }
.project-card .card-tags { margin-top: 0.6rem; }
.tag {
    display: inline-block;
    background: #eaf2fa;
    color: #2980b9;
    font-size: 0.75rem;
    padding: 0.2rem 0.55rem;
    border-radius: 3px;
    margin: 0.15rem 0.2rem 0.15rem 0;
    font-weight: 500;
}

/* ── Image gallery in cards ── */
.card-images {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.5rem;
    padding: 1rem 1rem 0;
}
.card-images img {
    border-radius: 4px;
    border: 1px solid #e0e6ed;
}
.card-images.single-img {
    grid-template-columns: 1fr;
    max-width: 700px;
    margin: 0 auto;
}

/* ── Timeline ── */
.timeline-item {
    padding-left: 1.2rem;
    border-left: 2px solid #2980b9;
    margin-bottom: 1.2rem;
    position: relative;
}
.timeline-item::before {
    content: '';
    position: absolute; left: -5px; top: 6px;
    width: 8px; height: 8px;
    background: #2980b9; border-radius: 50%;
}
.timeline-item h3 { font-size: 1rem; color: #003366; margin-bottom: 0.1rem; }
.timeline-item .meta { font-size: 0.85rem; color: #888; margin-bottom: 0.3rem; }
.timeline-item p { font-size: 0.9rem; color: #444; }

/* ── Skills ── */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1rem;
}
.skill-group h4 {
    font-size: 0.85rem; color: #003366;
    margin-bottom: 0.4rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.skill-group .tags { display: flex; flex-wrap: wrap; gap: 0.3rem; }

/* ── Awards ── */
.awards-list { list-style: none; }
.awards-list li {
    padding: 0.4rem 0;
    font-size: 0.9rem;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
}
.awards-list li:last-child { border: none; }
.awards-list .year { color: #888; font-size: 0.85rem; }

/* ── Footer ── */
footer {
    background: #00234b;
    color: rgba(255,255,255,0.7);
    text-align: center;
    padding: 1.5rem;
    font-size: 0.85rem;
}
footer a { color: #5dade2; }

/* ── Responsive ── */
@media (max-width: 600px) {
    .hero h1 { font-size: 1.8rem; }
    .hero .subtitle { font-size: 0.95rem; }
    nav .nav-links a { margin-left: 0.8rem; font-size: 0.78rem; }
    .card-images { grid-template-columns: 1fr; }
}
