:root {
    --coffee-bg: #f7f3ed;
    --coffee-card: #fffaf4;
    --coffee-accent: #795548;
    --coffee-dark: #3e2723;
    --coffee-light: #d7ccc8;
    --coffee-shadow: rgba(121,85,72,0.10);
    --pub-details: #e2ded8;
    --pub-meta: #ad9981;
    --pub-hover: #ede4db;
    --secondary-icon: #b49e89;
    --card-glow: 0 0 18px 0 #ffd69999, 0 0 0 #fff;
    --pub-glow: 0 0 24px 2px #ffd69999, 0 0 0 #fff;
    --pub-glow-hover: 0 0 30px 7px #ffd699bb, 0 0 0 #fff;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2.5vw;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
    background: var(--coffee-bg);
    color: var(--coffee-dark);
    margin: 0;
    padding: 0;
    font-feature-settings: 'cv02', 'cv03', 'cv04', 'cv11';
    -webkit-font-smoothing: antialiased;
}

header {
    background: var(--coffee-card);
    border-bottom: 2px solid var(--coffee-light);
    box-shadow: 0 2px 10px var(--coffee-shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

nav {
    max-width: 1100px;
    margin: auto;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding: 0.5em 1.4em;
    position: relative;
    gap: 0.8em;
}
.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.4em;
    user-select: none;
}
.z-logo {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.z-logo svg {
    width: 34px;
    height: 34px;
    display: block;
}
.brand-name {
    font-size: 1.22em;
    font-weight: 700;
    color: var(--coffee-accent);
    letter-spacing: 1.5px;
    margin-left: 0.12em;
    font-family: inherit;
}

.nav-list-centered {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2.1em;
    flex: 1;
    margin-left: 2em;
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
nav ul li a {
    text-decoration: none;
    color: var(--coffee-dark);
    font-weight: 500;
    font-size: 1.06em;
    transition: color 0.23s;
    border-bottom: 2px solid transparent;
    padding-bottom: 0.13em;
    font-family: inherit;
    letter-spacing: 0.01em;
}
nav ul li a:hover,
nav ul li a:focus {
    color: var(--coffee-accent);
    border-bottom: 2px solid var(--coffee-accent);
}
.linkedin-top {
    display: inline-block;
    margin-left: 1.5em;
    transition: transform 0.14s;
}
.linkedin-top img {
    width: 27px;
    height: 27px;
    vertical-align: middle;
    filter: grayscale(0.2) opacity(0.92);
    transition: filter 0.18s, box-shadow 0.17s;
    border-radius: 4px;
    background: #fff;
}
.linkedin-top:hover img,
.linkedin-top:focus img {
    filter: brightness(1.08) drop-shadow(0 0 6px #bba79188);
    box-shadow: 0 0 10px #d1c1b1;
    background: #f5efe5;
}

/* --- HERO SECTION --- */
.hero {
    display: flex;
    align-items: center;
    gap: 2.2em;
    padding: 2em 0 1.6em 0;
}

.profile-img {
    width: 110px;
    height: 110px;
    max-width: 28vw;
    max-height: 28vw;
    object-fit: cover;
    border-radius: 100px;
    border: 3px solid var(--coffee-accent);
    background: #f3ebe6;
    margin-right: 0.5em;
    box-shadow:
        0 4px 12px rgba(121, 85, 72, 0.3),  /* soft main shadow */
        0 8px 24px rgba(121, 85, 72, 0.15); /* ambient glow */
    transition: box-shadow 0.25s ease-in-out;
}


.hero-content {
    flex: 1;
    min-width: 220px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.18em;
}
.hero h1 {
    font-size: 2.1em;
    margin: 0 0 0.14em 0;
    font-weight: 800;
    color: var(--coffee-dark);
    font-family: inherit;
    letter-spacing: 0.01em;
}
.tagline {
    font-size: 1.14em;
    color: var(--coffee-accent);
    margin-bottom: 0.6em;
    font-weight: 500;
    letter-spacing: 0.01em;
}
.hero-links-main {
    display: flex;
    align-items: center;
    gap: 1em;
    margin-bottom: 0.6em;
    flex-wrap: wrap;
    margin-top: 0.7em;
}
.hero-social img {
    width: 36px;
    height: 36px;
    border-radius: 7px;
    background: #fff;
    box-shadow: 0 2px 7px #f3e5cb55;
    border: 2px solid #e0dacb;
    padding: 7px;
    filter: grayscale(0.08) opacity(0.96);
    transition: box-shadow 0.13s, border 0.12s, filter 0.14s, transform 0.12s;
}
.hero-social:hover img,
.hero-social:focus img {
    box-shadow: 0 0 18px #ffd699bb, 0 0 0 #fff;
    border-color: var(--coffee-accent);
    filter: none;
    transform: scale(1.11);
}
.manual-email {
    font-size: 0.91em;
    color: #846e59;
    font-family: inherit;
    margin: 0 0.4em 0 0.1em;
    user-select: text;
    word-break: break-all;
    font-weight: 400;
}
.hero-btn {
    background: var(--coffee-accent);
    color: #fffaf6;
    padding: 0.44em 1.1em;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1em;
    border: none;
    box-shadow: 0 2px 8px var(--coffee-shadow);
    transition: background 0.18s, transform 0.18s;
    display: inline-block;
    margin-top: 0.5em;
    font-family: inherit;
}
.hero-btn:hover, .hero-btn:focus {
    background: #4e342e;
    transform: translateY(-2px) scale(1.03);
}

/* --- SECTION CARDS --- */
.section.card {
    background: var(--coffee-card);
    border-radius: 14px;
    box-shadow: 0 4px 16px var(--coffee-shadow);
    padding: 1.4em 1.1em;
    margin-bottom: 2em;
}

/* --- ABOUT ME --- */
#about p {
    text-align: justify;
}

/* CARD LIST for Education/Experience */
.card-list {
    display: flex;
    flex-direction: column;
    gap: 1.2em;
}
.inst-card {
    display: flex;
    align-items: flex-start;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 14px var(--coffee-shadow);
    border: 1.5px solid #efebe3;
    padding: 1.1em 1.3em;
    transition: box-shadow 0.23s, border 0.23s, transform 0.17s;
    gap: 1.18em;
}
.inst-card:hover, .inst-card:focus {
    box-shadow: var(--card-glow);
    border: 1.5px solid #f9dbbb;
    transform: translateY(-2px) scale(1.017);
    z-index: 1;
}
/* Bigger logos in Education/Work */
.inst-logo {
    width: 58px;
    height: 58px;
    border-radius: 12px;
    background: #fff;
    object-fit: contain;
    box-shadow: 0 1px 6px #f3e5cb66;
    border: 1.7px solid #e0dacb;
    margin-right: 1em;
    flex-shrink: 0;
}
/* Chocolate links in Education/Experience */
.inst-card a {
    color: var(--coffee-accent);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.14s;
}
.inst-card a:hover, .inst-card a:focus {
    color: #4e342e;
    text-decoration: underline;
}

/* --- PUBLICATIONS: CARD GLOW --- */
.pub-list li {
    background: #fff;
    border-radius: 13px;
    box-shadow: var(--pub-glow);
    border: 1.6px solid #f3e1c7;
    margin-bottom: 1.25em;
    padding: 1.1em 1.2em;
    transition: box-shadow 0.26s, border 0.19s, transform 0.17s, background 0.18s;
    position: relative;
    list-style: decimal inside;
}
.pub-list li:last-child { margin-bottom: 0; }
.pub-list li.pub-hover,
.pub-list li:hover,
.pub-list li:focus-within {
    background: var(--pub-hover);
    box-shadow: var(--pub-glow-hover);
    border-color: #ffdaab;
    transform: translateY(-2px) scale(1.014);
    z-index: 1;
}
.pub-list a {
    font-weight: 600;
    color: var(--coffee-accent);
    text-decoration: none;
    transition: color 0.16s;
}
.pub-list a:hover, .pub-list a:focus {
    color: var(--coffee-dark);
    text-decoration: underline;
}
.pub-meta {
    font-size: 0.97em;
    color: var(--pub-meta);
    margin-top: 0.18em;
}
.pub-details {
    display: block;
    color: #ab8864;
    font-size: 0.93em;
    margin-top: 0.06em;
    letter-spacing: 0.01em;
    background: var(--pub-details);
    padding: 0.11em 0.5em;
    border-radius: 8px;
    margin-left: -0.4em;
    width: fit-content;
}

/* Awards */
.section ul {
    padding-left: 1.1em;
}

/* --- ACHIEVEMENTS SECTION --- */
#achievements ul {
    padding-left: 1.1em;
    margin: 0.7em 0 0 0;
}
#achievements li {
    margin-bottom: 0.5em;
    font-size: 1.06em;
    color: var(--coffee-dark);
}
#achievements h2 {
    margin-bottom: 0.5em;
}

/* Socials Section (BOTTOM, bigger icons) */
.socials-section {
    background: var(--coffee-card);
    margin: 2em auto 0 auto;
    max-width: 600px;
    border-radius: 15px;
    box-shadow: 0 2px 14px var(--coffee-shadow);
    padding: 1.4em 1.1em 1.7em 1.1em;
    text-align: center;
}
.socials-section h2 {
    font-size: 1.12em;
    color: var(--coffee-accent);
    margin-bottom: 1.1em;
    font-weight: 700;
}
.socials-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1.1em;
    justify-content: center;
    align-items: center;
    margin-top: 0.2em;
}
.socials-row a img {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 2px 6px #edd4b8bb;
    filter: grayscale(0.15) opacity(0.93);
    transition: filter 0.15s, box-shadow 0.16s, transform 0.13s;
    padding: 5px;
}
.socials-row a:hover img, .socials-row a:focus img {
    filter: none;
    box-shadow: 0 0 16px #ffe0b2;
    background: #f6e7cf;
    transform: scale(1.11) translateY(-2px);
}

footer {
    background: var(--coffee-light);
    text-align: center;
    padding: 0.5em 0 0.7em 0;
    color: var(--coffee-accent);
    font-size: 0.95em;
    margin-top: 2em;
    border-radius: 0 0 10px 10px;
    box-shadow: 0 -2px 8px var(--coffee-shadow);
    font-family: inherit;
}

/* Responsive Design */
@media (max-width: 1100px) {
    .container {
        max-width: 97vw;
        padding: 0 1vw;
    }
    nav {
        max-width: 97vw;
        padding: 0.5em 0.4em;
    }
}

@media (max-width: 900px) {
    .container {
        padding: 0 0.4em;
    }
    main {
        max-width: 97vw;
        padding: 0 0.4em;
    }
    nav {
        max-width: 97vw;
        padding: 0.5em 0.4em;
    }
    .nav-list-centered {
        margin-left: 0.8em;
    }
}

@media (max-width: 700px) {
    .container {
        padding: 0 0.2em;
    }
    .hero {
        flex-direction: column;
        text-align: center;
        gap: 1em;
        padding: 1.1em 0.5em;
    }
    .profile-img {
        width: 75px;
        height: 75px;
        max-width: 35vw;
        max-height: 35vw;
    }
    .nav-list-centered {
        gap: 0.8em;
        font-size: 0.98em;
        margin-left: 0.2em;
    }
    .z-logo {
        width: 28px;
        height: 28px;
    }
    .hero-links-main {
        gap: 0.7em;
        justify-content: center;
    }
    .inst-logo {
        width: 45px;
        height: 45px;
    }
    .inst-card {
        padding: 0.8em 0.7em;
        gap: 0.7em;
    }
    .hero-content {
        align-items: center;
    }
    .manual-email {
        margin: 0 0.3em 0 0.1em;
    }
}
@media (max-width: 480px) {
    .container {
        padding: 0 0.1em;
    }
    nav {
        flex-direction: column;
        gap: 0.5em;
    }
    main {
        padding: 0.2em;
    }
    .section.card {
        padding: 1em 0.6em;
    }
    .section h2 {
        font-size: 1em;
        padding-left: 0.35em;
    }
    .inst-logo {
        width: 32px;
        height: 32px;
    }
    .hero-links-main {
        gap: 0.38em;
        font-size: 0.96em;
    }
    .card-list {
        gap: 0.7em;
    }
}
