/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@300;400;500;600&family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400&display=swap');

body {
    font-family: 'Manrope', sans-serif;
    background-color: #F3F1EA;
    color: #1A2F25;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .font-editorial {
    font-family: 'Playfair Display', serif;
}

/* --- Page Transitions --- */
.fade-in {
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.hidden {
    display: none;
}

/* --- Scroll Animations --- */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: all 1s cubic-bezier(0.2, 1, 0.3, 1);
}

.reveal-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered delays */
.delay-100 { transition-delay: 0.1s; }
.delay-200 { transition-delay: 0.2s; }
.delay-300 { transition-delay: 0.3s; }

/* --- Cards Styling --- */
.feature-card {
    background: #ffffff;
    border: 1px solid rgba(26, 47, 37, 0.05);
    transition: all 0.4s cubic-bezier(0.2, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px -10px rgba(26, 47, 37, 0.1);
    border-color: rgba(188, 108, 63, 0.5); /* Rust color border */
}

.feature-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background-color: #BC6C3F; /* Rust */
    transition: width 0.4s ease;
}

.feature-card:hover::after {
    width: 100%;
}

/* --- Editorial Typography Helpers --- */
.drop-cap::first-letter {
    float: left;
    font-family: 'Playfair Display', serif;
    font-size: 4.5rem;
    line-height: 0.8;
    padding-right: 1rem;
    padding-top: 0.5rem;
    color: #BC6C3F; /* Rust */
}

/* --- Collage Effects --- */
.collage-img {
    transition: transform 0.8s cubic-bezier(0.2, 1, 0.3, 1), filter 0.8s ease;
}
.collage-wrapper:hover .collage-img {
    transform: scale(1.03);
}

/* --- Bio Expand/Collapse --- */
.bio-content {
    max-height: 280px;
    overflow: hidden;
    transition: max-height 0.8s ease-in-out;
    position: relative;
}

.bio-content.expanded {
    max-height: 2500px;
}

/* Fade out gradient for collapsed state */
.bio-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background: linear-gradient(to top, #F3F1EA, transparent);
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.bio-content.expanded .bio-overlay {
    opacity: 0;
}

/* --- Modal Transitions --- */
#contactModal {
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
#contactModal.hidden-modal {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}
#contactModal:not(.hidden-modal) {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}
