/* About Page Specific Styles (about.css) */

.page-header {
    height: 100vh;
    /* More presence */
    perspective: 2000px;
}

.hero-3d-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    perspective: 1000px;
    overflow: hidden;
}

.element {
    position: absolute;
    width: 20px;
    height: 40px;
    background: linear-gradient(135deg, #4A5D23 0%, #2F3528 100%);
    border-radius: 50% 0 50% 0;
    opacity: 0.5;
    transform-style: preserve-3d;
    filter: blur(0.5px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.e1 {
    top: 25%;
    left: 20%;
    --rot: 35deg;
    animation: herbFloat 14s ease-in-out infinite;
}

.e2 {
    top: 60%;
    left: 70%;
    width: 25px;
    height: 50px;
    --rot: -20deg;
    animation: herbFloat 20s ease-in-out infinite reverse;
}

.e3 {
    top: 20%;
    left: 75%;
    width: 15px;
    height: 30px;
    --rot: 90deg;
    animation: herbFloat 16s ease-in-out infinite 2s;
}

.e4 {
    top: 70%;
    left: 25%;
    width: 30px;
    height: 60px;
    --rot: -60deg;
    animation: herbFloat 12s ease-in-out infinite 1s;
}

@keyframes herbFloat {

    0%,
    100% {
        transform: translate3d(0, 0, 0) rotate(var(--rot, 45deg)) rotateY(0deg);
    }

    33% {
        transform: translate3d(20px, -30px, 80px) rotate(calc(var(--rot, 45deg) + 15deg)) rotateY(180deg);
    }

    66% {
        transform: translate3d(-20px, 30px, -80px) rotate(calc(var(--rot, 45deg) - 15deg)) rotateY(360deg);
    }
}

.hero-grain {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.04;
    pointer-events: none;
    z-index: 1;
}

.page-header-bg {
    animation: simpleKenBurns 20s ease-in-out infinite alternate;
}

@keyframes simpleKenBurns {
    0% { transform: scale(1.05); }
    100% { transform: scale(1.15); }
}

.hero-light {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at center, rgba(207, 168, 104, 0.08) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.page-header-content h1 {
    transform: none;
}

.story-content {
    background-color: var(--color-secondary);
    position: relative;
    overflow: hidden;
}

.story-content::after {
    content: 'SLOW';
    position: absolute;
    bottom: -50px;
    right: -20px;
    font-size: 20rem;
    font-family: var(--font-heading);
    color: var(--color-primary);
    opacity: 0.03;
    z-index: 0;
    pointer-events: none;
    font-weight: 700;
}

/* Enhancing the split layout specifically for the About page story */
.story-content .split-layout {
    gap: 6rem;
    /* Extra breathing room */
    position: relative;
    z-index: 1;
}

/* Image Parallax Container */
.parallax-img-container {
    height: 100%;
    min-height: 500px;
    overflow: hidden;
    position: relative;
    border-radius: 4px;
    box-shadow: 0 30px 60px rgba(59, 66, 49, 0.1);
}

.parallax-img-container::before {
    content: '';
    position: absolute;
    top: -15px;
    right: -15px;
    width: 60%;
    height: 60%;
    border-right: 2px solid var(--color-accent);
    border-top: 2px solid var(--color-accent);
    z-index: 2;
    pointer-events: none;
    opacity: 0.5;
}

.parallax-img-container::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: -15px;
    width: 40%;
    height: 40%;
    border-left: 2px solid var(--color-accent);
    border-bottom: 2px solid var(--color-accent);
    z-index: 2;
    pointer-events: none;
    opacity: 0.5;
}

.parallax-img {
    position: absolute;
    top: -20%;
    /* Offset for parallax travel */
    left: 0;
    width: 100%;
    height: 140%;
    /* Extra height to move within container */
    object-fit: cover;
    will-change: transform;
}

/* Philosophy Section enhancements */
.philosophy {
    position: relative;
}

.philosophy::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40vw;
    height: 100%;
    background: radial-gradient(circle at bottom left, rgba(207, 168, 104, 0.08) 0%, transparent 60%);
    pointer-events: none;
}

/* Enhanced Focus on SVG icon in philosophy */
.philosophy svg {
    filter: drop-shadow(0 0 10px rgba(207, 168, 104, 0.3));
}

@media (max-width: 991px) {
    .parallax-img-container {
        min-height: 400px;
    }

    .story-content::after {
        font-size: 10rem;
        bottom: -20px;
        right: -10px;
    }
}

@media (max-width: 768px) {
    .page-header {
        height: 50vh;
    }

    .story-content .split-layout {
        gap: 3rem;
    }

    .parallax-img-container::before {
        top: -10px;
        right: -10px;
    }

    .parallax-img-container::after {
        bottom: -10px;
        left: -10px;
    }
}