:root {
    --primary-red: #FF0000;
    --primary-blue: #0000FF;
    --primary-yellow: #FFFF00;
    --primary-black: #000000;
    --primary-white: #FFFFFF;
    --text-color-dark: #333333; /* For better contrast on white/yellow backgrounds */
    --text-color-light: #FFFFFF; /* For better contrast on dark backgrounds */

    --font-heading: 'Bangers', cursive;
    --font-body: 'Comic Neue', sans-serif;
    --font-alt: 'Luckiest Guy', cursive;

    --outline-thickness: 4px;
    --border-radius-comic: 8px; /* Slightly rounded corners for panels */

    /* Halftone pattern */
    --halftone-dot-size: 4px;
    --halftone-spacing: 12px;
}

/* Base Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    line-height: 1.6;
    color: var(--text-color-dark);
    background-color: var(--primary-white);
    overflow-x: hidden;
}

a {
    color: var(--primary-red);
    text-decoration: none;
    transition: color 0.3s ease, transform 0.2s ease;
}

a:hover {
    color: var(--primary-blue);
    transform: translateY(-2px);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--primary-black);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.8em;
    line-height: 1.2;
}

h1 { font-size: 3.5em; }
h2 { font-size: 2.8em; }
h3 { font-size: 2.2em; }
h4 { font-size: 1.8em; }

p {
    margin-bottom: 1em;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2; /* Ensures content is above background effects */
}

.btn {
    display: inline-block;
    padding: 12px 25px;
    background-color: var(--primary-blue);
    color: var(--primary-white);
    font-family: var(--font-alt);
    font-size: 1.1em;
    text-transform: uppercase;
    border: var(--outline-thickness) solid var(--primary-black);
    border-radius: var(--border-radius-comic);
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 5px 5px 0 var(--primary-black);
    position: relative;
    top: 0;
    left: 0;
}

.btn:hover {
    background-color: var(--primary-red);
    color: var(--primary-yellow);
    box-shadow: 2px 2px 0 var(--primary-black);
    transform: translate(3px, 3px);
}

/* Comic-specific elements */
.comic-panel {
    border: var(--outline-thickness) solid var(--primary-black);
    margin: 40px auto;
    padding: 40px 0;
    position: relative;
    overflow: hidden;
    background-color: var(--primary-white);
}

.section-title {
    text-align: center;
    font-size: 3.5em;
    margin-bottom: 60px;
    position: relative;
    color: var(--primary-black);
    -webkit-text-stroke: 1px var(--primary-black); /* Thin outline for text */
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 8px;
    background-color: var(--primary-red);
    margin: 15px auto 0;
    border: 2px solid var(--primary-black);
    border-radius: 5px;
}

.comic-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 40px;
}

.comic-card-grid-6 { /* Specific for 6 cards per row on large screens */
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 40px;
    margin-top: 40px;
}

.comic-card {
    border: var(--outline-thickness) solid var(--primary-black);
    border-radius: var(--border-radius-comic);
    padding: 30px;
    background-color: var(--primary-white);
    box-shadow: 8px 8px 0px rgba(0, 0, 0, 0.7); /* Exaggerated shadow */
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    position: relative;
    overflow: hidden;
}

.comic-card:hover {
    transform: translate(-5px, -5px) scale(1.02);
    box-shadow: 12px 12px 0px rgba(0, 0, 0, 0.7);
}

.comic-card img {
    max-width: 100%;
    height: auto;
    display: block;
    margin-bottom: 20px;
    border: 2px solid var(--primary-black);
    border-radius: 5px;
}

/* Speech Bubble Styles */
.speech-bubble {
    position: relative;
    background: var(--primary-yellow);
    border-radius: 0.4em;
    padding: 15px 25px;
    border: var(--outline-thickness) solid var(--primary-black);
    color: var(--primary-black);
    font-family: var(--font-body);
    font-weight: bold;
    font-size: 1.1em;
    box-shadow: 4px 4px 0 var(--primary-black);
}

.speech-bubble:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 20%;
    width: 0;
    height: 0;
    border: 20px solid transparent;
    border-top-color: var(--primary-yellow);
    border-bottom: 0;
    margin-left: -10px;
    margin-bottom: -20px;
    border-width: 20px 20px 0 20px; /* triangle size */
    box-shadow: -4px 4px 0 var(--primary-black); /* shadow for the tail */
}

/* Speech bubble outlines */
.speech-bubble::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 20%;
    width: 0;
    height: 0;
    border: calc(20px + var(--outline-thickness)) solid transparent;
    border-top-color: var(--primary-black);
    border-bottom: 0;
    margin-left: -10px;
    margin-bottom: -20px - var(--outline-thickness);
    z-index: -1;
    border-width: calc(20px + var(--outline-thickness)) calc(20px + var(--outline-thickness)) 0 calc(20px + var(--outline-thickness));
}

.speech-bubble:after {
    content: '';
    position: absolute;
    bottom: -20px; /* Position the tail */
    left: 20%; /* Align with 20% of the bubble width */
    transform: translateX(-50%); /* Center the tail */
    width: 0;
    height: 0;
    border-left: 15px solid transparent; /* Half width of the tail base */
    border-right: 15px solid transparent; /* Half width of the tail base */
    border-top: 20px solid var(--primary-yellow); /* Height and color of the tail */
    box-shadow: -2px 2px 0px var(--primary-black); /* Shadow for the tail */
    filter: drop-shadow(0px 0px 0px var(--primary-black)); /* Small hack for the outline of the tail */
}

.speech-bubble::before { /* Outline for the tail */
    content: '';
    position: absolute;
    bottom: -20px - var(--outline-thickness); /* Position the tail outline */
    left: 20%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: calc(15px + var(--outline-thickness)) solid transparent;
    border-right: calc(15px + var(--outline-thickness)) solid transparent;
    border-top: calc(20px + var(--outline-thickness)) solid var(--primary-black);
    z-index: -1; /* Ensure outline is behind the fill */
}


.mini-speech-bubble {
    padding: 8px 15px;
    font-size: 0.9em;
    display: inline-block;
    background-color: var(--primary-red);
    color: var(--primary-white);
    border: 2px solid var(--primary-black);
    box-shadow: 3px 3px 0 var(--primary-black);
    white-space: nowrap; /* Prevent text wrapping */
    margin-top: 10px; /* Spacing below content */
}

.mini-speech-bubble::after,
.mini-speech-bubble::before {
    display: none; /* Hide tails for mini bubbles */
}


/* Halftone Patterns */
.halftone-bg-yellow {
    background-color: var(--primary-yellow);
    background-image: radial-gradient(circle at 10% 10%, var(--primary-black) var(--halftone-dot-size), transparent var(--halftone-dot-size) + 1px),
                      radial-gradient(circle at 60% 60%, var(--primary-black) var(--halftone-dot-size), transparent var(--halftone-dot-size) + 1px);
    background-size: var(--halftone-spacing) var(--halftone-spacing);
}

.halftone-bg-red {
    background-color: var(--primary-red);
    background-image: radial-gradient(circle at 10% 10%, var(--primary-black) var(--halftone-dot-size), transparent var(--halftone-dot-size) + 1px),
                      radial-gradient(circle at 60% 60%, var(--primary-black) var(--halftone-dot-size), transparent var(--halftone-dot-size) + 1px);
    background-size: var(--halftone-spacing) var(--halftone-spacing);
}

.halftone-bg-blue {
    background-color: var(--primary-blue);
    background-image: radial-gradient(circle at 10% 10%, var(--primary-black) var(--halftone-dot-size), transparent var(--halftone-dot-size) + 1px),
                      radial-gradient(circle at 60% 60%, var(--primary-black) var(--halftone-dot-size), transparent var(--halftone-dot-size) + 1px);
    background-size: var(--halftone-spacing) var(--halftone-spacing);
}

.halftone-bg-black {
    background-color: var(--primary-black);
    background-image: radial-gradient(circle at 10% 10%, var(--primary-white) var(--halftone-dot-size), transparent var(--halftone-dot-size) + 1px),
                      radial-gradient(circle at 60% 60%, var(--primary-white) var(--halftone-dot-size), transparent var(--halftone-dot-size) + 1px);
    background-size: var(--halftone-spacing) var(--halftone-spacing);
}


/* Header */
.header-comic {
    background-color: var(--primary-blue);
    color: var(--primary-white);
    padding: 15px 0;
    border-bottom: var(--outline-thickness) solid var(--primary-black);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.header-comic .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 2.5em;
    line-height: 1;
    margin: 0;
    -webkit-text-stroke: 2px var(--primary-black);
    color: var(--primary-yellow);
    position: relative;
    z-index: 10;
}

.logo a {
    color: var(--primary-yellow);
    text-decoration: none;
    transition: transform 0.2s ease;
    display: inline-block;
}

.logo a:hover {
    transform: scale(1.05) rotate(-2deg);
    color: var(--primary-white);
}

.main-nav ul {
    list-style: none;
    display: flex;
}

.main-nav li {
    margin-left: 30px;
}

.main-nav a {
    color: var(--primary-white);
    font-family: var(--font-alt);
    font-size: 1.1em;
    text-transform: uppercase;
    padding: 5px 0;
    border-bottom: 3px solid transparent;
    transition: all 0.2s ease;
}

.main-nav a:hover {
    color: var(--primary-yellow);
    border-color: var(--primary-yellow);
    transform: translateY(-2px);
}

.nav-toggle {
    display: none; /* Hidden on desktop */
    background: none;
    border: none;
    color: var(--primary-white);
    font-size: 2em;
    cursor: pointer;
    z-index: 1001;
}

/* Hero Section */
.hero-section {
    background-color: var(--primary-red);
    color: var(--primary-white);
    text-align: center;
    padding: 100px 0; /* Adjust padding to suit content */
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    min-height: 70vh;
}

.hero-background-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.7) grayscale(0.2); /* Make image less distracting */
    z-index: 0;
}

.hero-section .container {
    position: relative;
    z-index: 1;
    max-width: 900px;
}

.hero-content {
    background-color: rgba(0, 0, 0, 0.6); /* Semi-transparent overlay for readability */
    padding: 40px;
    border: var(--outline-thickness) solid var(--primary-yellow);
    border-radius: var(--border-radius-comic);
    box-shadow: 10px 10px 0 var(--primary-black);
    backdrop-filter: blur(5px);
}

.hero-content h2 {
    color: var(--primary-yellow);
    font-size: 4.5em;
    margin-bottom: 0.2em;
    line-height: 1;
    -webkit-text-stroke: 2px var(--primary-black);
}

.hero-content p {
    font-size: 1.5em;
    max-width: 700px;
    margin: 20px auto 0;
    color: var(--primary-white);
    font-family: var(--font-alt);
    line-height: 1.4;
    text-shadow: 2px 2px 0 var(--primary-black);
}

.hero-speech-bubble {
    background-color: var(--primary-yellow);
    color: var(--primary-black);
    padding: 20px 30px;
    border: var(--outline-thickness) solid var(--primary-black);
    box-shadow: 8px 8px 0 var(--primary-black);
    margin-bottom: 30px;
    display: inline-block;
    max-width: 80%;
}

.hero-speech-bubble::after,
.hero-speech-bubble::before {
    bottom: -25px; /* Adjust tail position */
}


/* Story Section */
.story-section {
    padding: 80px 0;
    background-color: var(--primary-white);
}

.story-panel {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 80px;
    position: relative;
    border: var(--outline-thickness) solid var(--primary-black);
    border-radius: var(--border-radius-comic);
    box-shadow: 10px 10px 0 var(--primary-black);
    overflow: hidden;
}

.story-panel.left {
    background-color: var(--primary-blue);
    color: var(--primary-white);
}

.story-panel.right {
    background-color: var(--primary-red);
    color: var(--primary-white);
}

.story-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: brightness(0.8) grayscale(0.1);
    border-right: var(--outline-thickness) solid var(--primary-black); /* Divider */
}

.story-panel.right .story-image {
    order: 2; /* Image on right for 'right' panels */
    border-left: var(--outline-thickness) solid var(--primary-black);
    border-right: none;
}

.story-text-overlay {
    padding: 40px;
}

.story-text-overlay h3 {
    color: var(--primary-yellow);
    font-size: 2.5em;
    -webkit-text-stroke: 1px var(--primary-black);
}

.story-text-overlay p {
    font-size: 1.1em;
    color: var(--text-color-light);
    text-shadow: 1px 1px 0 var(--primary-black);
}

/* Products Section (Tabs) */
.tabs-interface {
    margin-top: 50px;
}

.tabs-nav {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 15px;
}

.tab-button {
    background-color: var(--primary-blue);
    color: var(--primary-white);
    font-family: var(--font-alt);
    font-size: 1.2em;
    padding: 12px 25px;
    border: var(--outline-thickness) solid var(--primary-black);
    border-radius: var(--border-radius-comic);
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 5px 5px 0 var(--primary-black);
    text-transform: uppercase;
}

.tab-button:hover {
    background-color: var(--primary-red);
    color: var(--primary-yellow);
    transform: translateY(-3px);
    box-shadow: 8px 8px 0 var(--primary-black);
}

.tab-button.active {
    background-color: var(--primary-yellow);
    color: var(--primary-black);
    box-shadow: 8px 8px 0 var(--primary-red);
    transform: translateY(-5px);
}

.tabs-content {
    position: relative;
    min-height: 400px; /* Ensure content area has some height */
}

.tab-pane {
    display: none;
    animation: fadeIn 0.5s ease-out;
}

.tab-pane.active {
    display: grid;
}

.product-card {
    background-color: var(--primary-white);
    text-align: center;
    padding: 30px;
}

.product-card h3 {
    color: var(--primary-blue);
    font-size: 1.8em;
    margin-bottom: 15px;
    -webkit-text-stroke: 1px var(--primary-black);
}

.product-card p {
    font-size: 1.05em;
    margin-bottom: 20px;
}


/* Reviews Section (Video Testimonials - Mock) */
.reviews-grid {
    margin-top: 50px;
}

.review-card {
    background-color: var(--primary-white);
    text-align: center;
    padding: 30px;
}

.video-thumbnail {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    background-color: var(--primary-black); /* Placeholder background */
    margin-bottom: 20px;
    border: 2px solid var(--primary-black);
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 3px 3px 0 var(--primary-black);
}

.video-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.8);
    transition: filter 0.3s ease;
}

.video-thumbnail:hover img {
    filter: brightness(0.6);
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70px;
    height: 70px;
    background-color: var(--primary-red);
    border-radius: 50%;
    border: var(--outline-thickness) solid var(--primary-black);
    cursor: pointer;
    box-shadow: 5px 5px 0 var(--primary-black);
    transition: all 0.2s ease;
}

.play-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 55%; /* Adjust for triangle appearance */
    transform: translate(-50%, -50%);
    width: 0;
    height: 0;
    border-top: 15px solid transparent;
    border-bottom: 15px solid transparent;
    border-left: 25px solid var(--primary-white);
}

.play-button:hover {
    background-color: var(--primary-blue);
    transform: translate(-50%, -50%) scale(1.1);
    box-shadow: 8px 8px 0 var(--primary-black);
}

.review-text {
    font-style: italic;
    margin-bottom: 20px;
    font-size: 1.1em;
    color: var(--text-color-dark);
}

.reviewer-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    font-weight: bold;
    font-family: var(--font-alt);
    font-size: 1.1em;
    color: var(--primary-black);
}

.reviewer-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 3px solid var(--primary-blue);
    object-fit: cover;
    box-shadow: 2px 2px 0 var(--primary-black);
}


/* Location Section (Map Integration - Mock) */
.location-section {
    padding: 0; /* Map will fill the section */
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.map-overlay-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.map-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    filter: brightness(0.6) grayscale(0.2);
    top: 0;
    left: 0;
    z-index: 0;
}

.contact-info-overlay {
    position: relative;
    z-index: 1;
    max-width: 600px;
    text-align: center;
    color: var(--primary-black);
    margin: 40px auto;
}

.location-speech-bubble {
    background-color: var(--primary-white);
    padding: 30px;
    border: var(--outline-thickness) solid var(--primary-black);
    border-radius: var(--border-radius-comic);
    box-shadow: 10px 10px 0 var(--primary-black);
}

.location-speech-bubble h3 {
    color: var(--primary-blue);
    font-size: 2.5em;
    -webkit-text-stroke: 1px var(--primary-black);
}

.location-speech-bubble p {
    font-size: 1.1em;
    margin-bottom: 1.5em;
}


/* FAQ Section (Searchable FAQ - Accordion) */
.faq-section {
    padding: 80px 0;
}

.faq-intro-text {
    text-align: center;
    font-size: 1.2em;
    margin-bottom: 40px;
    font-family: var(--font-alt);
    color: var(--primary-black);
    text-shadow: 1px 1px 0 var(--primary-red);
}

.faq-items {
    max-width: 900px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

.faq-item {
    background-color: var(--primary-white);
    border: var(--outline-thickness) solid var(--primary-black);
    border-radius: var(--border-radius-comic);
    box-shadow: 6px 6px 0 var(--primary-blue);
    transition: all 0.3s ease;
    overflow: hidden;
}

.faq-item:hover {
    transform: translateY(-5px);
    box-shadow: 10px 10px 0 var(--primary-blue);
}

.faq-question {
    padding: 20px 30px;
    cursor: pointer;
    font-family: var(--font-alt);
    font-size: 1.3em;
    color: var(--primary-red);
    background-color: var(--primary-yellow);
    border-bottom: var(--outline-thickness) solid var(--primary-black);
    display: block; /* Make summary fill the width */
    position: relative;
    user-select: none;
    -webkit-text-stroke: 1px var(--primary-black);
}

.faq-question::marker, /* Hide default arrow */
.faq-question::-webkit-details-marker {
    display: none;
}

.faq-question::after { /* Custom arrow */
    content: '+';
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5em;
    color: var(--primary-black);
    font-weight: bold;
    line-height: 1;
}

.faq-item[open] .faq-question {
    background-color: var(--primary-red);
    color: var(--primary-white);
    border-bottom: var(--outline-thickness) solid var(--primary-black);
}

.faq-item[open] .faq-question::after {
    content: '-';
    color: var(--primary-white);
}

.faq-answer {
    padding: 20px 30px;
    font-size: 1.1em;
    color: var(--text-color-dark);
    line-height: 1.6;
}

.faq-answer p {
    margin-bottom: 1em;
}

/* Pricing Section (Calculator - Mock) */
.pricing-section {
    padding: 80px 0;
}

.pricing-calculator {
    text-align: center;
    max-width: 1000px;
    margin: 0 auto;
}

.calculator-intro {
    font-size: 1.2em;
    margin-bottom: 40px;
    font-family: var(--font-alt);
    color: var(--primary-black);
    text-shadow: 1px 1px 0 var(--primary-blue);
}

.pricing-options {
    margin-bottom: 50px;
}

.pricing-card {
    background-color: var(--primary-white);
    padding: 30px;
    box-shadow: 6px 6px 0 var(--primary-black);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
}

.pricing-card.active {
    border-color: var(--primary-red);
    background-color: var(--primary-yellow);
    box-shadow: 10px 10px 0 var(--primary-blue);
    transform: translateY(-10px) scale(1.03);
}

.pricing-card h3 {
    color: var(--primary-blue);
    font-size: 2.2em;
    margin-bottom: 15px;
    -webkit-text-stroke: 1px var(--primary-black);
}

.price-display {
    font-family: var(--font-alt);
    font-size: 2.5em;
    color: var(--primary-red);
    margin-bottom: 25px;
    line-height: 1;
    -webkit-text-stroke: 2px var(--primary-black);
    text-shadow: 3px 3px 0 var(--primary-yellow);
}

.pricing-card ul {
    list-style: none;
    margin-bottom: 30px;
    text-align: left;
    font-size: 1.1em;
    padding-left: 0;
    width: 100%;
}

.pricing-card li {
    margin-bottom: 10px;
    padding-left: 25px;
    position: relative;
    font-family: var(--font-body);
}

.pricing-card li::before {
    content: 'POW!'; /* Placeholder for Yes */
    position: absolute;
    left: 0;
    color: var(--primary-red);
    font-family: var(--font-alt);
    font-size: 0.9em;
    top: 2px;
}

.pricing-card li:nth-child(3)::before,
.pricing-card li:nth-child(4)::before {
    content: 'BLIP!'; /* Placeholder for No */
    color: var(--primary-black);
}

.btn-select-plan {
    margin-top: auto; /* Push button to bottom */
    background-color: var(--primary-blue);
    color: var(--primary-white);
}

.btn-select-plan.active {
    background-color: var(--primary-red);
    color: var(--primary-yellow);
    border-color: var(--primary-black);
    box-shadow: 5px 5px 0 var(--primary-black);
    transform: translate(0);
}

.selected-price-info {
    background-color: var(--primary-white);
    padding: 30px;
    margin-top: 50px;
    box-shadow: 8px 8px 0 var(--primary-black);
    border: var(--outline-thickness) solid var(--primary-black);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.selected-price-info p {
    font-family: var(--font-body);
    font-size: 1.2em;
    margin-bottom: 0.5em;
    color: var(--primary-black);
}

.selected-price-info strong {
    font-family: var(--font-alt);
    font-size: 1.8em;
    color: var(--primary-red);
    -webkit-text-stroke: 1px var(--primary-black);
}


/* Team Section */
.team-section {
    padding: 80px 0;
}

.department {
    margin-bottom: 80px;
}

.department-title {
    text-align: center;
    font-size: 3em;
    color: var(--primary-red);
    margin-bottom: 40px;
    -webkit-text-stroke: 2px var(--primary-black);
    text-shadow: 3px 3px 0 var(--primary-yellow);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* Auto-fit for mobile, up to 6 for desktop */
    gap: 40px;
}

@media (min-width: 1200px) {
    .team-grid.comic-card-grid-6 {
        grid-template-columns: repeat(6, 1fr);
    }
}

.team-member {
    background-color: var(--primary-white);
    text-align: center;
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
}

.team-avatar {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 20px;
    border: 5px solid var(--primary-blue);
    box-shadow: 4px 4px 0 var(--primary-black);
    transition: transform 0.3s ease;
}

.team-member:hover .team-avatar {
    transform: scale(1.1) rotate(5deg);
    border-color: var(--primary-red);
}

.team-member h4 {
    font-size: 1.8em;
    color: var(--primary-black);
    margin-bottom: 5px;
    -webkit-text-stroke: 1px var(--primary-yellow);
}

.team-member p {
    font-family: var(--font-alt);
    font-size: 1.1em;
    color: var(--primary-blue);
    margin-bottom: 20px;
}

/* Footer */
.footer-comic {
    background-color: var(--primary-black);
    color: var(--primary-white);
    text-align: center;
    padding: 40px 0;
    border-top: var(--outline-thickness) solid var(--primary-yellow);
}

.footer-comic p {
    font-family: var(--font-body);
    font-size: 1.1em;
    margin-bottom: 10px;
    text-shadow: 1px 1px 0 rgba(255,255,255,0.2);
}


/* Animations */
@keyframes fadeIn {
    from { opacity: 1; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Mobile Responsiveness */
@media (max-width: 1024px) {
    .main-nav ul {
        margin-left: 0;
    }
    .main-nav li {
        margin-left: 20px;
    }

    .story-panel {
        grid-template-columns: 1fr;
    }
    .story-image {
        border-right: none;
        border-bottom: var(--outline-thickness) solid var(--primary-black);
    }
    .story-panel.right .story-image {
        order: 0; /* Reset order for stacking */
        border-left: none;
        border-bottom: var(--outline-thickness) solid var(--primary-black);
    }
    .story-text-overlay {
        padding: 30px;
    }

    .comic-card-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .comic-card-grid-6 {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    h1 { font-size: 2.8em; }
    h2 { font-size: 2.2em; }
    h3 { font-size: 1.8em; }
    h4 { font-size: 1.5em; }

    .section-title {
        font-size: 2.5em;
        margin-bottom: 40px;
    }

    .header-comic .container {
        flex-wrap: wrap;
    }

    .main-nav {
        order: 3;
        width: 100%;
        margin-top: 15px;
        display: none; /* Hidden by default */
        text-align: center;
        background-color: var(--primary-blue);
        border-top: var(--outline-thickness) solid var(--primary-black);
        padding-top: 10px;
    }

    .main-nav ul {
        flex-direction: column;
        padding: 0;
    }

    .main-nav li {
        margin: 0;
        border-bottom: 1px dashed rgba(255,255,255,0.3);
    }

    .main-nav li:last-child {
        border-bottom: none;
    }

    .main-nav a {
        display: block;
        padding: 15px 0;
        border-bottom: none;
    }

    .nav-toggle {
        display: block;
    }

    body.nav-open .main-nav {
        display: flex; /* Show when nav is open */
    }

    .hero-content h2 {
        font-size: 3em;
    }
    .hero-content p {
        font-size: 1.2em;
    }
    .hero-speech-bubble {
        padding: 15px 20px;
        font-size: 1em;
    }

    .comic-card-grid {
        grid-template-columns: 1fr;
    }
    .comic-card-grid-6 {
        grid-template-columns: 1fr;
    }

    .tabs-nav {
        flex-direction: column;
        align-items: center;
    }
    .tab-button {
        width: 80%;
    }

    .location-speech-bubble h3 {
        font-size: 2em;
    }

    .pricing-card li::before {
        font-size: 0.8em;
        top: 4px;
    }
}

@media (max-width: 480px) {
    h1 { font-size: 2.2em; }
    h2 { font-size: 1.8em; }
    h3 { font-size: 1.5em; }

    .section-title {
        font-size: 2em;
    }

    .logo {
        font-size: 2em;
    }

    .hero-content h2 {
        font-size: 2.5em;
    }
    .hero-content p {
        font-size: 1em;
    }

    .story-text-overlay h3 {
        font-size: 2em;
    }

    .faq-question {
        font-size: 1.1em;
        padding: 15px 20px;
    }
    .faq-answer {
        padding: 15px 20px;
        font-size: 1em;
    }

    .pricing-card h3 {
        font-size: 1.8em;
    }
    .price-display {
        font-size: 2em;
    }

    .team-member h4 {
        font-size: 1.5em;
    }
}

/* 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;
}
