:root {
    --primary-red: #E63946;
    --primary-blue: #457B9D;
    --primary-yellow: #F4D35E;
    --background-light: #F1FAEE;
    --text-dark: #1D3557;
    --outline-black: #000000;
    --halftone-size: 4px; /* Size of the halftone dots */
    --halftone-color: rgba(0, 0, 0, 0.1); /* Color of the halftone dots */
}

/* Base Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Comic Neue', cursive;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--background-light);
    background-image:
        radial-gradient(var(--halftone-color) 15%, transparent 16%),
        radial-gradient(var(--halftone-color) 15%, transparent 16%);
    background-size: var(--halftone-size) var(--halftone-size);
    background-position: 0 0, calc(var(--halftone-size) / 2) calc(var(--halftone-size) / 2);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Bangers', cursive;
    color: var(--text-dark);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 0.5em;
    text-shadow: 2px 2px 0px var(--primary-yellow); /* Comic-style text shadow */
    line-height: 1.2;
}

h1 { font-size: 3.5em; text-align: center; }
h2 { font-size: 2.5em; text-align: center; }
h3 { font-size: 1.8em; }

p {
    margin-bottom: 1em;
}

.brand-name {
    color: var(--primary-red);
    text-shadow: 2px 2px 0px var(--outline-black);
}

/* Comic Panel General Styling */
.comic-panel {
    background-color: var(--background-light);
    border: 4px solid var(--outline-black);
    padding: 2.5rem;
    margin: 3rem auto;
    max-width: 1200px;
    position: relative;
    box-shadow: 12px 12px 0px var(--outline-black); /* Exaggerated shadow */
    transition: transform 0.3s cubic-bezier(0.68, -0.55, 0.27, 1.55); /* Bouncy transition */
    transform-origin: center; /* Ensure pop effect is centered */
}

.comic-panel:hover {
    transform: translate(-6px, -6px); /* Slight lift */
    box-shadow: 18px 18px 0px var(--outline-black);
}

/* Header & Navigation */
.comic-panel-header {
    background-color: var(--primary-red);
    border-bottom: 4px solid var(--outline-black);
    padding: 1.5rem 2.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0px 8px 0px var(--outline-black);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    font-family: 'Luckiest Guy', cursive;
    font-size: 2.8em;
    color: var(--background-light);
    text-shadow: 3px 3px 0px var(--outline-black);
    line-height: 1;
    white-space: nowrap;
}

.nav-list {
    list-style: none;
    display: flex;
    gap: 1.5rem;
}

.nav-link {
    font-family: 'Bangers', cursive;
    text-decoration: none;
    color: var(--background-light);
    font-size: 1.3em;
    padding: 0.5rem 1rem;
    border: 2px solid transparent;
    transition: all 0.2s ease-in-out;
    text-shadow: 1px 1px 0px var(--outline-black);
    background-color: transparent;
    border-radius: 5px;
}

.nav-link:hover {
    color: var(--primary-yellow);
    border-color: var(--primary-yellow);
    background-color: rgba(0, 0, 0, 0.1);
    transform: scale(1.05);
}

/* Footer */
.comic-panel-footer {
    background-color: var(--text-dark);
    color: var(--background-light);
    text-align: center;
    padding: 1.5rem 2.5rem;
    border-top: 4px solid var(--outline-black);
    font-family: 'Comic Neue', cursive;
    box-shadow: 0px -8px 0px var(--outline-black);
}

/* Buttons & Pop Effects */
.button-action {
    display: inline-block;
    padding: 1rem 2rem;
    background-color: var(--primary-blue);
    color: var(--background-light);
    font-family: 'Bangers', cursive;
    font-size: 1.2em;
    text-transform: uppercase;
    border: 3px solid var(--outline-black);
    cursor: pointer;
    box-shadow: 5px 5px 0px var(--outline-black);
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.27, 1.55);
    text-decoration: none;
    text-align: center;
}

.button-action:hover {
    transform: translate(-3px, -3px) scale(1.05);
    box-shadow: 8px 8px 0px var(--outline-black);
    background-color: var(--primary-red);
}

.ghost-button {
    background-color: transparent;
    color: var(--text-dark);
    border-color: var(--text-dark);
}
.ghost-button:hover {
    background-color: var(--primary-red);
    color: var(--background-light);
    border-color: var(--primary-red);
}


/* General Image/Card Styling */
.comic-outline {
    border: 3px solid var(--outline-black);
    display: block; /* Ensure images take full space in grid */
    max-width: 100%;
    height: auto;
}

.pop-effect {
    transition: transform 0.3s cubic-bezier(0.68, -0.55, 0.27, 1.55), box-shadow 0.3s ease;
    transform-origin: center;
}

.pop-effect:hover {
    transform: scale(1.03) translate(-3px, -3px);
    box-shadow: 6px 6px 0px var(--outline-black);
}

/* Speech Bubbles */
.speech-bubble {
    background-color: var(--primary-yellow);
    border: 3px solid var(--outline-black);
    padding: 1.2rem 2rem;
    position: relative;
    border-radius: 25px;
    margin: 1.5rem auto 2.5rem auto; /* Adjust margin for proper placement */
    max-width: 70%;
    font-family: 'Comic Neue', cursive;
    font-weight: bold;
    font-size: 1.1em;
    box-shadow: 5px 5px 0px var(--outline-black);
    text-align: center;
}
/* Speech bubble tail - top center */
.speech-bubble::before {
    content: '';
    position: absolute;
    width: 0;
    height: 0;
    border: 20px solid transparent;
    border-bottom-color: var(--outline-black);
    border-top: 0;
    top: -23px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
}
.speech-bubble::after {
    content: '';
    position: absolute;
    width: 0;
    height: 0;
    border: 20px solid transparent;
    border-bottom-color: var(--primary-yellow);
    border-top: 0;
    top: -19px; /* Adjust slightly to sit inside outline */
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

/* Hero Section */
.hero-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 4rem 2.5rem;
    background-image:
        radial-gradient(var(--halftone-color) 15%, transparent 16%),
        radial-gradient(var(--halftone-color) 15%, transparent 16%);
    background-size: var(--halftone-size) var(--halftone-size);
    background-position: 0 0, calc(var(--halftone-size) / 2) calc(var(--halftone-size) / 2);
    border-bottom: 6px solid var(--outline-black);
    box-shadow: 0 15px 0 var(--outline-black);
    margin-top: 0;
    margin-bottom: 4rem;
    max-width: none; /* Hero spans full width */
    border-radius: 0; /* No rounded corners for hero */
}

.hero-content {
    max-width: 800px;
    margin-bottom: 3rem;
}

.hero-section h1 {
    font-size: 4.5em;
    margin-bottom: 0.5em;
    line-height: 1.1;
}

.hero-section .speech-bubble {
    max-width: 90%;
    margin-top: 0; /* Remove extra top margin from generic speech bubble */
}

.hero-image {
    width: 100%;
    max-width: 1000px;
    object-fit: cover;
    height: auto;
    margin-top: 2rem;
    box-shadow: 10px 10px 0px var(--outline-black);
}

/* Main Layout for Sidebar */
.main-layout {
    display: grid;
    grid-template-columns: 3fr 1fr; /* Main content and sidebar */
    gap: 3rem;
    max-width: 1500px;
    margin: 0 auto;
    padding: 0 2rem; /* Add some padding to the sides */
}

.main-content {
    grid-column: 1 / 2;
}

.comic-sidebar {
    grid-column: 2 / 3;
    padding: 2.5rem;
    margin: 3rem 0; /* Adjust margin to align with sections */
    background-color: var(--primary-blue);
    color: var(--background-light);
    text-align: center;
    border: 4px solid var(--outline-black);
    box-shadow: 10px 10px 0px var(--outline-black);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: fit-content; /* Ensure it doesn't stretch too much */
    max-height: 80vh; /* Prevent overly long sidebars */
    position: sticky;
    top: 120px; /* Position below header */
}
.comic-sidebar h3 {
    color: var(--background-light);
    text-shadow: 2px 2px 0px var(--outline-black);
    font-size: 2em;
    margin-bottom: 1em;
}
.comic-sidebar p {
    font-family: 'Comic Neue', cursive;
    font-size: 1.1em;
    margin-bottom: 2em;
}
.comic-sidebar .button-action {
    background-color: var(--primary-red);
    color: var(--background-light);
    border-color: var(--outline-black);
}
.comic-sidebar .button-action:hover {
    background-color: var(--primary-yellow);
    color: var(--text-dark);
    border-color: var(--outline-black);
}

/* Mission Section */
.mission-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    align-items: center;
    text-align: left;
}

.mission-section h2 {
    text-align: left;
}

.mission-text p {
    font-size: 1.1em;
}

.mission-images {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(3, 1fr); /* Exactly 3 cards */
}
.mission-images img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    box-shadow: 6px 6px 0px var(--outline-black);
}

/* Solutions Section (Comparison Table) */
.solutions-section h2, .solutions-section .speech-bubble {
    margin-bottom: 2rem;
}

.comparison-table-wrapper {
    overflow-x: auto;
    margin-top: 2rem;
    box-shadow: 10px 10px 0px var(--outline-black);
    border: 4px solid var(--outline-black);
}

.solutions-section table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px; /* Ensure table doesn't shrink too much */
    font-family: 'Comic Neue', cursive;
    background-color: var(--background-light);
}

.solutions-section th, .solutions-section td {
    border: 2px solid var(--outline-black);
    padding: 1rem;
    text-align: left;
    font-size: 1.1em;
}

.solutions-section th {
    background-color: var(--primary-red);
    color: var(--background-light);
    font-family: 'Bangers', cursive;
    text-transform: uppercase;
    text-shadow: 1px 1px 0px var(--outline-black);
    font-size: 1.2em;
}

.solutions-section tbody tr:nth-child(odd) {
    background-color: rgba(255, 255, 255, 0.7); /* Lighter stripe */
}
.solutions-section tbody tr:nth-child(even) {
    background-color: rgba(255, 255, 255, 0.9); /* Darker stripe */
}

.solutions-section .pixel-pulse-column {
    background-color: var(--primary-blue);
    color: var(--background-light);
    font-weight: bold;
    text-shadow: 1px 1px 0px var(--outline-black);
}

.solutions-section .highlight-feature {
    color: var(--primary-yellow);
    font-weight: bold;
    text-shadow: 1px 1px 0px var(--outline-black);
}

/* Services Section (Process Steps) */
.process-steps {
    display: grid;
    gap: 2.5rem;
    margin-top: 3rem;
    grid-template-columns: repeat(3, 1fr); /* Exactly 3 cards */
    position: relative;
    padding-bottom: 50px; /* Space for arrows */
}

.step-card {
    background-color: var(--primary-yellow);
    padding: 2rem;
    text-align: center;
    position: relative;
    z-index: 1; /* Ensure card is above arrow lines */
    box-shadow: 8px 8px 0px var(--outline-black);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.step-card .step-number {
    background-color: var(--primary-blue);
    color: var(--background-light);
    font-family: 'Bangers', cursive;
    font-size: 2.5em;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 3px solid var(--outline-black);
    margin: -4rem auto 1rem auto; /* Position above card */
    box-shadow: 4px 4px 0px var(--outline-black);
}

.step-card h3 {
    color: var(--text-dark);
    font-size: 1.6em;
    margin-top: 1rem;
    margin-bottom: 1rem;
}

.step-card p {
    font-size: 1.05em;
    flex-grow: 1; /* Push image to bottom */
}

.step-card .step-image {
    width: 100%;
    height: 150px;
    object-fit: cover;
    margin-top: 1.5rem;
    box-shadow: 4px 4px 0px var(--outline-black);
}

/* Visual flow arrows for process steps (desktop only) */
.process-steps::before,
.process-steps::after {
    content: '';
    position: absolute;
    height: 4px;
    background-color: var(--outline-black);
    bottom: 0;
    left: 0; /* Start of the first card */
    right: 0; /* End of the last card */
    z-index: 0;
    display: none; /* Hide by default, show on desktop */
}

.process-steps::before { /* Horizontal line */
    bottom: 25px;
    left: calc(var(--grid-gap) / 2 + 50px); /* Adjusted for visual gap */
    right: calc(var(--grid-gap) / 2 + 50px);
    width: calc(100% - 100px - var(--grid-gap)); /* Adjust for numbers and padding */
}

.process-steps .step-card:not(:last-child)::after {
    content: '▶'; /* Unicode right-pointing triangle */
    font-family: 'Arial', sans-serif;
    font-size: 2.5em;
    color: var(--primary-blue);
    position: absolute;
    right: -1.5rem; /* Position between cards */
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    text-shadow: 2px 2px 0 var(--outline-black);
    display: none; /* Hide by default, show on desktop */
}
@media (min-width: 768px) {
    .process-steps .step-card:not(:last-child)::after {
        display: block;
    }
}


/* Portfolio Section (Category Tabs) */
.portfolio-tabs {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
    margin-bottom: 2rem;
    gap: 1rem;
}

.tab-button {
    background-color: var(--primary-red);
    color: var(--background-light);
    font-family: 'Bangers', cursive;
    font-size: 1.3em;
    padding: 0.8rem 1.8rem;
    border: 3px solid var(--outline-black);
    box-shadow: 4px 4px 0px var(--outline-black);
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.68, -0.55, 0.27, 1.55);
    text-transform: uppercase;
}

.tab-button:hover, .tab-button.active {
    background-color: var(--primary-blue);
    color: var(--primary-yellow);
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0px var(--outline-black);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.image-grid-responsive {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Responsive 3 or more */
    gap: 2rem;
    margin-top: 2rem;
}

.portfolio-item {
    background-color: var(--background-light);
    padding: 1.5rem;
    text-align: center;
    box-shadow: 8px 8px 0px var(--outline-black);
}

.portfolio-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    margin-bottom: 1rem;
    box-shadow: 4px 4px 0px var(--outline-black);
}

.portfolio-item h3 {
    font-size: 1.5em;
    color: var(--primary-red);
    margin-bottom: 0.5rem;
}

.portfolio-item p {
    font-size: 1em;
}

/* Gallery Section (Slideshow) */
.gallery-section h2, .gallery-section .speech-bubble {
    margin-bottom: 2rem;
}

.slideshow-container {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    background-color: var(--text-dark); /* Dark background for cinematic feel */
    box-shadow: 10px 10px 0px var(--outline-black);
}

.slideshow-inner {
    display: flex; /* Use flex to manage slides */
    overflow: hidden;
}

.gallery-slide {
    display: none; /* Hidden by default with JS handling */
    width: 100%;
    flex-shrink: 0;
    position: relative;
}

.gallery-slide img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.slide-caption {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--primary-yellow);
    color: var(--text-dark);
    padding: 0.8rem 1.5rem;
    border-radius: 20px;
    border: 2px solid var(--outline-black);
    font-family: 'Comic Neue', cursive;
    font-weight: bold;
    box-shadow: 3px 3px 0px var(--outline-black);
    white-space: nowrap;
}

.slideshow-dots {
    text-align: center;
    padding: 1rem 0;
    background-color: var(--primary-blue); /* Dots background */
    border-top: 2px solid var(--outline-black);
}

.slideshow-dots .dot {
    cursor: pointer;
    height: 15px;
    width: 15px;
    margin: 0 8px;
    background-color: var(--background-light);
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.6s ease;
    border: 2px solid var(--outline-black);
}

.slideshow-dots .dot.active {
    background-color: var(--primary-red);
    transform: scale(1.2);
}

/* Pricing Section (Freemium Model) */
.pricing-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Exactly 3 cards */
    gap: 2.5rem;
    margin-top: 3rem;
}

.price-card {
    background-color: var(--background-light);
    padding: 2.5rem;
    text-align: center;
    box-shadow: 10px 10px 0px var(--outline-black);
    position: relative;
    display: flex;
    flex-direction: column;
}

.price-card h3 {
    font-size: 2em;
    color: var(--primary-blue);
    margin-bottom: 1rem;
}

.price-card .price-tag {
    font-family: 'Luckiest Guy', cursive;
    font-size: 3em;
    color: var(--primary-red);
    margin-bottom: 1.5rem;
    line-height: 1;
    text-shadow: 3px 3px 0px var(--outline-black);
}
.price-card .price-tag span {
    font-size: 1.2em; /* Emphasize the number */
}

.price-card ul {
    list-style: none;
    margin-bottom: 2rem;
    flex-grow: 1; /* Push button to bottom */
}

.price-card ul li {
    font-family: 'Comic Neue', cursive;
    font-size: 1.1em;
    padding: 0.5rem 0;
    border-bottom: 1px dashed var(--text-dark);
    color: var(--text-dark);
}
.price-card ul li:last-child {
    border-bottom: none;
}

.price-card.recommended {
    background-color: var(--primary-blue);
    color: var(--background-light);
    transform: scale(1.05) translate(-5px, -5px);
    box-shadow: 15px 15px 0px var(--outline-black);
    z-index: 2;
    border-color: var(--primary-red); /* Highlight border */
}
.price-card.recommended h3, .price-card.recommended .price-tag, .price-card.recommended ul li {
    color: var(--background-light);
    text-shadow: 2px 2px 0px var(--outline-black);
}
.price-card.recommended .price-tag {
    color: var(--primary-yellow);
}

/* Clients Section (Carousel Slider) */
.clients-section h2, .clients-section .speech-bubble {
    margin-bottom: 2rem;
}

.testimonial-carousel-container {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    overflow: hidden;
    background-color: var(--primary-red);
    padding: 2rem;
    box-shadow: 10px 10px 0px var(--outline-black);
}

.testimonial-carousel-inner {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.testimonial-card {
    background-color: var(--background-light);
    border: 3px solid var(--outline-black);
    padding: 2.5rem;
    flex-shrink: 0;
    width: 100%;
    text-align: center;
    box-shadow: 8px 8px 0px var(--outline-black);
    display: none; /* Hidden by default, JS handles display */
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.testimonial-card.active {
    display: flex;
}

.client-avatar {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1.5rem;
    box-shadow: 4px 4px 0px var(--outline-black);
}

.testimonial-text {
    font-style: italic;
    font-size: 1.2em;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
    max-width: 80%;
}

.client-name {
    font-weight: bold;
    color: var(--primary-blue);
    font-family: 'Bangers', cursive;
    font-size: 1.3em;
    text-shadow: 1px 1px 0px var(--outline-black);
}

.carousel-dots {
    text-align: center;
    padding-top: 1.5rem;
}

.carousel-dots .dot {
    cursor: pointer;
    height: 15px;
    width: 15px;
    margin: 0 8px;
    background-color: var(--primary-yellow);
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.6s ease, transform 0.3s ease;
    border: 2px solid var(--outline-black);
}

.carousel-dots .dot.active {
    background-color: var(--background-light);
    transform: scale(1.2);
}

/* Support Section (Map Integration) */
.support-section h2, .support-section .speech-bubble {
    margin-bottom: 2rem;
}

.map-container {
    position: relative;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    overflow: hidden;
    height: 500px; /* Fixed height for the map */
    box-shadow: 15px 15px 0px var(--outline-black);
    border: 4px solid var(--outline-black);
}

.map-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.contact-overlay {
    position: absolute;
    top: 50%;
    right: -5%; /* Position slightly off to the right */
    transform: translateY(-50%) rotate(3deg); /* Slight rotation for comic effect */
    background-color: var(--primary-blue);
    color: var(--background-light);
    padding: 2rem 3rem;
    border: 3px solid var(--outline-black);
    border-radius: 25px;
    max-width: 400px;
    text-align: center;
    box-shadow: 8px 8px 0px var(--outline-black);
    z-index: 10;
}

.contact-overlay::before { /* Speech bubble tail - left */
    content: '';
    position: absolute;
    width: 0;
    height: 0;
    border: 20px solid transparent;
    border-right-color: var(--outline-black);
    border-left: 0;
    left: -23px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;
}
.contact-overlay::after {
    content: '';
    position: absolute;
    width: 0;
    height: 0;
    border: 20px solid transparent;
    border-right-color: var(--primary-blue);
    border-left: 0;
    left: -19px; /* Adjust slightly to sit inside outline */
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
}

.contact-overlay h3 {
    color: var(--background-light);
    text-shadow: 2px 2px 0px var(--outline-black);
    margin-bottom: 1rem;
}

.contact-overlay p {
    font-size: 1.1em;
    margin-bottom: 1.5rem;
    color: var(--background-light);
}

.contact-overlay .button-action {
    background-color: var(--primary-yellow);
    color: var(--text-dark);
    border-color: var(--outline-black);
}
.contact-overlay .button-action:hover {
    background-color: var(--primary-red);
    color: var(--background-light);
}


/* Fade animation for slides */
.fade {
    animation-name: fade;
    animation-duration: 1.5s;
}

@keyframes fade {
    from {opacity: .4}
    to {opacity: 1}
}


/* Media Queries for Responsiveness */
@media (max-width: 1200px) {
    .main-layout {
        grid-template-columns: 1fr; /* Stack main content and sidebar */
        padding: 0 1rem;
    }
    .comic-sidebar {
        grid-column: 1 / -1; /* Full width */
        margin: 3rem 1rem; /* Adjust margin for full width */
        position: static; /* Remove sticky positioning */
        max-height: none;
    }
    .comic-panel-header, .comic-panel-footer {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    .comic-panel {
        margin: 2rem 1rem;
        padding: 2rem;
    }
    h1 { font-size: 3em; }
    h2 { font-size: 2em; }
    .speech-bubble {
        max-width: 90%;
    }
    .contact-overlay {
        right: 50%;
        transform: translate(50%, -50%) rotate(0deg); /* Center overlay */
        top: 80%; /* Move down slightly */
        max-width: 90%;
    }
    .contact-overlay::before, .contact-overlay::after {
        border-right: 0;
        border-bottom-color: var(--outline-black);
        border-top: 0;
        border-left: 0;
        top: -23px;
        left: 50%;
        transform: translateX(-50%);
    }
    .contact-overlay::after {
        top: -19px;
    }
}

@media (max-width: 900px) {
    .nav-list {
        flex-direction: column;
        gap: 0.5rem;
    }
    .comic-panel-header {
        flex-direction: column;
        padding-top: 1rem;
        padding-bottom: 1rem;
    }
    .logo {
        margin-bottom: 1rem;
    }
    .hero-section h1 {
        font-size: 2.5em;
    }
    .mission-section {
        grid-template-columns: 1fr; /* Stack mission content */
        text-align: center;
    }
    .mission-section h2 {
        text-align: center;
    }
    .mission-images {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); /* Allow stacking or 2-col */
    }
    .process-steps {
        grid-template-columns: 1fr; /* Stack process steps */
        padding-bottom: 0; /* Remove space for arrows */
        gap: 3rem;
    }
    .process-steps .step-card:not(:last-child)::after {
        display: none; /* Hide arrows on mobile */
    }
    .process-steps .step-card::before { /* Add a vertical arrow */
        content: '▼';
        font-family: 'Arial', sans-serif;
        font-size: 2.5em;
        color: var(--primary-blue);
        position: absolute;
        bottom: -2.5rem;
        left: 50%;
        transform: translateX(-50%);
        text-shadow: 2px 2px 0 var(--outline-black);
        z-index: 2;
    }
    .process-steps .step-card:last-child::before {
        content: none; /* No arrow after the last step */
    }
    .pricing-cards {
        grid-template-columns: 1fr; /* Stack pricing cards */
    }
    .price-card.recommended {
        transform: scale(1.02) translate(-3px, -3px); /* Less pronounced pop */
    }
    .tab-button {
        font-size: 1.1em;
        padding: 0.6rem 1rem;
    }
}

@media (max-width: 600px) {
    h1 { font-size: 2em; }
    h2 { font-size: 1.6em; }
    h3 { font-size: 1.4em; }
    .logo { font-size: 2em; }
    .nav-list {
        align-items: center;
    }
    .nav-link {
        font-size: 1.1em;
    }
    .button-action {
        padding: 0.8rem 1.5rem;
        font-size: 1em;
    }
    .speech-bubble {
        padding: 1rem 1.5rem;
        font-size: 1em;
    }
    .comparison-table-wrapper {
        margin: 1rem;
    }
    .solutions-section th, .solutions-section td {
        padding: 0.8rem;
        font-size: 0.9em;
    }
    .testimonial-text {
        font-size: 1em;
    }
    .client-name {
        font-size: 1.1em;
    }
    .contact-overlay {
        padding: 1.5rem 2rem;
        max-width: 95%;
        top: 70%;
        right: 50%; /* Ensure it's centered if map is smaller */
        transform: translate(50%, -50%);
    }
    .map-container {
        height: 400px;
    }
}

/* 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);
}

/* Safe visibility overrides (auto-added) */
:root, html, body, main, header, footer, section, .container, .content {
  opacity: 1 !important;
  visibility: visible !important;
}
