/* ===== CSS RESET & BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Force Raleway font loading */
@import url('https://fonts.googleapis.com/css2?family=Raleway:wght@300;400;500;600;700;800&family=Playfair+Display:wght@400;500;600;700&display=swap');

html {
    scroll-behavior: smooth;
    font-size: 16px;
    overflow-x: hidden;
    height: 100%;
}

body {
    font-family: 'Raleway', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #0D0D0D;
    background-color: #f1f1f1;
    overflow-x: hidden;
    font-display: swap;
    min-height: 100%;
    position: relative;
}

/* Page Background Image */
.page-background {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.background-img {
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
    width: auto;
    max-width: none;
    display: block;
    object-fit: cover;
    object-position: right top;
}

/* Ensure Raleway loads properly */
* {
    font-family: 'Raleway', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 { font-size: 3.5rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 2rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
    color: #594032;
}

a {
    color: #A6785D;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #594032;
}

/* ===== CONTAINER ===== */
.container {
    max-width: 1200px;
    margin: 0;
    padding: 0 7vw;
}

/* ===== NAVIGATION ===== */
.navbar {
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(242, 242, 242, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(166, 120, 93, 0.1);
    z-index: 1000;
    transition: transform 0.3s ease, opacity 0.3s ease;
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
}

.navbar.visible {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.navbar.scrolled {
    background: rgba(242, 242, 242, 0.98);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.nav-container {
    width: 100%;
    margin: 0;
    padding: 0 7vw;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.nav-logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-img {
    height: 40px;
    width: auto;
    transition: all 0.3s ease;
    max-width: 200px;
    filter: brightness(0) saturate(100%) invert(27%) sepia(12%) saturate(1383%) hue-rotate(334deg) brightness(95%) contrast(87%);
}

.logo-img:hover {
    transform: scale(1.05);
}

/* Fallback text if logo doesn't load */
.nav-logo a::after {
    content: 'Commonspace';
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: #A6785D;
    display: none;
}

.nav-logo a:not(:has(img))::after {
    display: block;
}

.nav-menu {
    display: flex;
    gap: 2rem;
}

.nav-link {
    font-weight: 500;
    color: #594032;
    text-decoration: none;
    position: relative;
    transition: color 0.3s ease;
}

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

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    right: 0;
    height: 2px;
    background: #A6785D;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background: #594032;
    margin: 3px 0;
    transition: 0.3s;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, #A6785D 0%, #D9A384 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(166, 120, 93, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #594032 0%, #A6785D 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(166, 120, 93, 0.4);
}

.btn-secondary {
    background: transparent;
    color: #A6785D;
    border: 2px solid #A6785D;
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #A6785D 0%, #D9A384 100%);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(166, 120, 93, 0.3);
}

/* Button ripple effect */
.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:active::before {
    width: 300px;
    height: 300px;
}

.btn-large {
    padding: 1.25rem 2.5rem;
    font-size: 1.1rem;
}

/* ===== HERO SECTION ===== */
.hero {
    width: 100%;
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-x: hidden;
    background: transparent;
    z-index: 1;
    padding: 100px 0;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
}

.topographic-layer {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.1;
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    z-index: 2;
}

.hero-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
}

.hero-logo {
    width: min(50vw, 400px);
    height: auto;
    filter: brightness(0) saturate(100%) invert(27%) sepia(12%) saturate(1383%) hue-rotate(334deg) brightness(95%) contrast(87%) drop-shadow(0 4px 8px rgba(89, 64, 50, 0.3));
    opacity: 0;
    animation: fadeInLogo 1s ease-in-out forwards;
}

.hero-tagline {
    font-family: 'Raleway', sans-serif;
    font-size: clamp(0.9rem, 2vw, 1.2rem);
    font-weight: 400;
    letter-spacing: 0.3em;
    color: #594032;
    text-align: center;
    margin: 0;
    opacity: 0;
    animation: fadeInLogo 1s ease-in-out 0.3s forwards;
    word-spacing: 1.5em;
}

.hero-tagline span {
    white-space: nowrap;
    position: relative;
    opacity: 0;
    animation: fadeInWord 1s ease-in-out forwards;
}

.hero-tagline span:nth-child(1) {
    animation-delay: 0.2s;
}

.hero-tagline span:nth-child(2) {
    animation-delay: 0.7s;
}

.hero-tagline span:nth-child(3) {
    animation-delay: 1.2s;
}

.hero-tagline span:not(:last-child)::after {
    content: '';
    position: absolute;
    right: calc(-0.9em - 0.15em);
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 1.5em;
    background-color: #594032;
    opacity: 0;
    animation: fadeInSeparator 1s ease-in-out forwards;
}

.hero-tagline span:nth-child(1)::after {
    animation-delay: 0.8s;
}

.hero-tagline span:nth-child(2)::after {
    animation-delay: 1.3s;
}

@keyframes fadeInWord {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeInSeparator {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* On smaller screens, force each word onto its own line */
@media (max-width: 768px) {
    .hero-tagline {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
        line-height: 1.4;
    }
    
    .hero-tagline span:not(:last-child)::after {
        display: none;
    }
}

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

.layer-1 {
    background: linear-gradient(45deg, #A6785D 0%, transparent 50%, #D9A384 100%);
    animation: float 20s ease-in-out infinite;
}

.layer-2 {
    background: linear-gradient(-45deg, #594032 0%, transparent 50%, #A6785D 100%);
    animation: float 25s ease-in-out infinite reverse;
}

.layer-3 {
    background: linear-gradient(90deg, #D9A384 0%, transparent 50%, #594032 100%);
    animation: float 30s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(2deg); }
}

.hero-content {
    text-align: left;
    z-index: 2;
    max-width: 800px;
    padding: 0 7vw;
}

.hero-title {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    letter-spacing: -0.02em;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    color: #594032;
}

.title-line {
    display: block;
    opacity: 0;
    transform: translateY(50px);
    animation: slideUp 0.8s ease forwards;
}

.title-line:nth-child(1) { animation-delay: 0.1s; }
.title-line:nth-child(2) { animation-delay: 0.2s; }
.title-line:nth-child(3) { animation-delay: 0.3s; }
.title-line:nth-child(4) { animation-delay: 0.4s; }

.title-line.highlight {
    color: #A6785D;
}

.rotating-text {
    color: #A6785D;
}

@keyframes slideUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-subtitle {
    font-size: 1.3rem;
    color: #594032;
    margin-bottom: 2.5rem;
    opacity: 0;
    animation: fadeIn 1s ease 0.6s forwards;
}

@keyframes fadeIn {
    to { opacity: 1; }
}

.hero-cta {
    display: flex;
    gap: 1.5rem;
    justify-content: flex-start;
    opacity: 0;
    animation: fadeIn 1s ease 0.8s forwards;
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 12vw;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
    cursor: pointer;
    z-index: 1000;
    opacity: 1;
}

.scroll-arrow {
    width: 30px;
    height: 30px;
    border-right: 4px solid #594032;
    border-bottom: 4px solid #594032;
    transform: rotate(45deg);
    background: transparent;
}

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

/* ===== SECTIONS ===== */
section {
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
    text-align: left;
    z-index: 1;
}

/* Enhanced section transitions removed - clean slate */

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.5rem;
    color: #0D0D0D;
    margin-bottom: 1rem;
    letter-spacing: -0.01em;
    background: linear-gradient(135deg, #594032 0%, #A6785D 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

.section-subtitle {
    font-size: 1.2rem;
    color: #594032;
    max-width: 600px;
    margin: 0 auto;
}

/* ===== ENGAGEMENT SECTION ===== */
.engagement {
    width: 100%;
    background: transparent;
    min-height: 131vh;
    padding: 4rem 0;
    position: relative;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    margin-top: 0;
    clear: both;
    overflow-x: hidden;
    pointer-events: none;
}

/* ===== ANALYSIS SECTION ===== */
.analysis {
    width: 100%;
    background: transparent;
    min-height: 149vh;
    padding: 4rem 0;
    position: relative;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    margin-top: 0;
    clear: both;
    overflow-x: hidden;
    pointer-events: none;
}

/* ===== DESIGN SECTION ===== */
.design {
    width: 100%;
    background: transparent;
    min-height: 150vh;
    padding: 4rem 0;
    position: relative;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    margin-top: 0;
    clear: both;
    overflow-x: hidden;
    pointer-events: none;
}

/* ===== VERTICAL LINE ===== */
.vertical-line {
    width: 8px;
    height: 30px;
    background-color: #594032;
    position: absolute;
    border: none;
}

/* ===== PAGE HEADER ===== */
.page-header {
    width: 100%;
    min-height: 40vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 0 60px 0;
    background: transparent;
    z-index: 1;
}

.header-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
}

.header-content {
    text-align: center;
    z-index: 2;
}

.page-title {
    font-size: 3.5rem;
    font-weight: 600;
    color: #594032;
    margin-bottom: 1rem;
    font-family: 'Playfair Display', serif;
}

.page-subtitle {
    font-size: 1.3rem;
    color: #A6785D;
    max-width: 600px;
    margin: 0 auto;
}

/* ===== BIO SECTION ===== */
.bio-section {
    padding: 0.2rem 0;
    min-height: 90vh;
    background: transparent;
    position: relative;
}

.bio-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4rem;
    min-height: 90vh;
}

.bio-image {
    order: 1;
}

.bio-text {
    order: 2;
}

.bio-title {
    font-size: 2.5rem;
    color: #594032;
    margin-bottom: 2rem;
}

.bio-text {
    margin-left: 25vw; /* Space for the image (20vw + 5vw gap) */
    margin-top: 10vh;
}

.bio-description p {
    margin-bottom: 1.5rem;
}

.bio-image {
    position: absolute;
    left: 5vw;
    width: 20vw;
    flex-shrink: 0;
}

.headshot-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInFromBottom 1s ease-out 0.5s forwards;
    mask: linear-gradient(to bottom, black 85%, transparent 100%);
    -webkit-mask: linear-gradient(to bottom, black 85%, transparent 100%);
}

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

/* Mobile layout for bio section (viewport < 500px) */
@media (max-width: 500px) {
    .bio-content {
        flex-direction: column;
        align-items: center;
        gap: 2rem;
    }
    
    .bio-image {
        position: static;
        width: 50vw;
        margin-bottom: 2rem;
        order: 1;
    }
    
    .bio-text {
        margin-left: 0;
        margin-top: -4rem;
        width: 90vw;
        margin-left: 5vw;
        order: 2;
    }
}

.image-placeholder {
    text-align: center;
}

.image-placeholder svg {
    width: 100%;
    max-width: 300px;
    height: auto;
}

.image-caption {
    margin-top: 1rem;
    color: #A6785D;
    font-style: italic;
}

/* ===== EXPERTISE SECTION ===== */
.expertise-section {
    padding: 5rem 0;
    background: transparent;
}

.expertise-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
}

.expertise-item {
    text-align: center;
    padding: 2rem;
}

.expertise-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1.5rem;
    color: #A6785D;
}

.expertise-item h3 {
    font-size: 1.5rem;
    color: #594032;
    margin-bottom: 1rem;
}

.expertise-item p {
    color: #594032;
    line-height: 1.8;
}

/* ===== CREDENTIALS SECTION ===== */
.credentials-section {
    padding: 5rem 0;
    background: rgba(166, 120, 93, 0.05);
}

.credentials-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.credentials-title {
    font-size: 2rem;
    color: #594032;
    margin-bottom: 2rem;
    border-bottom: 2px solid #A6785D;
    padding-bottom: 0.5rem;
}

.credential-item {
    margin-bottom: 2rem;
}

.credential-item h4 {
    font-size: 1.3rem;
    color: #594032;
    margin-bottom: 0.5rem;
}

.credential-institution {
    color: #A6785D;
    font-weight: 500;
}

.credential-year {
    color: #594032;
    font-style: italic;
}

/* ===== VALUES SECTION ===== */
.values-section {
    padding: 5rem 0;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.value-item {
    padding: 2rem;
    background: rgba(166, 120, 93, 0.05);
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.value-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(166, 120, 93, 0.2);
}

.value-item h3 {
    font-size: 1.5rem;
    color: #A6785D;
    margin-bottom: 1rem;
}

.value-item p {
    color: #594032;
    line-height: 1.8;
}

/* ===== CTA SECTION ===== */
.cta-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, rgba(166, 120, 93, 0.1) 0%, rgba(217, 163, 132, 0.1) 100%);
}

.cta-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.cta-title {
    font-size: 2.5rem;
    color: #594032;
    margin-bottom: 1rem;
}

.cta-subtitle {
    font-size: 1.2rem;
    color: #A6785D;
    margin-bottom: 2rem;
}

/* ===== CONTACT SECTION ===== */
.contact-section {
    padding: 5rem 0;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    padding: 5rem 10vw;
}

.contact-title {
    font-size: 2.5rem;
    color: #594032;
    margin-bottom: 1.5rem;
}

.contact-description {
    color: #594032;
    margin-bottom: 2rem;
    line-height: 1.8;
}

.contact-details {
    margin-bottom: 2rem;
}

.contact-detail {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.contact-icon {
    width: 40px;
    height: 40px;
    color: #A6785D;
    margin-right: 1rem;
    flex-shrink: 0;
}

.contact-text h3 {
    font-size: 1.2rem;
    color: #594032;
    margin-bottom: 0.5rem;
}

.contact-text p {
    color: #594032;
    margin: 0;
}

.contact-text a {
    color: #A6785D;
    text-decoration: none;
}

.contact-text a:hover {
    color: #594032;
}

.contact-hours h3 {
    font-size: 1.5rem;
    color: #594032;
    margin-bottom: 1rem;
}

.hours-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.hours-item {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(166, 120, 93, 0.2);
}

.day {
    color: #594032;
    font-weight: 500;
}

.time {
    color: #A6785D;
}

/* ===== CONTACT FORM ===== */
.contact-form-container {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-weight: 600;
    color: #594032;
    margin-bottom: 0.5rem;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid rgba(166, 120, 93, 0.3);
    border-radius: 8px;
    font-family: 'Raleway', sans-serif;
    font-size: 1rem;
    color: #594032;
    transition: border-color 0.3s ease;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: #A6785D;
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

.form-error {
    display: block;
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.checkbox-group {
    display: flex;
    align-items: center;
}

.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.form-checkbox {
    margin-right: 0.5rem;
    cursor: pointer;
}

.checkbox-text {
    color: #594032;
    font-size: 0.9rem;
}

.form-submit {
    width: 100%;
    margin-top: 1rem;
}

.btn-text,
.btn-loading {
    display: inline-block;
}

.loading-spinner {
    width: 20px;
    height: 20px;
    margin-right: 0.5rem;
    vertical-align: middle;
}

/* ===== FAQ SECTION ===== */
.faq-section {
    padding: 5rem 0;
    background: rgba(166, 120, 93, 0.05);
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.faq-item {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.faq-question {
    font-size: 1.3rem;
    color: #594032;
    margin-bottom: 1rem;
}

.faq-answer {
    color: #594032;
    line-height: 1.8;
}

/* ===== UTILITY CLASSES ===== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }

.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }

.hidden { display: none; }
.visible { display: block; }

/* ===== ADVANCED ANIMATIONS ===== */
.fade-in-up {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.fade-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.fade-in-right {
    opacity: 0;
    transform: translateX(40px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.fade-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

.scale-in {
    opacity: 0;
    transform: scale(0.9);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.scale-in.visible {
    opacity: 1;
    transform: scale(1);
}

/* Staggered animations */
.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }
.stagger-4 { transition-delay: 0.4s; }
.stagger-5 { transition-delay: 0.5s; }

/* Enhanced hover effects */
.hover-lift {
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.hover-lift:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* ===== MAP MARKER LABEL ANIMATION ===== */
.pin-label {
    /* Label fade animation is now controlled by JavaScript for precise synchronization with pin pulse */
}

/* ===== MAPBOX POPUP STYLING ===== */
.mapboxgl-popup {
    max-width: none !important;
}

.mapboxgl-popup-content {
    background: #A6785D !important;
    background-color: #A6785D !important;
    padding: 16px !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3) !important;
    border: none !important;
    border-radius: 8px !important;
    font-family: 'Raleway', sans-serif !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #E8E8E8 !important;
    text-align: center !important;
    letter-spacing: 0.05em !important;
}

.mapboxgl-popup-tip {
    display: none !important;
}

.mapboxgl-popup-close-button {
    display: none !important;
}

/* Analysis Map Styling */
#analysis-map {
    box-shadow: 0 8px 32px rgba(89, 64, 50, 0.3), 0 4px 16px rgba(89, 64, 50, 0.2);
    border-radius: 8px;
}

/* Responsive map styling for screens smaller than 500px */
@media (max-width: 500px) {
    #analysis-map {
        left: 5vw !important;
        width: 90vw !important;
    }
    
    /* Make book pages 100px wide on narrow screens */
    .design-image-front,
    .design-image-back {
        width: 100px !important;
    }
    
    /* Adjust analysis section height for small screens */
    .analysis {
        min-height: 185vh;
    }

    .engagement {
        min-height: 166vh;
    }

    .design {
        min-height: 178vh;
    }
    .bio-section {
        padding: 5rem 0;
    }

}

/* ===== FOOTER BANNER ===== */
.footer-banner {
    height: 10vh;
    background-color: #594032;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    position: relative;
    z-index: 10;
}

.footer-logo {
    height: 60%;
    width: auto;
    filter: brightness(0) saturate(100%) invert(80%) sepia(15%) saturate(800%) hue-rotate(330deg) brightness(100%) contrast(90%);
}
