/* ===================================================================
   SPLITKUN HOME PAGE SCROLL EFFECTS
   Hero section with parallax and blur transitions
   =================================================================== */

/* ===================================================================
   LOCOMOTIVE SCROLL CONTAINER
   =================================================================== */

.home-scroll-container {
    position: relative;
}

/* Override default main padding for home page */
body.home-page .split-main {
    padding-top: 0;
    min-height: unset;
}

/* Remove body padding for home page */
body.home-page.has-floating-header {
    padding-top: 0 !important;
}

/* ===================================================================
   HERO SECTION
   =================================================================== */

.hero-section {
    position: relative;
    width: 100vw; /* Full viewport width */
    margin-left: calc(-50vw + 50%); /* Extend beyond container */
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-direction: column;
    min-height: 200vh; /* Ensure section has enough height for sticky behavior */
}

.hero-background {
    position: absolute;
    width: 100%;
    height: 100vh;
    z-index: 1;
    overflow: hidden;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Replaces background-size: cover */
    object-position: center; /* Replaces background-position: center */
    position: absolute;
    top: 0;
    left: 0;
    transition: filter 0.1s ease-out;
    z-index: 1;
}

.hero-blur-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0);
    backdrop-filter: blur(0px);
    transition: backdrop-filter 0.1s ease-out;
    pointer-events: none;
    z-index: 2;
}

.hero-content {
    z-index: 10;
    max-width: 1600px;
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    height: 100vh;
    width: 100%;
    padding-left: 2rem; /* Left spacing */
}

.hero-title {
    font-size: 72px;
    font-weight: 700;
    color: white;
    line-height: 1.2;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    max-width: 700px;
    display: flex;
    font-family: "Nippo-Bold";
    align-items: flex-end;
    justify-content: center;
    flex: 1;
}

.image-credit {
    color: white;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    align-self: flex-end;
    flex: 1;
    padding-bottom: 2rem;
}

.credit-link {
    font-weight: bolder;
    color: #00dac6;
}

/* ===================================================================
   CONTENT SECTION
   =================================================================== */

.content-section {
    background-color: transparent;
    z-index: 20;
    padding: 6rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh; /* Ensure content section has proper height */
}

.content-wrapper {
    width: 100%;
    display: grid;
    grid-template-columns: auto 1fr; /* Narrow left column, wide right column */
    gap: 6rem; /* Increase gap for better separation */
    align-items: flex-start;
    padding-bottom: 20px;
}

/* Left Column - Title with bullet */
.content-left {
    display: flex;
    align-items: flex-start;
    width: max-content; /* Only take space needed for content */
    white-space: nowrap; /* Prevent text wrapping to keep it narrow */
}

.content-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin: 0;
}

.content-dot {
    display: flex;
    align-items: center;
    justify-content: center;
}

.content-dot-icon {
    width: 12px;
    height: 12px;
    color: white;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.8));
    fill: white; /* Ensure circle is filled */
}

.content-main-title {
    font-size: 20px;
    font-weight: 400;
    color: white;
    line-height: 1.4;
    margin: 0;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
    letter-spacing: 0;
}

/* Right Column - Content paragraphs */
.content-right {
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* Align to top-left of the right column */
    justify-content: flex-start; /* Start from top */
    width: 100%; /* Take full width of right column */
}

.content-body {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    width: 100%; /* Ensure full width usage */
}

.content-paragraph {
    opacity: 0.6; /* Default dimmed state */
    transition: opacity 0.3s ease;
}

.content-paragraph.highlighted {
    opacity: 1; /* Highlighted state */
}

.content-paragraph p {
    font-size: 48px;
    line-height: 1.2;
    color: white;
    margin: 0;
    font-weight: 300;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
    letter-spacing: 0;
    width: 100%; /* Ensure paragraphs use full available width */
    max-width: none; /* Remove any width constraints */
}

.content-paragraph strong {
    font-weight: 500;
}

.section-3 {
    min-height: 100vh; /* Changed to min-height for small phone flexibility */
    display: flex;
    align-items: flex-start;
    justify-content: center;
    color: black;
    background-color: #f0f0ea;
    z-index: 21;
    position: relative;
    margin-bottom: 4rem; /* Buffer space before footer for scroll accessibility */
}

.section-3-content {
    padding: 2rem 0rem;
    width: 100%;
}

/* ===================================================================
   CORE PILLARS SECTION
   =================================================================== */

.pillars-wrapper {
    width: 100%;
    display: flex;
    grid-template-columns: auto 1fr; /* Same layout as Fairness section */
    gap: 6rem;
    align-items: flex-start;
    flex-direction: column;
    margin-bottom: 4rem;
}

/* Left Column - Core pillars title with bullet */
.pillars-left {
    display: flex;
    align-items: flex-start;
    width: max-content;
    white-space: nowrap;
}

.pillars-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin: 0;
}

.pillars-dot {
    display: flex;
    align-items: center;
    justify-content: center;
}

.pillars-dot-icon {
    width: 12px;
    height: 12px;
    color: #333;
    fill: #333;
}

.pillars-main-title {
    font-size: 20px;
    font-weight: 400;
    color: #333;
    line-height: 1.4;
    margin: 0;
    letter-spacing: 0;
}

/* Right Column - 3 Pillars Grid */
.pillars-right {
    width: 100%;
}

.pillars-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    width: 100%;
}

.pillar-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
}

.pillar-icon-box {
    width: 32px;
    height: 32px;
    background-color: #f5f5f5;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pillar-icon {
    width: 16px;
    height: 16px;
    color: #333;
    stroke-width: 1.5;
}

.pillar-title {
    font-size: 20px;
    font-weight: 700;
    color: #333;
    line-height: 1.3;
    margin: 0;
}

.pillar-description {
    font-size: 18px;
    font-weight: 400;
    color: #333;
    line-height: 1.6;
    margin: 0;
}

/* Black separator line */
.section-separator {
    width: 100%;
    height: 3px;
    background-color: #000;
    margin-top: 2rem;
}

/* ===================================================================
   RESPONSIVE DESIGN
   =================================================================== */

@media (max-width: 1200px) {
    .hero-title {
        font-size: 56px;
    }

    .content-main-title {
        font-size: 42px;
    }
}

@media (max-width: 1024px) and (min-width: 769px) {
    /* Tablet specific styles */
    .hero-content {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }

    .hero-title {
        font-size: 52px;
    }

    .content-section {
        padding: 5rem 1.5rem;
    }

    .content-main-title {
        font-size: 17px;
    }

    .content-paragraph p {
        font-size: 36px;
        line-height: 1.25;
    }

    /* Core Pillars Tablet Styles */
    .section-3-content {
        padding: 5rem 1.5rem;
    }

    .pillars-main-title {
        font-size: 17px;
    }

    .pillars-grid {
        gap: 2rem; /* Reduce gap on tablet */
    }

    .pillar-title {
        font-size: 18px;
    }

    .pillar-description {
        font-size: 16px;
    }
}

@media (max-width: 768px) {
    .hero-section {
        margin-left: 0; /* Remove negative margin on mobile */
        width: 100%; /* Reset width */
    }

    .hero-background {
        width: 100vw;
        height: 100vh;
    }

    .hero-image {
        width: 100vw;
        height: 100vh;
        object-fit: cover;
    }

    .hero-content {
        padding-left: 1rem; /* Reduce left padding */
        padding-right: 1rem;
        width: 100%;
        max-width: 100%;
    }
    .image-credit {
        align-items: flex-end;
        justify-content: center;
        align-self: center;
    }
    .hero-title {
        font-size: 42px;
        max-width: 100%;
        line-height: 1.2;
    }

    .content-section {
        padding: 4rem 1rem;
        width: 100%;
    }

    .content-wrapper {
        width: 100%;
        max-width: 100%;
        display: flex; /* Change from grid to flex on mobile */
        flex-direction: column; /* Stack vertically */
        gap: 3rem; /* Reduce gap on mobile */
    }

    .content-header {
        gap: 1rem;
    }

    .content-main-title {
        font-size: 16px;
        line-height: 1.4;
    }

    .content-paragraph p {
        font-size: 28px;
        line-height: 1.3;
    }

    /* Core Pillars Mobile Styles */
    .section-3 {
        margin-bottom: 2rem; /* Reduced margin buffer on mobile */
    }

    .section-3-content {
        padding: 4rem 1rem;
    }

    .pillars-wrapper {
        display: flex;
        flex-direction: column;
        gap: 3rem;
    }

    .pillars-grid {
        grid-template-columns: 1fr; /* Stack pillars vertically */
        gap: 2rem;
    }

    .pillars-main-title {
        font-size: 16px;
    }

    .pillar-title {
        font-size: 18px;
    }

    .pillar-description {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .hero-content {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }

    .hero-title {
        font-size: 36px;
        line-height: 1.1;
    }

    .content-main-title {
        font-size: 15px;
        line-height: 1.4;
    }

    .content-section {
        padding: 3rem 0.75rem;
    }

    .content-paragraph p {
        font-size: 24px;
        line-height: 1.3;
    }
}

/* ===================================================================
   ACCESSIBILITY & REDUCED MOTION
   =================================================================== */

@media (prefers-reduced-motion: reduce) {
    .hero-image,
    .hero-blur-overlay {
        transition: none;
    }
}

/* ===================================================================
   FOOTER SECTION
   =================================================================== */

footer[data-scroll-section] {
    width: 100vw; /* Full viewport width */
    margin-left: calc(-50vw + 50%); /* Extend beyond container */
}

/* ===================================================================
   PERFORMANCE OPTIMIZATIONS
   =================================================================== */

.hero-image {
    will-change: filter;
    transform: translateZ(0); /* Hardware acceleration */
}

.hero-blur-overlay {
    will-change: backdrop-filter;
    transform: translateZ(0); /* Hardware acceleration */
}
