:root {
    --background-color: #1c351c;
    --text-color: #eaf5fc;
    --link-color: #84c2e2;
    --red-color: #c6d89a;
    --top-spacing: 0rem;
    --section-spacing: 5vh;
    --landing-bottom-spacing: 0rem;
}

html, body { max-width: 100%; overflow-x: hidden; }

main {
    display: flex;
    flex-direction: column;
    width: 90%;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    height: 100%;
}

body {
    font-family: "SF Pro Display", sans-serif;
    font-size: 30px; 
    margin: 0;
    padding: 0;
    background-color: var(--background-color);
    color: var(--text-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    min-height: 100vh;
    height: 100%;
    padding-top: 0;
}

@font-face {
    font-family: "SF Pro Display";
    src: url("assets/fonts/SF-Pro-Display-Regular.otf");
    font-display: swap;
}

p {
    margin: 0 0 20px 0;
    width: 90%;
}

main img, video {
    width: 120%;
    border-radius: 16px;
    margin: 12px auto 37px;
    position: relative;
    left: -10%;
}

h1, h2, section {
    margin: 0;
    text-align: left;
    font-weight: bold;
    color: #c6d89a;
}

h1 {
    font-size: 3rem;
    text-align: left;
    margin: 0 0 20px 0;
    border-bottom: 1px solid var(--text-color);
    width: 100%;
    padding-bottom: 10px;
    opacity: 0.7;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

ul {
    padding-left: 1.5rem; 
    list-style-position: outside;
    margin: 0;
}

li {
    margin-bottom: 10px;
    padding-left: 0; 
    list-style-position: outside; 
    max-width: 90%; 
    font-size: 1.2rem;
    display: list-item;
    text-align: left;
}

section {
    margin: var(--section-spacing) 0 0 0;
    padding-bottom: 4rem;
}

a, a:link, a:visited {
    color: var(--link-color);
    transition: color 0.3s ease;
    font-weight: bold;
    text-decoration: none;
}

a:hover, .back:hover {
    color: #c6d89a;
    text-decoration: underline;
    cursor: pointer;
}

header {
    height: 40px;
}

footer {
    height: 150px;
}

.image-container {
    position: relative;
    width: 120%;
    max-width: 800px;
    left: -10%;
    height: 0;
    padding-top: 65%;
    margin: 12px auto 37px;
}

.image-container img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    border-radius: 16px;
}

.image-container img.active {
    opacity: 1;
    cursor: pointer;
}

.object-fix {
    height: auto;
    object-fit: cover;
}

.bold { font-weight: bold; }
.blue { color: var(--link-color); }
.white { color: var(--background-color); }
.red { color: var(--red-color); }

.fade-in-text {
    animation: fadeIn 3s;
}

.left-aligned {
    align-items: flex-start;
}

.wide_photo {
    width: 140%;
    left: -20%;
}
    
.landing-image {
    width: 20%;
    margin: 12px 0 37px 0;
    border-radius: 16px;
    position: relative;
    left: 0;
    filter: grayscale(100%);
    align-self: flex-end;
}

.landing-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding-top: var(--top-spacing);
}

.landing-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    margin-bottom: var(--landing-bottom-spacing);
}

.landing-description {
    margin: 0 0 20px 0;
    width: 100%;
    max-width: 500px;
}

.social-icons {
    display: flex;
    gap: 0.5rem;
    margin-top: 0rem;
    align-items: center;
}

.social-icon {
    width: 4.5rem !important;
    height: 2.5rem !important;
    margin: 0 !important;
    position: static !important;
    left: 0 !important;
    transition: transform 0.3s ease;
    object-fit: contain;
}

.social-icon:hover {
    transform: scale(1.1);
}

.resume-button {
    background-color: transparent;
    border: 2px solid var(--text-color);
    color: var(--text-color);
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.resume-button:hover {
    background-color: var(--text-color);
    color: var(--background-color);
}

.experiences-section {
    margin: 0;
    margin-top: 0; /* Will be set dynamically by JavaScript */
}

.experience-item {
    margin-bottom: 3rem;
}

.experience-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 0.5rem;
    width: 100%;
}

.experience-header h2 {
    margin: 0;
    font-size: 2rem;
    color: #84c2e2;
}

.date {
    font-size: 1.2rem;
    color: var(--text-color);
}

.about {
    font-size: 1.5rem;
    color: var(--text-color);
    margin-bottom: 0.25rem;
}

.role {
    font-size: 1.2rem;
    font-style: italic;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.show-details {
    font-size: 1.2rem;
    text-decoration: underline;
    display: inline-block;
    margin-top: 0.5rem;
}

@media screen and (orientation: landscape) {
    :root {
        --top-spacing: 10rem;
    }
}

@media screen and (orientation: portrait) {
    :root {
        --top-spacing: 8rem;
    }
    
    .landing-image {
        width: 40%;
    }
}

@media screen and (max-width: 768px) {
    body {
        font-size: 6vw;
    }

    h1 {
        font-size: 8vw;
    }

    h2 {
        font-size: 8vw;
    }
    
    ul {
        padding-left: 1rem; /* Adjust bullet spacing for smaller screens */
    }

    li {
        padding-left: 1rem; /* Add padding to align text correctly */
        list-style-position: outside; /* Maintain bullet position */
        max-width: 100%; /* Make sure it fits the screen */
        font-size: 6vw;
    }

    main img, video {
        width: 100%;
        max-width: 100%;
        left: 0;
    }

    .image-container {
        width: 100%;
        max-width: 100%;
        left: 0;
        padding-top: 56.25%;
    }

    .image-container img {
        width: 100%;
        object-fit: cover;
    }

    .wide_photo {
        width: 100%;
        left: 0;
    }
    
    .landing-image {
        width: 40%;
        left: 0;
    }

    .experience-content {
        flex-direction: column;
    }
    
    .experience-image {
        width: 100% !important;
        max-width: 100% !important;
        margin: 1.5rem 0 0 0 !important;
        left: 0 !important;
        position: relative !important;
        margin-left: 0 !important;
    }

    .skills {
        font-size: 1.2rem;
        margin-top: 1rem;
        color: var(--text-color);
        opacity: 0.8;
        display: flex;
        gap: 1.5rem;
        align-items: center;
    }
    
    .skills > * {
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }
    
    .skills img {
        width: auto !important;
        height: 2em !important;
        vertical-align: middle;
        position: static !important;
        left: 0 !important;
        margin: 0 !important;
    }
    
}

@keyframes fadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-20px);
    }
    60% {
        transform: translateY(-10px);
    }
}

.arrow-down {
    font-size: 2rem;
    color: var(--text-color);
    animation: bounce 2s infinite;
    cursor: pointer;
    opacity: 0.7;
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    transition: opacity 0.5s ease;
}

.arrow-hidden {
    opacity: 0;
}

.experience-content {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
    margin-top: 1rem;
    justify-content: space-between;
}

.text-content {
    flex: 1;
}

.experience-image {
    width: 40%;
    margin: 0;
    border-radius: 16px;
    margin-left: auto;
    position: inherit;
}

.skills {
    font-size: 1.2rem;
    margin-top: 1rem;
    color: var(--text-color);
    opacity: 0.8;
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.skills > * {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.skills img {
    width: auto !important;
    height: 2em !important;
    vertical-align: middle;
    position: static !important;
    left: 0 !important;
    margin: 0 !important;
}
