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

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
    font-weight: 400;
    line-height: 1.7;
    color: #e0e4f5;
    background-color: #050507;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Banner */
header {
    width: 100%;
    max-width: 800px;
}

.banner-wrap {
    width: 100%;
    line-height: 0;
}

.banner-wrap svg {
    display: block;
    width: 100%;
    height: auto;
}

.subtitle {
    text-align: center;
    font-size: 1rem;
    font-weight: 300;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: #9aa4c9;
    padding: 1.5rem 1rem 0;
    line-height: 1;
}

/* Main content */
main {
    width: 100%;
    max-width: 800px;
    padding: 3rem 1.5rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

section h2 {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #c0c5db;
    margin-bottom: 1rem;
}

/* About */
.about p {
    font-size: 1.05rem;
    font-weight: 300;
    color: #c0c5db;

}

/* Social links */
.social {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.social a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #e0e4f5;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 400;
    padding: 0.5rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    transition: border-color 0.25s, color 0.25s, background-color 0.25s;
}

.social a:hover {
    color: #fff;
    border-color: #5a22ff;
    background-color: rgba(90, 34, 255, 0.08);
}

.social a svg {
    flex-shrink: 0;
}

/* Skills */
.skill-group {
    margin-bottom: 1rem;
}

.skill-group h3 {
    font-size: 0.8rem;
    font-weight: 500;
    color: #9aa4c9;
    margin-bottom: 0.5rem;
}

.pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.pill {
    font-size: 0.85rem;
    font-weight: 400;
    color: #e0e4f5;
    padding: 0.35rem 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;
}

/* Experience */
.role {
    margin-bottom: 2rem;
    padding-left: 1.25rem;
    border-left: 2px solid rgba(90, 34, 255, 0.3);
}

.role:last-child {
    margin-bottom: 0;
}

.role-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.role-header h3 {
    font-size: 1.05rem;
    font-weight: 600;
    color: #e0e4f5;
    margin: 0;
}

.role-title {
    font-size: 0.95rem;
    font-weight: 400;
    color: #9aa4c9;
    margin: 0.1rem 0;
}

.role-meta {
    font-size: 0.8rem;
    font-weight: 300;
    color: #6a6e85;
    margin: 0;
}

.role-dates {
    font-size: 0.8rem;
    font-weight: 300;
    color: #6a6e85;
    white-space: nowrap;
    padding-top: 0.15rem;
}

.role ul {
    list-style: none;
    padding: 0;
}

.role li {
    font-size: 0.9rem;
    font-weight: 300;
    color: #c0c5db;
    padding: 0.25rem 0;
    padding-left: 1rem;
    position: relative;
}

.role li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.7rem;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #5a22ff;
}

/* Education */
.edu-entry {
    margin-bottom: 1.5rem;
    padding-left: 1.25rem;
    border-left: 2px solid rgba(90, 34, 255, 0.3);
}

.edu-entry:last-child {
    margin-bottom: 0;
}

.edu-header {
    margin-bottom: 0.5rem;
}

.edu-header h3 {
    font-size: 1.05rem;
    font-weight: 600;
    color: #e0e4f5;
    margin: 0;
}

.edu-school {
    font-size: 0.9rem;
    font-weight: 300;
    color: #9aa4c9;
}

.edu-entry p {
    font-size: 0.9rem;
    font-weight: 300;
    color: #c0c5db;
    margin: 0.2rem 0;
}

/* Publications */
.publications ul {
    list-style: none;
    padding: 0;
}

.publications li {
    font-size: 0.9rem;
    font-weight: 300;
    color: #c0c5db;
    padding: 0.4rem 0;
    padding-left: 1.25rem;
    border-left: 2px solid rgba(90, 34, 255, 0.3);
    margin-bottom: 0.75rem;
}

.publications li:last-child {
    margin-bottom: 0;
}

/* Contact form */
.contact form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 500px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.form-group label {
    font-size: 0.8rem;
    font-weight: 500;
    color: #9aa4c9;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.form-group input,
.form-group textarea {
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 300;
    color: #e0e4f5;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    padding: 0.6rem 0.75rem;
    transition: border-color 0.25s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #5a22ff;
}

.form-group textarea {
    resize: vertical;
}

.contact button {
    align-self: flex-start;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 500;
    color: #e0e4f5;
    background: rgba(90, 34, 255, 0.15);
    border: 1px solid rgba(90, 34, 255, 0.4);
    border-radius: 6px;
    padding: 0.6rem 1.5rem;
    cursor: pointer;
    transition: background-color 0.25s, border-color 0.25s, color 0.25s;
}

.contact button:hover {
    background: rgba(90, 34, 255, 0.3);
    border-color: #5a22ff;
    color: #fff;
}

/* Footer */
footer {
    width: 100%;
    max-width: 800px;
    padding: 3rem 1.5rem 2rem;
    margin-top: auto;
}

footer p {
    font-size: 0.8rem;
    font-weight: 300;
    color: #4a4e65;
}

/* Fade-in on scroll */
.fade-section {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

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

/* Responsive */
@media (max-width: 600px) {
    .subtitle {
        font-size: 0.85rem;
        letter-spacing: 0.15em;
    }

    main {
        padding: 2rem 1rem 1.5rem;
        gap: 2rem;
    }

    .social {
        flex-direction: column;
        gap: 0.75rem;
    }

    .social a {
        justify-content: center;
    }

    .role-header {
        flex-direction: column;
        gap: 0.25rem;
    }

    .role-dates {
        padding-top: 0;
    }
}
