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

:root {
    --bg-color: #050505;
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --accent-gradient: linear-gradient(135deg, #00f2fe 0%, #4facfe 100%);
    --card-bg: rgba(255, 255, 255, 0.03);
    --card-border: rgba(255, 255, 255, 0.08);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

body {
    margin: 0;
    padding: 0;
    background-color: var(--bg-color);
    background-image: 
        radial-gradient(circle at 15% 50%, rgba(79, 172, 254, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 85% 30%, rgba(0, 242, 254, 0.08) 0%, transparent 50%);
    background-attachment: fixed;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-primary);
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px 40px;
}

/* Hero Section */
#dhead {
    margin-top: 80px;
    margin-bottom: 60px;
    display: flex;
    align-items: center;
    animation: fadeInDown 1s ease-out;
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

#dpic {
    flex: 0 0 30%;
    text-align: right;
    padding-right: 50px;
    position: relative;
}

.ppic {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 0 40px rgba(79, 172, 254, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ppic:hover {
    transform: scale(1.05);
    box-shadow: 0 0 60px rgba(0, 242, 254, 0.6);
}

#ddesc {
    flex: 0 0 70%;
}

h1 {
    font-size: 48px;
    font-weight: 800;
    margin: 0 0 10px 0;
    letter-spacing: -1px;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

h2 {
    font-size: 18px;
    font-weight: 400;
    color: var(--text-secondary);
    margin: 0 0 25px 0;
    line-height: 1.5;
}

#dico {
    display: flex;
    gap: 20px;
}

#dico a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 12px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    color: var(--text-primary);
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
}

#dico a:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 242, 254, 0.3);
    color: #4facfe;
}

hr {
    border: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--card-border), transparent);
    margin: 50px 0;
}

/* Sections */
.section-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 30px;
    letter-spacing: -0.5px;
    display: inline-block;
}

.bio {
    font-size: 18px;
    font-weight: 300;
    color: #d0d0d0;
    margin-bottom: 40px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    padding: 30px;
    border-radius: 16px;
    backdrop-filter: blur(10px);
    box-shadow: var(--glass-shadow);
    line-height: 1.8;
}

.highlight {
    color: #4facfe;
    font-weight: 600;
}

/* Timeline */
.row {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
}

.entry {
    margin-bottom: 40px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.8s forwards;
}

.entry:nth-child(1) { animation-delay: 0.1s; }
.entry:nth-child(2) { animation-delay: 0.2s; }
.entry:nth-child(3) { animation-delay: 0.3s; }
.entry:nth-child(4) { animation-delay: 0.4s; }
.entry:nth-child(5) { animation-delay: 0.5s; }
.entry:nth-child(6) { animation-delay: 0.6s; }

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

.timespan {
    grid-column: span 2;
    text-align: right;
    padding-right: 25px;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1px;
    padding-top: 15px;
}

.ico {
    grid-column: span 1;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.entry-dot {
    width: 12px;
    height: 12px;
    background: var(--accent-gradient);
    border-radius: 50%;
    margin-top: 18px;
    z-index: 2;
    box-shadow: 0 0 10px rgba(0, 242, 254, 0.5);
}

.ico img {
    margin-top: 20px;
    width: 56px;
    height: 56px;
    object-fit: contain;
    border-radius: 12px;
    background: white;
    padding: 4px;
    z-index: 2;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.2);
    transition: transform 0.3s ease;
}

.ico img:hover {
    transform: scale(1.1) rotate(5deg);
}

.ico::after {
    content: '';
    position: absolute;
    top: 30px;
    bottom: -60px;
    left: 50%;
    width: 2px;
    background: linear-gradient(to bottom, var(--card-border) 0%, rgba(79, 172, 254, 0.5) 50%, var(--card-border) 100%);
    transform: translateX(-50%);
    z-index: 1;
}

.entry:last-child .ico::after {
    display: none;
}

.desc {
    grid-column: span 9;
    padding-left: 30px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    padding: 25px 30px;
    border-radius: 16px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.desc:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(79, 172, 254, 0.3);
    transform: translateX(5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}

.desc strong {
    font-size: 20px;
    color: #fff;
    display: block;
    margin-bottom: 10px;
    font-weight: 700;
}

.vc-bait {
    display: inline-block;
    background: rgba(0, 242, 254, 0.1);
    color: #00f2fe;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    margin-left: 10px;
    vertical-align: middle;
    border: 1px solid rgba(0, 242, 254, 0.2);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.desc p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.7;
}

/* Logos whose artwork is drawn for a dark ground (white marks) keep a dark chip */
.ico img.logo-on-dark {
    background: #0a0f1e;
}

/* Blog post byline */
.post-byline {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    letter-spacing: 0.5px;
    margin: -6px 0 26px 0;
}

/* Links & Lists */
a {
    color: #4facfe;
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: #00f2fe;
    text-decoration: underline;
}

ul.publications-list {
    list-style: none;
    padding: 0;
    display: grid;
    gap: 15px;
}

ul.publications-list li {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s;
    backdrop-filter: blur(5px);
}

ul.publications-list li:hover {
    transform: translateY(-3px);
    border-color: rgba(79, 172, 254, 0.4);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
    background: rgba(255, 255, 255, 0.05);
}

ul.publications-list a {
    color: #e0e0e0;
    font-weight: 500;
    display: block;
}

ul.publications-list li:hover a {
    color: #fff;
    text-decoration: none;
}

.empty-state {
    color: var(--text-secondary);
    font-style: italic;
    background: var(--card-bg);
    padding: 20px;
    border-radius: 10px;
    border: 1px dashed var(--card-border);
    text-align: center;
}

/* Responsive */
@media (max-width: 768px) {
    #dhead {
        flex-direction: column;
        text-align: center;
    }
    #dpic {
        padding-right: 0;
        margin-bottom: 30px;
    }
    #ddesc {
        text-align: center;
    }
    #dico {
        justify-content: center;
    }
    .row {
        display: flex;
        flex-direction: column;
    }
    .timespan {
        text-align: left;
        padding: 0 0 10px 0;
        color: #4facfe;
    }
    .ico {
        display: none;
    }
    .desc {
        padding: 20px;
    }
    .vc-bait {
        display: block;
        margin: 10px 0 0 0;
        width: max-content;
    }
}
