body, html {
    margin: 0;
    padding: 0;
	font-family: 'Montserrat', Arial, sans-serif;
    overflow-x: hidden;
}


main {
	margin-top: 25px;
}

.intro {
	position: relative;
    width: 100vw;           /* Full width of the viewport */
    height: 350px;          /* Full height of the viewport */
    padding: 0;
    margin: 0;
    overflow: hidden;       /* Hide overflow to prevent scrollbars */
	z-index: 0;
    margin-bottom: 25px;
}

.intro img {
    width: 100%;            /* Stretch to fill the width of the container */
    height: 100%;           /* Stretch to fill the height of the container */
    object-fit: cover;       /* Ignore the original aspect ratio */
}

.overlay-text {
    position: absolute;      /* Position text over the image */
    top: 50%;                /* Center vertically */
    left: 60%;               /* Center horizontally */
    transform: translate(-50%, -50%); /* Adjust to truly center */
    color: white;            /* Set text color */
    text-align: center;      /* Center align text */
	letter-spacing: 5px;
	width: 95%;
}

.intro h1 {
	font-size: 2.3em;
}

@media (max-width: 768px) {
	.intro {
		position: relative;
		width: 100vw;           /* Full width of the viewport */
		height: 200px;          /* Full height of the viewport */
		padding: 0;
		margin: 0;
		overflow: hidden;       /* Hide overflow to prevent scrollbars */
		z-index: 0;
		margin-bottom: 25px;
	}
	.intro img {
		width: 100%;            /* Stretch to fill the width of the container */
		height: 100%;           /* Stretch to fill the height of the container */
		object-fit: none;       /* Ignore the original aspect ratio */
	}
	.overlay-text {
		top: 60%;                /* Center vertically */
		left: 50%;               /* Center horizontally */
		transform: translate(-50%, -50%); /* Adjust to truly center */
		letter-spacing: 1.5px;
	}	
}
	


.title-underline {
    max-width: 90%;
    width: 750px;
    margin: 0 auto;
    border: none;
    border-top: 2px solid #378a3f;
}

.centered, .centered2 {
    text-align: center;
    margin: 0;
}
.centered3 {
    text-align: center;
}
:root {
    --h3-font-size: 18px;
}
h3 {
    font-size: var(--h3-font-size);
}
h3 span {
    display: inline;
    font-weight: normal; 
}
.h3center {
    text-align: center;
    margin: 0 auto;
}
.timeline-wrapper {
    display: flex;
    justify-content: center;
}
.timeline {
    position: relative;
    width: 850px;
    padding: 20px 0;
    box-sizing: border-box;
}
.timeline::before {
    content: '';
    position: absolute;
    left: 200px;
    width: 2px;
    height: 100%;
    background: #378a3f;
}
.timeline-item {
    position: relative;
    display: flex;
    align-items: flex-start;
    margin-bottom: 0px;
    padding-left: 200px;
}
.timeline-dot {
    position: absolute;
    left: 200px;
    width: 13px;
    height: 13px;
    border: 2px solid #378a3f;
    background: white;
    border-radius: 50%;
    transform: translate(-50%, 200%);
}
.timeline-time {
    position: absolute;
    top: -4px;
    left: 0px; 
    width: 150px;
    text-align: right;
    font-size: var(--h3-font-size);
    font-weight: bold;
    color: black;
    margin-bottom: 10px;
    white-space: normal;
    transform: translate(20%, 150%);
}




.timeline-item:hover .timeline-dot {
	background: #378a3f;
}
.timeline-item:hover .timeline-time {
	color: #378a3f;
}
.timeline-item:hover strong {
	color: #378a3f;
}
.timeline-item:hover h3 {
	color: #378a3f;
}



.timeline-content {
    margin-left: 20px;
    padding: 10px 20px;
    background: none;
    border-radius: 5px;
    box-shadow: none;
    box-sizing: border-box;
    white-space: normal;
}
.timeline-content h3 {
    margin: 0 0 10px 0;
    color: black;
}
.timeline-content p {
    margin: 0 0 10px 0;
}
.skills-list {
    margin: 20px auto;
    list-style-type: none;
    padding: 0;
    /*max-width: 300px;*/
}
.skill-item {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    margin-bottom: 5px;
}
.skill-name {
    font-weight: normal;
}
.stars {
    display: flex;
    padding-left: 15px;
}
.star {
    font-size: 24px;
    color: black;
    cursor: pointer;
    margin-right: 5px;
}
.star.empty {
    color: #ccc;
}
.skill-item:hover .star:not(.empty) {
    color: #ffcc00;
}
.skill-item:hover .skill-name {
    font-weight: bold;
	color: #378a3f;
}
.two-column-cv {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    width: 80%;
    margin: 0 auto;
}
.left-column-cv, .right-column-cv {
    display: flex;
    flex-direction: column;
    flex: 1;
    box-sizing: border-box;
    text-align: left;
}
@media (min-width: 769px) {
    .hide-time {
        display: none;
    }
}
@media (max-width: 768px) {
    .timeline-time, 
    .timeline-dot,
    .timeline::before,
    .br-hide {
        display: none;
    }
    .two-column-cv {
        flex-direction: column;
        align-items: center;
        width: 90%;
        margin-top: 10px;
    }
    .timeline-item {
        flex-direction: column;
        padding: 0;
        padding-bottom: 15px;
    }
    .timeline {
        width: 100%;
    }
    .timeline-content, .timeline-wrapper {
        text-align: center;
        margin: 0 auto;
        width: 95%;
        max-width: 95%;
        padding: 0 0px;
        box-sizing: border-box;
        white-space: normal;
    }
    .hide-time {
        font-weight: bold;
        white-space: pre;
    }
    .skill-list {
        padding: 0;
        margin: 0px;
        margin-top: 0;
        margin-bottom: 0px;
    }
    .no-marg {
        padding: 0;
        margin: 0px;
        margin-top: -10px;
        margin-bottom: 5px;
    }
}
.certificates {
	text-align: left;
    max-width: 80%;
    width: 750px;
	margin: auto;
}
.certificatesp {
	padding-left: 50px;
}
@media (max-width: 768px) {
	.certificates {
		text-align: left;
		max-width: 90%;
		margin: auto;
	}
	.certificatesp {
		padding-left: 10px;
	}
}

#backToTopBtn {
    display: none; /* Hidden by default */
    position: fixed; /* Fixed at the bottom */
    bottom: 15px;
    right: 15px;
    z-index: 1003; /* On top of other elements */
    border: none;
    outline: none;
    background-color: #378a3f;
    color: #fff;
    cursor: pointer;
    padding: 10px 10px;
    border-radius: 10px;
    font-size: 15px;
    opacity: 0.6;
    width: 40px;
    height: 40px;
}

#backToTopBtn:hover {
    background-color: #94d97e;
    color: black;
}

@media (max-width: 768px) {
	#backToTopBtn {
		width: 35px;
		height: 35px;
	}
}