body {
    font-feature-settings: "ss01", "ss02", "cv01", "cv02";
}

/* Main page scrollbar (Light Mode) */
html, body {
    scrollbar-width: thin !important;
    scrollbar-color: #a3a3a3 #f5f5f5 !important;
}

/* Main page scrollbar (Dark Mode) */
html.dark, body.dark {
    scrollbar-color: #525252 #171717 !important;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
    width: 8px !important;
}

html::-webkit-scrollbar-track,
body::-webkit-scrollbar-track {
    background: #f5f5f5 !important;
}

/* Dark mode for WebKit scrollbar track */
html.dark::-webkit-scrollbar-track,
body.dark::-webkit-scrollbar-track {
    background: #171717 !important;
}

html::-webkit-scrollbar-thumb,
body::-webkit-scrollbar-thumb {
    background-color: #a3a3a3 !important;
    border-radius: 4px !important;
}

/* Dark mode for WebKit scrollbar thumb */
html.dark::-webkit-scrollbar-thumb,
body.dark::-webkit-scrollbar-thumb {
    background-color: #525252 !important;
}

/* Mobile menu scrollbar (Light Mode) */
.mobile-menu nav {
    scrollbar-width: thin !important;
    scrollbar-color: #a3a3a3 #f5f5f5 !important;
}

/* Mobile menu scrollbar (Dark Mode) */
html.dark .mobile-menu nav,
body.dark .mobile-menu nav {
    scrollbar-color: #525252 #171717 !important;
}

.mobile-menu nav::-webkit-scrollbar {
    width: 8px !important;
}

.mobile-menu nav::-webkit-scrollbar-track {
    background: #f5f5f5 !important;
}

html.dark .mobile-menu nav::-webkit-scrollbar-track,
body.dark .mobile-menu nav::-webkit-scrollbar-track {
    background: #171717 !important;
}

.mobile-menu nav::-webkit-scrollbar-thumb {
    background-color: #a3a3a3 !important;
    border-radius: 4px !important;
}

html.dark .mobile-menu nav::-webkit-scrollbar-thumb,
body.dark .mobile-menu nav::-webkit-scrollbar-thumb {
    background-color: #525252 !important;
}

/* Reduce font size for bullet points */
.education-content ul,
.experience-content ul,
.project-content ul,
.event-content ul {
    font-size: 0.9rem;
    list-style-position: outside;
    padding-left: 0.875rem;
    margin-left: 0;
}

.education-content li,
.experience-content li,
.project-content li,
.event-content li {
    padding-left: 0.0625rem;
    text-indent: -0.0625rem;
}

/* Expand/Collapse Animations */
.experience-content, .education-content, .project-content, .event-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
    opacity: 0;
}

.experience-content.show, .education-content.show, .project-content.show, .event-content.show {
    max-height: 500px;
    opacity: 1;
}

.arrows-container {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Mobile Menu Styles */
@media (max-width: 768px) {
    /* Prevent horizontal scrolling on mobile */
    html, body {
        overflow-x: hidden;
        width: 100%;
        position: relative;
    }
    
    /* Make header match main page size */
    header {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        z-index: 1000 !important;
        background: rgba(255, 255, 255, 0.8);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
    }
    
    html.dark header,
    body.dark header {
        background: rgba(0, 0, 0, 0.8);
    }
    
    header .max-w-5xl {
        padding-top: 1rem !important;
        padding-bottom: 1rem !important;
    }
    
    /* Add padding to main content to account for fixed header */
    main {
        padding-top: 5rem !important;
    }
    
    /* Ensure body doesn't scroll behind header */
    body {
        padding-top: 0 !important;
        margin-top: 0 !important;
    }
    
    .mobile-menu {
        transform: translateX(100%);
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        background: #ffffff;
        width: 100vw !important;
        height: 100vh !important;
        left: 0 !important;
        right: 0 !important;
        top: 0 !important;
        bottom: 0 !important;
        position: fixed;
        overflow: hidden;
        z-index: 90;
        visibility: hidden;
    }

    html.dark .mobile-menu,
    body.dark .mobile-menu {
        background: #000000;
    }

    .mobile-menu.show {
        transform: translateX(0);
        visibility: visible;
    }

    .mobile-menu-backdrop {
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease;
        background: rgba(255, 255, 255, 0.4);
        width: 100vw !important;
        height: 100vh !important;
        position: fixed;
        overflow: hidden;
        z-index: 40;
    }

    html.dark .mobile-menu-backdrop,
    body.dark .mobile-menu-backdrop {
        background: rgba(0, 0, 0, 0.4);
    }

    .mobile-menu-backdrop.show {
        opacity: 1;
        visibility: visible;
    }

    .mobile-menu > div {
        background: inherit;
        height: 100%;
        display: flex;
        flex-direction: column;
        overflow: hidden;
    }

    .mobile-menu nav {
        flex: 1;
        display: flex;
        flex-direction: column;
        overflow-y: auto;
        padding: 1rem 0;
    }

    .mobile-menu ul {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.25rem;
        background: inherit;
        padding: 0;
        margin: 0;
    }

    .mobile-link {
        position: relative; 
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0.5rem 1rem;
        text-align: center;
        width: 100%;
        background: transparent !important;
    }

    .mobile-link::before {
        content: '';
        position: absolute;
        left: 50%;
        bottom: 0;
        transform: translateX(-50%);
        width: 40px;
        height: 2px;
        background: #000000;
        transition: width 0.2s ease;
    }

    html.dark .mobile-link::before,
    body.dark .mobile-link::before {
        background: #ffffff;
    }

    .mobile-link:hover::before {
        width: 80px;
    }

    /* Prevent horizontal scrolling when menu is open */
    body.menu-open {
        overflow: hidden;
        position: fixed;
        width: 100%;
        height: 100%;
    }
    
}
