/*--------------------------------------------------------------
# About Page Styles
--------------------------------------------------------------*/

.about-page .site-main {
    padding-top: 0; /* Remove default padding for full-width sections */
}

/*--------------------------------------------------------------
# About Hero Section
--------------------------------------------------------------*/
.about-hero-section {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    color: var(--color-neutral-white);
}

.hero-video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures video covers the container */
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6); /* Dark overlay for text readability */
    z-index: 2;
}

.about-hero-section .hero-content {
    position: relative;
    z-index: 3;
    padding: 2em;
}

.about-hero-section .hero-title {
    font-size: 3.5em;
    text-shadow: 2px 2px 15px rgba(0,0,0,0.7);
}

.about-hero-section .hero-subtitle {
    font-size: 1.5em;
    font-family: var(--font-body);
    margin-top: 0.5em;
    margin-bottom: 2em;
    font-weight: 400;
}

/* Hero CTA button inherits from components/buttons.css */

/*--------------------------------------------------------------
# About General Sections
--------------------------------------------------------------*/
.about-section {
    padding: 6em 2em;
}

.about-container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    font-size: 2.5em;
    color: var(--color-accent-gold);
    margin-bottom: 1em;
    text-align: center;
}

/*--------------------------------------------------------------
# Origin Story Section
--------------------------------------------------------------*/
.origin-story-section {
    position: relative;
    padding: 6rem 0;
}

.origin-story-text {
    max-width: 800px;
    margin: 0 auto 4rem auto;
    text-align: center;
}

.vertical-timeline-container {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.vertical-timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 19px;
    height: 100%;
    width: 4px;
    background: #2a2a2a;
    border-radius: 2px;
}

.timeline-event {
    display: flex;
    align-items: flex-start;
    position: relative;
    margin-bottom: 80px;
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

/* Animation states when JavaScript is enabled */
.js .timeline-event {
    opacity: 0;
    transform: translateY(50px);
}

.timeline-event:last-child {
    margin-bottom: 0;
}

.timeline-event.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.timeline-point {
    position: absolute;
    top: 5px;
    left: 0;
    width: 42px;
    height: 42px;
    background: var(--color-accent-gold);
    border-radius: 50%;
    border: 4px solid #1a1a1a; 
    z-index: 10;
    transform: scale(1);
    transition: transform 0.4s 0.5s ease-out;
}

/* Animation states when JavaScript is enabled */
.js .timeline-point {
    transform: scale(0);
}

.timeline-event.is-visible .timeline-point {
    transform: scale(1);
}

.timeline-card {
    background: #1f1f1f;
    border-radius: 8px;
    padding: 2rem;
    margin-left: 60px;
    width: calc(100% - 60px);
    border: 1px solid #333;
    position: relative;
}

.timeline-year {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--color-accent-gold);
    margin-bottom: 0.5rem;
}

.timeline-card h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.25rem;
    color: #fff;
}

.timeline-card p {
    margin: 0;
    font-size: 1rem;
    color: #ccc;
    line-height: 1.6;
}

/*--------------------------------------------------------------
# Science & Purity Section
--------------------------------------------------------------*/
.science-purity-section {
    background-color: #111; /* Cool, techy dark background */
    color: #eee;
}

.science-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3em;
    align-items: center;
    margin-bottom: 4em;
}

@media (min-width: 768px) {
    .science-grid {
        grid-template-columns: 2fr 1fr;
    }
}

.science-text p {
    font-size: 1.1em;
    line-height: 1.7;
    color: #ccc;
}

/* Trust Badges for Labs */
.trust-badges {
    margin-top: 2.5em;
    padding-top: 1.5em;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.trust-badges p {
    font-weight: bold;
    color: var(--color-accent-yellow);
    margin-bottom: 1em;
    font-size: 1em !important;
}

.lab-logos {
    display: flex;
    flex-wrap: wrap;
    gap: 2em;
    align-items: center;
    justify-content: center;
}

.lab-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-width: 120px;
}

.lab-logos img {
    max-height: 50px;
    width: auto;
    filter: grayscale(1) brightness(1.5); /* Muted, professional look */
    opacity: 0.7;
    transition: all 0.3s ease;
    margin-bottom: 0.5em;
}

.lab-logos img:hover {
    filter: none;
    opacity: 1;
}

.lab-item span {
    font-size: 0.9em;
    color: var(--color-neutral-white);
    opacity: 0.8;
}

.lab-text {
    background: rgba(255, 215, 0, 0.1);
    border: 1px solid var(--color-accent-gold);
    border-radius: 4px;
    padding: 0.5em 1em;
    font-weight: 600;
    color: var(--color-accent-gold) !important;
    opacity: 1 !important;
    transition: all 0.3s ease;
}

.lab-text:hover {
    background: var(--color-accent-gold);
    color: var(--color-primary-black) !important;
}

/* 0-PPM Callout Graphic */
.science-callout {
    display: flex;
    justify-content: center;
    align-items: center;
}

.ppm-graphic {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #000;
    border: 3px solid var(--color-accent-gold);
    border-radius: 50%;
    width: 220px;
    height: 220px;
    text-align: center;
}

.ppm-number {
    font-size: 7em;
    font-weight: bold;
    color: var(--color-accent-gold);
    line-height: 1;
}

.ppm-text {
    font-size: 1.2em;
    font-weight: bold;
    color: #fff;
    line-height: 1.2;
    margin-left: 10px;
}

/* Macro Image */
.macro-image-container img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    border: 1px solid #333;
}

.section-subtitle {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 2em;
    font-size: 1.1em;
    color: #ccc;
    line-height: 1.7;
}

/*--------------------------------------------------------------
# Experience Section
--------------------------------------------------------------*/
.experience-section {
    background-color: #050505;
}

.award-showcase {
    display: flex;
    justify-content: center;
    gap: 2em;
    flex-wrap: wrap;
    padding: 2em 0;
    margin-bottom: 4em;
    border-top: 1px solid rgba(255,255,255,0.1);
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.award-showcase img {
    max-height: 100px;
    width: auto;
    filter: grayscale(1);
    opacity: 0.6;
    transition: all 0.3s ease;
}

.award-showcase img:hover {
    filter: none;
    opacity: 1;
}

/* Product Gallery */
.product-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5em;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
    min-height: 300px; /* Ensure consistent minimum height */
    display: flex;
    flex-direction: column;
}

.gallery-item img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
    flex: 1; /* Allow image to fill available space */
}

.gallery-item-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0; /* Use right instead of width: 100% for better sizing */
    padding: 1.5em;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.7) 70%, rgba(0,0,0,0) 100%);
    color: #fff;
    transform: translateY(0); /* Keep text visible by default */
    transition: transform 0.4s ease, background 0.4s ease;
    box-sizing: border-box; /* Ensure padding is included in width calculation */
}

.gallery-item:hover .gallery-item-info {
    transform: translateY(-5px); /* Subtle lift on hover */
    background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.8) 70%, rgba(0,0,0,0.1) 100%);
}

.gallery-item:hover img {
    transform: scale(1.05); /* Slightly less zoom to reduce distraction */
}

.gallery-item-info h3 {
    margin: 0 0 0.5em;
    font-size: 1.6em; /* Slightly smaller to ensure it fits */
    color: var(--color-accent-gold);
}

.gallery-item-info p {
    margin: 0;
    line-height: 1.4;
    opacity: 1; /* Make text visible by default */
    font-size: 0.95em; /* Slightly smaller text to prevent overflow */
    transition: opacity 0.4s ease;
    word-wrap: break-word; /* Allow long words to break */
    overflow-wrap: break-word; /* Modern alternative to word-wrap */
    hyphens: auto; /* Enable automatic hyphenation */
    max-width: 100%; /* Ensure text doesn't exceed container */
}

.gallery-item:hover .gallery-item-info p {
    opacity: 1; /* Keep same opacity on hover */
}

/*--------------------------------------------------------------
# Community & Education Section
--------------------------------------------------------------*/
.community-section {
    background-color: #111;
}

.community-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3em;
    align-items: center;
}

@media (min-width: 992px) {
    .community-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.community-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.community-content p {
    font-size: 1.1em;
    line-height: 1.7;
    color: #ccc;
    margin-bottom: 2em;
}

/* Callout Blocks */
.callout-blocks {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5em;
    margin-top: 2em;
}

@media (min-width: 768px) {
    .callout-blocks {
        grid-template-columns: 1fr 1fr;
    }
}

.callout-block {
    background-color: rgba(0,0,0,0.2);
    border: 1px solid #333;
    padding: 2em;
    border-radius: 8px;
}

.callout-block h3 {
    margin-top: 0;
    color: var(--color-accent-gold);
    font-size: 1.5em;
}

/*--------------------------------------------------------------
# About Page Mobile Responsive
--------------------------------------------------------------*/
@media (max-width: 768px) {
    /* About Hero Mobile */
    .about-hero-section .hero-title {
        font-size: 2.5em;
    }

    .about-hero-section .hero-subtitle {
        font-size: 1.2em;
    }

    /* About Content Mobile */
    .origin-story-content {
        padding: 2em 1em;
    }

    .science-purity-section {
        padding: 4em 1em;
    }

    .experience-section {
        padding: 4em 1em;
    }

    .origin-story-grid, 
    .science-grid, 
    .community-grid {
        grid-template-columns: 1fr; /* Stack grids on mobile */
    }

    .origin-story-text .section-title {
        text-align: center; /* Center title on mobile when stacked */
    }

    .product-gallery {
        grid-template-columns: 1fr; /* Single column gallery on mobile */
        gap: 1.2em;
    }
    
    .gallery-item-info {
        padding: 1.2em;
        left: 0;
        right: 0; /* Ensure full width on mobile */
    }
    
    .gallery-item-info h3 {
        font-size: 1.4em;
        margin-bottom: 0.4em;
        word-wrap: break-word;
    }
    
    .gallery-item-info p {
        font-size: 0.9em;
        line-height: 1.3;
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
    }
}
