
/**********************/
/* HEADER */
/**********************/
.header {
    background-color: #606060;
    color: #FAF7EC;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 500;
    /* Because we want it to be sticky later */
    height: 8vh;
    padding: 0 9.6rem;
    position: relative;
}

.logo {
    height: 4.4rem;
}

/* Normal logo state */
.logo-img {
    height: 4.4rem;
    transition: opacity 0.2s ease-in-out; /* Smooth transition */
}

/* On hover or focus, hide the default logo */
/*.logo:hover .logo-img,*/
/*.logo:focus .logo-img {*/
/*    opacity: 0;*/
/*}*/
.logo:hover .logo-img {
    opacity: 0;
}

/* Highlighted (hover) logo as a background */
.logo {
    display: inline-block;
    width: auto;
    height: 4.4rem;
    background-image: url('/img/bannerMatt-highlighted.png'); /* Highlighted logo */
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
}

/*.logo:hover,*/
.logo:focus {
    background-image: url('/img/bannerMatt-highlighted.png'); /* Highlighted logo */
}

/**********************/
/* NAVIGATION */
/**********************/

.main-nav-list {
    list-style: none;
    display: flex;
    gap: 4.8rem;
    align-items: center;
}

.main-nav-link:link,
.main-nav-link:visited {
    display: inline-block;
    text-decoration: none;
    color: #FAF7EC;
    font-weight: 500;
    font-size: 1.8rem;
    transition: all 0.3s;
}

.main-nav-link:hover,
.main-nav-link:active {
    color: #EFBF6C;
}

.main-nav-link.nav-cta:link,
.main-nav-link.nav-cta:visited {
    padding: 1.2rem 2.4rem;
    color: #FAF7EC;
    background-color: #DDA472;
}

.main-nav-link.nav-cta:hover,
.main-nav-link.nav-cta:active {
    background-color: #EFBF6C;
}

/* MOBILE */
/* Mobile Navigation Styles */
.mobile-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(96, 96, 96, 0.97); /* Match header color with some transparency */
    z-index: 8;
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
    overflow-y: scroll;
    display: none;
}

.mobile-nav-content {
    padding: 12rem 4.8rem;
    width: 100%;
    height: 100%;
}

.mobile-nav-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 4.8rem;
}

.mobile-nav-link {
    display: block;
    font-size: 3rem;
    font-weight: 500;
    color: #FAF7EC;
    text-decoration: none;
    padding: 1.6rem;
    border-radius: 9px;
    transition: all 0.3s;
}

.mobile-nav-link:hover {
    opacity: 0.9;
}

.mobile-nav-cta {
    background-color: #DDA472;
}

.mobile-nav-cta:hover {
    background-color: #EFBF6C;
}

/* Show/Hide Navigation Controls */
.nav-open .mobile-nav {
    transform: translateX(0);
}

.nav-open .icon-mobile-nav[name="close"] {
    display: block;
}

.nav-open .icon-mobile-nav[name="menu"] {
    display: none;
}

.btn-mobile-nav {
    border: none;
    background: none;
    cursor: pointer;
    display: none;
}

.icon-mobile-nav {
    height: 4.8rem;
    width: 4.8rem;
    /*color: #333;*/
}

.icon-mobile-nav[name="menu"] {
    display: block;
}

.icon-mobile-nav[name="close"] {
    display: none;
}

/* Dropdown container */
.dropdown {
    position: relative; /* Positioning for dropdown menu */
}

/* Dropdown menu (hidden by default) */
.dropdown-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    position: absolute;
    top: 100%; /* Place the dropdown below the parent link */
    left: 0;
    display: none; /* Hidden by default */
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2); /* Optional shadow for dropdown */
    border-radius: 5px; /* Optional rounded corners */
    z-index: 100; /* Ensure dropdown appears on top */
    overflow: hidden; /* Prevent overflow issues */
}

/* Dropdown items */
.dropdown-item {
    display: block;
    text-decoration: none;
    /*color: #333; !* Text color *!*/
    padding: 1rem 2rem;
    font-size: 1.6rem;
    transition: background-color 0.3s ease, color 0.3s ease; /* Smooth hover transition */
}

/* On hover for dropdown items */
.dropdown-item:hover {
    opacity: 0.9;
    color: #606060; /* Optional darker text on hover */
}

/* Show dropdown menu on hover */
.dropdown:hover .dropdown-menu {
    display: block; /* Reveal dropdown menu */
    animation: fadeIn 0.3s ease-in-out; /* Optional fade-in effect */
}

/* Animation for dropdown menu */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/**********************/
/* STICKY NAVIGATION  */
/**********************/
.sticky .header {
    position: fixed;
    top: 0;
    bottom: 0;
    width: 100%;
    height: 7.2rem;
    padding-top: 0;
    padding-bottom: 0;
    /*background-color: rgba(255, 255, 255, 0.97);*/
    z-index: 999;
    box-shadow: 0 1.2rem 3.2rem rgba(0, 0, 0, 0.03);
}

.sticky .section-hero {
    margin-top: 9.6rem;
}


/**********************/
/* HERO SECTION */
/**********************/
.section-hero {
    background-color: #F3EDD9;
    position: relative;
    overflow:hidden;
}

.hero {
    height: 83vh;
    width: 100vw;
    display: grid;
    grid-template-columns: 1fr 1fr;
    justify-content: center;
    align-items: center;
    margin: 4.5vh 0;
    border-top: 0.5rem solid #606060;
    border-bottom: 0.5rem solid #606060;
    position: relative;
    overflow: visible;
    }

.hero-animation-box {
    grid-column: 1 / -1; /* Initially spans both columns */
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    position: relative;
    animation-fill-mode: forwards;
}

.hero-animation-box.moved {
    animation: moveToLeft 1.5s ease-in-out;
}

.hero-animation-box.final-position {
    grid-column: 1;
    justify-content: center;
    transform: translateX(0);
    animation: none ;
}

@keyframes moveToLeft {
    0% {
        transform: translateX(0);
        justify-content: center;
    }
    100% {
        transform: translateX(-25%);
        justify-content: flex-start;
    }
}

.hero-logo {
    flex-grow: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-img {
    max-height: 60vh;
    height: 60rem;
    width: auto;
}

.hero-highlights {
    opacity: 0;    /* Initially hidden */
    grid-column: 2; /* Positioned in the right column */
    display: none;
    grid-template-columns: 3fr 3fr 1fr;
    align-items: start;
    height: 100%;
    overflow: visible;
    animation: fadeInHighlights 2s ease-in-out forwards;
}

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

.hero-highlights.visible {
    display: grid;
    opacity: 1; /* Fade in when class is added */
}

.hero-right-margin {
    /*height: 91vh;*/
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.career-highlights-carousel {
    position: relative;
    width: 100%;
    height: 100%;
}

.career-highlight {
    position: absolute;
    display: grid;
    grid-template-rows: 3fr 1fr 1fr;
    height: 41vh;
    width: 100%;
    padding-bottom: 2.0rem;
    visibility: visible; /* Default state */
    transition: all 0.3s ease-in-out;
}

.career-highlight-tag {
    font-size: 2rem;
    font-weight: 1000;
    text-align: right;
    display: flex;
    align-items: start;
    justify-content: flex-end;
    padding: 1.5rem;
}

.career-highlight-description {
    font-size: 2rem;
    font-weight: bold;
    line-height: 1.3;
    max-width: 70%;
    display: flex;
    align-items: center;
    padding: 1.5rem;
}

.career-highlight-label {
    font-size: 4.2rem;
    font-weight: bold;
    line-height: 1.1;
    max-width: 80%;
    display: flex;
    align-items: center;
    /*padding: 1.5rem;*/
    padding-left: 1.5rem;
    padding-bottom: 0.5rem;
    color: #FAF7EC;
}

/* Common styles for highlighting */
.career-highlight.highlight-left-top {
    z-index: 10; /* Ensure it stays above other elements */
    overflow: visible;
    /*background-color: red;*/
    box-shadow: -4px -4px 10px rgba(0, 0, 0, 0.2);
}

.career-highlight.highlight-left-bottom {
    z-index: 10;
    overflow: visible;
    /*background-color: orange;*/
    box-shadow: -4px 4px 10px rgba(0, 0, 0, 0.2);
}

.career-highlight.highlight-right-top {
    z-index: 10;
    overflow: visible;
    /*background-color: yellow;*/
    box-shadow: 4px -4px 10px rgba(0, 0, 0, 0.2);
}

.career-highlight.highlight-right-bottom {
    z-index: 10;
    overflow: visible;
    /*background-color: green;;*/
    box-shadow: 4px 4px 10px rgba(0, 0, 0, 0.2);
}

.insight-page {
    height: 92vh;
    width: 100vw;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.navigation-part {
    font-family: Arial, sans-serif;
    display: flex;
    height: 10%;
    width: 100%;
    font-size: 8.4rem;
    font-weight: lighter;
    line-height: 1.1;
    align-items: center;
    justify-content: center;
    gap: 3rem;
    color: #FAF7EC;

}

.navigation-left,
.navigation-right {
    background-color: transparent;
    border: none;
    cursor: pointer;
    color: inherit;
}

#leftBtn, #rightBtn {
    text-align: center;
    width: 5rem;
    height: 5rem;
    line-height: 8rem;
    border-radius: 80%;
    transition: background-color 0.3s ease;
}

#leftBtn:hover, #rightBtn:hover {
    color: #606060;
}

.illustration-part {
    height: 70%;
    position: relative;
    width: 100%;
    /*max-width: 800px;*/
    overflow: hidden;
    display: flex;
    align-items: center;
}

.illustration-carousel {
    position: relative;
    visibility: hidden;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.illustration-track {
    position: relative;
    height: 100%;
    display: flex;
    justify-content: left;
    align-items: center;
    transform: translateX(-164vw);
    transition: transform 0.5s ease-in-out;
}

.illustration {
    position: relative;
    height: 100%;
    flex: 0 0 60vw;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-right: -20vw;
}

.illustration a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 60%;
    height: auto;
    object-fit: contain;
}

.illustration img {
    width: 100%;
    height: auto;
    margin: 10px;
    object-fit: contain;
}

/* Center Image Styles */
.highlight-image {
    transform: scale(1.13);
    box-shadow: 8px 8px 5px 0 rgba(0, 0, 0, 0.3);
    z-index: 10;
}

.text-part {
    height: 20%;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.insight {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 4.8rem;
}

.insight-label {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.insight-text {
    font-size: 4.8rem;
    font-weight: bold;
    line-height: 1.1;
    white-space: nowrap;
    /*display: flex;*/
    /*align-items: center;*/
    justify-content: center;
    padding-left: 1.5rem;
    padding-bottom: 0.5rem;
    color: #FAF7EC;
}

.insight-tag {
    font-family: Arial, sans-serif;
    font-size: 2.2rem;
    font-weight: 1000;
    text-align: right;
    display: flex;
    align-items: start;
    justify-content: flex-end;
    padding: 1.5rem 3rem 4rem 3rem;
}

.insight-block {
    display: block;
    width: auto;
    max-width: 900px;
    /*margin: 0 auto;*/
    text-align: justify;
    text-align-last: right;
    line-height: 1.5;
    /*padding: 1.5rem;*/
}

.insight-line {
    width: 100%;
    font-size: 2rem;
    font-weight: bold;
    /*line-height: 1.3;*/
    /*text-align: right;*/
}

.personal-info {
    width: 90%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    justify-content: center;
}

.personal-photo {
    width: 80%;
    display:flex;
    align-items: center;
    justify-content: center;
    /*margin: 100px;*/
}

.personal-photo img {
    height: 50vh;
    width: auto;
    border: 15px solid #606060;
}

.personal-text {
    width: 100%;
    min-height: 55vh;
    /*background-color: #F3EDD9;*/
    color: #FAF7EC;
    font-size: 2.1rem;
    font-weight: bold;
    line-height: 1.5;
    padding: 40px 20px;
    margin: 30px 0;
    /*box-shadow: 10px 10px 15px rgba(0, 0, 0, 0.5); !* Add shadow *!*/
}

.personal-text p {
    margin-bottom: 20px;
    text-align: justify;
}

.arial-font {
    font-family: Arial, sans-serif;
    font-weight: inherit;
    font-size: inherit;
    color: inherit;
}

.resume {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 3%;
    margin-right: 2%;
}

.resume-text {
    font-size: 2.2rem;
    color: #FAF7EC;
}

.contact-hero {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-around;
}

.contact-photo {
    width: 55%;
    height: auto;
    border: 12px solid #606060;
    margin-top: 5%;
}

.contact-text {
    width: 90%;
    height: 10%;
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

.contact-label {
    font-size: 4.8rem;
    font-weight: bold;
}

.contact-tag {
    font-family: Arial, sans-serif;
    font-size: 2.2rem;
    font-weight: 1000;
    text-align: right;
    display: flex;
    align-items: start;
    justify-content: flex-end;
    padding: 1.5rem 3rem 4rem 3rem;
}

.contact-info-panels {
    grid-column: 2; /* Positioned in the right column */
    display: grid;
    grid-template-columns: 3fr 3fr 1fr;
    align-items: start;
    height: 100%;
    overflow: visible;
}

.info-panel-column {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.info-panel {
    display: grid;
    grid-template-rows: 3fr 1fr 1fr;
    height: 41vh;
    width: 100%;
    z-index: 10;
    padding-bottom: 2.0rem;
}

/* Make the toolbar a flex container */
.fancybox__toolbar {
    display: flex;
    justify-content: flex-end; /* Align items to the right */
    gap: 5px; /* Reduce spacing between buttons */
    padding: 10px; /* Optional padding around the toolbar */
    z-index: 1000;
}

/* Ensure the buttons are styled properly */
.fancybox__toolbar .fancybox__button {
    font-size: 1.2rem; /* Adjust button size if needed */
}

.fancybox__toolbar__column.is-right {
    flex-grow: 0; /* Don't allow the column to grow */
    flex-basis: auto; /* Use intrinsic size based on content */
    display: flex; /* Ensure buttons inside are aligned properly */
    justify-content: flex-end; /* Align buttons to the right */
}

.fancybox__toolbar__column.is-right .fancybox__button {
    flex: none; /* Prevent buttons from stretching */
    width: 46px; /* Set button width explicitly */
    height: 46px; /* Set button height explicitly */
}
