/* Pallant Specific Styles */
:root {
    --pallant-bg: #0B0C10;
    --pallant-text: #FFFFFF;
    --pallant-text-muted: #C5C6C7;
    --pallant-accent: #66FCF1;
    --pallant-dark-grey: #1F2833;
}

/* Default Light Mode for Pallant Page */
body.pallant-page {
    background-color: var(--color-bg-main);
    color: var(--color-text-main);
}

.pallant-page h1,
.pallant-page h2,
.pallant-page h3,
.pallant-page h4,
.pallant-page h5,
.pallant-page h6 {
    color: var(--color-text-main);
}

.pallant-page p {
    color: var(--color-text-main);
}

/* Header Override Reset */
.pallant-page header {
    border-bottom-color: var(--color-border);
    position: relative;
    z-index: 20;
    pointer-events: all;
    background-color: transparent;
    /* Ensure header is transparent if needed or keep standard */
}

/* Custom Hero Styles for Pallant */
.hero-overlay-dark {
    background-color: rgba(0, 0, 0, 0.4);
    /* Slight black overlay */
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
}

.text-white {
    color: #FFFFFF !important;
    border-top-color: #FFFFFF !important;
}

.pallant-page .logo {
    color: var(--color-text-main);
}



/* Datum Line Animation Default */
.pallant-page h2::before,
.pallant-page h3::before {
    background-color: var(--color-brand);
}

/* Dark Section Override */
.bg-dark-pallant {
    background-color: var(--pallant-bg);
    color: var(--pallant-text);
}

.bg-dark-pallant h2,
.bg-dark-pallant h3,
.bg-dark-pallant p {
    color: var(--pallant-text);
}

.bg-dark-pallant h2::before,
.bg-dark-pallant h3::before {
    background-color: var(--pallant-text);
}

/* Timeline Section */
.timeline-container {
    position: relative;
    padding-left: 40px;
    margin: 40px 0;
}

/* Base line (faint) */
.timeline-container::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 2px;
    height: 100%;
    background-color: var(--color-border);
    /* Light grey base */
}

/* Animateable line (dark/filled) */
.timeline-container::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 2px;
    height: 0%;
    /* Start at 0 */
    background-color: var(--color-brand);
    /* Dark fill */
    transition: height 1.5s ease-out;
}

.timeline-container.is-visible::after {
    height: 100%;
}

.timeline-item {
    position: relative;
    padding-bottom: 60px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

/* Reveal items sequentially as the line passes them */
.timeline-container.is-visible .timeline-item:nth-child(1) {
    transition-delay: 0.2s;
    opacity: 1;
    transform: translateY(0);
}

.timeline-container.is-visible .timeline-item:nth-child(2) {
    transition-delay: 0.7s;
    opacity: 1;
    transform: translateY(0);
}

.timeline-container.is-visible .timeline-item:nth-child(3) {
    transition-delay: 1.2s;
    opacity: 1;
    transform: translateY(0);
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -46px;
    /* Adjust based on padding-left of container */
    top: -5px;
    /* Adjust vertical alignment */
    width: 10px;
    height: 10px;
    background-color: var(--color-bg-main);
    /* White bg */
    border: 2px solid var(--color-brand);
    /* Dark border for visibility */
    border-radius: 50%;
    z-index: 1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.timeline-container.is-visible .timeline-item:nth-child(1)::before {
    transition-delay: 0.2s;
    opacity: 1;
}

.timeline-container.is-visible .timeline-item:nth-child(2)::before {
    transition-delay: 0.7s;
    opacity: 1;
}

.timeline-container.is-visible .timeline-item:nth-child(3)::before {
    transition-delay: 1.2s;
    opacity: 1;
}

/* Bento Box Grid */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.bento-card {
    background-color: var(--color-bg-main);
    /* White bg */
    padding: 40px;
    border: 1px solid var(--color-border);
    /* Standard border */
    transition: transform 0.3s ease, border-color 0.3s ease;
    opacity: 0;
    /* Initial state for animation */
}

.bento-card:hover {
    border-color: var(--color-brand);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(255, 103, 31, 0.1);
}

.bento-card h3 {
    margin-top: 0;
}

/* Animations */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.slide-in-left.is-visible {
    animation: slideInLeft 0.8s ease-out forwards;
}

.slide-in-right.is-visible {
    animation: slideInRight 0.8s ease-out forwards;
}

/* Team Section */
.team-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.team-member img {
    width: 100%;
    height: 750px;
    /* Fixed height for uniformity */
    object-fit: cover;
    object-position: top;
    /* Crop from top for Ben */
    border-radius: 0;
}

/* Parallax Effect for Images */
.parallax-img {
    transform: translateY(20px);
    transition: transform 0.5s ease-out;
}

.parallax-img.is-visible {
    transform: translateY(0);
}

.team-member h3 {
    margin-top: 20px;
    margin-bottom: 5px;
}

.team-member .role {
    color: var(--color-text-main);
    font-family: monospace;
    text-transform: uppercase;
    font-size: 0.9em;
    margin-bottom: 20px;
    display: block;
}

/* LinkedIn Icon */
.linkedin-icon {
    display: inline-block;
    width: 24px;
    height: 24px;
    vertical-align: middle;
    margin-left: 60px;
    color: #0077b5;
    /* LinkedIn Blue */
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.linkedin-icon:hover {
    opacity: 0.8;
    transform: scale(1.1);
}

/* Mobile Responsiveness */
@media (max-width: 1024px) {

    .team-grid,
    .bento-grid {
        grid-template-columns: 1fr;
    }

    .team-member img {
        height: auto;
        /* Allow natural height on mobile */
        max-height: 600px;
        /* Cap it so it's not too tall */
    }

    /* Ensure Hero is full height on mobile */
    .hero {
        min-height: 100vh;
    }

    /* Adjust padding for mobile */
    .section-padding {
        padding-top: 60px;
        padding-bottom: 60px;
    }

    .linkedin-icon {
        margin-left: 10px;
        /* Reduce spacing on mobile */
    }
}