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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', Arial, sans-serif;
    text-align: left;
    margin: 0;
    background-color: #f0f4f8;
    color: #2d3748;
    line-height: 1.7;
}

/* ── Animated Gradient Header ── */
header {
    background: linear-gradient(270deg, #1a365d, #2b6cb0, #2c5282, #3182ce);
    background-size: 800% 800%;
    animation: gradientShift 12s ease infinite;
    color: white;
    padding: 60px 20px;
    text-align: center;
}

@keyframes gradientShift {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

header h1 {
    font-family: 'Merriweather', Georgia, serif;
    font-size: 2.5rem;
    margin-bottom: 20px;
    font-weight: 700;
}

header img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    margin-bottom: 24px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

header p {
    max-width: 750px;
    margin: 12px auto 0;
    font-size: 1.05rem;
    line-height: 1.8;
    color: #e2e8f0;
}

/* ── Navigation ── */
nav {
    background: #1a365d;
    padding: 12px 20px;
    text-align: center;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

nav a {
    color: #e2e8f0;
    text-decoration: none;
    margin: 0 14px;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    transition: color 0.2s;
}

nav a:hover {
    color: #90cdf4;
}

/* ── Main Content ── */
main {
    max-width: 860px;
    margin: 0 auto;
    padding: 20px;
}

/* ── Cards ── */
.container {
    background: white;
    padding: 32px 36px;
    margin-top: 28px;
    margin-bottom: 0;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 4px 12px rgba(0, 0, 0, 0.04);
    border-left: 4px solid #2b6cb0;
    transition: box-shadow 0.2s, transform 0.2s;
    scroll-margin-top: 60px;
}

.container:hover {
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08), 0 8px 24px rgba(0, 0, 0, 0.06);
}

/* ── Scroll Fade-in ── */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ── Typography ── */
h2 {
    font-family: 'Merriweather', Georgia, serif;
    color: #1a365d;
    font-size: 1.5rem;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid #e2e8f0;
}

p {
    font-size: 1rem;
    text-align: left;
    padding: 0;
}

/* ── Lists ── */
ul {
    padding-left: 20px;
}

li {
    text-align: left;
    padding-right: 3%;
    margin-bottom: 6px;
}

li.small {
    line-height: 1.5;
    margin-bottom: 8px;
}

li.big {
    line-height: 1.7;
    margin-top: 12px;
    font-size: 1.05rem;
}

/* ── Links ── */
a {
    color: #2b6cb0;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-bottom-color 0.2s;
}

a:hover {
    border-bottom-color: #2b6cb0;
}

/* ── Tags ── */
.tag {
    display: inline-block;
    background: #ebf4ff;
    color: #2b6cb0;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-right: 4px;
}

/* ── Employment ── */
.employment-item {
    padding: 12px 0;
    border-bottom: 1px solid #edf2f7;
}

.employment-item:last-child {
    border-bottom: none;
}

.employment-date {
    color: #718096;
    font-size: 0.9rem;
}

/* ── Contact ── */
.contact-box {
    background: #ebf4ff;
    padding: 16px 24px;
    border-radius: 8px;
    display: inline-block;
}

/* ── GitHub Widget ── */
.github-widget {
    overflow-x: auto;
    padding: 8px 0;
}

.github-widget img {
    min-width: 720px;
    width: 100%;
    border-radius: 8px;
}

.github-link {
    display: inline-block;
    background: #1a365d;
    color: white !important;
    padding: 8px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: background 0.2s;
    border-bottom: none !important;
}

.github-link:hover {
    background: #2b6cb0;
    border-bottom: none !important;
}

/* ── Footer ── */
footer {
    text-align: center;
    padding: 32px 20px;
    color: #a0aec0;
    font-size: 0.85rem;
}

/* ── Social Links ── */
.social-links {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.social-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.15);
    color: white !important;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    border-bottom: none !important;
    transition: background 0.2s, transform 0.2s;
}

.social-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    border-bottom: none !important;
}

.social-btn i {
    font-size: 1.2rem;
}


/* ── Back to Top ── */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #2b6cb0;
    color: white !important;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s, transform 0.3s;
    border-bottom: none !important;
    z-index: 200;
}

.back-to-top.show {
    opacity: 1;
    pointer-events: auto;
}

.back-to-top:hover {
    transform: translateY(-3px);
    background: #1a365d;
    border-bottom: none !important;
}


/* ── Responsive ── */
@media (max-width: 600px) {
    header h1 { font-size: 1.8rem; }
    header img { width: 150px; height: 150px; }
    .container { padding: 24px 20px; }
    nav a { margin: 0 8px; font-size: 0.8rem; }
}