/* ===================================
    Vulpine Creations - Color Overrides Only
====================================== */

/* Remove gaps between sections */
section {
    margin: 0 !important;
}

#story > div {
    margin: 0 !important;
}

/* Override base color to gold */
:root {
    --base-color: #D4AF37 !important;
}

/* Logo filter for dark background */
.navbar-brand img {
    filter: invert(1) brightness(2);
    max-height: 40px;
}

.footer-logo {
    filter: invert(1) brightness(2);
}

/* Gold text color */
.text-base-color {
    color: #D4AF37 !important;
}

/* Gold background */
.bg-base-color {
    background-color: #D4AF37 !important;
}

/* Product box styles */
.product-box {
    background-color: #141419;
    border-radius: 6px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.product-box:hover {
    transform: translateY(-5px);
}

.product-image img {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.product-box:hover .product-image img {
    transform: scale(1.05);
}

.product-overlay {
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.3) 60%, transparent 100%);
}

/* Swiper pagination gold */
.swiper-pagination-bullet-active {
    background-color: #D4AF37 !important;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #0f0f14;
}

::-webkit-scrollbar-thumb {
    background: #D4AF37;
    border-radius: 4px;
}

/* ===================================
    Responsive Cinematic Sections
====================================== */

/* Cinematic section base styles */
.cinematic-section {
    position: relative;
    overflow: hidden;
    min-height: 80vh;
    padding: 80px 0;
}

.cinematic-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-repeat: no-repeat;
}

/* Tablet - adjust for medium screens */
@media (max-width: 991px) {
    /* Make text columns full width on tablet */
    .col-lg-6[data-anime] {
        padding: 20px;
    }

    /* Adjust gradients for better readability */
    .position-relative.overflow-hidden .position-absolute[style*="linear-gradient"] {
        background: linear-gradient(to bottom, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.85) 50%, rgba(0,0,0,0.95) 100%) !important;
    }

    /* Center text on tablets */
    .text-end {
        text-align: left !important;
    }

    .justify-content-end {
        justify-content: flex-start !important;
    }
}

/* Mobile - stack content below image */
@media (max-width: 767px) {
    /* Reduce min-height on mobile */
    .position-relative.overflow-hidden[style*="min-height: 80vh"],
    .position-relative.overflow-hidden[style*="min-height: 90vh"],
    .position-relative.overflow-hidden[style*="min-height: 100vh"],
    .position-relative.overflow-hidden[style*="min-height: 70vh"] {
        min-height: auto !important;
        padding: 60px 20px !important;
    }

    /* Center background images on mobile to show subject */
    .cover-background[style*="background-position: 70%"],
    .cover-background[style*="background-position: 75%"],
    .cover-background[style*="background-position: 30%"],
    .cover-background[style*="background-position: 25%"] {
        background-position: center top !important;
    }

    /* Stronger gradient overlay for text readability on mobile */
    .position-relative.overflow-hidden > .position-absolute[style*="linear-gradient"] {
        background: linear-gradient(to bottom, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.7) 30%, rgba(0,0,0,0.95) 60%, rgba(0,0,0,0.98) 100%) !important;
    }

    /* Text alignment fixes for mobile */
    .text-end {
        text-align: left !important;
    }

    .justify-content-end {
        justify-content: flex-start !important;
    }

    /* Reduce font sizes on mobile */
    h2[style*="font-size: clamp"] {
        font-size: clamp(28px, 8vw, 42px) !important;
    }

    /* Container adjustments */
    .container.d-flex.align-items-center {
        align-items: flex-end !important;
        min-height: 70vh !important;
    }

    /* Padding for content areas */
    .col-lg-6 {
        padding: 15px;
    }

    /* Review boxes */
    .bg-base-color.border-radius-6px {
        padding: 20px !important;
    }

    /* Reduce section heights */
    .container[style*="min-height: 80vh"],
    .container[style*="min-height: 90vh"],
    .container[style*="min-height: 100vh"],
    .container[style*="min-height: 70vh"] {
        min-height: 60vh !important;
    }
}

/* Small mobile */
@media (max-width: 480px) {
    .position-relative.overflow-hidden[style*="min-height"] {
        padding: 40px 15px !important;
    }

    h2[style*="font-size: clamp"] {
        font-size: clamp(24px, 7vw, 36px) !important;
    }

    .fs-18 {
        font-size: 16px !important;
    }

    .bg-base-color.border-radius-6px p {
        font-size: 15px !important;
    }
}

/* ===================================
    Parallax Scrolling Text
====================================== */
.parallax-text {
    will-change: transform;
    transition: transform 0.1s linear;
}

.parallax-text span {
    display: inline-block;
    -webkit-text-stroke: 1px rgba(191, 155, 86, 0.12);
    text-stroke: 1px rgba(191, 155, 86, 0.12);
}

@media (max-width: 767px) {
    .parallax-text span {
        font-size: 80px !important;
        letter-spacing: 10px !important;
    }
}

/* ===================================
    Text Readability Enhancements
====================================== */
/* Add subtle text shadow for better readability on background images */
.position-relative.overflow-hidden .text-white {
    text-shadow: 0 1px 3px rgba(0,0,0,0.4);
}

.position-relative.overflow-hidden h2.text-white {
    text-shadow: 0 2px 6px rgba(0,0,0,0.5);
}

.position-relative.overflow-hidden .text-base-color {
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

/* ===================================
    Product Carousel Improvements
====================================== */
.product-box {
    min-height: 350px;
    display: flex;
    flex-direction: column;
}

.product-image {
    flex: 1;
    overflow: hidden;
}

.product-image img {
    height: 100%;
    min-height: 280px;
    object-fit: cover;
    object-position: center;
}

/* Swiper pagination positioning */
.swiper-pagination {
    position: relative !important;
    margin-top: 30px !important;
    bottom: auto !important;
}

.swiper-pagination-bullet {
    width: 10px !important;
    height: 10px !important;
    margin: 0 6px !important;
    opacity: 0.4 !important;
    background: #fff !important;
}

.swiper-pagination-bullet-active {
    opacity: 1 !important;
    background: #D4AF37 !important;
}

/* Carousel container spacing */
.outside-box-right-15.outside-box-left-15 {
    padding: 0 30px;
}

/* ===================================
    Background Image Focus Points
    Ensures main subjects visible
====================================== */

/* Desktop: preserve original positioning */
@media (min-width: 992px) {
    .cover-background {
        background-position: var(--bg-position, center center);
    }
}

/* Tablet: adjust for medium screens */
@media (max-width: 991px) {
    /* Reset outside-box negative margins on tablet/mobile */
    [class*="outside-box-left"],
    [class*="outside-box-right"] {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    /* Carousel improvements */
    .product-box {
        min-height: 300px;
    }

    .product-image img {
        min-height: 230px;
    }

    .outside-box-right-15.outside-box-left-15 {
        padding: 0 20px;
    }

    /* Make text columns readable */
    .col-lg-6[data-anime],
    .col-lg-5[data-anime] {
        padding: 30px 20px;
        background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.7) 70%, transparent 100%);
        margin-top: auto;
    }
}

/* Mobile: center all images to show subjects */
@media (max-width: 767px) {
    /* Product carousel fixes */
    .product-box {
        min-height: 320px;
        margin: 0 5px;
    }

    .product-image img {
        min-height: 250px;
    }

    .product-overlay {
        padding: 25px !important;
        left: 0 !important;
        right: 0 !important;
    }

    .product-overlay span,
    .product-overlay h4,
    .product-overlay p {
        padding-left: 5px;
    }

    .product-overlay h4 {
        font-size: 18px !important;
    }

    .product-overlay p {
        font-size: 13px !important;
    }

    /* Fix carousel container overflow */
    .outside-box-right-15.outside-box-left-15 {
        padding: 0 20px;
        margin: 0 !important;
        overflow: hidden;
    }

    .swiper-slide {
        padding: 0 5px;
    }

    /* Center background images to show main subject */
    .cover-background[style*="background-position: 70%"],
    .cover-background[style*="background-position: 75%"] {
        background-position: 60% center !important;
    }

    .cover-background[style*="background-position: 30%"],
    .cover-background[style*="background-position: 25%"] {
        background-position: 40% center !important;
    }

    /* Full-height sections on mobile */
    .position-relative.overflow-hidden[style*="min-height"] {
        min-height: 85vh !important;
        display: flex;
        flex-direction: column;
    }

    /* Content positioning on mobile */
    .container.d-flex.align-items-center {
        align-items: flex-end !important;
        padding-bottom: 40px;
    }

    /* Text columns full width and at bottom */
    .col-lg-6,
    .col-lg-5 {
        width: 100%;
        padding: 25px !important;
    }

    /* Ensure text is readable */
    .position-relative.overflow-hidden > .position-absolute[style*="linear-gradient"] {
        background: linear-gradient(to bottom,
            rgba(0,0,0,0.1) 0%,
            rgba(0,0,0,0.3) 40%,
            rgba(0,0,0,0.8) 70%,
            rgba(0,0,0,0.95) 100%) !important;
    }

    /* Legacy stats section */
    .col-6.col-lg span[style*="font-size: clamp"] {
        font-size: clamp(40px, 12vw, 80px) !important;
    }

    /* Reviews grid */
    .row.g-4 .col-md-6 {
        padding: 10px !important;
    }
}

/* Small mobile adjustments */
@media (max-width: 480px) {
    /* Further center images for very small screens */
    .cover-background[style*="background-position"] {
        background-position: center center !important;
    }

    /* Reduce section padding */
    .position-relative.overflow-hidden[style*="min-height"] {
        padding: 40px 0 !important;
    }

    /* Smaller product cards */
    .product-box {
        min-height: 280px;
    }

    .product-image img {
        min-height: 200px;
    }

    /* Founder cards on mobile */
    .col-md-5 {
        margin-bottom: 20px;
    }

    /* Legacy stats */
    .col-6.col-lg {
        padding: 10px 5px !important;
    }

    /* Product overlay text - more padding on very small screens */
    .product-overlay {
        padding: 15px 20px !important;
    }

    .product-overlay span {
        font-size: 11px !important;
    }

    .product-overlay h4 {
        font-size: 16px !important;
    }

    .product-overlay p {
        font-size: 12px !important;
        line-height: 1.4 !important;
    }

    .col-6.col-lg span[style*="font-size: clamp"] {
        font-size: clamp(32px, 10vw, 60px) !important;
    }

    .fs-14.text-white.text-uppercase {
        font-size: 11px !important;
    }
}

/* ===================================
    Section-Specific Image Fixes
====================================== */

/* Felix keynote - keep face visible */
@media (max-width: 767px) {
    [style*="felix-keynote"] {
        background-position: 45% top !important;
    }

    /* Adam with fire - center on him */
    [style*="adam-wilber-card-fire"] {
        background-position: center center !important;
    }

    /* Color Psychology board */
    [style*="Color-Psychology-Board"] {
        background-position: center center !important;
    }

    /* LinkedIn section - stronger overlay for busy background */
    .linkedin-overlay {
        background: linear-gradient(to bottom,
            rgba(0,0,0,0.7) 0%,
            rgba(0,0,0,0.85) 30%,
            rgba(0,0,0,0.95) 60%,
            rgba(0,0,0,0.98) 100%) !important;
    }
}

/* Tablet view for LinkedIn */
@media (max-width: 991px) {
    .linkedin-overlay {
        background: linear-gradient(to bottom,
            rgba(0,0,0,0.5) 0%,
            rgba(0,0,0,0.8) 40%,
            rgba(0,0,0,0.95) 70%,
            rgba(0,0,0,0.98) 100%) !important;
    }
}


/* ===================================
    Mobile Image-First Layout
    Shows background image fully, then text on black below
====================================== */

@media (max-width: 767px) {
    /* Target all cinematic sections with background images */
    #story > .position-relative.overflow-hidden[style*="min-height"],
    #journey > .position-relative.overflow-hidden[style*="min-height"],
    #founders > .position-relative.overflow-hidden[style*="min-height"] {
        display: flex;
        flex-direction: column;
        min-height: auto !important;
        padding: 0 !important;
    }

    /* Make background image a visible block instead of absolute */
    #story > .position-relative.overflow-hidden[style*="min-height"] > .position-absolute.cover-background,
    #journey > .position-relative.overflow-hidden[style*="min-height"] > .position-absolute.cover-background,
    #founders > .position-relative.overflow-hidden[style*="min-height"] > .position-absolute.cover-background {
        position: relative !important;
        width: 100% !important;
        height: auto !important;
        aspect-ratio: 4 / 3;
        background-position: center center !important;
        flex-shrink: 0;
    }

    /* Hide the gradient overlay on mobile */
    #story > .position-relative.overflow-hidden[style*="min-height"] > .position-absolute:not(.cover-background),
    #journey > .position-relative.overflow-hidden[style*="min-height"] > .position-absolute:not(.cover-background),
    #founders > .position-relative.overflow-hidden[style*="min-height"] > .position-absolute:not(.cover-background) {
        display: none !important;
    }

    /* Text container: solid black background, below image */
    #story > .position-relative.overflow-hidden[style*="min-height"] > .container,
    #journey > .position-relative.overflow-hidden[style*="min-height"] > .container,
    #founders > .position-relative.overflow-hidden[style*="min-height"] > .container {
        position: relative !important;
        min-height: auto !important;
        background: #000 !important;
        padding: 40px 20px !important;
    }

    /* Reset flex alignment since we're stacking now */
    #story > .position-relative.overflow-hidden[style*="min-height"] > .container.d-flex,
    #journey > .position-relative.overflow-hidden[style*="min-height"] > .container.d-flex,
    #founders > .position-relative.overflow-hidden[style*="min-height"] > .container.d-flex {
        display: block !important;
    }

    /* Full width text columns */
    #story > .position-relative.overflow-hidden[style*="min-height"] .col-lg-6,
    #story > .position-relative.overflow-hidden[style*="min-height"] .col-lg-5,
    #journey > .position-relative.overflow-hidden[style*="min-height"] .col-lg-6,
    #journey > .position-relative.overflow-hidden[style*="min-height"] .col-lg-5,
    #founders > .position-relative.overflow-hidden[style*="min-height"] .col-lg-6,
    #founders > .position-relative.overflow-hidden[style*="min-height"] .col-lg-5 {
        width: 100% !important;
        padding: 0 !important;
    }

    /* Remove text shadows since we're on solid black now */
    #story > .position-relative.overflow-hidden[style*="min-height"] .text-white,
    #journey > .position-relative.overflow-hidden[style*="min-height"] .text-white,
    #founders > .position-relative.overflow-hidden[style*="min-height"] .text-white {
        text-shadow: none !important;
    }

    /* Fix text alignment - left align everything on mobile */
    #story > .position-relative.overflow-hidden[style*="min-height"] .text-end,
    #journey > .position-relative.overflow-hidden[style*="min-height"] .text-end,
    #founders > .position-relative.overflow-hidden[style*="min-height"] .text-end {
        text-align: left !important;
    }

    /* Fix row justification */
    #story > .position-relative.overflow-hidden[style*="min-height"] .justify-content-end,
    #journey > .position-relative.overflow-hidden[style*="min-height"] .justify-content-end,
    #founders > .position-relative.overflow-hidden[style*="min-height"] .justify-content-end {
        justify-content: flex-start !important;
    }
}

/* ===================================
    Tablet Image Repositioning (iPad 13" and similar)
    Targets 768px - 1024px range
====================================== */

@media (min-width: 768px) and (max-width: 1024px) {
    /* Felix keynote - move focus more to the right to show Felix's face */
    .cover-background[style*="felix-keynote"] {
        background-position: 70% center !important;
    }
    
    /* Conjuring Cards - center the handshake image */
    .cover-background[style*="conjuring-cards-hero"] {
        background-position: 45% center !important;
    }
    
    /* LinkedIn message section - adjust for tablet */
    .cover-background[style*="linkedin-message"] {
        background-position: 65% center !important;
    }
    
    /* General adjustments for images positioned at 30% - move slightly right */
    .cover-background[style*="background-position: 30%"] {
        background-position: 40% center !important;
    }
    
    /* General adjustments for images positioned at 70%+ - move slightly left */
    .cover-background[style*="background-position: 70%"],
    .cover-background[style*="background-position: 75%"] {
        background-position: 60% center !important;
    }
}

/* Larger tablets / iPad Pro landscape */
@media (min-width: 1025px) and (max-width: 1199px) {
    .cover-background[style*="felix-keynote"] {
        background-position: 62% center !important;
    }
    
    .cover-background[style*="conjuring-cards-hero"] {
        background-position: 38% center !important;
    }
}

/* TED Rope section - shift image right on tablets to show more of the speaker */
@media (min-width: 768px) and (max-width: 1024px) {
    .cover-background[style*="ted-rope"] {
        background-position: 25% center !important;
    }
}

@media (min-width: 1025px) and (max-width: 1199px) {
    .cover-background[style*="ted-rope"] {
        background-position: 40% center !important;
    }
}

/* iPad: shift Grandfathers Top background image to show spinning top contentflow-ai/ felix-lenhard-website/ Startup burgenland website/ vcbroll/ vccoursetransformer/ vcsunopromt/ vulpine-industries-website/ VulpinecreationsWebsite/ VulpineIndustriesWebsite/

/* Grandfathers Top: shift bg image to reveal spinning top */
.grandfathers-top-bg {
    background-position: 40% center !important;
}
