/* ─── Reset & Base ─── */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --bg:        #dceeff;
    --surface:   #f5f9ff;
    --navy:      #1a2e5a;
    --blue:      #2b4aa7;
    --sky:       #6ab4fa;
    --accent:    #e8a020;
    --text:      #1a2e5a;
    --muted:     #4a6080;
    --white:     #ffffff;
    --radius:    12px;
    --shadow:    0 4px 20px rgba(26, 46, 90, 0.12);
}

body {
    font-family: 'DM Sans', sans-serif;
    font-size: 17px;
    background-color: var(--bg);
    background-image:
        radial-gradient(circle at 20% 20%, rgba(106,180,250,0.35) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(43,74,167,0.18) 0%, transparent 50%);
    min-height: 100vh;
    color: var(--text);
}

/* ─── Layout Wrapper ─── */
.wrapper {
    max-width: 860px;
    margin: 2.5rem auto;
    padding: 0 1.5rem;
    animation: fadeUp 0.55s ease both;
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(18px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ─── Header ─── */
header {
    background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 100%);
    border-radius: var(--radius) var(--radius) 0 0;
    padding: 1.2rem 2rem;
    box-shadow: var(--shadow);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.header-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    color: var(--white);
    letter-spacing: 0.5px;
}

.header-copy {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.6);
    font-weight: 300;
}

/* ─── Navigation ─── */
nav {
    background-color: var(--navy);
    border-top: 1px solid rgba(255,255,255,0.08);
}

.menu {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    padding: 0 1rem;
}

.menu li a {
    display: block;
    padding: 0.85rem 1.1rem;
    color: rgba(255,255,255,0.78);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.3px;
    transition: color 0.2s, background 0.2s;
    border-bottom: 3px solid transparent;
}

.menu li a:hover {
    color: var(--white);
    background: rgba(255,255,255,0.06);
    border-bottom-color: var(--accent);
}

/* ─── Welcome Banner ─── */
.welcome-banner {
    background: var(--blue);
    padding: 0.65rem 2rem;
    border-left: 4px solid var(--accent);
}

.welcome-sub {
    color: rgba(255,255,255,0.88);
    font-size: 0.92rem;
    font-weight: 300;
}

/* ─── Intro Card ─── */
.intro {
    background: var(--surface);
    border-radius: 0 0 var(--radius) var(--radius);
    padding: 2.5rem 2.5rem 2rem;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

/* ─── Decorative Blobs ─── */
.blob {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

.blob-1 {
    width: 220px;
    height: 220px;
    top: -60px;
    right: -60px;
    background: radial-gradient(circle, rgba(106,180,250,0.22), transparent 70%);
    animation: drift 8s ease-in-out infinite alternate;
}

.blob-2 {
    width: 140px;
    height: 140px;
    bottom: 60px;
    left: -40px;
    background: radial-gradient(circle, rgba(232,160,32,0.13), transparent 70%);
    animation: drift 11s ease-in-out infinite alternate-reverse;
}

@keyframes drift {
    from { transform: translate(0, 0) scale(1); }
    to   { transform: translate(12px, -12px) scale(1.06); }
}

/* ─── Intro Top Row (avatar + text) ─── */
.intro-top {
    display: flex;
    align-items: flex-start;
    gap: 1.75rem;
    position: relative;
    z-index: 1;
    margin-bottom: 1.75rem;
}

/* ─── Avatar ─── */
.avatar {
    flex-shrink: 0;
    width: 76px;
    height: 76px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 100%);
    color: var(--white);
    font-family: 'Playfair Display', serif;
    font-size: 1.55rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(26,46,90,0.25);
    border: 3px solid var(--accent);
    letter-spacing: 1px;
    animation: popIn 0.5s 0.3s cubic-bezier(0.34,1.56,0.64,1) both;
}

@keyframes popIn {
    from { opacity: 0; transform: scale(0.6); }
    to   { opacity: 1; transform: scale(1); }
}

/* ─── Intro Text Block ─── */
.intro-text-block {
    flex: 1;
}

.intro-heading {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    color: var(--navy);
    margin-bottom: 0.75rem;
    line-height: 1.2;
}

.intro-heading em {
    font-style: italic;
    color: var(--blue);
}

.intro-text {
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.9;
    margin-bottom: 1.2rem;
}

.intro-badge {
    display: inline-block;
    background: var(--navy);
    color: var(--white);
    font-size: 0.78rem;
    font-weight: 500;
    padding: 0.35rem 0.9rem;
    border-radius: 50px;
    letter-spacing: 0.4px;
}

/* ─── Skill Tags ─── */
.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.75rem;
    position: relative;
    z-index: 1;
    animation: fadeUp 0.5s 0.45s ease both;
}

.tag {
    background: rgba(43,74,167,0.08);
    color: var(--blue);
    border: 1px solid rgba(43,74,167,0.2);
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 500;
    padding: 0.3rem 0.85rem;
    letter-spacing: 0.3px;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
    cursor: default;
}

.tag:hover {
    background: var(--blue);
    color: var(--white);
    border-color: var(--blue);
}

/* ─── Divider ─── */
.divider {
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(26,46,90,0.12), transparent);
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

/* ─── Section Label ─── */
.section-label {
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 0.9rem;
    position: relative;
    z-index: 1;
    animation: fadeUp 0.5s 0.5s ease both;
}

/* ─── Nav Cards ─── */
.nav-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.85rem;
    position: relative;
    z-index: 1;
    animation: fadeUp 0.5s 0.55s ease both;
}

.nav-card {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    background: var(--white);
    border: 1px solid rgba(26,46,90,0.08);
    border-radius: 10px;
    padding: 1rem 1.1rem;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(26,46,90,0.06);
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.nav-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(26,46,90,0.13);
    border-color: rgba(43,74,167,0.25);
}

.nav-card-icon {
    font-size: 1.2rem;
    margin-bottom: 0.3rem;
    color: var(--accent);
}

.nav-card-title {
    font-family: 'Playfair Display', serif;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--navy);
}

.nav-card-desc {
    font-size: 0.8rem;
    color: var(--muted);
    font-weight: 300;
}

/* ─── Responsive ─── */
@media (max-width: 560px) {
    .wrapper {
        margin: 1rem auto;
    }

    .intro {
        padding: 1.75rem 1.25rem 1.5rem;
    }

    .intro-top {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 1.25rem;
    }

    .intro-heading {
        font-size: 1.7rem;
    }

    .skill-tags {
        justify-content: center;
    }

    .nav-cards {
        grid-template-columns: 1fr;
    }

    .menu li a {
        padding: 0.75rem 0.75rem;
        font-size: 0.88rem;
    }
}
