/* Base styles */
:root {
    --primary-bg: #ffffff;
    --sidebar-bg: #111827;
    --text-primary: #111827;
    --text-secondary: #4b5563;
    --text-light: #9ca3af;
    --accent: #3b82f6;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Calibri", Arial, sans-serif;
    line-height: 1.5;
    color: var(--text-primary);
}

/* Calendly Container */
.calendly-container {
    margin-top: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;
    overflow: hidden;
    padding-left: 0rem;
    padding-right: 1.5rem;
}

.calendly-inline-widget {
    min-width: 450px;
    height: 1000px;
    background: transparent;
    padding-left: 1rem;
}

/* Update sidebar content for better scrolling with Calendly */
.sidebar-content {
    position: sticky;
    top: 2rem;
    max-height: calc(100vh - 4rem);
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}

    .sidebar-content::-webkit-scrollbar {
        width: 6px;
    }

    .sidebar-content::-webkit-scrollbar-track {
        background: transparent;
    }

    .sidebar-content::-webkit-scrollbar-thumb {
        background-color: rgba(255, 255, 255, 0.2);
        border-radius: 3px;
    }

/* Layout */
.container {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    background-color: var(--sidebar-bg);
    color: white;
    width: 320px;
    padding: 2rem;
    margin-right: 2rem;
}

.sidebar-content {
    position: sticky;
    top: 2rem;
}

.header {
    margin-bottom: 3rem;
    padding-left: 1rem;
}

    .header h1 {
        font-size: 1.875rem;
        font-weight: bold;
        margin-bottom: 0.5rem;
        padding-left: 1rem;
    }

.subtitle {
    color: var(--text-light);
    font-size: 1.125rem;
    padding-left: 1rem;
}

.sections > div {
    margin-bottom: 1.5rem;
    padding-left: 1rem;
}

.sections h2 {
    text-transform: uppercase;
    font-size: 0.875rem;
    letter-spacing: 0.05em;
    color: var(--text-light);
    margin-bottom: 1.5rem;
    padding-left: 1rem;
}

/* Contact section */
.contact-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding-left: 1rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #d1d5db;
    text-decoration: none;
    transition: color 0.2s;
}

    .contact-item:hover {
        color: white;
    }

/* Social links */
.social-links {
    display: flex;
    gap: 1rem;
    padding-left: 1rem;
}

    .social-links a {
        color: var(--text-light);
        transition: color 0.2s;
    }

        .social-links a:hover {
            color: white;
        }

/* Salary section */
.salary {
    color: #d1d5db;
    padding-left: 1rem;
}

.salary-note {
    color: var(--text-light);
    font-size: 0.875rem;
    margin-top: 0.25rem;
    padding-left: 1rem;
}

/* Main content */
.main-content {
    flex: 1;
    padding: 2rem 3rem;
    background-color: var(--primary-bg);
}

.content-wrapper {
    max-width: 48rem;
}

/* Section styles */
section {
    margin-bottom: 4rem;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    padding-left: 0rem;
}

    .section-header i {
        font-size: 1.5rem;
        color: var(--text-primary);
    }

    .section-header h2 {
        font-size: 1.5rem;
        font-weight: 600;
        margin: 0;
    }

/* Experience items */
.experience-item {
    margin-bottom: 2rem;
}

.experience-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.5rem;
}

    .experience-header h3 {
        font-size: 1.25rem;
        font-weight: 500;
        margin-bottom: 0; /* Add extra space after h3 headings */
    }

.company a {
    color: var(--text-secondary);
    text-decoration: none;
}

    .company a:hover {
        text-decoration: underline;
    }

.date {
    color: var(--text-secondary);
}

.details {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.employment-type,
.location,
.description {
    color: var(--text-secondary);
}

/* Publications */
.publication-item {
    margin-bottom: 2rem;
    position: relative;
}

.publication-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.5rem;
}

.publication-title {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.2s;
}

    .publication-title:hover {
        color: blue; /* Change color to blue on hover */
    }

    .publication-title h3 {
        font-size: 1.25rem;
        font-weight: 500;
    }

.external-link {
    position: absolute;
    right: -2rem;
    top: 0.25rem;
    opacity: 0;
    color: var(--accent);
    transition: opacity 0.2s;
}

.publication-item:hover .external-link {
    opacity: 1;
}

/* Certifications */
.certification-item {
    margin-bottom: 2rem;
    position: relative;
}

.certification-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.5rem;
}

.certification-title {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.2s;
}

    .certification-title:hover {
        color: blue; /* Change color to blue on hover */
    }

    .certification-title h3 {
        font-size: 1.25rem;
        font-weight: 500;
    }

/* Education */
.education-item {
    margin-bottom: 2rem;
    position: relative;
}

.education-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.5rem;
}

.education-title {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.2s;
}

    .education-title:hover {
        color: blue; /* Change color to blue on hover */
    }

    .education-title h3 {
        font-size: 1.25rem;
        font-weight: 500;
    }

/* Floating Navigation */
.floating-nav {
    display: block;
    position: fixed;
    top: 2rem;
    right: 2rem;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    padding: 1rem;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: opacity 0.3s ease;
}

    .floating-nav.hidden {
        opacity: 0;
        pointer-events: none;
    }

    .floating-nav ul {
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .floating-nav li {
        margin-bottom: 0.5rem;
    }

    .floating-nav a {
        color: var(--text-secondary);
        text-decoration: none;
        font-size: 0.875rem;
        transition: color 0.2s;
        display: block;
        padding: 0.25rem 0;
    }

        .floating-nav a:hover {
            color: var(--accent);
        }

        .floating-nav a.active {
            color: var(--accent);
            font-weight: 500;
        }

/* Add IDs to sections */
#focus,
#experience,
#certifications,
#publications {
    scroll-margin-top: 2rem;
}

/* Responsive design */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
    }

    .main-content {
        padding: 2rem;
    }

    .external-link {
        opacity: 1;
        position: static;
        margin-left: 0.5rem;
    }

    .floating-nav {
        display: none; /* Hide navigation bar on mobile devices */
    }

    .calendly-container {
        margin-left: 0.5rem; /* Small margin to the left */
        margin-right: 0.5rem; /* Small margin to the right */
        width: calc(100% - 1rem); /* Adjust width to fit the screen */
        height: 1200px; /* Adjust height for mobile devices as needed */
    }

    .calendly-inline-widget {
        min-width: 100%; /* Ensure the widget takes full width */
        height: 1000px; /* Adjust height as needed */
    }
}
