:root {
    --ui-white: #f4f1ea;
    --ui-darkgrey: #010101;
    --ui-midgrey: #2a2a2a;
    --ui-lightgrey: #e4e4e4;
    --ui-lightblue: #6b8fa3;
    --ui-blue: #465c88;

    --bg-color: var(--ui-white);
    --text-color: #000;
    --accent-color: var(--ui-blue);
    --socials-color: #2a4759;
}

html {
	scroll-behavior: smooth;
}

a:link, a:visited, a:hover, a:active {
  text-decoration: underline;
}

body {
    font-family: 'Source Serif 4', serif;
    font-size: 16px;
	line-height: 1.6;
    margin: 0;
    height: 100vh;
	background-color: var(--bg-color);
	color: var(--text-color);
    &.no-scroll {
        overflow: hidden;
    }
}

.theme-toggle-icon {
	background: none;
	border: none;
	padding: 0;
	margin-right: 10px;
	margin-top: 5px;
	cursor: pointer;
	width: 30px;
	height: 30px;
	display: flex;
	align-items: center;
	justify-content: center;
    img {
        padding-bottom: 5px;
    	width: 100%;
    	height: 100%;
    	object-fit: contain;
    }
    &:hover img {
    	filter: brightness(1.2);
    }
}

header{
	display: flex;
    font-family: "Ubuntu Mono", monospace;
	justify-content: space-between;
    font-size: clamp(30px, 5vw + 1rem, 75px);
	align-items: center;
	padding: 5px 30px;
}

.header-left {
	display: flex;
	align-items: center;
	gap: 20px;
}

.page-title {
	font-family: "Ubuntu Mono", monospace;
	font-size: 2rem;

	color: var(--accent-color);
	margin: 0;
}

.job-title-header {
	font-family: "Ubuntu Mono", monospace;
	color: rgba(0, 0, 0, 0.6);
	font-size: 1rem;
	margin-top: 5px;
	margin-bottom: 0;
}

.cursor {
    display: inline-block;
    width: 3px;
    height: 1em;
    background-color: var(--accent-color);
    margin-left: 5px;
    animation: blink 0.8s steps(1) infinite;
    vertical-align: middle;
    transform: translateY(-0.1em);
}

@keyframes blink {
	50% {
	opacity: 0;
	}
}

img {
	display: block;
	max-inline-size: 100%;
}

h2 {
	color: var(--accent-color);
	margin-top: 1.2em;
	font-size: 1.4em;
    font-weight: bold !important;
    text-transform: uppercase;
}

h3 {
    margin-top: 30px;
    font-size: 1.2em;
}

li::marker {
    font-family: "Ubuntu Mono", monospace;
    content: "> ";
}

.main-container {
	max-width: 850px;
	margin: 0 auto;
	padding: 0 20px;
	padding-bottom: 500px;
}

.section {
    margin: 50px 0;
    background-color: transparent;
    padding: 15px;
    margin-top: 40px;
    border-bottom: 2px solid var(--ui-lightgrey);
}

.profile-image {
    margin-top: 13px;
	width: 150px;
    aspect-ratio: 4/5;
    object-fit: cover;
}


/* ------- Navigation buttons on the top right------------- */
.navbar {
    font-family: "Ubuntu Mono", monospace;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 10px 40px;
    box-sizing: border-box;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    background-color: transparent;
    &.scrolled {
        opacity: 1;
        background-color: var(--bg-color);
        box-shadow: 0 0 2px var(--ui-darkgrey);
        .nav-name {
            opacity: 1;
        }
    }
}
.nav-name {
    font-family: "Ubuntu Mono", monospace;
    font-weight: bold;
    font-size: 1.2rem;
    color: var(--accent-color);
    opacity: 0;
    transition: opacity 0.4s ease;
}
.nav-buttons {
    display: flex;
    align-items: center;
    gap: 10px;
}
.topbuttons.hidden {
	transform: translateY(-50px);
	opacity: 0;
	pointer-events: none;
}
.nav-button {
    text-decoration: none !important;
	background: none;
	border: none;
	color: #000;
	padding: 10px 20px;
	text-align: center;
	text-decoration: none;
	font-size: 16px;
	white-space: nowrap;
    border-bottom: 2px solid transparent;
    &:hover {
    	color: var(--ui-blue);
        border-bottom-color: 2px solid var(--ui-blue);
    }
}
/* -------------------------------------------------------- */

.social-icon {
	color: var(--ui-blue);
	text-decoration: none;
    &:hover {
    	color: #333333;
    }
}

.intro-paragraph {
  margin-top: 30px;
  margin-bottom: 50px;
  line-height: 1.6;
  background-color: var(--bg-color);
  border-bottom-color: var(--ui-lightgrey);
  border-bottom-width: 2px;
  border-bottom-style: solid;
  padding: 15px;
}

.job-title {
  font-weight: bold;
}

.job-dates, .intern_desc, .teaching_desc {
    font-family: "Ubuntu Mono", monospace;
    color: #555;
}

.two-columns {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
}

.two-columns > div {
  flex: 1;
  min-width: 250px;
}


/* --------------- Contact icons -------------------------- */
.socials {
	position: fixed;
	bottom: 20px;
	left: 10px;
	display: flex;
	flex-direction: column;
	gap: 15px;
	z-index: 1000;
	align-items: center;
    .social-icon {
    	font-size: 1rem;
    	color: var(--socials-color);
    	text-decoration: none;
        &:hover {
        	color: #000000;
        }
    }
}

/* ---------------- Skills list --------------------------- */
.skills-list {
    display: column;
    gap: 10px 30px;
    list-style-type: disc;
    padding-left: 20px;
    max-width: 600px;
    margin: 10px auto;
    li {
      margin-bottom: 10px;
    }
}

/* ----------------- Image of a project ------------------- */
.project-img {
	margin: auto;
	width: 300px;
    border: 1px solid var(--ui-midgrey);
	cursor: pointer;
    &:hover {
    	transform: scale(1.03);
    	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    }
}

/* ------------- Arrow to go back to the top -------------- */
#back-to-top {
	color: #2a4759;
	font-size: 24px;
	text-decoration: none;
	text-align: center;
	transition: opacity 0.2s ease, color 0.2s;
	opacity: 0;
	pointer-events: none;
    &:hover {
    	color: #000000;
    }
    &.visible {
    	opacity: 1;
    	pointer-events: auto;
    }
}

/* Lightbox hidden by default */
.lightbox {
    display: none;
    position: fixed;
    padding-top: 50px;
    inset: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.8);
    padding: 100px 20px;
    z-index: 2000;
}
.lightbox-content {
    display: block;
    margin: auto;
    max-width: 90%;
    max-height: 80%;
}
.close {
    position: absolute;
    top: 20px;
    right: 70px;
    color: white;
    font-size: 40px;
    cursor: pointer;
    &:hover {
      color: #ccc;
    }
}

.link-arrow {
    color: var(--ui-lightblue) !important;
    
}

.hamburger-menu {
    display: none;
}


/* ------------- Responsive Mobile Mode -------------- */
@media (max-width: 950px) {
	.profile-image {
		display: none;
	}
	.socials {
		bottom: 15px;
		left: 8px;
		gap: 10px;
	    .social-icon {
	    	font-size: 1rem;
	    }
	}
	body {
		padding-left: 25px;
		padding-right: 25px;
        font-size: 14px;
	}
	.navbar {
        left: 0;
        top: 0;
        height: 0;
        background-color: var(--bg-color);
        position: fixed;
        flex-direction: column;
        display: flex;
        width: 100%;
        height: 100vh;
        justify-content: center;
        align-items: center;
        z-index: 999;
        transform: translateX(100%);
        opacity: 0;
        pointer-events: none;
        transition: none;
	}
    .theme-toggle-icon {
        margin-bottom: 15px;
        position: absolute;
        left: 30px;
        top: 30px;
    }
    .nav-name, .pipe-separator {
        display: none;
    }
    .nav-buttons {
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
    }
    .navbar.active {
        height: 100vh;
        transform: translateX(0);
        pointer-events: auto;
        opacity: 1;
        transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
        .nav-button {
            font-size: 24px;
        }
    }
    .hamburger-menu {
        width: 36px;
        height: 36px;
        position: absolute;
        right: 30px;
        top: 30px;
        z-index: 2000;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        border: none;
        background: none;
        transition: transform 0.3s ease, opacity 0.4s ease;
        &.hidden {
            transform: translateX(100px);
            opacity: 0;
            pointer-events: none;
        }
    }
    #burger {
        background: #000;
        width: 30px;
        height: 2px;
        display: inline-block;
        position: absolute;
        cursor: pointer;
        &::before { top: -9px; }
        &::after { top: 9px; }
        &.open {
            background:transparent;
            &::before {
                transform: rotate(45deg);
                top: 0;
            }
            &::after {
                transform: rotate(-45deg);
                top: 0;
            }
        }
    }
    #burger::before, #burger::after {
        content:'';
        width: 30px;
        height: 2px;
        left: 0;
        display: inline-block;
        position: absolute;
        transform-origin: center;
        transition: all 0.3s ease;
    }
    #burger, #burger::before, #burger::after {
        background: #000;
    }
	.nav-button {
		font-size: 14px;
        margin-bottom: 60px;
        margin-left: 0;
	}
    .nav-buttons .nav-button:nth-of-type(1) { margin-left: 0; }
    .nav-buttons .nav-button:nth-of-type(2) { margin-left: 30px; }
    .nav-buttons .nav-button:nth-of-type(3) { margin-left: 60px; }
    .nav-buttons .nav-button:nth-of-type(4) { margin-left: 90px; }

    .header-left {
        margin-top: 20px;
    }

    .lightbox-content {
        margin: 0px;
    }
}

