/* monkey patch for lenis */
html {
    scroll-behavior: auto !important;
}

/* variables */
:root {
    --foreground: #2c2c2c;
    --foreground-dim: rgba(0, 0, 0, 0.5);
    --background: #f9fbff;
    --background-dim: rgba(0, 0, 0, 0.02);
    --accent: #39534d;
    --border: rgba(0, 0, 0, 0.2);
    --link: #000212;
}

body {
    background-color: var(--background);
    font-family: "Montserrat", sans-serif;
    color: var(--foreground);
    -ms-overflow-style: none;
    /* IE and Edge */
    scrollbar-width: none;
    /* Firefox */
}

::-webkit-scrollbar {
    display: none;
}

::selection {
    background: var(--foreground);
    color: var(--background);
}

a {
    color: var(--link);
    text-decoration-color: var(--foreground-dim);
    text-decoration-style: 1px solid;
    transition: 500ms;
}

a:hover {
    text-decoration-color: var(--foreground);
}

.unselectable {
    -webkit-user-select: none;
    /* Chrome, Safari, Opera */
    -moz-user-select: none;
    /* Firefox */
    -ms-user-select: none;
    /* IE 10+ */
    user-select: none;
    /* Standard syntax */
}

/* fonts */

.inconsolata {
    font-family: "Inconsolata", monospace;
}

.consolas {
    font-family: "Consolas", monospace;
}

.frame-wrapper {
    padding: 20px 30px;
    border-radius: 20px;
}

.frame {
    min-width: 100%;
    min-height: 100%;
    border-radius: 20px;
    border: 1px solid var(--border);
}

@media (max-width: 767px) {
    .frame-wrapper {
        padding: 0;
    }

    .frame {
        border: none;
    }
}

.vh-height {
    min-height: 100vh;
}

.hidden {
    visibility: hidden;
}

.nav-bar {
    /* blur background */
    backdrop-filter: blur(10px);
    border-radius: 20px;
}

.dropdown-menu {
    background-color: #ecedf2;
}

.dropdown-item:active {
    background-color: var(--foreground);
    color: var(--background);
}

.name {
    font-size: 60px;
}

.bio {
    font-size: 20px;
}

.divider {
    border-right: 1px solid rgba(0, 0, 0, 0.05);
}

.category-title {
    font-size: 20px;
    font-weight: bold;
    color: var(--foreground-dim);
}

/* Logo */

.logo {
    border-right: 1px solid var(--border);
}

.logo-text {
    color: var(--foreground);
    text-decoration: none;
    transition: 500ms;
}

.logo-text:hover {
    filter: blur(1px);
}

.btn-outline-dark {
    border-color: rgba(0, 0, 0, 0.3);
    transition-duration: 200ms;
    color: var(--foreground-dim);
}

.btn-outline-dark:hover {
    background-color: var(--background-dim);
    color: rgba(0, 0, 0, 1);
}

.btn-outline-dark:active {
    background-color: #000;
    color: #fff;
}

.link-btn {
    color: var(--foreground);
    transition-duration: 500ms;
    cursor: pointer;
    text-decoration: underline solid transparent;
}

.link-btn:hover {
    text-decoration: underline solid black;
}

.dropdown-toggle::after {
    display: none;
}

.dropdown-toggle {
    border: none;
    background-color: transparent;
}

/* Page loading  */

#loading-screen {
    backdrop-filter: blur(15px);
    color: var(--foreground);
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100%;
    z-index: 10000;
}

.fade-away {
    animation: fade-away 350ms forwards;
}

@keyframes fade-away {
    0% {
        color: var(--foreground);
        backdrop-filter: blur(15px);
    }

    100% {
        color: var(--background);
        backdrop-filter: blur(1px);
    }
}


/* Cursor */
#cursor {
    pointer-events: none;
    border-radius: 100%;
    width: 40px;
    height: 40px;
    z-index: 10000;
    border: 0.01vw solid var(--foreground);
    position: fixed;
    transform: translate(-50%, -50%);
}

.switch {
    width: 50px;
    /* Adjusted width based on the new height */
    height: 25px;
    position: relative;
}

.toggle-input {
    display: none;
}

.slider {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    cursor: pointer;
    background-color: #e7e9ec;
    border-radius: 12.5px;
    /* Half of the new height */
    transition: background-color 0.2s;
}

.knob {
    position: absolute;
    width: 23px;
    height: 23px;
    left: 1px;
    bottom: 1px;
    background-color: white;
    border-radius: 50%;
    transition: transform 0.2s;
    overflow: hidden;
}

.on-image,
.off-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.2s;
}

.on-image {
    opacity: 0;
}

.toggle-input:checked+.slider {
    background-color: #e7e9ec;
}

.toggle-input:checked+.slider .knob {
    transform: translateX(25px);
    /* Adjusted based on the new width */
}

.toggle-input:checked+.slider .on-image {
    opacity: 1;
}

.toggle-input:checked+.slider .off-image {
    opacity: 0;
}


.i18n {
    opacity: 1;
    transition: opacity 0.2s ease-in-out;
}

/* Quick Stats */
.quick-stats {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.stat-item {
    text-align: left;
}

.stat-number {
    font-size: 48px;
    font-weight: bold;
    color: var(--foreground);
    margin: 0;
    font-family: "Inconsolata", monospace;
}

.stat-label {
    font-size: 16px;
    color: var(--foreground-dim);
    margin: 0;
    margin-top: -10px;
}

/* Section Styling */
.section-title {
    font-size: 32px;
    font-weight: bold;
    color: var(--foreground);
    position: relative;
}

.subsection-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--foreground-dim);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.view-all-link {
    font-size: 16px;
    color: var(--foreground);
    text-decoration: none;
    transition: 300ms;
}

.view-all-link:hover {
    transform: translateX(5px);
    color: var(--accent);
}

/* Language Bars */
.language-bars {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.language-item {
    width: 100%;
}

.language-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 14px;
}

.language-name {
    font-weight: 600;
    color: var(--foreground);
    font-family: "Inconsolata", monospace;
}

.language-percent {
    color: var(--foreground-dim);
    font-family: "Inconsolata", monospace;
}

.language-bar {
    width: 100%;
    height: 8px;
    background-color: var(--background-dim);
    border-radius: 10px;
    overflow: hidden;
}

.language-progress {
    height: 100%;
    border-radius: 10px;
    transition: width 1s ease;
}

/* Tech Tags */
.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.tech-tag {
    display: inline-block;
    padding: 8px 16px;
    background-color: var(--background-dim);
    color: var(--foreground);
    border-radius: 20px;
    font-size: 14px;
    font-family: "Inconsolata", monospace;
    transition: 300ms;
    border: 1px solid transparent;
}

.tech-tag:hover {
    background-color: var(--foreground);
    color: var(--background);
    border-color: var(--foreground);
    transform: translateY(-2px);
}

/* Project Cards */
.project-card {
    background-color: var(--background);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 24px;
    transition: 300ms;
    height: 100%;
    display: flex;
    flex-direction: column;
    cursor: pointer;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-color: var(--foreground-dim);
}

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

.project-title {
    font-size: 24px;
    font-weight: bold;
    color: var(--foreground);
    margin: 0;
}

.project-link {
    color: var(--foreground-dim);
    font-size: 20px;
    transition: 300ms;
    text-decoration: none;
}

.project-link:hover {
    color: var(--foreground);
    transform: scale(1.2);
}

.project-description {
    font-size: 14px;
    color: var(--foreground-dim);
    margin-bottom: 16px;
    flex-grow: 1;
    line-height: 1.6;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.project-tag {
    display: inline-block;
    padding: 4px 12px;
    background-color: var(--background-dim);
    color: var(--foreground);
    border-radius: 12px;
    font-size: 12px;
    font-family: "Inconsolata", monospace;
}

.project-stats {
    display: flex;
    gap: 16px;
    font-size: 14px;
    color: var(--foreground-dim);
    font-family: "Inconsolata", monospace;
}

.project-stats .stat {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Contact Section */
.contact-text {
    font-size: 16px;
    line-height: 1.8;
    color: var(--foreground-dim);
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 16px;
    color: var(--foreground);
    text-decoration: none;
    transition: 300ms;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid transparent;
}

.contact-item:hover {
    background-color: var(--background-dim);
    border-color: var(--border);
    transform: translateX(5px);
}

.contact-item i {
    font-size: 20px;
    width: 24px;
    text-align: center;
    color: var(--foreground-dim);
}

.availability-card {
    background-color: var(--background-dim);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 24px;
    height: 100%;
}

.availability-status {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    font-weight: 600;
    color: var(--foreground);
}

.status-dot {
    width: 10px;
    height: 10px;
    background-color: #4ade80;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.availability-text {
    font-size: 14px;
    line-height: 1.6;
    color: var(--foreground-dim);
    margin-bottom: 20px;
}

.btn-resume {
    display: inline-block;
    padding: 12px 24px;
    background-color: var(--foreground);
    color: var(--background);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: 300ms;
    border: 2px solid var(--foreground);
}

.btn-resume:hover {
    background-color: transparent;
    color: var(--foreground);
    transform: translateY(-2px);
}

.btn-resume i {
    margin-right: 8px;
}

/* Footer */
.border-top-section {
    border-top: 1px solid var(--border);
}

.footer-text {
    font-size: 14px;
    color: var(--foreground-dim);
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 12px;
    justify-content: flex-end;
}

.footer-link {
    font-size: 14px;
    color: var(--foreground-dim);
    text-decoration: none;
    transition: 300ms;
}

.footer-link:hover {
    color: var(--foreground);
}

.footer-separator {
    color: var(--border);
}

/* Responsive Design */
@media (max-width: 767px) {
    .name {
        font-size: 40px;
    }
    
    .bio {
        font-size: 16px;
    }
    
    .divider {
        border-right: none;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
        padding-bottom: 30px;
        margin-bottom: 30px;
    }
    
    .section-title {
        font-size: 24px;
    }
    
    .stat-number {
        font-size: 36px;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .view-all-link {
        float: none !important;
    }
    
    .footer-links {
        justify-content: flex-start;
        margin-top: 10px;
    }
    
    .quick-stats {
        flex-direction: row;
        justify-content: space-between;
    }
    
    .stat-number {
        font-size: 28px;
    }
    
    .stat-label {
        font-size: 12px;
    }
}