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

:root {
    /* Modern Sleek Theme */
    --bg: #f8f6f3;
    --bg-secondary: #fefcf9;
    --bg-tertiary: #f5f3f0;
    --text: #2d2d2d;
    --text-secondary: #5a5a5a;
    --text-muted: #8a8a8a;
    --accent: #0ea5e9;
    --accent-hover: #0284c7;
    --accent-light: #e0f2fe;
    --primary-color: #2563eb;
    --success-color: #10b981;
    --border: #e5e0d8;
    --border-light: #f0ede7;
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 4px 12px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 20px 25px rgba(0, 0, 0, 0.1), 0 10px 10px rgba(0, 0, 0, 0.04);
    --maxw: 1400px;
    --border-radius: 12px;
    --border-radius-lg: 16px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --gradient-primary: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
    --gradient-accent: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #111111;
        --bg-secondary: #1a1a1a;
        --bg-tertiary: #222222;
        --text: #ffffff;
        --text-secondary: #d0d0d0;
        --text-muted: #a0a0a0;
        --accent: #0ea5e9;
        --accent-hover: #0284c7;
        --accent-light: #0c4a6e;
        --primary-color: #3b82f6;
        --success-color: #34d399;
        --border: #333333;
        --border-light: #2a2a2a;
        --shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
        --shadow-hover: 0 4px 12px rgba(0, 0, 0, 0.4);
        --shadow-lg: 0 20px 25px rgba(0, 0, 0, 0.4), 0 10px 10px rgba(0, 0, 0, 0.1);
        --gradient-primary: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
        --gradient-accent: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
    }
    
    body {
        background-color: #111111;
        background-image: linear-gradient(
            32deg,
            rgba(255, 255, 255, 0.2) 2px,
            transparent 2px
        );
        background-size: 20px 20px;
        background-position: 0 0;
    }
}

html {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--text);
    background: var(--bg-secondary);
    line-height: 1.7;
    font-size: 16px;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    letter-spacing: -0.01em;
}

/* Subtle dot pattern background */
body {
    margin: 0;
    padding: 0;
    background-color: var(--bg);
    background-image: radial-gradient(circle, rgba(0, 0, 0, 0.25) 1px, transparent 1px);
    background-size: 20px 20px;
    background-position: 0 0;
}

.container {
    background: transparent;
}


/* Clean scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg);
}

::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent);
}

/* Global layout */
.container {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 0 120px;
    position: relative;
}

.section {
    padding: 60px 0 40px;
    background: transparent;
    position: relative;
}


.section h2 {
    margin: 0 0 40px;
    font-size: 2rem;
    font-weight: 500;
    color: var(--text);
    text-align: center;
    position: relative;
    letter-spacing: -0.01em;
    line-height: 1.2;
}

.section h2::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 1px;
    background: var(--accent);
    border-radius: 1px;
}

/* About Section Layout */
.about-content {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 40px;
    align-items: start;
    margin-top: 58px;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
    background: var(--bg-secondary);
    padding: 32px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.about-header h2 {
    margin: 0;
    font-size: 2.25rem;
    font-weight: 600;
    color: var(--text);
    text-align: left;
    position: relative;
}

.about-header h2::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--accent);
    border-radius: 1px;
}

.about-body {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.about-body p {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text);
    font-weight: 400;
    margin-bottom: 16px;
}

.about-body strong {
    font-weight: 500;
    color: var(--text);
}

.ucsd-text {
    color: white;
    font-weight: 800;
    font-size: 1.3rem;
}

.meta {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
    font-weight: 400;
    margin-top: 4px;
}

.skip {
    position: absolute;
    left: -9999px;
}

.skip:focus {
    left: 10px;
    top: 10px;
    background: #fff;
    padding: 8px 12px;
    border-radius: 8px;
    box-shadow: var(--ring);
}

/* HERO */
.hero {
    padding: 80px 100px 60px;
    background: transparent;
    position: relative;
    overflow: hidden;
}

.hero-content {
    display: grid;
    grid-template-columns: 400px 1fr 200px;
    gap: 80px;
    align-items: center;
    max-width: var(--maxw);
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.hero-img {
    width: 320px;
    height: 400px;
    border-radius: 4px;
    object-fit: cover;
    border: 1px solid var(--border);
    box-shadow: none;
    transition: none;
    justify-self: center;
    position: relative;
    z-index: 1;
}

.hero-img:hover {
    transform: none;
    box-shadow: none;
    border-color: var(--accent);
}

.hero-info {
    text-align: left;
}

.hero-name {
    font-size: 2.5rem;
    font-weight: 600;
    margin: 0 0 16px;
    color: var(--text);
    letter-spacing: -0.01em;
    line-height: 1.1;
}

.hero-tagline {
    color: var(--text-secondary);
    margin: 0 0 24px;
    font-size: 1.125rem;
    font-weight: 400;
    line-height: 1.5;
}


.btn {
    padding: 10px 16px;
    border-radius: 8px;
    background: var(--bg-secondary);
    color: var(--text);
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid var(--border);
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 6px;
    justify-content: center;
    white-space: nowrap;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.6s ease;
}

.btn:hover::before {
    left: 100%;
}

.btn:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: var(--shadow-hover);
    border-color: var(--accent);
}

.btn:active {
    transform: translateY(0) scale(0.98);
}


/* Social Grid */
.social-grid {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Resume Button */
.resume-button {
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #1f2937;
    padding: 12px 16px;
    border-radius: 9999px;
    color: white;
    letter-spacing: 0.05em;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    text-decoration: none;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 500;
    width: 180px;
    transition: all 0.5s ease;
    border: none;
    font-size: 1rem;
    margin: 0 auto;
}

.resume-button:hover {
    background: #111827;
    transform: scale(1.05);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.resume-icon {
    width: 20px;
    height: 20px;
    animation: bounce 1s infinite;
}

@keyframes bounce {
    0%, 20%, 53%, 80%, 100% {
        transform: translateY(0);
    }
    40%, 43% {
        transform: translateY(-8px);
    }
    70% {
        transform: translateY(-4px);
    }
    90% {
        transform: translateY(-2px);
    }
}

.main {
    display: flex;
    flex-direction: column;
    gap: 0.5em;
}

.up {
    display: flex;
    flex-direction: row;
    gap: 0.5em;
}

.down {
    display: flex;
    flex-direction: row;
    gap: 0.5em;
}

.card1 {
    width: 70px;
    height: 70px;
    outline: none;
    border: none;
    background: white;
    border-radius: 70px 5px 5px 5px;
    box-shadow: rgba(50, 50, 93, 0.25) 0px 2px 5px -1px,
        rgba(0, 0, 0, 0.3) 0px 1px 3px -1px;
    transition: 0.2s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    padding: 2px 0 0 2px;
}

.cv-icon {
    fill: #2563eb;
}

.card2 {
    width: 70px;
    height: 70px;
    outline: none;
    border: none;
    background: white;
    border-radius: 5px 70px 5px 5px;
    box-shadow: rgba(50, 50, 93, 0.25) 0px 2px 5px -1px,
        rgba(0, 0, 0, 0.3) 0px 1px 3px -1px;
    transition: 0.2s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    padding: 2px 2px 0 0;
}

.scholar-icon {
    fill: #4285f4;
}

.card3 {
    width: 70px;
    height: 70px;
    outline: none;
    border: none;
    background: white;
    border-radius: 5px 5px 5px 70px;
    box-shadow: rgba(50, 50, 93, 0.25) 0px 2px 5px -1px,
        rgba(0, 0, 0, 0.3) 0px 1px 3px -1px;
    transition: 0.2s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    padding: 0 0 2px 2px;
}

.linkedin-icon {
    fill: #0077b5;
}

.card4 {
    width: 70px;
    height: 70px;
    outline: none;
    border: none;
    background: white;
    border-radius: 5px 5px 70px 5px;
    box-shadow: rgba(50, 50, 93, 0.25) 0px 2px 5px -1px,
        rgba(0, 0, 0, 0.3) 0px 1px 3px -1px;
    transition: 0.2s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    padding: 0 2px 2px 0;
}

.github-icon {
    fill: #333;
}

.card1:hover {
    cursor: pointer;
    scale: 1.1;
    background-color: #2563eb;
    box-shadow: 1px 1px 0px #93c5fd, 2px 2px 0px #60a5fa, 3px 3px 0px #60a5fa,
        4px 4px 0px #60a5fa, 5px 5px 0px #60a5fa;
}

.card1:hover .cv-icon {
    fill: white;
}

.card2:hover {
    cursor: pointer;
    scale: 1.1;
    background-color: #4285f4;
    box-shadow: 1px 1px 0px #a1defa, 2px 2px 0px #41bef8, 3px 3px 0px #41bef8,
        4px 4px 0px #41bef8, 5px 5px 0px #41bef8;
}

.card2:hover .scholar-icon {
    fill: white;
}

.card3:hover {
    cursor: pointer;
    scale: 1.1;
    background-color: #0077b5;
    box-shadow: 1px 1px 0px #4a9eff, 2px 2px 0px #0077b5, 3px 3px 0px #0077b5,
        4px 4px 0px #0077b5, 5px 5px 0px #0077b5;
}

.card3:hover .linkedin-icon {
    fill: white;
}

.card4:hover {
    cursor: pointer;
    scale: 1.1;
    background-color: #333;
    box-shadow: 1px 1px 0px #666, 2px 2px 0px #444, 3px 3px 0px #444,
        4px 4px 0px #444, 5px 5px 0px #444;
}

.card4:hover .github-icon {
    fill: white;
}

.card1,
.card2,
.card3,
.card4 {
    box-shadow: 1px 1px 0px rgb(179, 175, 175), 2px 2px 0px rgb(179, 175, 175),
        3px 3px 0px rgb(179, 175, 175), 4px 4px 0px rgb(179, 175, 175),
        5px 5px 0px rgb(179, 175, 175);
}

/* UCSD Animated Logo */
.ucsd-logo {
    position: relative;
    display: inline-block;
    margin: 0 4px;
}

.ucsd-text {
    color: var(--accent);
    font-weight: 600;
    transition: opacity 0.3s ease;
}

.ucsd-logo:hover .ucsd-text {
    opacity: 0;
}

.ucsd-logo .loader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.ucsd-logo:hover .loader {
    opacity: 1;
}

/* Loader Animation Styles */
.absolute {
    position: absolute;
}

.inline-block {
    display: inline-block;
}

.loader {
    display: flex;
    margin: 0.25em 0;
    align-items: center;
    gap: 4px;
}

.w-2 {
    width: 0.5em;
}

.dash {
    animation: dashArray 2s ease-in-out infinite,
        dashOffset 2s linear infinite;
}

.spin {
    animation: spinDashArray 2s ease-in-out infinite,
        spin 8s ease-in-out infinite,
        dashOffset 2s linear infinite;
    transform-origin: center;
}

@keyframes dashArray {
    0% {
        stroke-dasharray: 0 1 359 0;
    }

    50% {
        stroke-dasharray: 0 359 1 0;
    }

    100% {
        stroke-dasharray: 359 1 0 0;
    }
}

@keyframes spinDashArray {
    0% {
        stroke-dasharray: 270 90;
    }

    50% {
        stroke-dasharray: 0 360;
    }

    100% {
        stroke-dasharray: 270 90;
    }
}

@keyframes dashOffset {
    0% {
        stroke-dashoffset: 365;
    }

    100% {
        stroke-dashoffset: 5;
    }
}

@keyframes spin {
    0% {
        rotate: 0deg;
    }

    12.5%,
    25% {
        rotate: 270deg;
    }

    37.5%,
    50% {
        rotate: 540deg;
    }

    62.5%,
    75% {
        rotate: 810deg;
    }

    87.5%,
    100% {
        rotate: 1080deg;
    }
}

/* Navigation Section */
.nav-section {
    background: transparent;
    padding: 24px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

/* Navigation */
.nav {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: var(--maxw);
    margin: 0 auto;
}

.nav-toggle {
    display: none;
}

.nav ul {
    display: flex;
    gap: 0;
    list-style: none;
    margin: 0;
    padding: 0;
    background: white;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 6px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.nav-link {
    color: black;
    text-decoration: none;
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.15s ease;
    position: relative;
    display: block;
}

.nav-link:hover {
    color: white;
    background: #0A66C2;
    transform: none;
}

.nav-link.active {
    color: white;
    background: #0A66C2;
    box-shadow: none;
}

.nav-link.active:hover {
    transform: none;
    box-shadow: none;
    background: #0A66C2;
    color: white;
}

@media (max-width:760px) {
    .nav-toggle {
        display: inline-flex;
        padding: 6px 10px;
        border-radius: 10px;
        border: 1px solid color-mix(in oklab, var(--text) 10%, transparent);
        background: var(--card);
        color: var(--text);
    }

    .nav ul {
        display: none;
    }

    .nav[aria-expanded="true"] ul {
        display: grid;
        grid-auto-flow: row;
    }
}

/* Research Pills */
.pill-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin: 20px 0;
    justify-content: flex-start;
}

.pill {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--accent);
    border-radius: 2px;
    padding: 4px 8px;
    font-size: 0.8rem;
    font-weight: 400;
    transition: none;
}

.pill:hover {
    color: var(--text-secondary);
    background: transparent;
    border-color: var(--accent);
    transform: none;
    box-shadow: none;
}

/* Clean Timeline Design */
.linkedin-timeline {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

/* Company Group Styling */
.company-group {
    margin-bottom: 48px;
    position: relative;
}

.company-group:last-child {
    margin-bottom: 0;
}

.company-group .timeline-logo {
    position: absolute;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
    z-index: 2;
}

.company-group .timeline-item {
    margin-bottom: 24px;
    position: relative;
    padding-top: 30px;
}

.company-group .timeline-item:last-child {
    margin-bottom: 0;
}

.company-group .timeline-item:not(:first-child) {
    padding-top: 20px;
}

.company-group .timeline-content {
    width: calc(50% - 60px);
    margin-left: 60px;
    text-align: left;
}

.linkedin-timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border);
    transform: translateX(-50%);
}

.company-group {
    margin-bottom: 48px;
    position: relative;
}

.company-group:last-child {
    margin-bottom: 0;
}

.timeline-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 40px;
    position: relative;
    padding-top: 30px;
}

.timeline-item:nth-child(odd) {
    flex-direction: row;
}

.timeline-item:nth-child(even) {
    flex-direction: row-reverse;
}

.timeline-logo {
    width: 70px;
    height: 70px;
    border-radius: 12px;
    background: white;
    border: 3px solid var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: absolute;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
    z-index: 2;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15), 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.timeline-logo:hover {
    transform: translateX(-50%) scale(1.05);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.2), 0 6px 15px rgba(0, 0, 0, 0.15);
}

.company-logo {
    width: 50px;
    height: 50px;
    object-fit: contain;
    border-radius: 6px;
    padding: 6px;
    margin: 0;
    background: transparent;
    display: block;
    transition: all 0.3s ease;
}

.company-logo:hover {
    transform: scale(1.1);
}

.logo-placeholder {
    font-size: 20px;
    color: var(--text-muted);
}

/* Specific styling for IPMD logo */
.ipmd-logo {
    object-fit: contain;
    object-position: center;
    max-width: 100%;
    max-height: 100%;
    background: white;
    border-radius: 4px;
}

.timeline-content {
    width: calc(50% - 50px);
    padding: 24px 28px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 12px;
    position: relative;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    margin-top: 20px;
    transition: all 0.3s ease;
}

.timeline-content:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
    border-color: var(--accent);
}

.timeline-item:nth-child(odd) .timeline-content {
    margin-right: 50px;
    text-align: left;
}

.timeline-item:nth-child(even) .timeline-content {
    margin-left: 50px;
    text-align: left;
}

.timeline-content::before {
    content: '';
    position: absolute;
    top: -8px;
    width: 0;
    height: 0;
    border: 8px solid transparent;
}

.timeline-item:nth-child(odd) .timeline-content::before {
    right: -16px;
    border-left-color: var(--border);
}

.timeline-item:nth-child(even) .timeline-content::before {
    left: -16px;
    border-right-color: var(--border);
}

.timeline-header {
    margin-bottom: 16px;
}

.timeline-header h3 {
    margin: 0 0 6px 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text);
    line-height: 1.3;
}

.timeline-company {
    font-weight: 500;
    color: var(--text);
    font-size: 0.95rem;
    display: block;
    margin-bottom: 4px;
}

.timeline-duration {
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 400;
    display: block;
    margin-bottom: 8px;
}

.timeline-location {
    color: var(--text-muted);
    font-size: 0.8rem;
    margin: 0 0 12px 0;
    font-weight: 400;
}

.experience-bullets {
    margin: 16px 0 0 0;
    padding-left: 20px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.experience-bullets li {
    margin-bottom: 8px;
    font-size: 0.95rem;
    line-height: 1.6;
    font-weight: 400;
    position: relative;
}

.experience-bullets li::marker {
    color: var(--accent);
    font-weight: bold;
}

/* Sub-roles (TA, IA) styling */
.timeline-item.sub-role .timeline-content {
    background: var(--bg-tertiary);
    border-color: var(--border);
}

.timeline-item.sub-role .timeline-content::before {
    border-left-color: var(--bg-tertiary);
    border-right-color: var(--bg-tertiary);
}

/* Mobile Responsive Timeline */
@media (max-width: 768px) {
    .linkedin-timeline::before {
        left: 30px;
    }
    
    .timeline-item {
        flex-direction: row !important;
        margin-left: 60px;
        padding-top: 25px;
    }
    
    .timeline-logo {
        left: 30px;
        width: 50px;
        height: 50px;
    }
    
    .company-logo {
        width: 32px;
        height: 32px;
    }
    
    .timeline-content {
        width: 100%;
        margin: 15px 0 0 0 !important;
        text-align: left !important;
    }
    
    .timeline-content::before {
        left: -16px !important;
        right: auto !important;
        top: -8px !important;
        border-right-color: var(--border) !important;
        border-left-color: transparent !important;
    }
    
    .timeline-item.sub-role .timeline-content::before {
        border-right-color: var(--bg-tertiary) !important;
        border-left-color: transparent !important;
    }
    
    /* Company Group Mobile Styles */
    .company-group .timeline-logo {
        left: 30px;
        width: 50px;
        height: 50px;
    }
    
    .company-group .timeline-item {
        margin-left: 60px;
        padding-top: 20px;
    }
    
    .company-group .timeline-item:not(:first-child) {
        padding-top: 15px;
    }
    
    .company-group .timeline-content {
        width: 100%;
        margin: 15px 0 0 0 !important;
    }
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-top: 32px;
}

@media (max-width: 768px) {
    .grid-2 {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

.highlight,
.card {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--border-radius);
    padding: 24px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.highlight:hover,
.card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
    border-color: var(--accent);
}

.highlight h3,
.card h3 {
    color: var(--text);
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0 0 12px;
}

.highlight p,
.card p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0 0 16px;
    font-size: 0.95rem;
}

.links a,
.pub-list a,
.contact a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition-fast);
}

.links a:hover,
.pub-list a:hover,
.contact a:hover {
    color: var(--accent-hover);
    text-decoration: underline;
}

/* Publications */
.publications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
    gap: 32px;
    margin-bottom: 48px;
}

.publication-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 16px;
    transition: none;
    position: relative;
    box-shadow: none;
}

.publication-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--accent);
    transform: scaleX(0);
    transition: transform 0.3s ease;
    border-radius: 12px 12px 0 0;
}

.publication-card:hover {
    transform: none;
    box-shadow: none;
    border-color: var(--accent);
}

.publication-card:hover::before {
    transform: scaleX(1);
}

.publication-card.featured {
    border-color: var(--accent);
    background: var(--bg-secondary);
}

.publication-card.featured::before {
    transform: scaleX(1);
    background: var(--accent);
}

.publication-card.coming-soon {
    opacity: 0.8;
    border-style: dashed;
}

.publication-card.coming-soon:hover {
    transform: translateY(-4px);
    opacity: 1;
}

.pub-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.pub-year {
    background: var(--accent);
    color: white;
    padding: 4px 12px;
    border-radius: 16px;
    font-size: 0.8rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.pub-type {
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    padding: 4px 12px;
    border-radius: 16px;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.pub-type.emnlp,
.pub-type.icassp {
    background: #10b981;
    color: white;
    font-weight: 600;
    border: none;
}

.pub-type.pending {
    background: #f59e0b;
    color: white;
    font-weight: 600;
    border: none;
}


.pub-title {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text);
    margin-bottom: 8px;
    line-height: 1.4;
}

.pub-authors {
    color: var(--text-secondary);
    margin-bottom: 8px;
    font-size: 0.85rem;
    line-height: 1.4;
    font-weight: 400;
}

.pub-venue {
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-bottom: 12px;
    font-weight: 400;
}

.pub-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.tag {
    background: transparent;
    color: var(--text-secondary);
    padding: 2px 6px;
    border-radius: 2px;
    font-size: 0.75rem;
    font-weight: 400;
    border: 1px solid var(--accent);
    transition: none;
}

.tag:hover {
    background: transparent;
    color: var(--text-secondary);
    border-color: var(--accent);
    transform: none;
    box-shadow: none;
}

.pub-links {
    display: flex;
    gap: 8px;
    align-items: center;
}

.pub-link {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    background: transparent;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 2px;
    font-size: 0.8rem;
    font-weight: 400;
    border: 1px solid var(--accent);
    transition: none;
}

.pub-link:hover {
    background: transparent;
    color: var(--text-secondary);
    border-color: var(--accent);
    transform: none;
}

.pub-link.primary {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
}

.pub-link.primary:hover {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
    color: white;
}

.publications-footer {
    text-align: center;
    padding-top: 32px;
    border-top: 2px solid var(--border);
    position: relative;
}

.publications-footer::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), #3b82f6);
    border-radius: 1px;
}

.cv-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    background: linear-gradient(135deg, var(--accent) 0%, #3b82f6 100%);
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 6px 20px rgba(14, 165, 233, 0.3);
    position: relative;
    overflow: hidden;
}

.cv-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.cv-link:hover {
    background: linear-gradient(135deg, var(--accent-hover) 0%, #2563eb 100%);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(14, 165, 233, 0.4);
}

.cv-link:hover::before {
    left: 100%;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .publications-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .publication-card {
        padding: 20px;
    }
    
    .pub-title {
        font-size: 1.1rem;
    }
    
    .pub-links {
        flex-direction: column;
        align-items: stretch;
    }
    
    .pub-link {
        justify-content: center;
    }
}

.experience-bullets {
    margin: 12px 0 0 0;
    padding-left: 20px;
    color: var(--text-secondary);
}

.experience-bullets li {
    margin: 6px 0;
    line-height: 1.5;
    font-size: 0.95rem;
}

/* Timeline */
.timeline {
    position: relative;
    margin: 32px 0;
    padding-left: 40px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 16px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border);
    border-radius: 1px;
}

.timeline-item {
    margin: 24px 0;
    position: relative;
}

.timeline-dot {
    width: 12px;
    height: 12px;
    background: var(--accent);
    border-radius: 50%;
    position: absolute;
    left: -22px;
    top: 6px;
    border: 3px solid var(--bg);
    transition: var(--transition);
}

.timeline-item:hover .timeline-dot {
    transform: scale(1.2);
    background: var(--accent-hover);
}

.timeline-content {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--border-radius);
    padding: 20px;
    transition: var(--transition);
}

.timeline-content:hover {
    transform: none;
    box-shadow: none;
    border-color: var(--accent);
}

.timeline h3 {
    margin: 0 0 8px;
    font-size: 1.125rem;
    color: var(--text);
    font-weight: 600;
}

.muted {
    color: var(--text-muted);
    margin: 0 0 8px;
    font-size: 0.875rem;
    font-weight: 500;
}

/* Cards grid for projects */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 32px;
}

/* Contact */
.contact-container {
    max-width: 800px;
    margin: 0 auto;
}

.contact-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 24px;
    position: relative;
    transition: none;
    box-shadow: none;
}

.contact-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--accent);
    border-radius: 12px 12px 0 0;
}

.contact-card:hover {
    transform: none;
    box-shadow: none;
    border-color: var(--accent);
}

.contact-header {
    text-align: center;
    margin-bottom: 32px;
}

.contact-header h3 {
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--text);
    margin: 0 0 8px 0;
}

.contact-header p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.4;
    font-weight: 400;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: 4px;
    text-decoration: none;
    transition: none;
    box-shadow: none;
}

.contact-item:hover {
    transform: none;
    box-shadow: none;
    border-color: var(--accent);
}

.contact-icon {
    width: 32px;
    height: 32px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: none;
    flex-shrink: 0;
    box-shadow: none;
}

.contact-item.email .contact-icon {
    background: #ea4335;
    color: white;
}

.contact-item.linkedin .contact-icon {
    background: #0077b5;
    color: white;
}

.contact-item.github .contact-icon {
    background: #333;
    color: white;
}

.contact-item.scholar .contact-icon {
    background: #4285f4;
    color: white;
}

.contact-item:hover .contact-icon {
    transform: none;
    box-shadow: none;
}

.contact-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.contact-label {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.contact-value {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text);
    transition: none;
}

.contact-item:hover .contact-value {
    color: var(--accent);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .contact-card {
        padding: 32px 24px;
    }
    
    .contact-header h3 {
        font-size: 1.75rem;
    }
    
    .contact-header p {
        font-size: 1rem;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .contact-item {
        padding: 16px;
    }
    
    .contact-icon {
        width: 40px;
        height: 40px;
    }
}

/* Footer */
.site-footer {
    padding: 10px 0;
    color: black;
    text-align: center;
    background: transparent;
    margin-top: 20px;
    font-size: 0.85rem;
}

/* Back to top button */
.to-top {
    position: fixed;
    right: 24px;
    bottom: 24px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--bg-secondary);
    color: var(--accent);
    display: grid;
    place-items: center;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1rem;
    font-weight: 600;
    z-index: 1000;
    box-shadow: var(--shadow);
}

.to-top:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
    background: var(--accent);
    color: white;
}

/* Theme toggle button */
.theme-switch {
  --toggle-size: 16px;
  --container-width: 3.5em;
  --container-height: 1.75em;
  --container-radius: 6.25em;
  --container-light-bg: #3D7EAE;
  --container-night-bg: #1D1F2C;
  --circle-container-diameter: 2.25em;
  --sun-moon-diameter: 1.5em;
  --sun-bg: #ECCA2F;
  --moon-bg: #C4C9D1;
  --spot-color: #959DB1;
  --circle-container-offset: calc((var(--circle-container-diameter) - var(--container-height)) / 2 * -1);
  --stars-color: #fff;
  --clouds-color: #F3FDFF;
  --back-clouds-color: #AACADF;
  --transition: .5s cubic-bezier(0, -0.02, 0.4, 1.25);
  --circle-transition: .3s cubic-bezier(0, -0.02, 0.35, 1.17);
    position: fixed;
    right: 24px;
  top: 24px;
  z-index: 1000;
}

.theme-switch, .theme-switch *, .theme-switch *::before, .theme-switch *::after {
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-size: var(--toggle-size);
}

.theme-switch__container {
  width: var(--container-width);
  height: var(--container-height);
  background-color: var(--container-light-bg);
  border-radius: var(--container-radius);
  overflow: hidden;
    cursor: pointer;
  -webkit-box-shadow: 0em -0.062em 0.062em rgba(0, 0, 0, 0.25), 0em 0.062em 0.125em rgba(255, 255, 255, 0.94);
  box-shadow: 0em -0.062em 0.062em rgba(0, 0, 0, 0.25), 0em 0.062em 0.125em rgba(255, 255, 255, 0.94);
  -webkit-transition: var(--transition);
  -o-transition: var(--transition);
    transition: var(--transition);
  position: relative;
}

.theme-switch__container::before {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  -webkit-box-shadow: 0em 0.05em 0.187em rgba(0, 0, 0, 0.25) inset, 0em 0.05em 0.187em rgba(0, 0, 0, 0.25) inset;
  box-shadow: 0em 0.05em 0.187em rgba(0, 0, 0, 0.25) inset, 0em 0.05em 0.187em rgba(0, 0, 0, 0.25) inset;
  border-radius: var(--container-radius)
}

.theme-switch__checkbox {
  display: none;
}

.theme-switch__circle-container {
  width: var(--circle-container-diameter);
  height: var(--circle-container-diameter);
  background-color: rgba(255, 255, 255, 0.1);
  position: absolute;
  left: var(--circle-container-offset);
  top: var(--circle-container-offset);
  border-radius: var(--container-radius);
  -webkit-box-shadow: inset 0 0 0 3.375em rgba(255, 255, 255, 0.1), inset 0 0 0 3.375em rgba(255, 255, 255, 0.1), 0 0 0 0.625em rgba(255, 255, 255, 0.1), 0 0 0 1.25em rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 0 0 3.375em rgba(255, 255, 255, 0.1), inset 0 0 0 3.375em rgba(255, 255, 255, 0.1), 0 0 0 0.625em rgba(255, 255, 255, 0.1), 0 0 0 1.25em rgba(255, 255, 255, 0.1);
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-transition: var(--circle-transition);
  -o-transition: var(--circle-transition);
  transition: var(--circle-transition);
  pointer-events: none;
}

.theme-switch__sun-moon-container {
  pointer-events: auto;
  position: relative;
  z-index: 2;
  width: var(--sun-moon-diameter);
  height: var(--sun-moon-diameter);
  margin: auto;
  border-radius: var(--container-radius);
  background-color: var(--sun-bg);
  -webkit-box-shadow: 0.062em 0.062em 0.062em 0em rgba(254, 255, 239, 0.61) inset, 0em -0.062em 0.062em 0em #a1872a inset;
  box-shadow: 0.062em 0.062em 0.062em 0em rgba(254, 255, 239, 0.61) inset, 0em -0.062em 0.062em 0em #a1872a inset;
  -webkit-filter: drop-shadow(0.062em 0.125em 0.125em rgba(0, 0, 0, 0.25)) drop-shadow(0em 0.062em 0.125em rgba(0, 0, 0, 0.25));
  filter: drop-shadow(0.062em 0.125em 0.125em rgba(0, 0, 0, 0.25)) drop-shadow(0em 0.062em 0.125em rgba(0, 0, 0, 0.25));
  overflow: hidden;
  -webkit-transition: var(--transition);
  -o-transition: var(--transition);
  transition: var(--transition);
}

.theme-switch__moon {
  -webkit-transform: translateX(100%);
  -ms-transform: translateX(100%);
  transform: translateX(100%);
  width: 100%;
  height: 100%;
  background-color: var(--moon-bg);
  border-radius: inherit;
  -webkit-box-shadow: 0.062em 0.062em 0.062em 0em rgba(254, 255, 239, 0.61) inset, 0em -0.062em 0.062em 0em #969696 inset;
  box-shadow: 0.062em 0.062em 0.062em 0em rgba(254, 255, 239, 0.61) inset, 0em -0.062em 0.062em 0em #969696 inset;
  -webkit-transition: var(--transition);
  -o-transition: var(--transition);
  transition: var(--transition);
  position: relative;
}

.theme-switch__spot {
  position: absolute;
  top: 0.75em;
  left: 0.312em;
  width: 0.75em;
  height: 0.75em;
  border-radius: var(--container-radius);
  background-color: var(--spot-color);
  -webkit-box-shadow: 0em 0.0312em 0.062em rgba(0, 0, 0, 0.25) inset;
  box-shadow: 0em 0.0312em 0.062em rgba(0, 0, 0, 0.25) inset;
}

.theme-switch__spot:nth-of-type(2) {
  width: 0.375em;
  height: 0.375em;
  top: 0.937em;
  left: 1.375em;
}

.theme-switch__spot:nth-last-of-type(3) {
  width: 0.25em;
  height: 0.25em;
  top: 0.312em;
  left: 0.812em;
}

.theme-switch__clouds {
  width: 1.25em;
  height: 1.25em;
  background-color: var(--clouds-color);
  border-radius: var(--container-radius);
  position: absolute;
  bottom: -0.625em;
  left: 0.312em;
  -webkit-box-shadow: 0.937em 0.312em var(--clouds-color), -0.312em -0.312em var(--back-clouds-color), 1.437em 0.375em var(--clouds-color), 0.5em -0.125em var(--back-clouds-color), 2.187em 0 var(--clouds-color), 1.25em -0.062em var(--back-clouds-color), 2.937em 0.312em var(--clouds-color), 2em -0.312em var(--back-clouds-color), 3.625em -0.062em var(--clouds-color), 2.625em 0em var(--back-clouds-color), 4.5em -0.312em var(--clouds-color), 3.375em -0.437em var(--back-clouds-color), 4.625em -1.75em 0 0.437em var(--clouds-color), 4em -0.625em var(--back-clouds-color), 4.125em -2.125em 0 0.437em var(--back-clouds-color);
  box-shadow: 0.937em 0.312em var(--clouds-color), -0.312em -0.312em var(--back-clouds-color), 1.437em 0.375em var(--clouds-color), 0.5em -0.125em var(--back-clouds-color), 2.187em 0 var(--clouds-color), 1.25em -0.062em var(--back-clouds-color), 2.937em 0.312em var(--clouds-color), 2em -0.312em var(--back-clouds-color), 3.625em -0.062em var(--clouds-color), 2.625em 0em var(--back-clouds-color), 4.5em -0.312em var(--clouds-color), 3.375em -0.437em var(--back-clouds-color), 4.625em -1.75em 0 0.437em var(--clouds-color), 4em -0.625em var(--back-clouds-color), 4.125em -2.125em 0 0.437em var(--back-clouds-color);
  -webkit-transition: 0.5s cubic-bezier(0, -0.02, 0.4, 1.25);
  -o-transition: 0.5s cubic-bezier(0, -0.02, 0.4, 1.25);
  transition: 0.5s cubic-bezier(0, -0.02, 0.4, 1.25);
}

.theme-switch__stars-container {
  position: absolute;
  color: var(--stars-color);
  top: -100%;
  left: 0.312em;
  width: 2.75em;
  height: auto;
  -webkit-transition: var(--transition);
  -o-transition: var(--transition);
  transition: var(--transition);
}

/* actions */
.theme-switch__checkbox:checked + .theme-switch__container {
  background-color: var(--container-night-bg);
}

.theme-switch__checkbox:checked + .theme-switch__container .theme-switch__circle-container {
  left: calc(100% - var(--circle-container-offset) - var(--circle-container-diameter));
}

.theme-switch__checkbox:checked + .theme-switch__container .theme-switch__circle-container:hover {
  left: calc(100% - var(--circle-container-offset) - var(--circle-container-diameter) - 0.187em)
}

.theme-switch__circle-container:hover {
  left: calc(var(--circle-container-offset) + 0.187em);
}

.theme-switch__checkbox:checked + .theme-switch__container .theme-switch__moon {
  -webkit-transform: translate(0);
  -ms-transform: translate(0);
  transform: translate(0);
}

.theme-switch__checkbox:checked + .theme-switch__container .theme-switch__clouds {
  bottom: -4.062em;
}

.theme-switch__checkbox:checked + .theme-switch__container .theme-switch__stars-container {
  top: 50%;
  -webkit-transform: translateY(-50%);
  -ms-transform: translateY(-50%);
  transform: translateY(-50%);
}

/* Focus ring */
a:focus-visible,
button:focus-visible {
    outline: none;
    box-shadow: 0 0 0 2px var(--accent);
    border-radius: var(--border-radius);
}

/* Tablet responsiveness */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 300px 1fr 150px;
        gap: 40px;
    }
    
    .hero-img {
        width: 250px;
        height: 320px;
    }
    
    .card1, .card2, .card3, .card4 {
        width: 60px;
        height: 60px;
    }
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .container {
        padding: 0 24px;
    }
    
    .hero {
        padding: 80px 24px 60px;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        gap: 32px;
        text-align: center;
        max-width: 100%;
    }
    
    .social-grid {
        order: -1;
        margin-bottom: 20px;
    }
    
    .main {
        gap: 0.3em;
    }
    
    .up, .down {
        gap: 0.3em;
    }
    
    .card1, .card2, .card3, .card4 {
        width: 60px;
        height: 60px;
    }
    
    .hero-img {
        width: 220px;
        height: 300px;
        margin-bottom: 24px;
    }
    
    .hero-info {
        text-align: center;
        margin-top: 16px;
    }
    
    .hero-name {
        font-size: 2.25rem;
    }
    
    .hero-tagline {
        font-size: 1.125rem;
    }
    
    
    .section h2 {
        font-size: 2rem;
        margin: 0 0 32px;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 32px;
        text-align: center;
    }
    
    .about-header h2 {
        text-align: center;
        font-size: 2rem;
    }
    
    .about-header h2::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .timeline-item {
        gap: 12px;
    }
    
    .timeline-logo {
        width: 56px;
        height: 56px;
    }
    
    .company-logo {
        width: 56px;
        height: 56px;
    }
    
    .logo-placeholder {
        font-size: 20px;
    }
    
    .timeline-header h3 {
        font-size: 1rem;
    }
    
    .timeline-company {
        font-size: 0.9rem;
    }
    
    .timeline-duration {
        font-size: 0.8rem;
    }
    
    .timeline-location {
        font-size: 0.8rem;
    }
    
    .experience-bullets {
        font-size: 0.85rem;
    }
    
    .nav ul {
        flex-direction: column;
        gap: 4px;
        padding: 8px;
        border-radius: 8px;
    }
    
    .nav-link {
        padding: 10px 16px;
        font-size: 0.875rem;
    }
    
    .timeline {
        padding-left: 32px;
    }
    
    .timeline::before {
        left: 12px;
    }
    
    .timeline-dot {
        left: -18px;
        width: 10px;
        height: 10px;
    }
    
    .cards {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .container {
        padding: 0 16px;
    }
}

/* Multi-step Degree Progress */
.degree-step {
    display: inline-block;
    margin-right: 1rem;
    position: relative;
}

.degree-step.completed {
    color: #059669; /* Darker green for better contrast */
}

.degree-step.in-progress {
    color: #1d4ed8; /* Darker blue for better contrast */
}

.checkmark {
    color: var(--success-color);
    font-weight: bold;
    margin-right: 0.5rem;
}

.loading-spinner {
    display: inline-block;
    margin-left: 0.5rem;
    vertical-align: middle;
}

/* Loading Animation CSS */
.pl {
    display: block;
    width: 9.375em;
    height: 9.375em;
}

.pl__arrows,
.pl__ring-rotate,
.pl__ring-stroke,
.pl__tick {
    animation-duration: 2s;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
}

.pl__arrows {
    animation-name: arrows42;
    transform: rotate(45deg);
    transform-origin: 16px 52px;
}

.pl__ring-rotate,
.pl__ring-stroke {
    transform-origin: 80px 80px;
}

.pl__ring-rotate {
    animation-name: ringRotate42;
}

.pl__ring-stroke {
    animation-name: ringStroke42;
    transform: rotate(-45deg);
}

.pl__tick {
    animation-name: tick42;
}

.pl__tick:nth-child(2) {
    animation-delay: -1.75s;
}

.pl__tick:nth-child(3) {
    animation-delay: -1.5s;
}

.pl__tick:nth-child(4) {
    animation-delay: -1.25s;
}

.pl__tick:nth-child(5) {
    animation-delay: -1s;
}

.pl__tick:nth-child(6) {
    animation-delay: -0.75s;
}

.pl__tick:nth-child(7) {
    animation-delay: -0.5s;
}

.pl__tick:nth-child(8) {
    animation-delay: -0.25s;
}

/* Animations */
@keyframes arrows42 {
    from {
        transform: rotate(45deg);
    }
    to {
        transform: rotate(405deg);
    }
}

@keyframes ringRotate42 {
    from {
        transform: rotate(0);
    }
    to {
        transform: rotate(720deg);
    }
}

@keyframes ringStroke42 {
    from,
    to {
        stroke-dashoffset: 452;
        transform: rotate(-45deg);
    }
    50% {
        stroke-dashoffset: 169.5;
        transform: rotate(-180deg);
    }
}

@keyframes tick42 {
    from,
    3%,
    47%,
    to {
        stroke-dashoffset: -12;
    }
    14%,
    36% {
        stroke-dashoffset: 0;
    }
}