@font-face {
    font-family: 'Brittany Script';
    src: url('assets/fonts/TheBrittanyScript.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Ariata Display';
    src: url('assets/fonts/AriataDisplayBlack.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    font-family: 'Outfit', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    overflow: hidden;
}

h1 {
    font-family: 'Brittany Script', cursive;
    font-weight: 100;
}

h2 {
    font-family: 'Ariata Display', serif;
    font-weight: 600;
}

h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    font-weight: 400;
    margin-bottom: 1rem;
}

p {
    font-family: 'Outfit', sans-serif;
    font-weight: 300;
}

.container {
    display: flex;
    width: 100%;
    height: 100vh;
}

/* Section 1 - 40% width */
.section1 {
    width: 30%;
    height: 100%;
    background: #F5F3EC;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    padding: 40px;
    padding-top: 3vh;
    padding-bottom: 5vh;
    color: rgb(0, 0, 0);
    z-index: 100;
    overflow: hidden;
    border-right: 1px solid black;
    margin-right: -0.5rem;
    box-shadow: 4px 0 10px rgba(0, 0, 0, 0.15);
}

.section1 a {
    display: contents;
}

.section1 img {
    max-height: 14%;
    height: auto;
    width: auto;
    margin-bottom: 4rem;
}

.section1 h1 {
    font-size: 0.5rem;
    margin-top: auto;
    margin-bottom: 20px;
    text-align: left;
}

.section1 p {
    font-size: 0.8rem;
    text-align: left;
    opacity: 0.9;
    overflow-y: auto;
    max-height: 40%;
    line-height: 1.6;
}

/* Section 2 - 60% width */
.section2 {
    width: 70%;
    height: 100%;
    background: url('assets/img/AdobeStock_287030368.jpeg') repeat;
    background-size: cover;
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    padding: 0;
}

/* Cards container - holds stacked cards */
.cards-container {
    position: relative;
    width: 100%;
    height: 100%;
}

/* Card base styles */
.card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 35px;
    cursor: pointer;
    transition: all 0.5s ease;
    position: absolute;
    left: 0;
    border: 1px solid black;
    overflow: hidden;
}

.card h2 {
    font-size: 2rem;
    color: #333;
}

.card p{
    font-size: 0.8rem;
    color: #333;
}

.card:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    transform: translateY(-8px);
}

/* Overlay for modal effect */
.card-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease, backdrop-filter 0.3s ease, -webkit-backdrop-filter 0.3s ease;
    z-index: 99;
}

.card-overlay.active {
    opacity: 1;
    visibility: visible;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}

/* Expanded card state - centered in section 2 */
.card.expanded {
    position: fixed !important;
    top: 7.5vh !important;
    left: calc(70% - 20vw) !important;
    transform: none !important;
    width: 40vw !important;
    height: 85vh !important;
    z-index: 100 !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    padding: 40px;
}

/* Card 1 - Narrowest, on top */
.card1 {
    width: 40vw;
    height: 85vh;
    top: 15vh;
    z-index: 3;
    background: #D6E8DA;
}

/* Card 2 - Medium width, peeks out 10% on right */
.card2 {
    width: 40vw;
    height: 85vh;
    top: 3vh;
    left: 10vw;
    right: 10vw;
    z-index: 1;
    background: #E9D0CB;
}

.card2 h2{
    text-align: left;
} 

/* Card 3 - Widest, at bottom with margin */
.card3 {
    width: 40vw;
    height: 85vh;
    top:30vh;
    left: 30vw;
    z-index: 2;
    background: #f0e29a;
}

.card3 h3{
    text-align: left;
}

.card3 h2{
    text-align: left;
}

/* Card content */
.card-content {
    width: 100%;
    margin-bottom: 15px;
}

.card-title {
    font-size: 0.8rem;
    color: #333;
    margin: 0;
}

.card-subtitle {
    color: #555;
}

/* Title with arrow - for card 1 stack vertically */
.title-with-arrow {
    display: flex;
    flex-direction: column;
    align-items: start;
    margin-bottom: 10px;
}

.card1 .title-arrow-row {
    display: flex;
    align-items: center;
    gap: 5px;
}

.arrow-link {
    display: flex;
    align-items: center;
    color: #333;
    text-decoration: none;
}

.arrow-link img {
    height: 2rem;
    width: 2rem;
    transition: transform 0.3s ease;
}

.arrow-link:hover img,
.title-arrow-row:hover .arrow-link img {
    transform: translateX(5px);
}

/* Card 2 - title at top left */
.card2 .title-with-arrow {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    margin: 0;
    padding: 0;
}

.card2 .card-content {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

/* Card 3 - title at top right */
.card3 .title-with-arrow {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 5px;
    margin: 0;
    padding: 0;
}

.card3 .card-content {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

/* Row for h2 + arrow side by side */
.card2 .title-arrow-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 5px;
}

.card3 .title-arrow-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
}

/* Column for h2 + h3 stacked in card 3 */
.card3 .title-text-col {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.card2 .card-title,
.card3 .card-title {
    white-space: nowrap;
    margin: 0;
}

.card2 .card-subtitle,
.card3 .card-subtitle {
    white-space: nowrap;
    margin: 0;
    margin-bottom: 1rem;
}

/* Arrow for card 2 and 3 */
.card2 .arrow-link img,
.card3 .arrow-link img {
    transform: none;
}

.card2 .arrow-link:hover img,
.card3 .arrow-link:hover img {
    transform: translateX(5px);
}

.card-text {
    font-size: 0.5rem;
    color: #666;
    line-height: 1.6;
}

/* Card 2 and Card 3 text styles */
.card2 .card-text {
    max-width: 100%;
}

.card3 .card-text {
    text-align: right;
    max-width: 100%;
}

.card2 .card-image {
    max-width: 100%;
}

/* Card image - fills card width */
.card-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 8px;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Active state indicator */
.card.active {
    /* Active card styling */
}

/* Hidden state for cards (to be used with click animation) */
.card.hidden {
    opacity: 0;
    pointer-events: none;
    transform: scale(0.95);
}

/* Visible state */
.card.visible {
    opacity: 1;
    pointer-events: auto;
    transform: scale(1);
}



/* Responsive adjustments */
@media (max-width: 900px) {
    .card.expanded {
        left: calc(30% + 5%) !important;
        width: calc(70% * 0.9) !important;
    }

    .section1 h1 {
        display: none;
    }

    .section1 img {
        max-height: 28%;
    }
}

@media (max-width: 768px) {
    html, body {
        overflow: auto;
    }

    .container {
        flex-direction: column;
        overflow-y: auto;
    }

    .section1 {
        width: 100%;
        height: auto;
        min-height: auto;
        padding: 40px 30px;
    }

    .section1 h1 {
        display: none;
    }

    .section1 p {
        max-height: none;
        overflow-y: visible;
    }

    .section2 {
        width: 100%;
        height: auto;
        min-height: 60vh;
    }

    .card.expanded {
        left: 5vw !important;
        width: 90vw !important;
    }

    .cards-container {
        height: 400px;
    }

    .card1 {
        width: 60vw;
    }

    .card2 {
        width: 70vw;
    }

    .card3 {
        width: 80vw;
        left: auto;
        right: 0vw;
    }

    .card {
        text-align: center;
        height: auto;
    }

    .card-content {
        margin-bottom: 15px;
    }

    .card-image {
        width: 100%;
        aspect-ratio: 1 / 1;
    }

    .card3 .card-title {
        white-space: normal;
    }
}
