/* ==========================================================================
   Premium 3D About Us Page Styles
   ========================================================================== */
.about-page {
    overflow-x: hidden;
}

.about-container {
    max-width: var(--container-max-width, 1200px);
    margin: 0 auto;
    padding: 0 20px;
}

/* ==========================================================================
   1. NEW HERO SECTION (Cinematic Story)
   ========================================================================== */
.about-hero-cinematic {
    position: relative;
    width: 100%;
    min-height: 70vh;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-cinematic-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.7) 100%);
    z-index: 1;
}

.hero-cinematic-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 0 20px;
}

.cinematic-title {
    color: #ffffff;
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    text-shadow: 0 4px 15px rgba(0,0,0,0.3);
    letter-spacing: -1px;
}

.cinematic-subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.5rem;
    font-weight: 500;
    line-height: 1.6;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

@media (max-width: 768px) {
    .about-hero-cinematic { 
        min-height: 50vh; 
        padding: 4rem 1rem;
    }
    .cinematic-title { 
        font-size: 2rem; 
        margin-bottom: 1rem;
    }
    .cinematic-subtitle { 
        font-size: 1.1rem; 
    }
    .about-story-section { 
        padding: 4rem 0; 
    }
    .story-split-grid { 
        gap: 2.5rem; 
    }
    .story-block h3 { 
        font-size: 1.5rem; 
    }
    .story-block p { 
        font-size: 1rem; 
    }
    .mt-4 {
        margin-top: 2rem;
    }
}

/* ==========================================================================
   2. NEW STORY SECTION (Maa-Bete Story)
   ========================================================================== */
.about-story-section {
    padding: 7rem 0;
    background-color: var(--color-bg-cream, #f7f9f6);
}

.story-split-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
    align-items: center;
}

@media (min-width: 992px) {
    .story-split-grid {
        grid-template-columns: 1fr 1fr;
        gap: 6rem;
    }
}

.premium-3d-img {
    width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    transition: transform 0.5s ease;
    display: block;
}

.premium-3d-img:hover {
    transform: translateY(-10px);
}

.story-block h3 {
    color: var(--color-text-dark, #1a1a1a);
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.story-block p {
    color: var(--color-text-light, #4a4a4a);
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 0;
}

.mt-4 {
    margin-top: 3rem;
}

/* ==========================================================================
   3. WHAT SETS US APART (3D Parallax Cards)
   ========================================================================== */
.what-sets-apart-section {
    background-color: #ffffff;
    padding: 8rem 0;
    position: relative;
    overflow: hidden;
}

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

.section-header h2 {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--color-text-dark, #1a1a1a);
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
}

.text-green {
    color: var(--color-primary-green, #045c2f);
}

.intro-paragraph {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--color-text-light, #4a4a4a);
}

.apart-cards-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    perspective: 1000px;
    margin-bottom: 6rem;
}

@media (min-width: 768px) {
    .apart-cards-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.apart-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 3rem 2rem;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.03);
    transform-style: preserve-3d;
    transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.6s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.apart-card:hover {
    transform: rotateX(5deg) rotateY(-5deg) translateZ(20px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.12);
}

/* Make the center card pop a bit more */
.apart-card.highlight-card {
    border-top: 5px solid var(--color-primary-green, #045c2f);
    transform: translateZ(10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.apart-card.highlight-card:hover {
    transform: rotateX(5deg) rotateY(-5deg) translateZ(30px);
}

.card-content {
    transform: translateZ(30px); /* Pushes content out from the card background */
}

.card-content h4 {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--color-primary-green, #045c2f);
    margin-bottom: 1.2rem;
}

.card-content p {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--color-text-light, #4a4a4a);
    margin: 0;
}

/* Floating Mission Image */
.mission-img-wrapper {
    max-width: 650px;
    margin: 0 auto;
    perspective: 1000px;
    position: relative;
    z-index: 10;
}

.mission-img {
    width: 100%;
    height: auto;
    display: block;
    transform-style: preserve-3d;
    animation: float-mission 6s ease-in-out infinite;
    filter: drop-shadow(0 25px 40px rgba(0, 0, 0, 0.15));
}

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

/* ==========================================================================
   Scroll Reveal Animations (Intersection Observer)
   ========================================================================== */
.scroll-reveal {
    opacity: 0;
    transform: translateY(40px); /* Default slide up */
    transition: opacity 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275), 
                transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    will-change: opacity, transform;
}

.scroll-reveal.in-view {
    opacity: 1;
    transform: translateY(0);
}

/* Staggering delays for smooth staggered entry */
.scroll-reveal.delay-1 { transition-delay: 0.1s; }
.scroll-reveal.delay-2 { transition-delay: 0.2s; }
.scroll-reveal.delay-3 { transition-delay: 0.3s; }
.scroll-reveal.delay-4 { transition-delay: 0.4s; }

/* Custom Directional Animations */
.scroll-reveal.fade-left {
    transform: translateX(-50px);
}
.scroll-reveal.fade-right {
    transform: translateX(50px);
}
.scroll-reveal.fade-scale {
    transform: scale(0.9) translateY(40px);
}

/* When in view, reset transforms to origin */
.scroll-reveal.in-view.fade-left,
.scroll-reveal.in-view.fade-right,
.scroll-reveal.in-view.fade-scale {
    transform: translate(0) scale(1);
}

/* ==========================================================================
   Fix Astra Default Gap
   ========================================================================== */
body .site-content,
body .site-main {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

body .site-content > .ast-container,
body .site-main > .ast-container,
.about-page .ast-container {
    max-width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    padding-top: 0 !important;
    margin-top: 0 !important;
}

body #masthead {
    margin-bottom: 0 !important;
}

/* Ensure our custom containers remain contained */
.about-container {
    max-width: var(--container-max-width, 1200px) !important;
    margin: 0 auto !important;
    padding: 0 20px !important;
}
