/* Superhero Landing Theme - Pinterest Style "Neo-Comic" */
@import url('https://fonts.googleapis.com/css2?family=Bangers&family=Comic+Neue:wght@400;700&family=Cairo:wght@400;700;900&display=swap');

:root {
    --hero-red: #ff4757;
    --hero-blue: #2ed573;
    /* Changed to a vibrant green/teal for variety or stick to classic blue? Let's stick to classic blue but punchier */
    --hero-blue-pure: #0984e3;
    --hero-yellow: #ffa502;
    --comic-black: #2f3542;
    /* Softened black */
    --comic-white: #ffffff;
    --paper-texture: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAAECAYAAACp8Z5+AAAAIklEQVQIW2NkQAKrVq36zwjjgzhhZWGMYAEYB8RmROaABADeOQ8CXl/xfgAAAABJRU5ErkJggg==');
    /* Simple dot pattern */
}

/* Reset & Base with Texture */
body {
    font-family: 'Comic Neue', 'Cairo', sans-serif;
    background-color: #f1f2f6;
    background-image: var(--paper-texture);
    color: var(--comic-black);
    overflow-x: hidden;
}

h1,
h2,
h3,
.comic-font {
    font-family: 'Bangers', 'Cairo', cursive;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* --- Utilities for "Artistic Touch" --- */
.jagged-bottom {
    clip-path: polygon(0% 0%, 100% 0%, 100% 95%,
            98% 100%, 96% 95%, 94% 100%, 92% 95%, 90% 100%,
            88% 95%, 86% 100%, 84% 95%, 82% 100%, 80% 95%,
            78% 100%, 76% 95%, 74% 100%, 72% 95%, 70% 100%,
            68% 95%, 66% 100%, 64% 95%, 62% 100%, 60% 95%,
            58% 100%, 56% 95%, 54% 100%, 52% 95%, 50% 100%,
            48% 95%, 46% 100%, 44% 95%, 42% 100%, 40% 95%,
            38% 100%, 36% 95%, 34% 100%, 32% 95%, 30% 100%,
            28% 95%, 26% 100%, 24% 95%, 22% 100%, 20% 95%,
            18% 100%, 16% 95%, 14% 100%, 12% 95%, 10% 100%,
            8% 95%, 6% 100%, 4% 95%, 2% 100%,
            0% 95%);
}

.jagged-top {
    clip-path: polygon(0% 5%, 2% 0%, 4% 5%, 6% 0%, 8% 5%, 10% 0%,
            12% 5%, 14% 0%, 16% 5%, 18% 0%, 20% 5%, 22% 0%,
            24% 5%, 26% 0%, 28% 5%, 30% 0%, 32% 5%, 34% 0%,
            36% 5%, 38% 0%, 40% 5%, 42% 0%, 44% 5%, 46% 0%,
            48% 5%, 50% 0%, 52% 5%, 54% 0%, 56% 5%, 58% 0%,
            60% 5%, 62% 0%, 64% 5%, 66% 0%, 68% 5%, 70% 0%,
            72% 5%, 74% 0%, 76% 5%, 78% 0%, 80% 5%, 82% 0%,
            84% 5%, 86% 0%, 88% 5%, 90% 0%, 92% 5%, 94% 0%,
            96% 5%, 98% 0%, 100% 5%, 100% 100%, 0% 100%);
}

/* --- Hero Section Refined --- */
.hero-section-dynamic {
    padding: 120px 0 150px;
    background: #ffffff;
    position: relative;
    z-index: 5;
}

.hero-content {
    position: relative;
    z-index: 10;
}

.hero-title-dynamic {
    font-size: 6rem;
    color: var(--comic-black);
    text-shadow: 5px 5px 0px var(--hero-yellow);
    line-height: 0.8;
    transform: rotate(-3deg);
    margin-bottom: 30px;
    -webkit-text-stroke: 2px var(--comic-black);
}

.hero-subtitle-dynamic {
    font-size: 1.5rem;
    font-weight: bold;
    background: var(--comic-black);
    color: white;
    padding: 15px 30px;
    transform: skew(-10deg);
    box-shadow: 10px 10px 0px var(--hero-blue-pure);
}

/* --- Power Cards (Pinterest Style) --- */
.card-section {
    background-color: var(--hero-yellow);
    padding: 100px 0;
    position: relative;
    margin-top: -50px;
    z-index: 4;
}

.feature-comic-card {
    background: white;
    border: 4px solid var(--comic-black);
    border-radius: 15px;
    padding: 0;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 10px 10px 0px var(--comic-black);
    position: relative;
}

.feature-comic-card:hover {
    transform: translate(-10px, -10px);
    box-shadow: 20px 20px 0px var(--comic-black);
}

/* Card Header Imitation */
.card-header-comic {
    background: var(--hero-blue-pure);
    color: white;
    padding: 10px;
    border-bottom: 4px solid var(--comic-black);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: 'Bangers';
    font-size: 1.2rem;
}

.feature-img-container {
    height: 250px;
    border-bottom: 4px solid var(--comic-black);
    position: relative;
}

.feature-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(20%) contrast(120%);
    transition: 0.5s;
}

.feature-comic-card:hover img {
    filter: grayscale(0%) contrast(100%);
    transform: scale(1.1);
}

.card-body-comic {
    padding: 20px;
    background: radial-gradient(#eee 15%, transparent 16%) 0 0;
    background-size: 10px 10px;
}

/* --- Map "Mission File" Style --- */
.map-section {
    background-color: white;
    padding: 100px 0;
    position: relative;
    z-index: 3;
}

.mission-file-folder {
    background: #f1c40f;
    border: 4px solid var(--comic-black);
    border-radius: 5px;
    padding: 10px;
    box-shadow: 15px 15px 0px rgba(0, 0, 0, 0.2);
    position: relative;
}

/* Tape Effect */
.tape {
    position: absolute;
    width: 120px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.5);
    border: 1px dashed rgba(0, 0, 0, 0.1);
    transform: rotate(-30deg);
    top: -15px;
    left: -30px;
    z-index: 10;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* --- ScrollyTelling Enhanced --- */
.scrolly-section {
    background: var(--comic-black);
    color: white;
    padding: 50px 0;
    position: relative;
    z-index: 2;
}

.story-step {
    padding: 40px;
    margin-bottom: 10vh;
    opacity: 0.2;
    transition: opacity 0.5s;
    border-left: 5px solid var(--hero-yellow);
    padding-left: 30px;
}

.story-step.is-active {
    opacity: 1;
    border-left: 15px solid var(--hero-yellow);
}

.comic-speech-box {
    background: transparent;
    border: none;
    color: white;
    font-size: 1.5rem;
    font-family: 'Comic Neue';
    text-shadow: 2px 2px 0px black;
}

/* --- Testimonials: Comic Strips --- */
.testimonial-section {
    background: #70a1ff;
    padding: 100px 0;
    position: relative;
    clip-path: polygon(0 5%, 100% 0, 100% 100%, 0% 100%);
    z-index: 1;
}

.testimonial-strip {
    background: white;
    border: 4px solid var(--comic-black);
    padding: 20px;
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 30px;
    box-shadow: 8px 8px 0px rgba(0, 0, 0, 0.5);
    transform: rotate(-1deg);
}

.testimonial-strip:nth-child(even) {
    transform: rotate(1deg);
}

.strip-avatar {
    width: 100px;
    height: 100px;
    border: 3px solid var(--comic-black);
    object-fit: cover;
    flex-shrink: 0;
}

.strip-bubble {
    background: #dfe4ea;
    padding: 15px;
    border-radius: 20px;
    border: 2px solid var(--comic-black);
    position: relative;
    font-style: italic;
}

.strip-bubble::before {
    content: '';
    position: absolute;
    left: -12px;
    top: 20px;
    border-width: 10px 12px 10px 0;
    border-style: solid;
    border-color: transparent var(--comic-black) transparent transparent;
}

.strip-bubble::after {
    content: '';
    position: absolute;
    left: -8px;
    top: 22px;
    border-width: 8px 10px 8px 0;
    border-style: solid;
    border-color: transparent #dfe4ea transparent transparent;
}

/* --- Decoration --- */
.btn-comic-action {
    background: var(--hero-red);
    color: white;
    border: 3px solid var(--comic-black);
    box-shadow: 5px 5px 0px var(--comic-black);
    font-family: 'Bangers';
    font-size: 1.8rem;
    padding: 10px 30px;
    text-decoration: none;
    transition: 0.2s;
    display: inline-block;
}

.btn-comic-action:hover {
    transform: scale(1.1) rotate(2deg);
    background: white;
    color: var(--hero-red);
    box-shadow: 8px 8px 0px var(--comic-black);
}

.section-title-wrapper {
    text-align: center;
    margin-bottom: 50px;
}

.section-title-comic {
    font-size: 3.5rem;
    color: white;
    -webkit-text-stroke: 2px var(--comic-black);
    text-shadow: 4px 4px 0px var(--hero-blue-pure);
    position: relative;
    display: inline-block;
}

.section-title-comic::before {
    content: '★';
    color: var(--hero-yellow);
    position: absolute;
    left: -40px;
    top: -20px;
    font-size: 4rem;
    transform: rotate(-15deg);
    -webkit-text-stroke: 2px var(--comic-black);
}

/* Scrolly Visuals Enchanced */
.scrolly-visuals {
    height: 100vh;
    position: sticky;
    top: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1000px;
}

.visual-panel {
    position: absolute;
    width: 350px;
    height: 500px;
    border: 12px solid white;
    box-shadow: 0 0 0 5px black, 20px 20px 0 rgba(0, 0, 0, 0.5);
    background-size: cover;
    background-position: center;
    opacity: 0;
    transform: translateX(100%) rotate(20deg) scale(0.8);
    transition: all 0.8s cubic-bezier(0.19, 1, 0.22, 1);
    z-index: 1;
}

.visual-panel.is-active {
    opacity: 1;
    transform: translateX(0) rotate(0deg) scale(1);
    z-index: 10;
}

/* Add a slight "exit" animation for previous elements if possible via JS, 
   but CSS transition handles the "removal" of .is-active class. 
   When .is-active is removed: */
.visual-panel:not(.is-active) {
    transform: translateX(-100%) rotate(-20deg) scale(0.8);
    opacity: 0;
}