@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

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

/* LAYOUT */
body {
    font-family: 'Inter', sans-serif;
    background-color: #0d0d0d;
    color: #f2f2f2;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    padding: 3rem 2rem;
}

.layout {
    display: flex;
    flex-direction: row;
    max-width: 1200px;
    width: 100%;
    gap: 4rem;
    animation: fadeIn 0.8s ease-in;
}

/* SIDEBAR (LEFT) */
.sidebar {
    flex: 0 0 35%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 80vh;
    position: sticky;
    top: 3rem;
}

.intro {
    text-align: left;
}

h1 {
    font-size: 2.4rem;
    font-weight: 700;
    margin-bottom: 0.6rem;
    color: #fff;
}

.subtitle {
    font-size: 1.1rem;
    color: #aaa;
    margin-bottom: 1.5rem;
}

.description {
    color: #ddd;
    font-size: 1rem;
    margin-bottom: 2rem;
}

/* LINKS */
.links {
    display: flex;
    flex-wrap: wrap;
    gap: 1.2rem;
    margin-top: 1.5rem;
    align-items: center;
}

.links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.links a::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #66aaff;
    transition: width 0.3s ease;
}

.links a:hover {
    transform: translateY(-2px);
    opacity: 0.8;
}
.links a:hover::after {
    width: 100%;
}

footer {
    margin-top: 2rem;
    font-size: 0.85rem;
    color: #777;
}
.icon-img {
    width: 34px;
    height: 34px;
    opacity: 0.95;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.icon-img:hover {
    opacity: 1;
    transform: scale(1.1);
}

/* Codeforces logo fix */
.codeforces-icon {
    width: 90px;
    /* fits CF’s wider logo */
    height: auto;
    opacity: 0.95;
}

/* MAIN CONTENT (RIGHT) */
.content {
    flex: 1;
    text-align: left;
}

h2 {
    font-size: 1.4rem;
    margin-bottom: 2rem;
    color: #fff;
    padding-left: 0.6rem;
    border-left: 4px solid #66aaff;
}

.job {
    margin-bottom: 2rem;
    margin-left: 1.5rem;
    padding-left: 1rem;
}
.job h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
    color: #f0f0f0;
}

.year {
    color: #888;
    font-size: 0.9rem;
    margin-top: 0.1rem;
}

.job ul {
    margin-top: 0.6rem;
    padding-left: 1.2rem;
    color: #ccc;
}

.job ul li {
    margin-bottom: 0.5rem;
}

/* ANIMATION */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* RESPONSIVE */
@media (max-width: 850px) {
    .layout {
        flex-direction: column;
        gap: 2rem;
    }

    .sidebar {
        flex: none;
        position: static;
        min-height: auto;
        text-align: center;
    }

    .intro {
        text-align: center;
    }

    .links {
        justify-content: center;
    }

    .content {
        text-align: left;
    }
}
.profile-img {
    width: 100%;
    max-width: 420px;
    height: 300px;
    object-fit: cover;
    object-position: center;
    border-radius: 10px;
    display: block;
    margin: 0 auto 1.2rem auto;
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.6);
    border: 1px solid #222;
}
.profile-img:hover {
    transform: scale(1.01);
    box-shadow: 0 8px 30px rgba(102, 170, 255, 0.25);
    transition: 0.3s ease;
}
/* PUBLICATIONS SECTION */
#publications {
    margin-top: 3rem;
}

.pub ul {
    margin-top: 0.6rem;
    padding-left: 1.2rem;
    color: #ccc;
}

.pub ul li {
    margin-bottom: 1rem;
    line-height: 1.6;
}

.pub strong {
    color: #f2f2f2;
}

.pub em {
    color: #ddd;
    font-style: italic;
}

.pub a {
    color: #66aaff;
    text-decoration: none;
}

.pub a:hover {
    text-decoration: underline;
}
.leetcode-icon {
    width: 32px;
    height: 32px;
    filter: brightness(0) invert(1);
    transition: transform 0.3s ease, opacity 0.3s ease, filter 0.3s ease;
}

.leetcode-icon:hover {
    transform: scale(1.1);
    filter: brightness(1.2) invert(0.9) sepia(1) hue-rotate(30deg);
}
a {
    color: #99cfff;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #c2e0ff;
    text-decoration: underline;
}
.hobbies {
    color: #aaa;
    font-size: 0.95rem;
    margin-top: -0.5rem;
    margin-bottom: 2rem;
    font-style: italic;
}