.cormorant-regular {
  font-family: "Cormorant Garamond", serif;
  font-weight: 400;
  font-style: normal;
}

.montecarlo-regular {
  font-family: "MonteCarlo", cursive;
  font-weight: 400;
  font-style: normal;
}

html{
    background-image: url(../images/background.png);
    background-repeat: repeat;
    font-size: 3vh;
}

h1{
    font-family: "MonteCarlo", cursive;
    font-size: 2em;
    background-color: #5f1329;
    text-align: center;
    color: white;
    padding: 0.2em;
    border-radius: 10px;
}

h2{
    font-family: "Cormorant Garamond", serif;
    text-shadow: 1px 1px 3px grey;
    text-align: center;
    font-size: 1.8em;
    margin: 0 auto;
}

h3{
    font-family: "Cormorant Garamond", serif;
    text-shadow: 1px 1px 3px grey;
    font-size: 1.5em;
}

p{
    font-family: "Cormorant Garamond", serif;
    font-size: 1em;
    line-height: 1.3em;
    text-align: justify;
    margin: 1em;
}

#wrapper{
    background-color: white;
    border-radius: 15px;
    margin: 3em;
    margin-bottom: -3em;
    padding: 1em;
    border: 3px solid #5f1329;
}

nav{
    width: 100%;
}

nav ul{
    list-style-type: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    align-items: center;
    padding: 0;
    margin: 0;
}

nav li{
    padding: 0.5em;
    flex: 0 1 auto;
    min-width: fit-content;
}

.dropdown{
    position: relative;
    display: inline-block;
}

.dropdown-content{
    display: none;
    position: absolute;
    padding-left: 1em;
    font-size: 0.8em;
}

.dropdown:hover .dropdown-content{
    display: block;
    background-color: white;
    border: 1px solid #5f1329;
    border-radius: 5px;
    padding: 0.5em;
}

nav a, label{
    text-decoration: none;
    color: black;
    font-family: "Cormorant Garamond", serif;
    font-size: 1.2em;
    font-weight: bold;
}

nav a:hover, label:hover{
    color: #5f1329;
}

.logo{
    height: 3em;
}

.intro {
    display: flex;
    gap: 2em;
    align-items: center;
    margin: 2em 0;
}

.intro-reverse {
    display: flex;
    flex-direction: row-reverse;
    gap: 2em;
    align-items: center;
    margin: 2em 0;
    padding: 1em;
    border: 3px solid #5f1329;
    border-radius: 10px;
}

.intro-image {
    flex: 0 0 40%;
    max-width: 20em;
    height: auto;
    border-radius: 10px;
    margin-right: 1em;
    margin-left: 1em;
}

.intro-text {
    flex: 1;
}

.intro-text-reverse {
    flex: 1;
    text-align: right;
}

section.cta{
    background-color: #ffffff;
    border: 2px solid #5f1329;
    border-radius: 10px;
    padding: 1em;
    margin: 2em auto;
    text-align: center;
    max-width: 600px;
}

.cta-button{
    display: inline-block;
    background-color: #5f1329;
    color: white;
    font-family: "Cormorant Garamond", serif;
    font-size: 1em;
    padding: 0.5em 1em;
    border-radius: 5px;
    text-decoration: none;
    margin: 1em ;
}



footer{
    background-color: #5f1329;
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
}

.footer-column{
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1em;
    max-width: 10%;
}

.footer-logo{
    height: 4em;
    margin: 1em;
    margin-bottom: 0;
    filter: invert(100%);
}

.copyright{
    color: white;
    font-family: "Cormorant Garamond", serif;
    font-size: 0.8em;
    text-align: center;
}

.footer-column a{
    color: white;
    font-family: "Cormorant Garamond", serif;
    font-size: 0.8em;
    margin: 0.2em;
    text-decoration: none;
}



.footer-column a:hover{
    color: #d9b3c6;
}

.footer-column a h3{
    color: white;
    font-size: 1.5em;
    margin-bottom: 0.5em;
}

.tabs-section {
    margin-top: 2em;
    display: flex;
    align-items: flex-start;
    width: 100%;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    border: 2px solid #5f1329;
    border-radius: 10px;
}

.tabs-contents {
    flex: 1;
    padding: 1em;
    width: 70%;
    text-align: left;
    display: flex;
    align-items: center;
}

.tabs-content {
    width: 90%;
    background: #fff;
    border-radius: 10px;
    padding: 1em;
    text-align: left;
    float: left;
    align-items: center;
    justify-content: center;
}

.content-image {
    display: block;
    width: 50%;
    height: auto;
    max-height: 300px;
    object-fit: cover;
    object-position: top;
    margin: 1em auto;
    border-radius: 10px;
    border: 3px solid #5f1329;
    float: left;
    margin-right: 1em;
}


.tabs-content h2, .tabs-content p {
    text-align: left;
}



.tab-list {
    display: flex;
    flex-direction: column;
    gap: 1em;
    float: right;
    margin: 1em;
    align-items: center;
    justify-content: center;
}

.tab-button {
    display: flex;
    align-items: center;
    gap: 0.75em;
    background: white;
    border: 1px solid #5f1329;
    cursor: pointer;
    height: 300%;
    padding: 0.25em;
    border-radius: 10px;
}

.tab-icon {
    width: 3rem;
    height: 3rem;
    object-fit: contain;
}

.tab-label {
    font-family: "Cormorant Garamond", serif;
    font-size: 1.2em;
    font-weight: bold;
    color: #5f1329;
    margin: 1em 1em;
}

.tab-button[aria-selected="true"] {
    background: #5f1329;
    color: #fff;
    border-color: #5f1329;
}

.tab-button[aria-selected="true"] .tab-label {
    color: #fff;
}

.tab-button[aria-selected="true"] .tab-icon {
    filter: brightness(0) invert(1);
}

.cards-container {
    display: flex;
    gap: 2em;
    margin: 2em 0;
    justify-content: center;
    width: 80%;
    margin: 0 auto
}

.card {
    margin-top: 1em;
    flex: 1 1 45%;
    background: #fff;
    border-radius: 10px;
    padding: 1.5em;
    box-shadow: 0 4px 8px grey;
    display: flex;
    flex-direction: column;
    text-align: center;
}

.card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 1em;
}

.card h3 {
    margin-bottom: 0.5em;
}

.card p {
    flex: 1;
    margin-bottom: 1em;
    text-align: left;
}

.resume {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px 20px;
  min-height: 80vh; 
}

.resume embed {
  width: 80%;
  height: 90vh;
  border: 2px solid #ccc;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.central-layout {
    display: grid;
    grid-template-areas: 
        "top top top"
        "left center right"
        "bottom bottom bottom";
    grid-template-columns: 1fr auto 1fr;
    grid-template-rows: auto auto auto;
    width: 80%;
    margin: 2em auto;
    gap: 1.5em;
    text-align: center;
}

.center {
    grid-area: center;
    background-color: #5f1329;
    color: white;
    padding: 1em;
    border-radius: 10px;
    margin: auto;   
}


.section.top {
    grid-area: top;
    
}

.section.right {
    grid-area: right;
}

.section.bottom {
    grid-area: bottom;

}

.section.left {
    grid-area: left;
}

.section {
    padding: 1em;
    text-align: center;
    width: 50%;
    margin: 0 auto;
    border: 3px solid #5f1329;
    border-radius: 10px;
}

.timeline-container {
    width: 90%;
    margin: 3em auto;
    position: relative;
}

.timeline-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    margin-bottom: 3em;
}

.timeline-line::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 3px;
    background: #ccc;
    z-index: 0;
}

.dot {
    width: 16px;
    height: 16px;
    background: #5f1329;
    border-radius: 50%;
    z-index: 1;
}

.timeline-cards {
    display: flex;
    justify-content: space-between;
    gap: 2em;
    flex-wrap: wrap;
}

.timeline-card {
    flex: 1;
    background: white;
    padding: 1.5em;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    text-align: center;
}

.personal-photo {
    display: block;
    max-width: 300px;
    width: 100%;
    height: auto;
    margin: 1em auto;
    border-radius: 10px;
    border: 3px solid #5f1329;
}

@media (max-width: 768px) {
    .central-layout{
        display: flex;
        flex-direction: column;
    }
    .tabs-container {
        flex-direction: column-reverse; 
    }
    .tab-content{
        float: none;
        width: 100%;
    }
    .tab-list {
        width: 100%;
        flex-direction: row;
        justify-content: flex;
        flex-wrap: wrap;
        float: none;
    }
    .tab-button {
        flex: 1 1 45%;
    }

.cards-container {
        flex-direction: column;
    }
    .card {
        flex: 1 1 100%;
    }
}

.faq-section {
    width: 80%;
    margin: 3em auto;
}

.faq-section h2 {
    text-align: center;
    margin-bottom: 1.5em;
}

.faq-item {
    border-bottom: 1px solid #ccc;
    padding: 1em 0;
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    text-align: left;
    font-size: 1.2em;
    padding: 0.5em 0;
    cursor: pointer;
    font-weight: 600;
    position: relative;
}

.faq-question::after {
    content: "+";
    position: absolute;
    right: 0;
    font-size: 1.3em;
    transition: transform 0.3s;
}

.faq-question.active::after {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
}

.faq-answer p {
    margin: 0.7em 0 1em;
}

.masonry-grid {
    column-count: 3;
    column-gap: 1.5em;
    margin: 2em auto;
}

.masonry-item {
    break-inside: avoid;
    margin-bottom: 1.5em;
    position: relative;
    overflow: hidden;
    border-radius: 10px;
}

.masonry-item img {
    width: 100%;
    display: block;
    border-radius: 10px;
}

.masonry-info {
    padding: 0.5em 0;
}


/* Carousel */
.carousel-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    margin: 1.5rem 0;
}

.carousel {
    flex: 1 1 auto;
    overflow: hidden;
}

.carousel-track {
    display: flex;
    gap: 0.75rem;
    transition: transform 400ms ease;
    will-change: transform;
}

/* Carousel card: center media, remove white gap, use a consistent aspect ratio */
.carousel-card {
  flex: 0 0 calc(33.333% - 0.5rem);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;          /* hide any overflow when scaling */
  background: transparent;   /* remove white background */
  border-radius: 8px;        /* keep rounded corners */
  opacity: 0.5;
  transition: all 0.3s ease;
}

/* highlighted / centered card */
.carousel-card.active,
.carousel-card.is-center {
  opacity: 1;
  transform: scale(1);
  box-shadow: 0 10px 20px rgba(0,0,0,0.2);
  z-index: 2;
}

/* Make images and videos fill the card area and stay centered */
.carousel-card img,
.carousel-card video {
  width: 100%;
  height: auto;
  display: block;
}

/* buttons */
.carousel-btn {
    background: #fff;
    border: 1px solid #5f1329;
    color: #5f1329;
    width: 3rem;
    height: 3rem;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
}

.carousel-btn:disabled {
    opacity: 0.45;
    cursor: default;
}

/* responsive: 2 cards on tablet, 1 card on mobile */
@media (max-width: 992px) {
    .carousel-card { flex: 0 0 calc(50% - 0.5rem); }
}
@media (max-width: 560px) {
    .carousel-card { flex: 0 0 100%; }
}

