/* =========================================
   ABOUT PAGE - PANORAMIC HERO SECTION
   ========================================= */
.about-hero-panoramic {
    padding-top: 100px; /* Offset for fixed navbar */
    min-height: 95vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    background-color: var(--bg-color);
}

.panoramic-bg {
    width: 90%;
    max-width: 1600px;
    height: 60vh;
    border-radius: 40px;
    overflow: hidden;
    margin-top: 2rem;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.08);
    position: relative;
    z-index: 1;
}

.pano-placeholder {
    width: 100%;
    height: 100%;
    /* background-color: var(--accent-light); */
    background-image: url(spriti.jpeg);
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0);
    font-weight: 700;
    font-size: 1.2rem;
}

.hero-glass-card {
    position: relative;
    z-index: 10;
    max-width: 700px;
    margin-top: -15vh; /* Pulls the card up to overlap the image */
    text-align: center;
    padding: 4rem 3rem;
    align-items: center;
    border-radius: 40px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.8) 0%, rgba(255, 255, 255, 0.4) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
}

.pano-title {
    font-size: clamp(3rem, 6vw, 4.8rem);
    font-weight: 800;
    line-height: 1.05;
    color: var(--text-main);
    letter-spacing: -2px;
    margin: 1.5rem 0;
}

.serif-italic {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    color: var(--accent-color);
    font-weight: 600;
}

.pano-desc {
    font-size: 1.15rem;
    line-height: 1.6;
    color: var(--text-light);
    max-width: 500px;
    margin: 0 auto;
}

/* =========================================
   STORY & BELIEFS (FLOATING STACK DESIGN)
   ========================================= */
.story-beliefs-section {
    padding: 8rem 0;
    background-color: #ffffff;
    position: relative;
    overflow: hidden;
}

/* Subtle background glow to make the glass cards pop */
.story-beliefs-section::before {
    content: '';
    position: absolute;
    top: 20%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--accent-light) 0%, rgba(255,255,255,0) 70%);
    border-radius: 50%;
    z-index: 0;
}

.sb-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1fr 1.1fr; /* Slightly wider right column */
    gap: 6rem;
    position: relative;
    z-index: 1;
}

/* --- Left: Editorial Story --- */
.story-col {
    position: relative;
}

/* Keeps the story text pinned while the user scrolls through the belief cards */
.sticky-wrapper {
    position: sticky;
    top: 150px; 
}

.editorial-heading {
    font-size: clamp(3rem, 5vw, 4rem);
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 2rem;
    letter-spacing: -1px;
}

.lead-text {
    font-size: 1.4rem;
    font-family: 'Playfair Display', serif;
    font-style: italic;
    color: var(--accent-color);
    line-height: 1.6;
    margin-bottom: 2rem;
    position: relative;
    padding-left: 2rem;
}

.quote-mark {
    position: absolute;
    left: -10px;
    top: -20px;
    font-size: 4rem;
    color: var(--accent-light);
    font-family: Georgia, serif;
    z-index: -1;
    line-height: 1;
}

.prose-body p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

/* --- Right: Floating Beliefs Stack --- */
.beliefs-title {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 3rem;
    color: var(--text-main);
}

.beliefs-stack {
    display: flex;
    flex-direction: column;
    gap: 1.5rem; /* Space between individual cards */
}

/* Individual Belief Card Styling */
.belief-card {
    padding: 2rem 2.5rem;
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.6) 100%);
    border: 1px solid rgba(217, 119, 6, 0.1);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.belief-card:hover {
    transform: translateX(10px); /* Slides right slightly on hover */
    background: linear-gradient(135deg, #ffffff 0%, rgba(255, 255, 255, 0.9) 100%);
    box-shadow: 0 20px 40px rgba(217, 119, 6, 0.08), inset 0 0 0 1px rgba(255, 255, 255, 1);
    border-color: rgba(217, 119, 6, 0.3);
}

.b-icon {
    color: var(--accent-color);
    font-size: 1.5rem;
    line-height: 1;
    margin-top: 2px;
    background: var(--accent-light);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    flex-shrink: 0;
}

.b-content h4 {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.b-content p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-light);
    margin: 0;
}

/* =========================================
   LINEAGE TIMELINE SECTION (ANIMATED)
   ========================================= */
.lineage-section {
    padding: 8rem 0;
    background-color: var(--bg-color);
}

.timeline-container {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    padding: 0 2rem;
}

/* The Line and Flowing Light Animation */
.timeline-line {
    position: absolute;
    left: 40px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: rgba(217, 119, 6, 0.1);
    overflow: hidden;
}

.flowing-light {
    position: absolute;
    top: -50%;
    left: 0;
    width: 100%;
    height: 50%;
    background: linear-gradient(to bottom, transparent, var(--accent-color), transparent);
    animation: flowDown 3s linear infinite;
}

@keyframes flowDown {
    0% { top: -50%; }
    100% { top: 100%; }
}

/* The Animated Nodes (Replacing old dots) */
.timeline-item {
    position: relative;
    padding-left: 80px; /* Increased padding to fit the new animated nodes */
    margin-bottom: 4rem;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-node {
    position: absolute;
    left: 21px; /* Perfectly centers the 40px node over the 2px line at left:40px */
    top: 20px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.node-core {
    background: #ffffff;
    border: 2px solid var(--accent-color);
    color: var(--accent-color);
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    z-index: 3;
    box-shadow: 0 0 15px rgba(217, 119, 6, 0.3);
}

.node-pulse {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid var(--accent-color);
    animation: pulseRing 2.5s cubic-bezier(0.16, 1, 0.3, 1) infinite;
    z-index: 1;
}

@keyframes pulseRing {
    0% { transform: scale(0.8); opacity: 1; }
    100% { transform: scale(1.8); opacity: 0; }
}

/* Timeline Glass Card & Interactive Pattern */
.timeline-content {
    padding: 2.5rem;
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.8) 0%, rgba(255, 255, 255, 0.4) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.9);
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

.timeline-item:hover .timeline-content {
    transform: translateX(5px);
    box-shadow: 0 20px 40px rgba(217, 119, 6, 0.08);
}

/* Geometric Dot Pattern inside the card */
.timeline-pattern {
    position: absolute;
    top: -30px;
    right: -30px;
    width: 150px;
    height: 150px;
    background-image: radial-gradient(var(--accent-color) 2px, transparent 2px);
    background-size: 20px 20px;
    opacity: 0.06;
    border-radius: 50%;
    transition: transform 0.8s ease;
    pointer-events: none;
}

.timeline-item:hover .timeline-pattern {
    transform: scale(1.2) rotate(15deg);
    opacity: 0.1;
}

.timeline-content .year {
    display: inline-block;
    padding: 0.5rem 1.2rem;
    background: var(--accent-light);
    color: var(--accent-color);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 800;
    margin-bottom: 1.2rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.timeline-content h4 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 0.8rem;
    color: var(--text-main);
}

.timeline-content p {
    color: var(--text-light);
    line-height: 1.7;
    font-size: 1.05rem;
}

/* =========================================
   SACRED MOMENTS MASONRY GALLERY
   ========================================= */
.sacred-moments-section {
    padding: 8rem 2rem;
    max-width: 1280px;
    margin: 0 auto;
}

.text-center {
    text-align: center;
    align-items: center;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.masonry-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    grid-auto-rows: 280px;
    gap: 1.5rem;
    margin-top: 4rem;
}

.gallery-item {
    border-radius: 24px;
    overflow: hidden;
    background-color: var(--accent-light);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    position: relative;
    display: flex;
}

.gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(217, 119, 6, 0.15);
}

.gallery-item:hover .gallery-img {
    transform: scale(1.05);
}

/* Specific Grid Spans for Masonry Look */
.gallery-item.tall {
    grid-row: span 2;
}

.gallery-item.wide {
    grid-column: span 2;
}


/* =========================================
   RESPONSIVE ADJUSTMENTS
   ========================================= */
@media (max-width: 1024px) {
    .panoramic-bg {
        height: 50vh;
        width: 95%;
    }
    
    .hero-glass-card {
        margin-top: -10vh;
        width: 90%;
        padding: 3rem 2rem;
    }
    
    .sb-container {
        grid-template-columns: 1fr;
        gap: 4rem;
    }

    .sticky-wrapper {
        position: relative;
        top: 0;
    }
    
    .belief-card:hover {
        transform: translateY(-5px); /* Slide up instead of right on smaller screens */
    }
}

@media (max-width: 768px) {
    .panoramic-bg {
        height: 40vh;
        border-radius: 30px;
    }

    .hero-glass-card {
        margin-top: -5vh;
        padding: 2.5rem 1.5rem;
        border-radius: 30px;
    }
    
    .pano-title {
        font-size: 2.5rem;
    }

    .story-beliefs-section {
        padding: 5rem 0;
    }
    
    .belief-card {
        padding: 1.5rem;
        gap: 1rem;
    }
    
    .b-icon {
        width: 35px;
        height: 35px;
        font-size: 1.2rem;
    }

    .masonry-gallery {
        grid-template-columns: 1fr;
        grid-auto-rows: 250px;
    }

    .gallery-item.tall {
        grid-row: span 1;
    }

    .gallery-item.wide {
        grid-column: span 1;
    }
}