/* styles.css */
:root {
    --a-color: #faf9f8;
    --b-color: #dacfc7;
    --c-color: #d5cbc3; 
    --d-color: #00796B; 
    --e-color: #8f8984; 
    --f-color: #3c3733; 
    --f-op-color: #00796B81;
    --transition-duration: 0.4s;
}

/* Zen palette */
.lazy {
    --a-color: #e9f5db; 
    --b-color: #cfe1b9; 
    --c-color: #b5c99a; 
    --d-color: #788a5e; 
    --e-color: #6b7a51; 
    --f-color: #192d19; 
    --f-op-color: #52673271; 
}

strong {
    font-weight: bolder;
    color: var(--d-color);
    font-size: 1.6rem;
}

.copyable {
    cursor: pointer;
    color: var(--f-color); /* Default color */
}

.copyable:hover {
    background-color: var(--b-color); /* Hover color */
}

body {
    font-family: Stolzl, Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--a-color);
    color: var(--f-color);
    font-size: 1.5rem;
    transition: background-color var(--transition-duration), color var(--transition-duration); /* Transition for color palette */
}

header {
    background-color: var(--a-color);
    color: var(--f-color);
    text-align: center;
    padding: 20px;
    position: relative;
    transition: background-color var(--transition-duration), color var(--transition-duration); /* Transition for color palette */
}

header h1 {
    margin: 0;
    color: var(--f-color);
    font-family: Stolzl, Arial, sans-serif;
    font-weight: 900;
    font-size: 2rem;
}

.contact-info {
    margin-top: 10px;
}

.contact-info a {
    color: var(--f-color);
    text-decoration: none;
}

.contact-info a:hover {
    background-color: var(--f-op-color);
    text-decoration: none;
    transition: background-color 0.2s ease-in-out;
}

main {
    flex: 1;
    padding: 10px;
    padding-left: 200px;
    padding-right: 200px;
    padding-bottom: 60px;
}

/* Define the base styles for section */
section {
    margin-bottom: 10px;
    background-color: var(--b-color);
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    color: var(--f-color);
    border: 2px solid transparent; /* Initial border set to transparent */
    transition: background-color 0.2s ease-in-out, box-shadow 0.4s ease-in-out, border 0.4s ease-in-out, filter 0.3s ease-in-out; /* Smooth transition for border and blur */
}

/* Open state for section */
section.open {
    border: 2px solid var(--f-color); /* Show border when open */
    background-color: var(--a-color);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

/* Blur effect for non-open sections */
.blur section:not(.open) {
    filter: blur(2.5px);
    transition: filter 0.3s ease-in-out;
}

/* Hover state for section */
section:hover {
    background-color: var(--a-color);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

h2 {
    color: var(--d-color);
    font-family: Stolzl, Arial, sans-serif;
    font-weight: bolder;
    font-size: 1.8rem;
}


h3 {
    color: var(--f-color);
    font-family: Stolzl, Arial, sans-serif;
    font-weight: bold;
    font-size: 1.6rem;
}

/* Define the base styles for section h2 */
section h2 {
    color: var(--d-color);
    cursor: pointer;
    font-family: Stolzl, Arial, sans-serif;
    position: relative; /* Needed to position the pseudo-element */
    padding-top: 5px; /* Space for the overline */
    font-weight: bolder;
    font-size: 1.8rem;
}

/* Create the overline using the ::before pseudo-element */
section h2::before {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    top: 0;
    left: 0;
    background-color: var(--e-color);
    transition: width 0.4s ease-in-out; /* Smooth transition */
}

/* Expand the overline on hover */
section h2:hover::before {
    width: 40%;
}

section p {
    padding-left: 10px;
    font-size: 1.3rem;
}

section .content {
    display: none;
    padding: 20px;
}

/* Define the base styles for .timeline */
.timeline {
    position: relative;
    padding: 20px;
    border-radius: 5px;
    background-color: var(--b-color);
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    color: var(--f-color);
    border: 2px solid transparent; /* Initial border set to transparent */
    transition: background-color 0.4s ease-in-out, box-shadow 0.4s ease-in-out, border 0.4s ease-in-out; /* Smooth transition for border */
}

/* Ensure the timeline container does not exceed the section borders */
.timeline-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    margin: 20px 0;
    padding: 0 20px; /* Add padding to ensure points are inside the section */
    flex-wrap: nowrap; /* Prevent wrapping to keep items horizontal */
}

.timeline-container::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 20px; /* Adjust to match padding */
    right: 20px; /* Adjust to match padding */
    height: 4px;
    background-color: var(--d-color);
    z-index: 0;
}

.timeline-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    position: relative;
    z-index: 1;
}

.timeline-point {
    width: 20px;
    height: 20px;
    background-color: var(--b-color);
    border: 2px solid var(--e-color);
    border-radius: 50%;
    position: relative;
    z-index: 1;
    transition: background-color 0.4s ease-in-out, border-color 0.4s ease-in-out;
}

.timeline-point:hover {
    background-color: var(--e-color);
    border: 2px solid var(--a-color);
    z-index: 1;
}

.timeline-content {
    opacity: 0;
    visibility: hidden;
    background-color: var(--a-color);
    border: 1px solid var(--e-color);
    padding: 10px;
    border-radius: 5px;
    position: absolute;
    top: 30px;
    width: 200px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    text-align: center;
    z-index: 2; /* Ensure the content appears above the timeline points */
    transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
}

.timeline-item:hover .timeline-content {
    opacity: 1;
    visibility: visible;
}

/* Distinguish the timeline section header */
.timeline-header {
    color: var(--d-color);
    cursor: pointer;
    font-family: Stolzl, Arial, sans-serif;
    position: relative; /* Needed to position the pseudo-element */
    padding-top: 5px; /* Space for the overline */
}

/* Create the overline using the ::before pseudo-element */
.timeline-header::before {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    top: 0;
    left: 0;
    background-color: var(--e-color);
    transition: width 0.4s ease-in-out; /* Smooth transition */
}

/* Expand the overline on hover */
.timeline-header:hover::before {
    width: 40%;
}

.job-details {
    display: none;
    padding: 20px;
    border: 1px solid var(--b-color);
    background-color: var(--a-color);
    border-radius: 5px;
    margin-top: 10px;
    margin-bottom: 20px;
}

.language-bar {
    position: relative;
    margin: 10px 0;
    background-color: var(--a-color);
    border: 2px solid var(--d-color);
    border-radius: 5px;
    overflow: hidden;
    cursor: pointer;
    text-align: center;
    color: var(--d-color);
    font-family: Stolzl, Arial, sans-serif;
}

.language-bar:hover {
    border: 2px solid var(--d-color);
    color: var (--e-color);
    transition:  0.2s ease-in-out;
}

.language-bar .fill {
    background-color: var(--f-op-color);
    height: 100%;
    position: absolute;
}

.language-bar .fill:hover {
    background-color: var(--d-color);
    transition: background-color 0.4s ease-in-out;
}

/* Add this CSS to your stylesheet */
.speech-bubble {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: var(--a-color);
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    border-radius: 30px;
    border-bottom-left-radius: 0px;
    border: 2px solid var(--d-color);
    width: 80%; /* Adjust as needed */
    max-width: 500px; /* Adjust as needed */
    cursor: move; /* Change cursor to move when hovering over the bubble */
    overflow: hidden; /* Ensure content inside does not overflow */
}

.speech-bubble::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0px 0px 40px 40px; /* Adjust size of pointed corner */
    border-color: transparent transparent var(--a-color) transparent; /* Adjust color */
}

.speech-bubble button {
    display: block;
    margin: 20px auto 0;
    background-color: var(--f-op-color); /* Red background */
    color: var(--a-color);
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 5px;
}

.speech-bubble button:hover {
    background-color: var(--d-color); /* Darker red */
}

footer {
    background-color: none;
    color: var(--f-color);
    text-align: center;
    padding: 5px 0;
    position: fixed;
    bottom: 0;
    width: 100%;
    margin-top: 10px;
    font-size: 1.2rem;
    font-weight: bolder;
    text-transform: uppercase;
}

.switch {
    position: absolute;
    top: 20px;
    right: 20px;
    display: inline-block;
    width: 60px;
    height: 34px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--d-color);
    border-left: 2px solid var(--e-color);
    border-right: 2px solid var(--e-color);
    transition: 0.4s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: var(--a-color);
    transition: 0.4s;
}

input:checked + .slider {
    background-color: var(--c-color);
}

input:checked + .slider:before {
    transform: translateX(26px);
}

.slider.round {
    border-radius: 34px;
    
}

.slider.round:before {
    border-radius: 50%;
    background-color: var(--a-color);
}

i {
    opacity: 50%;
}

/* Styles for the scroll to top button */
.scroll-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: none; /* Hidden by default */
    width: 50px;
    height: 50px;
    background-color: var(--b-color); /* Use a color from your palette */
    color: var(--a-color); /* Use a contrasting color from your palette */
    border: none;
    border-radius: 50%;
    text-align: center;
    font-size: 2rem;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.scroll-to-top i {
    line-height: 50px; /* Center the icon vertically */
    opacity: 100%;
}

.scroll-to-top:hover {
    background-color: var(--d-color); /* Change color on hover */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    font-size: 2.2rem;
    transition: font-size 0.4s ease-in-out;
}

.divider {
    margin: 0 10px;
}

/* Media Query for Small Screens */
@media (max-width: 767px) {
    main {
    padding-left: 10px;
    padding-right: 10px;
    }

    .timeline-content {
        display: none !important; /* Ensure hover content is hidden on small screens */
    }

    header {
        text-align: left; /* Align text to the left */
    }

    header h1 {
        order: 2; /* Move the h1 below the slider */
        align-self: center; /* Center h1 in the new layout */
    }

    section h2 {
        font-size: 1.8rem;
        text-align: center;
    }
    
    .switch {
        order: 1; /* Ensure the switch stays at the top */
        align-self: flex-end; /* Align the switch to the end */
    }

    .contact-info p {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .contact-info p i {
        margin-right: 10px;
    }
    
    .contact-info span, .contact-info a {
        margin-top: 5px;
    }
    
    .divider {
        display: none; /* Hide dividers on small screens */
    }

    section {
        margin-bottom: 10px;
        padding: 10px;
    }

    footer {
        font-size: 1rem;
        text-transform: uppercase;
    }

    .scroll-to-top {
        display: none; /* Hide scroll-to-top button on small screens */
        opacity: 0;
    }
    
}