/* --- CSS Variables (Color Palette & Fonts) --- */
:root {
    --color-primary-red: #E74C3C; /* Bold Red */
    --color-primary-blue: #3498DB; /* Bold Blue */
    --color-primary-yellow: #F1C40F; /* Bold Yellow */
    --color-dark-outline: #2C3E50; /* Dark for outlines, text */
    --color-light-text: #ECF0F1; /* Light text for dark backgrounds */
    --color-background-light: #F9F9F9; /* Light background for sections */
    --color-background-dark: #34495E; /* Dark background for sections */
    --color-accent-green: #2ECC71; /* A secondary accent color */

    --font-heading: 'Bangers', cursive;
    --font-body: 'Comic Neue', cursive;
    --font-cta: 'Luckiest Guy', cursive;

    --halftone-texture: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAcAAAAHCAYAAADTeGpDAAAAIUlEQVQIW2NkYGD4z8DAwMDwP4xMDAwMPxQzQSwbYBAAAK2hD/RkR9aDAAAAAElFTkSuQmCC');
    --halftone-large: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA0AAAANCAYAAABPeHxKAAAANklEQVQokWNkYGD4z8DAwMDw/4GYy/D/R1jG0P9jYGCgsZBhB7Eawf8zMDAwMFhYGJlZGYAANj/844R2B8MAAAAASUVORK5CYII=');
}

/* --- Base Styles --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    line-height: 1.6;
    color: var(--color-dark-outline);
    background-color: var(--color-background-light);
    overflow-x: hidden; /* Prevent horizontal scroll from exaggerated elements */
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--color-dark-outline);
    text-shadow: 2px 2px 0 var(--color-primary-red), 4px 4px 0 var(--color-primary-blue);
    line-height: 1.2;
    margin-bottom: 0.5em;
    -webkit-text-stroke: 1px var(--color-dark-outline); /* Thick outline for headings */
    text-stroke: 1px var(--color-dark-outline);
}

h1 { font-size: 3.5em; }
h2 { font-size: 2.8em; }
h3 { font-size: 2.2em; }
h4 { font-size: 1.8em; }

p {
    margin-bottom: 1em;
}

a {
    color: var(--color-primary-blue);
    text-decoration: none;
    transition: color 0.3s ease, transform 0.2s ease;
}

a:hover {
    color: var(--color-primary-red);
    transform: translateY(-2px);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    border: 3px solid var(--color-dark-outline); /* Comic panel outline */
    box-shadow: 8px 8px 0px var(--color-primary-red), 16px 16px 0px var(--color-primary-blue); /* Exaggerated comic shadow */
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

img:hover {
    transform: scale(1.03) rotate(1deg);
    box-shadow: 10px 10px 0px var(--color-primary-red), 20px 20px 0px var(--color-primary-blue);
}

.section-title {
    text-align: center;
    margin-bottom: 2em;
    padding-top: 1em;
    padding-bottom: 0.5em;
    font-size: 3.5em;
    letter-spacing: 2px;
    position: relative;
    z-index: 2;
    background-color: var(--color-primary-yellow);
    border: 5px solid var(--color-dark-outline);
    box-shadow: 10px 10px 0px var(--color-primary-red);
    display: inline-block;
    padding-left: 1em;
    padding-right: 1em;
    left: 50%;
    transform: translateX(-50%) rotate(-3deg);
    margin-top: 2em; /* Push it away from previous section's elements */
}

.subsection-title {
    text-align: center;
    margin-top: 3em;
    margin-bottom: 2em;
    font-size: 2.5em;
    letter-spacing: 1px;
    position: relative;
    z-index: 2;
    color: var(--color-dark-outline);
    background-color: var(--color-primary-blue);
    border: 4px solid var(--color-dark-outline);
    box-shadow: 8px 8px 0px var(--color-primary-yellow);
    display: inline-block;
    padding: 0.5em 1.5em;
    left: 50%;
    transform: translateX(-50%) rotate(2deg);
    -webkit-text-stroke: 1px var(--color-dark-outline);
    text-stroke: 1px var(--color-dark-outline);
}


/* --- Utility Classes / Components --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2em 1em;
}

.cta-button {
    display: inline-block;
    background-color: var(--color-primary-yellow);
    color: var(--color-dark-outline);
    padding: 1em 2em;
    border: 4px solid var(--color-dark-outline);
    border-radius: 8px;
    font-family: var(--font-cta);
    font-size: 1.5em;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 8px 8px 0px var(--color-primary-red);
    transition: transform 0.2s ease-out, box-shadow 0.2s ease-out;
    -webkit-text-stroke: 1px var(--color-dark-outline);
    text-stroke: 1px var(--color-dark-outline);
}

.cta-button:hover {
    transform: translate(-4px, -4px) scale(1.02);
    box-shadow: 12px 12px 0px var(--color-primary-red);
}

/* Speech Bubble Styles */
.speech-bubble {
    position: relative;
    background: var(--color-primary-blue);
    border: 3px solid var(--color-dark-outline);
    border-radius: .4em;
    padding: 1.5em;
    color: var(--color-light-text);
    text-shadow: 1px 1px 0 var(--color-dark-outline);
    box-shadow: 6px 6px 0 var(--color-primary-yellow);
    margin-bottom: 2em;
    font-size: 1.1em;
}
.speech-bubble::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 15%;
    width: 0;
    height: 0;
    border: 20px solid transparent;
    border-top-color: var(--color-primary-blue);
    border-bottom: 0;
    margin-left: -20px;
    margin-bottom: -20px;
    border-left-color: transparent; /* Makes the tail pointy */
    border-right-color: transparent; /* Makes the tail pointy */
}
.speech-bubble::before { /* For the outline of the tail */
    content: '';
    position: absolute;
    bottom: -3px; /* Adjust to match border of bubble */
    left: 15%;
    width: 0;
    height: 0;
    border: 23px solid transparent; /* Slightly larger border */
    border-top-color: var(--color-dark-outline);
    border-bottom: 0;
    margin-left: -23px;
    margin-bottom: -23px;
    z-index: -1; /* Place behind actual bubble tail */
}

.speech-bubble-alt {
    position: relative;
    background: var(--color-primary-red);
    border: 3px solid var(--color-dark-outline);
    border-radius: .4em;
    padding: 1.5em;
    color: var(--color-light-text);
    text-shadow: 1px 1px 0 var(--color-dark-outline);
    box-shadow: 6px 6px 0 var(--color-primary-blue);
    margin-bottom: 2em;
    font-size: 1.1em;
}
.speech-bubble-alt::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 15%;
    width: 0;
    height: 0;
    border: 20px solid transparent;
    border-top-color: var(--color-primary-red);
    border-bottom: 0;
    margin-right: -20px;
    margin-bottom: -20px;
    border-left-color: transparent; /* Makes the tail pointy */
    border-right-color: transparent; /* Makes the tail pointy */
}
.speech-bubble-alt::before { /* For the outline of the tail */
    content: '';
    position: absolute;
    bottom: -3px; /* Adjust to match border of bubble */
    right: 15%;
    width: 0;
    height: 0;
    border: 23px solid transparent; /* Slightly larger border */
    border-top-color: var(--color-dark-outline);
    border-bottom: 0;
    margin-right: -23px;
    margin-bottom: -23px;
    z-index: -1; /* Place behind actual bubble tail */
}

/* Pop Panel Effect for cards/items */
.pop-panel {
    position: relative;
    border: 3px solid var(--color-dark-outline);
    box-shadow: 8px 8px 0 var(--color-primary-red);
    background-color: var(--color-background-light);
    padding: 1.5em;
    transition: transform 0.3s ease-out, box-shadow 0.3s ease-out;
    z-index: 1; /* Ensure pop panels appear above background if needed */
}

.pop-panel:hover {
    transform: translate(-5px, -5px) scale(1.02);
    box-shadow: 12px 12px 0 var(--color-primary-blue);
}


/* Halftone background texture */
.halftone-bg {
    background-image: var(--halftone-large);
    background-repeat: repeat;
    background-size: 20px 20px;
    opacity: 1;.1;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}


/* --- Header & Navigation --- */
.header {
    background-color: var(--color-primary-red);
    border-bottom: 5px solid var(--color-dark-outline);
    padding: 1em 2em;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    font-family: var(--font-cta);
    font-size: 2.5em;
    color: var(--color-primary-yellow);
    text-shadow: 3px 3px 0 var(--color-dark-outline);
    -webkit-text-stroke: 1px var(--color-dark-outline);
    text-stroke: 1px var(--color-dark-outline);
    position: relative;
    transition: transform 0.2s ease;
}

.logo:hover {
    transform: rotate(-5deg) scale(1.05);
}

.nav-links {
    list-style: none;
    display: flex;
}

.nav-links li {
    margin-left: 1.5em;
}

.nav-links a {
    font-family: var(--font-heading);
    color: var(--color-light-text);
    font-size: 1.2em;
    padding: 0.5em 1em;
    border: 2px solid transparent;
    text-shadow: 1px 1px 0 var(--color-dark-outline);
    transition: color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease, transform 0.2s ease;
}

.nav-links a:hover {
    color: var(--color-primary-yellow);
    background-color: var(--color-dark-outline);
    border-color: var(--color-primary-yellow);
    transform: translateY(-3px);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.3);
}


/* --- Hero Section --- */
.hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 80vh;
    padding: 5em 2em;
    background: linear-gradient(135deg, var(--color-primary-blue) 0%, var(--color-primary-red) 100%);
    overflow: hidden;
    gap: 3em;
    color: var(--color-light-text);
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: var(--halftone-large);
    background-repeat: repeat;
    background-size: 30px 30px;
    opacity: 1;.15;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5em;
}

.hero-content h1 {
    font-size: 4.5em;
    color: var(--color-primary-yellow);
    text-shadow: 4px 4px 0 var(--color-dark-outline), 8px 8px 0 var(--color-primary-red);
    margin-bottom: 0.5em;
    line-height: 1.1;
    -webkit-text-stroke: 2px var(--color-dark-outline);
    text-stroke: 2px var(--color-dark-outline);
}

.hero-content .speech-bubble,
.hero-content .speech-bubble-alt {
    max-width: 600px;
    text-align: left;
    font-size: 1.2em;
    box-shadow: 8px 8px 0px var(--color-dark-outline);
}
.hero-content .speech-bubble::after, .hero-content .speech-bubble-alt::after {
    left: 50%;
    transform: translateX(-50%);
}
.hero-content .speech-bubble::before, .hero-content .speech-bubble-alt::before {
    left: 50%;
    transform: translateX(-50%);
}
.hero-content .speech-bubble-alt {
    margin-top: -1em; /* Overlap slightly */
}


.hero-image-panel {
    position: absolute;
    bottom: -150px; /* Position off-screen for overlapping effect */
    right: -100px;
    width: 600px;
    height: 400px;
    transform: rotate(10deg);
    z-index: 1;
}

.hero-image-panel img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    border: 5px solid var(--color-dark-outline);
    box-shadow: 15px 15px 0 var(--color-primary-yellow), 30px 30px 0 var(--color-dark-outline);
    transition: transform 0.5s ease-in-out, box-shadow 0.5s ease-in-out;
}

.hero-image-panel img:hover {
    transform: scale(1.05) rotate(12deg);
    box-shadow: 20px 20px 0 var(--color-primary-yellow), 40px 40px 0 var(--color-dark-outline);
}

.pop-burst {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8) rotate(45deg);
    width: 150px;
    height: 150px;
    background-color: var(--color-primary-red);
    border-radius: 50%;
    clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
    border: 5px solid var(--color-dark-outline);
    box-shadow: 5px 5px 0px var(--color-primary-blue);
    animation: burstPop 1.5s infinite alternate ease-in-out;
    z-index: 3;
    opacity: 1;.8;
}

@keyframes burstPop {
    0% { transform: translate(-50%, -50%) scale(0.8) rotate(45deg); opacity: 1;.8; }
    50% { transform: translate(-50%, -50%) scale(1.1) rotate(50deg); opacity: 1; }
    100% { transform: translate(-50%, -50%) scale(0.8) rotate(45deg); opacity: 1;.8; }
}


/* --- Mission Section (Timeline Layout) --- */
.mission-section {
    padding: 6em 2em;
    background-color: var(--color-background-light);
    position: relative;
    z-index: 1;
}

.mission-intro-text {
    max-width: 800px;
    margin: 0 auto 4em auto;
    text-align: center;
}
.mission-intro-text p:last-of-type {
    margin-bottom: 0;
}

.timeline-container {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    padding: 2em 0;
}

.timeline-container::before {
    content: '';
    position: absolute;
    width: 6px;
    background-color: var(--color-dark-outline);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -3px;
    box-shadow: 2px 2px 0 var(--color-primary-red);
    background-image: var(--halftone-texture);
    background-repeat: repeat-y;
    background-size: 100% 20px;
}

.timeline-item {
    padding: 1em 0;
    position: relative;
    min-height: 150px; /* Ensure sufficient space for dot and content */
}

.timeline-item:nth-child(even) .timeline-content {
    left: 55%;
    transform: translateX(-5%);
}

.timeline-item:nth-child(odd) .timeline-content {
    left: -5%;
    transform: translateX(5%);
    text-align: right;
}

.timeline-dot {
    position: absolute;
    width: 25px;
    height: 25px;
    background-color: var(--color-primary-yellow);
    border: 4px solid var(--color-dark-outline);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
    box-shadow: 4px 4px 0 var(--color-primary-red);
    animation: pulseDot 2s infinite ease-in-out;
}

@keyframes pulseDot {
    0% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
    50% { transform: translate(-50%, -50%) scale(1.2); opacity: 1;.8; }
    100% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
}

.timeline-content {
    padding: 1.5em;
    background-color: var(--color-primary-blue);
    color: var(--color-light-text);
    border-radius: 10px;
    width: 45%;
    position: relative;
    border: 3px solid var(--color-dark-outline);
    box-shadow: 8px 8px 0 var(--color-primary-red);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.timeline-content:hover {
    transform: translate(-5px, -5px) scale(1.01);
    box-shadow: 12px 12px 0 var(--color-primary-yellow);
}

.timeline-content img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    margin-bottom: 1em;
    border-radius: 5px;
    box-shadow: 5px 5px 0px var(--color-dark-outline);
}

.timeline-item:nth-child(odd) .timeline-content::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -25px;
    transform: translateY(-50%);
    border: 15px solid transparent;
    border-left-color: var(--color-primary-blue);
    border-right: 0;
    z-index: 1;
}
.timeline-item:nth-child(odd) .timeline-content::before { /* Outline for tail */
    content: '';
    position: absolute;
    top: 50%;
    right: -28px;
    transform: translateY(-50%);
    border: 18px solid transparent;
    border-left-color: var(--color-dark-outline);
    border-right: 0;
    z-index: 0;
}


.timeline-item:nth-child(even) .timeline-content::after {
    content: '';
    position: absolute;
    top: 50%;
    left: -25px;
    transform: translateY(-50%);
    border: 15px solid transparent;
    border-right-color: var(--color-primary-blue);
    border-left: 0;
    z-index: 1;
}
.timeline-item:nth-child(even) .timeline-content::before { /* Outline for tail */
    content: '';
    position: absolute;
    top: 50%;
    left: -28px;
    transform: translateY(-50%);
    border: 18px solid transparent;
    border-right-color: var(--color-dark-outline);
    border-left: 0;
    z-index: 0;
}


/* --- Services Section (Process Steps) --- */
.services-section {
    padding: 6em 2em;
    background-color: var(--color-primary-yellow);
    position: relative;
    z-index: 1;
    background-image: var(--halftone-texture);
    background-repeat: repeat;
    background-size: 20px 20px;
    text-align: center;
}
.services-section .speech-bubble {
    background: var(--color-primary-red);
    box-shadow: 6px 6px 0 var(--color-primary-blue);
    color: var(--color-light-text);
}
.services-section .speech-bubble::after {
    border-top-color: var(--color-primary-red);
}


.process-steps-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 3em;
    margin-top: 4em;
    max-width: 1200px;
    margin: 4em auto;
}

.process-step {
    flex: 1 1 calc(50% - 3em); /* Two items per row on larger screens */
    max-width: calc(50% - 3em);
    display: flex;
    align-items: flex-start;
    gap: 1.5em;
    position: relative;
}

.process-step .step-number {
    font-family: var(--font-cta);
    font-size: 3em;
    color: var(--color-primary-yellow);
    -webkit-text-stroke: 2px var(--color-dark-outline);
    text-stroke: 2px var(--color-dark-outline);
    text-shadow: 4px 4px 0 var(--color-dark-outline);
    min-width: 60px;
    text-align: center;
    line-height: 1;
    position: relative;
    z-index: 2;
    transform: rotate(-5deg);
}

.process-step .step-content {
    flex-grow: 1;
    background-color: var(--color-light-text);
    padding: 2em;
    border-radius: 10px;
    position: relative;
    z-index: 1;
    box-shadow: 10px 10px 0 var(--color-primary-blue);
}
.process-step .step-content h4 {
    color: var(--color-primary-red);
    -webkit-text-stroke: 1px var(--color-dark-outline);
    text-stroke: 1px var(--color-dark-outline);
    text-shadow: 2px 2px 0 var(--color-dark-outline);
}
.process-step .step-content ul {
    list-style: none;
    margin-top: 1em;
    padding-left: 0;
}
.process-step .step-content li {
    font-family: var(--font-body);
    font-weight: 700;
    margin-bottom: 0.5em;
    color: var(--color-dark-outline);
    position: relative;
    padding-left: 1.5em;
}
.process-step .step-content li::before {
    content: '★'; /* Star character, no actual icon */
    position: absolute;
    left: 0;
    color: var(--color-primary-red);
    font-family: Arial, sans-serif; /* Use a generic font to ensure symbol renders */
    font-size: 1.2em;
    line-height: 1;
}

/* Connectors between steps (visual flow) */
.process-steps-container::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 4px;
    background-color: var(--color-dark-outline);
    box-shadow: 2px 2px 0 var(--color-primary-red);
    z-index: 0;
    display: none; /* Hide vertical line for flex wrap layout */
}

/* Horizontal connectors for two-column layout */
.process-step:nth-child(odd)::before {
    content: '';
    position: absolute;
    top: 40%;
    right: -1.5em; /* Position to the right of the card */
    width: 3em; /* Length of the horizontal line */
    height: 4px;
    background-color: var(--color-dark-outline);
    box-shadow: 2px 2px 0 var(--color-primary-blue);
    z-index: 0;
}
.process-step:nth-child(even)::before {
    content: '';
    position: absolute;
    top: 40%;
    left: -1.5em; /* Position to the left of the card */
    width: 3em; /* Length of the horizontal line */
    height: 4px;
    background-color: var(--color-dark-outline);
    box-shadow: 2px 2px 0 var(--color-primary-blue);
    z-index: 0;
}

/* Vertical connector between rows */
.process-step:nth-child(odd)::after {
    content: '';
    position: absolute;
    bottom: -3em; /* Below the card */
    left: calc(50% + 1.5em); /* Align to the right side of the card */
    height: 3em; /* Length of the vertical line */
    width: 4px;
    background-color: var(--color-dark-outline);
    box-shadow: 2px 2px 0 var(--color-primary-red);
    z-index: 0;
    transform: translateX(-50%);
    display: none; /* Only show for flow, not for current layout */
}


/* --- Solutions Section (Step by Step) --- */
.solutions-section {
    padding: 6em 2em;
    background-color: var(--color-background-dark);
    color: var(--color-light-text);
    position: relative;
    z-index: 1;
}
.solutions-section .section-title {
    background-color: var(--color-primary-blue);
    box-shadow: 10px 10px 0px var(--color-primary-yellow);
    color: var(--color-light-text);
}
.solutions-section .subsection-title {
    background-color: var(--color-primary-red);
    box-shadow: 8px 8px 0px var(--color-primary-yellow);
    color: var(--color-light-text);
}
.solutions-section .speech-bubble {
    background: var(--color-primary-yellow);
    box-shadow: 6px 6px 0 var(--color-primary-red);
    color: var(--color-dark-outline);
}
.solutions-section .speech-bubble::after {
    border-top-color: var(--color-primary-yellow);
}

.step-by-step-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 3em;
    max-width: 1200px;
    margin: 4em auto;
}

.step-card {
    flex: 1 1 calc(50% - 3em); /* Two items per row on larger screens */
    max-width: calc(50% - 3em);
    background-color: var(--color-primary-blue);
    color: var(--color-light-text);
    border-radius: 10px;
    text-align: center;
    position: relative;
    box-shadow: 10px 10px 0 var(--color-primary-red);
    padding: 2.5em;
    border: 3px solid var(--color-dark-outline);
}
.step-card h4 {
    color: var(--color-primary-yellow);
    -webkit-text-stroke: 1px var(--color-dark-outline);
    text-stroke: 1px var(--color-dark-outline);
    text-shadow: 2px 2px 0 var(--color-dark-outline);
    margin-bottom: 0.8em;
}
.step-card p {
    font-size: 1.1em;
    line-height: 1.5;
}

.step-icon {
    font-size: 3em;
    margin-bottom: 0.5em;
    line-height: 1;
    animation: bounce 1.5s infinite ease-in-out;
}
@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}


/* --- Showcase Section (Success Stories) --- */
.showcase-section {
    padding: 6em 2em;
    background-color: var(--color-background-light);
    position: relative;
    z-index: 1;
    text-align: center;
}
.showcase-intro-text {
    max-width: 800px;
    margin: 0 auto 4em auto;
    text-align: center;
}

.success-stories-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3em;
    max-width: 1200px;
    margin: 4em auto;
}

.success-story-card {
    background-color: var(--color-primary-red);
    color: var(--color-light-text);
    border-radius: 10px;
    overflow: hidden;
    text-align: center;
    position: relative;
    padding: 0; /* Remove padding from pop-panel, add inside content */
    border: 3px solid var(--color-dark-outline);
    box-shadow: 10px 10px 0 var(--color-primary-blue);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.success-story-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-bottom: 3px solid var(--color-dark-outline);
    box-shadow: none; /* Remove default img shadow */
    border-radius: 0;
}
.success-story-card h4 {
    color: var(--color-primary-yellow);
    font-size: 1.8em;
    margin: 1em 1em 0.5em;
    -webkit-text-stroke: 1px var(--color-dark-outline);
    text-stroke: 1px var(--color-dark-outline);
    text-shadow: 2px 2px 0 var(--color-dark-outline);
}
.success-story-card p {
    font-size: 1em;
    margin: 0 1.5em 1em;
    line-height: 1.5;
    text-shadow: 1px 1px 0 var(--color-dark-outline);
}

.testimonial-bubble {
    background-color: var(--color-light-text);
    color: var(--color-dark-outline);
    border: 2px solid var(--color-dark-outline);
    border-radius: 0.5em;
    padding: 1em 1.5em;
    margin: 1em;
    position: relative;
    box-shadow: 4px 4px 0 var(--color-primary-yellow);
    text-align: left;
}
.testimonial-bubble p {
    font-style: italic;
    font-weight: 700;
    margin-bottom: 0.5em;
    font-size: 0.95em;
    text-shadow: none;
}
.testimonial-bubble cite {
    display: block;
    text-align: right;
    font-style: normal;
    font-weight: bold;
    color: var(--color-primary-blue);
    font-family: var(--font-heading);
    font-size: 1em;
}
.testimonial-bubble::after {
    content: '';
    position: absolute;
    top: 0;
    left: 20%;
    width: 0;
    height: 0;
    border: 15px solid transparent;
    border-bottom-color: var(--color-light-text);
    border-top: 0;
    margin-left: -15px;
    margin-top: -15px;
}
.testimonial-bubble::before { /* Outline for tail */
    content: '';
    position: absolute;
    top: -2px;
    left: 20%;
    width: 0;
    height: 0;
    border: 18px solid transparent;
    border-bottom-color: var(--color-dark-outline);
    border-top: 0;
    margin-left: -18px;
    margin-top: -18px;
    z-index: -1;
}


/* --- Gallery Section (Category Filters) --- */
.gallery-section {
    padding: 6em 2em;
    background-color: var(--color-primary-blue);
    color: var(--color-light-text);
    position: relative;
    z-index: 1;
    background-image: var(--halftone-large);
    background-repeat: repeat;
    background-size: 30px 30px;
}
.gallery-section .section-title {
    background-color: var(--color-primary-yellow);
    box-shadow: 10px 10px 0px var(--color-primary-red);
    color: var(--color-dark-outline);
}
.gallery-section .subsection-title {
    background-color: var(--color-primary-red);
    box-shadow: 8px 8px 0px var(--color-primary-yellow);
    color: var(--color-light-text);
}
.gallery-section .speech-bubble {
    background: var(--color-primary-red);
    box-shadow: 6px 6px 0 var(--color-primary-yellow);
    color: var(--color-light-text);
}
.gallery-section .speech-bubble::after {
    border-top-color: var(--color-primary-red);
}

.tab-buttons {
    display: flex;
    justify-content: center;
    gap: 1.5em;
    margin-top: 4em;
    margin-bottom: 3em;
    flex-wrap: wrap;
}

.tab-button {
    background-color: var(--color-primary-yellow);
    color: var(--color-dark-outline);
    padding: 0.8em 1.8em;
    border: 3px solid var(--color-dark-outline);
    border-radius: 8px;
    font-family: var(--font-heading);
    font-size: 1.3em;
    cursor: pointer;
    transition: all 0.2s ease-out;
    box-shadow: 5px 5px 0 var(--color-primary-red);
    -webkit-text-stroke: 1px var(--color-dark-outline);
    text-stroke: 1px var(--color-dark-outline);
}

.tab-button:hover, .tab-button.active {
    background-color: var(--color-primary-red);
    color: var(--color-light-text);
    box-shadow: 8px 8px 0 var(--color-dark-outline);
    transform: translateY(-3px) scale(1.03);
}

.gallery-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2em;
    max-width: 1200px;
    margin: 0 auto;
}

.tab-pane {
    display: none;
    width: 100%;
    grid-template-columns: repeat(3, 1fr);
    gap: 2em;
}

.tab-pane.active {
    display: grid; /* Show as grid when active */
    animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
    from { opacity: 1; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    border: 3px solid var(--color-dark-outline);
    box-shadow: 6px 6px 0 var(--color-primary-yellow);
    background-color: var(--color-background-light);
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease-in-out;
    border: none; /* Remove default img border for items in gallery */
    box-shadow: none; /* Remove default img shadow for items in gallery */
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.item-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(var(--color-dark-outline), 0.8);
    color: var(--color-light-text);
    padding: 0.8em;
    font-family: var(--font-heading);
    font-size: 1.2em;
    text-align: center;
    transform: translateY(100%);
    transition: transform 0.3s ease-in-out;
    border-top: 2px solid var(--color-primary-yellow);
    -webkit-text-stroke: 0.5px var(--color-primary-red);
    text-stroke: 0.5px var(--color-primary-red);
}

.gallery-item:hover .item-overlay {
    transform: translateY(0);
}


/* --- Clients Section (Card Grid) --- */
.clients-section {
    padding: 6em 2em;
    background-color: var(--color-background-light);
    position: relative;
    z-index: 1;
    text-align: center;
}
.clients-intro-text {
    max-width: 800px;
    margin: 0 auto 4em auto;
    text-align: center;
}

.client-testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5em;
    max-width: 1200px;
    margin: 4em auto;
}

.testimonial-card {
    background-color: var(--color-primary-blue);
    color: var(--color-light-text);
    border-radius: 10px;
    padding: 2em;
    text-align: center;
    position: relative;
    border: 3px solid var(--color-dark-outline);
    box-shadow: 8px 8px 0 var(--color-primary-red);
}
.testimonial-card img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin: -4em auto 1.5em auto; /* Pull image up for overlapping effect */
    border: 4px solid var(--color-dark-outline);
    box-shadow: 5px 5px 0 var(--color-primary-yellow);
    position: relative;
    z-index: 2;
    transition: transform 0.3s ease;
}
.testimonial-card img:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 8px 8px 0 var(--color-dark-outline);
}
.testimonial-card p {
    font-style: italic;
    font-size: 1.1em;
    margin-bottom: 1em;
    text-shadow: 1px 1px 0 var(--color-dark-outline);
}
.testimonial-card cite {
    display: block;
    font-weight: bold;
    font-family: var(--font-heading);
    color: var(--color-primary-yellow);
    font-size: 1.2em;
    -webkit-text-stroke: 0.5px var(--color-dark-outline);
    text-stroke: 0.5px var(--color-dark-outline);
}


/* --- Support Section (Quick Contact) --- */
.support-section {
    padding: 6em 2em;
    background-color: var(--color-primary-red);
    color: var(--color-light-text);
    position: relative;
    z-index: 1;
    background-image: var(--halftone-texture);
    background-repeat: repeat;
    background-size: 20px 20px;
}
.support-section .section-title {
    background-color: var(--color-primary-yellow);
    box-shadow: 10px 10px 0px var(--color-primary-blue);
    color: var(--color-dark-outline);
}
.support-section .subsection-title {
    background-color: var(--color-dark-outline);
    box-shadow: 8px 8px 0px var(--color-primary-yellow);
    color: var(--color-light-text);
}
.support-section .speech-bubble {
    background: var(--color-primary-blue);
    box-shadow: 6px 6px 0 var(--color-primary-yellow);
    color: var(--color-light-text);
}
.support-section .speech-bubble::after {
    border-top-color: var(--color-primary-blue);
}

.quick-contact-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2em;
    margin-top: 4em;
    max-width: 1000px;
    margin: 4em auto;
}

.action-button {
    display: inline-block;
    background-color: var(--color-primary-yellow);
    color: var(--color-dark-outline);
    padding: 1.2em 2.5em;
    border: 4px solid var(--color-dark-outline);
    border-radius: 10px;
    font-family: var(--font-cta);
    font-size: 1.6em;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 10px 10px 0px var(--color-dark-outline);
    transition: transform 0.2s ease-out, box-shadow 0.2s ease-out;
    -webkit-text-stroke: 1px var(--color-dark-outline);
    text-stroke: 1px var(--color-dark-outline);
    position: relative;
    z-index: 1;
}

.action-button:hover {
    transform: translate(-5px, -5px) scale(1.03) rotate(2deg);
    box-shadow: 15px 15px 0px var(--color-primary-blue);
}


/* --- Footer --- */
.footer {
    background-color: var(--color-dark-outline);
    color: var(--color-light-text);
    padding: 3em 2em;
    text-align: center;
    border-top: 5px solid var(--color-primary-red);
    position: relative;
    z-index: 1;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-logo {
    font-family: var(--font-cta);
    font-size: 2.8em;
    color: var(--color-primary-yellow);
    text-shadow: 3px 3px 0 var(--color-primary-red);
    -webkit-text-stroke: 1px var(--color-light-text);
    text-stroke: 1px var(--color-light-text);
    margin-bottom: 0.5em;
    transition: transform 0.2s ease;
}
.footer-logo:hover {
    transform: rotate(3deg) scale(1.05);
}

.footer p {
    font-family: var(--font-body);
    font-size: 0.9em;
    opacity: 1;.8;
    line-height: 1.8;
}


/* --- Mobile Responsiveness --- */
@media (max-width: 992px) {
    .nav-links {
        display: none; /* Hide nav links on smaller screens, could implement hamburger menu */
    }
    .navbar {
        justify-content: center;
    }
    .hero-image-panel {
        display: none; /* Hide complex overlapping image on smaller screens */
    }
    .hero-section {
        min-height: 60vh;
        padding: 3em 1em;
    }
    .hero-content h1 {
        font-size: 3em;
    }
    .hero-content .speech-bubble,
    .hero-content .speech-bubble-alt {
        font-size: 1em;
        padding: 1em;
    }

    .section-title {
        font-size: 2.5em;
        transform: translateX(-50%) rotate(0deg);
        width: 90%;
        padding: 0.8em 0.5em;
    }
    .subsection-title {
        font-size: 1.8em;
        transform: translateX(-50%) rotate(0deg);
        width: 90%;
        padding: 0.5em 0.8em;
    }

    /* Timeline */
    .timeline-container::before {
        left: 10px; /* Move timeline to the left */
    }
    .timeline-item:nth-child(even) .timeline-content,
    .timeline-item:nth-child(odd) .timeline-content {
        left: 0;
        width: calc(100% - 40px);
        margin-left: 40px; /* Push content to the right of the line */
        text-align: left;
        transform: none;
    }
    .timeline-item .timeline-dot {
        left: 10px;
        transform: translate(-50%, -50%);
    }
    .timeline-item:nth-child(odd) .timeline-content::after,
    .timeline-item:nth-child(odd) .timeline-content::before {
        left: -25px; /* Position tail to left of content */
        right: auto;
        border-left: 0;
        border-right-color: var(--color-primary-blue);
    }
    .timeline-item:nth-child(odd) .timeline-content::before {
        border-right-color: var(--color-dark-outline);
    }
    .timeline-item:nth-child(even) .timeline-content::after,
    .timeline-item:nth-child(even) .timeline-content::before {
        left: -25px; /* Also position tail to left of content */
        right: auto;
        border-left: 0;
        border-right-color: var(--color-primary-blue);
    }
    .timeline-item:nth-child(even) .timeline-content::before {
        border-right-color: var(--color-dark-outline);
    }

    /* Services & Solutions (2 per row -> 1 per row) */
    .process-step {
        flex: 1 1 100%;
        max-width: 100%;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .process-step .step-number {
        margin-bottom: 0.5em;
        transform: rotate(0deg);
    }
    .process-step .step-content {
        width: 100%;
    }
    .process-step .step-content li {
    }
    .process-step:nth-child(odd)::before,
    .process-step:nth-child(even)::before {
        display: none; /* Hide horizontal connectors on mobile */
    }

    .step-by-step-container {
        flex-direction: column;
        align-items: center;
    }
    .step-card {
        flex: 1 1 100%;
        max-width: 100%;
    }


    /* Grids (3 per row -> 1 per row) */
    .success-stories-grid,
    .client-testimonials-grid,
    .tab-pane {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        gap: 1.5em;
    }
    .gallery-item img {
        height: 200px;
    }
    .tab-buttons {
        gap: 1em;
        padding: 0 1em;
    }
    .tab-button {
        flex: 1 1 auto;
        font-size: 1.1em;
        padding: 0.6em 1em;
    }
}

@media (max-width: 768px) {
    h1 { font-size: 2.8em; }
    h2 { font-size: 2em; }
    h3 { font-size: 1.6em; }
    .logo { font-size: 2em; }
    .cta-button, .action-button { font-size: 1.2em; padding: 0.8em 1.5em; }
    .hero-content .speech-bubble,
    .hero-content .speech-bubble-alt {
        font-size: 0.9em;
    }
    .footer-logo { font-size: 2em; }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2.2em;
        text-shadow: 2px 2px 0 var(--color-dark-outline), 4px 4px 0 var(--color-primary-red);
        -webkit-text-stroke: 1px var(--color-dark-outline);
        text-stroke: 1px var(--color-dark-outline);
    }
    .section-title {
        font-size: 2em;
        border-width: 3px;
        box-shadow: 5px 5px 0px var(--color-primary-red);
    }
    .subsection-title {
        font-size: 1.5em;
        border-width: 3px;
        box-shadow: 5px 5px 0px var(--color-primary-yellow);
    }
    .cta-button {
        font-size: 1em;
        padding: 0.6em 1em;
        border-width: 3px;
        box-shadow: 5px 5px 0px var(--color-primary-red);
    }
    .action-button {
        font-size: 1.1em;
        padding: 0.8em 1.2em;
        border-width: 3px;
        box-shadow: 8px 8px 0px var(--color-dark-outline);
    }
    .testimonial-card img {
        width: 80px;
        height: 80px;
        border-width: 3px;
    }
    .speech-bubble, .speech-bubble-alt {
        padding: 1em;
        font-size: 0.9em;
        border-width: 2px;
        box-shadow: 4px 4px 0px;
    }
    .speech-bubble::after, .speech-bubble-alt::after {
        border-width: 15px;
        margin-bottom: -15px;
        margin-left: -15px;
        margin-right: -15px;
    }
    .speech-bubble::before, .speech-bubble-alt::before {
        border-width: 18px;
        margin-bottom: -18px;
        margin-left: -18px;
        margin-right: -18px;
    }
}

/* Visible state helpers */
+ .animate-fade-in-up.visible,
+ .animate-fade-in-left.visible,
+ .animate-fade-in-right.visible,
+ .animate-bounce-y.visible,
+ .section-scroll-animate.visible,
+ .text-animate-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Universal Icon Fixes for Buttons */
button svg, .carousel-next svg, .carousel-prev svg, .slider-next svg, .slider-prev svg,
.next svg, .prev svg, .tab-button svg, .tab-btn svg {
    display: inline-block;
    vertical-align: middle;
    pointer-events: none;
    width: 1em;
    height: 1em;
    fill: currentColor;
}

button i, .carousel-next i, .carousel-prev i, .slider-next i, .slider-prev i,
.next i, .prev i, .tab-button i, .tab-btn i {
    display: inline-block;
    vertical-align: middle;
    pointer-events: none;
    font-style: normal;
}

button .icon, .carousel-next .icon, .carousel-prev .icon,
.slider-next .icon, .slider-prev .icon, .tab-button .icon {
    display: inline-block;
    vertical-align: middle;
    pointer-events: none;
}

/* Ensure carousel buttons are clickable even with icons */
.carousel-next, .carousel-prev, .slider-next, .slider-prev,
.next, .prev, .next-btn, .prev-btn {
    cursor: pointer;
    position: relative;
}

.carousel-next *, .carousel-prev *, .slider-next *, .slider-prev *,
.next *, .prev *, .next-btn *, .prev-btn * {
    pointer-events: none;
}

/* Tab button icon fixes */
.tab-button, .tab-btn, .tab {
    cursor: pointer;
    position: relative;
}

.tab-button *, .tab-btn *, .tab * {
    pointer-events: none;
}

/* Ensure icons don't block clicks */
button > svg, button > i, button > .icon,
.carousel-next > svg, .carousel-prev > svg,
.tab-button > svg, .tab-button > i {
    pointer-events: none !important;
}

/* Safe visibility overrides (auto-added) */
:root, html, body, main, header, footer, section, .container, .content {
  opacity: 1 !important;
  visibility: visible !important;
}

/* Accessibility focus outlines */
:focus{outline:2px solid #5ac8fa;outline-offset:2px;}
:focus:not(:focus-visible){outline:none;}
