/* Custom Properties for Comic & Pop Art Theme */
:root {
    --primary-red: #E63946; /* Bold Red */
    --primary-blue: #457B9D; /* Strong Blue */
    --primary-yellow: #F4D35E; /* Vibrant Yellow */
    --text-dark: #1D3557; /* Deep Blue/Black */
    --outline-black: #000;
    --bg-light: #F1FAEE; /* Off-white / Light Blue-Green */
    --accent-green: #90be6d; /* Secondary Accent Green */
    --accent-orange: #f9844a; /* Secondary Accent Orange */

    --font-heading: 'Bangers', cursive;
    --font-body: 'Comic Neue', cursive;
    --font-alt: 'Luckiest Guy', cursive; /* For specific elements like buttons/logos */

    --panel-border-thickness: 5px;
    --speech-bubble-tail-size: 20px;
}

/* 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-dark);
    background-color: var(--bg-light);
    overflow-x: hidden; /* Prevent horizontal scroll from exaggerated spacing */
}

a {
    color: var(--primary-blue);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--text-dark);
    line-height: 1.2;
    margin-bottom: 0.5em;
    text-shadow: 2px 2px 0px var(--primary-red), 4px 4px 0px var(--outline-black); /* Comic shadow effect */
    -webkit-text-stroke: 1px var(--outline-black); /* Outline text for comic style */
    text-stroke: 1px var(--outline-black);
    color: var(--primary-yellow); /* Text color inside outline */
}

h1 { font-size: 3.5em; }
h2 { font-size: 2.8em; }
h3 { font-size: 2.2em; }
h4 { font-size: 1.8em; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    position: relative; /* For overlapping elements */
}

section {
    padding: 80px 0;
    position: relative;
    overflow: hidden; /* Ensure comic panel overflows are clipped for effect */
}

/* Halftone Texture Mixin (applied as background-image) */
.halftone-bg {
    background-image:
        radial-gradient(circle at 10% 10%, rgba(0,0,0,0.1) 1px, transparent 0%),
        radial-gradient(circle at 20% 20%, rgba(0,0,0,0.1) 1px, transparent 0%),
        radial-gradient(circle at 30% 30%, rgba(0,0,0,0.1) 1px, transparent 0%),
        radial-gradient(circle at 40% 40%, rgba(0,0,0,0.1) 1px, transparent 0%),
        radial-gradient(circle at 50% 50%, rgba(0,0,0,0.1) 1px, transparent 0%),
        radial-gradient(circle at 60% 60%, rgba(0,0,0,0.1) 1px, transparent 0%),
        radial-gradient(circle at 70% 70%, rgba(0,0,0,0.1) 1px, transparent 0%),
        radial-gradient(circle at 80% 80%, rgba(0,0,0,0.1) 1px, transparent 0%),
        radial-gradient(circle at 90% 90%, rgba(0,0,0,0.1) 1px, transparent 0%);
    background-size: 10px 10px;
}

/* Comic Panel Styling */
.comic-panel {
    border: var(--panel-border-thickness) solid var(--outline-black);
    box-shadow: 10px 10px 0px var(--text-dark); /* Exaggerated shadow */
    position: relative;
    padding: 20px;
    background-color: var(--bg-light); /* Default background */
    z-index: 1; /* For overlapping */
}

/* Speech Bubble Effect (for certain text blocks/buttons) */
.speech-bubble::before {
    content: '';
    position: absolute;
    bottom: -var(--speech-bubble-tail-size);
    left: 50%;
    transform: translateX(-50%);
    border: var(--speech-bubble-tail-size) solid transparent;
    border-top-color: var(--outline-black);
    border-bottom: 0;
    z-index: 2;
}

.speech-bubble::after {
    content: '';
    position: absolute;
    bottom: calc(-var(--speech-bubble-tail-size) + var(--panel-border-thickness));
    left: 50%;
    transform: translateX(-50%);
    border: calc(var(--speech-bubble-tail-size) - var(--panel-border-thickness)) solid transparent;
    border-top-color: var(--bg-light); /* Match panel background */
    border-bottom: 0;
    z-index: 3;
}

/* Pop Effects */
.pop-effect {
    transition: transform 0.2s ease-out, box-shadow 0.2s ease-out;
}

.pop-effect:hover {
    transform: translate(-5px, -5px) scale(1.03); /* Bouncy, zoom effect */
    box-shadow: 15px 15px 0px var(--primary-red); /* Shadow changes color on hover */
}

/* Generic Button Styling */
.cta-button {
    display: inline-block;
    padding: 15px 30px;
    font-family: var(--font-alt);
    font-size: 1.2em;
    text-align: center;
    border: var(--panel-border-thickness) solid var(--outline-black);
    background-color: var(--primary-red);
    color: var(--bg-light);
    text-shadow: 2px 2px 0px var(--text-dark);
    cursor: pointer;
    box-shadow: 8px 8px 0px var(--primary-blue);
    transition: all 0.2s ease-out;
    -webkit-text-stroke: 1px var(--outline-black);
    text-stroke: 1px var(--outline-black);
    letter-spacing: 1px;
    text-transform: uppercase;
    position: relative;
    z-index: 1;
}

.cta-button:hover {
    background-color: var(--primary-yellow);
    color: var(--text-dark);
    box-shadow: 12px 12px 0px var(--primary-red);
    transform: translate(-4px, -4px);
    text-decoration: none;
}

/* Header */
.main-header {
    background-color: var(--primary-red);
    border-bottom: var(--panel-border-thickness) solid var(--outline-black);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0px 5px 15px rgba(0,0,0,0.2);
    -webkit-text-stroke: 1px var(--outline-black);
    text-stroke: 1px var(--outline-black);
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-alt);
    font-size: 2.5em;
    margin: 0;
    color: var(--primary-yellow);
    text-shadow: 3px 3px 0px var(--text-dark);
}

.logo a {
    color: inherit;
    text-decoration: none;
}

.main-nav ul {
    list-style: none;
    display: flex;
}

.main-nav ul li {
    margin-left: 30px;
}

.main-nav ul li a {
    font-family: var(--font-body);
    font-weight: 700;
    color: var(--bg-light);
    font-size: 1.1em;
    position: relative;
    padding: 5px 0;
    transition: color 0.2s ease-out;
    -webkit-text-stroke: 0.5px var(--outline-black);
    text-stroke: 0.5px var(--outline-black);
}

.main-nav ul li a:hover {
    color: var(--primary-yellow);
    text-decoration: none;
}

/* Section Title & Description */
.section-title {
    text-align: center;
    margin-bottom: 20px;
    font-size: 3.5em;
    color: var(--primary-yellow);
    text-shadow: 3px 3px 0px var(--primary-blue), 6px 6px 0px var(--outline-black);
}

.section-description {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px auto;
    font-size: 1.15em;
    line-height: 1.8;
    background-color: rgba(255, 255, 255, 0.7); /* Slightly transparent background for readability */
    padding: 15px;
    border: 2px dashed var(--primary-blue);
    border-radius: 10px;
}

/* Hero Section: MINIMALIST BANNER */
.hero-section {
    min-height: 60vh; /* Compact height */
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    background-color: var(--primary-blue);
    position: relative;
    overflow: hidden;
    padding: 100px 20px;
    border-bottom: var(--panel-border-thickness) solid var(--outline-black);
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -20%;
    left: -20%;
    width: 140%;
    height: 140%;
    background-image: url('data:image/svg+xml;utf8,<svg width="100%" height="100%" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="halftone" patternUnits="userSpaceOnUse" width="10" height="10"><circle cx="2" cy="2" r="1.5" fill="%23457B9D" opacity="0.3"/><circle cx="7" cy="7" r="1.5" fill="%23457B9D" opacity="0.3"/></pattern></defs><rect x="0" y="0" width="100%" height="100%" fill="%23E63946"/><rect x="0" y="0" width="100%" height="100%" fill="url(%23halftone)"/></svg>');
    background-size: cover;
    opacity: 1;.7;
    filter: invert(100%);
    transform: rotate(5deg) scale(1.1);
    z-index: 0;
}


.hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
    background-color: rgba(var(--bg-light), 0.9);
    padding: 40px;
    border: var(--panel-border-thickness) solid var(--outline-black);
    box-shadow: 15px 15px 0px var(--primary-red);
    transform: rotate(-2deg);
    margin-bottom: 20px;
}

.hero-content h1 {
    font-size: 4.5em;
    margin-bottom: 20px;
    color: var(--primary-red);
    text-shadow: 5px 5px 0px var(--primary-yellow), 10px 10px 0px var(--outline-black);
}

.hero-content p {
    font-size: 1.3em;
    margin-bottom: 30px;
    color: var(--text-dark);
    line-height: 1.5;
    background-color: rgba(255, 255, 255, 0.85);
    padding: 10px;
    border-radius: 5px;
    font-weight: 700;
}

.hero-burst {
    position: absolute;
    bottom: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    background-color: var(--primary-yellow);
    border: var(--panel-border-thickness) solid var(--outline-black);
    clip-path: polygon(
        50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%,
        50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%
    ); /* Starburst shape */
    box-shadow: 10px 10px 0px var(--primary-red);
    transform: rotate(15deg);
    z-index: 0;
}

/* About Section: CARD GRID */
.about-section {
    background-color: var(--bg-light);
    border-bottom: var(--panel-border-thickness) solid var(--outline-black);
    padding-top: 100px;
    padding-bottom: 100px;
    position: relative;
}

.about-cards.card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 60px;
    justify-items: center;
}

.about-card.card-item {
    background-color: var(--primary-yellow);
    padding: 30px;
    border: var(--panel-border-thickness) solid var(--outline-black);
    box-shadow: 12px 12px 0px var(--primary-blue);
    text-align: center;
    position: relative;
    transform: rotate(var(--rotate, 0deg)); /* For subtle rotation */
    width: 100%;
    max-width: 380px;
}
.about-card.card-item:nth-child(1) { --rotate: -2deg; z-index: 3; margin-top: 20px;}
.about-card.card-item:nth-child(2) { --rotate: 3deg; z-index: 2;}
.about-card.card-item:nth-child(3) { --rotate: -1deg; z-index: 1; margin-top: 10px;}

.about-card.card-item img {
    max-width: 100%;
    height: 200px;
    object-fit: cover;
    border: 3px solid var(--outline-black);
    margin-bottom: 20px;
    box-shadow: 5px 5px 0px rgba(0,0,0,0.3);
}

.about-card.card-item h3 {
    font-size: 1.8em;
    color: var(--primary-red);
    text-shadow: 2px 2px 0px var(--text-dark);
}

.about-card.card-item p {
    font-size: 1em;
    color: var(--text-dark);
}

/* Features Section: ICON WITH TEXT */
.features-section {
    background-color: var(--primary-red);
    color: var(--bg-light);
    border-bottom: var(--panel-border-thickness) solid var(--outline-black);
    padding-top: 100px;
    padding-bottom: 100px;
    position: relative;
    z-index: 1;
}
.features-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml;utf8,<svg width="100%" height="100%" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="halftone-red" patternUnits="userSpaceOnUse" width="8" height="8"><circle cx="2" cy="2" r="1" fill="%23000000" opacity="0.15"/><circle cx="6" cy="6" r="1" fill="%23000000" opacity="0.15"/></pattern></defs><rect x="0" y="0" width="100%" height="100%" fill="%23E63946"/><rect x="0" y="0" width="100%" height="100%" fill="url(%23halftone-red)"/></svg>');
    background-size: cover;
    opacity: 1;.8;
    z-index: -1;
}

.features-grid.icon-with-text-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 60px;
    justify-items: center;
}

.feature-item {
    background-color: var(--bg-light);
    padding: 30px;
    border: var(--panel-border-thickness) solid var(--outline-black);
    box-shadow: 10px 10px 0px var(--primary-yellow);
    text-align: center;
    color: var(--text-dark);
    transform: rotate(var(--rotate, 0deg));
    width: 100%;
    max-width: 380px;
    z-index: 1;
}
.feature-item:nth-child(1) { --rotate: 2deg;}
.feature-item:nth-child(2) { --rotate: -3deg; margin-top: 20px;}
.feature-item:nth-child(3) { --rotate: 1deg;}


.feature-icon {
    margin-bottom: 20px;
    width: 100px; /* Large icon size */
    height: 100px;
    margin-left: auto;
    margin-right: auto;
    border: 3px solid var(--outline-black);
    background-color: var(--primary-blue);
    border-radius: 50%; /* Make icons circular */
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    box-shadow: 5px 5px 0px var(--text-dark);
}
.feature-icon img {
    max-width: 80%;
    max-height: 80%;
    object-fit: contain;
}

.feature-item h3 {
    font-size: 1.8em;
    color: var(--primary-blue);
    text-shadow: 2px 2px 0px var(--primary-red);
}

.feature-item p {
    font-size: 1em;
    color: var(--text-dark);
}

/* Showcase Section: HIGHLIGHTS GRID */
.showcase-section {
    background-color: var(--primary-yellow);
    border-bottom: var(--panel-border-thickness) solid var(--outline-black);
    padding-top: 100px;
    padding-bottom: 100px;
    position: relative;
    z-index: 1;
}
.showcase-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml;utf8,<svg width="100%" height="100%" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="halftone-yellow" patternUnits="userSpaceOnUse" width="12" height="12"><rect x="0" y="0" width="6" height="6" fill="%23000000" opacity="0.1"/><rect x="6" y="6" width="6" height="6" fill="%23000000" opacity="0.1"/></pattern></defs><rect x="0" y="0" width="100%" height="100%" fill="%23F4D35E"/><rect x="0" y="0" width="100%" height="100%" fill="url(%23halftone-yellow)"/></svg>');
    background-size: cover;
    opacity: 1;.7;
    z-index: -1;
}

.highlights-grid.card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 60px;
    justify-items: center;
}

.highlight-card.card-item {
    background-color: var(--bg-light);
    padding: 30px;
    border: var(--panel-border-thickness) solid var(--outline-black);
    box-shadow: 12px 12px 0px var(--text-dark);
    text-align: center;
    position: relative;
    transform: rotate(var(--rotate, 0deg));
    width: 100%;
    max-width: 380px;
    z-index: 1;
}
.highlight-card.card-item:nth-child(1) { --rotate: -1deg; margin-top: 10px;}
.highlight-card.card-item:nth-child(2) { --rotate: 2deg; }
.highlight-card.card-item:nth-child(3) { --rotate: -2deg; margin-top: 20px;}

.highlight-card.card-item img {
    max-width: 100%;
    height: 200px;
    object-fit: cover;
    border: 3px solid var(--outline-black);
    margin-bottom: 20px;
    box-shadow: 5px 5px 0px var(--primary-red);
}

.highlight-card.card-item h3 {
    font-size: 1.8em;
    color: var(--primary-blue);
    text-shadow: 2px 2px 0px var(--primary-red);
}

.highlight-card.card-item p {
    font-size: 1em;
    color: var(--text-dark);
}

/* Portfolio Section: CAROUSEL SLIDER */
.portfolio-section {
    background-color: var(--bg-light);
    border-bottom: var(--panel-border-thickness) solid var(--outline-black);
    padding-top: 100px;
    padding-bottom: 100px;
}
.portfolio-section h3 {
    text-align: center;
    margin-top: 40px;
    margin-bottom: 30px;
    font-size: 2.5em;
    color: var(--primary-red);
    text-shadow: 2px 2px 0px var(--primary-blue), 4px 4px 0px var(--outline-black);
}

.carousel-container {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    overflow: hidden;
    border: var(--panel-border-thickness) solid var(--outline-black);
    box-shadow: 15px 15px 0px var(--primary-red);
    background-color: var(--text-dark);
    transform: rotate(-1deg);
}

.carousel-slider {
    display: flex;
    transition: transform 0.5s ease-in-out;
    padding: 20px;
}

.carousel-item {
    min-width: 100%;
    box-sizing: border-box;
    margin-right: 20px; /* Spacing between items */
    position: relative;
    border: 3px solid var(--primary-yellow);
    box-shadow: 5px 5px 0px var(--outline-black);
}
.carousel-item:last-child {
    margin-right: 0;
}

.carousel-item img {
    width: 100%;
    height: 450px;
    object-fit: cover;
    display: block;
}

.carousel-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(var(--primary-blue), 0.8);
    color: var(--bg-light);
    padding: 15px;
    text-align: center;
    border-top: 3px solid var(--primary-yellow);
}

.carousel-caption h4 {
    font-family: var(--font-alt);
    font-size: 1.5em;
    margin-bottom: 5px;
    color: var(--primary-yellow);
    text-shadow: 1px 1px 0px var(--outline-black);
    -webkit-text-stroke: 0.5px var(--outline-black);
    text-stroke: 0.5px var(--outline-black);
}

.carousel-caption p {
    font-size: 0.95em;
    color: var(--bg-light);
}

.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: var(--primary-red);
    color: var(--bg-light);
    border: var(--panel-border-thickness) solid var(--outline-black);
    padding: 10px 15px;
    cursor: pointer;
    font-family: var(--font-alt);
    font-size: 1.1em;
    box-shadow: 5px 5px 0px var(--text-dark);
    z-index: 10;
    -webkit-text-stroke: 0.5px var(--outline-black);
    text-stroke: 0.5px var(--outline-black);
}

.prev-button {
    left: -30px; /* Exaggerated spacing */
    transform: translateY(-50%) rotate(-5deg);
}

.next-button {
    right: -30px; /* Exaggerated spacing */
    transform: translateY(-50%) rotate(5deg);
}

.carousel-nav:hover {
    background-color: var(--primary-yellow);
    color: var(--text-dark);
    box-shadow: 8px 8px 0px var(--primary-blue);
}

/* Gallery Section: LIGHTBOX GALLERY */
.gallery-section {
    background-color: var(--primary-blue);
    border-bottom: var(--panel-border-thickness) solid var(--outline-black);
    padding-top: 100px;
    padding-bottom: 100px;
    position: relative;
    z-index: 1;
}
.gallery-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml;utf8,<svg width="100%" height="100%" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="halftone-blue" patternUnits="userSpaceOnUse" width="10" height="10"><rect x="0" y="0" width="5" height="5" fill="%23000000" opacity="0.1"/><rect x="5" y="5" width="5" height="5" fill="%23000000" opacity="0.1"/></pattern></defs><rect x="0" y="0" width="100%" height="100%" fill="%23457B9D"/><rect x="0" y="0" width="100%" height="100%" fill="url(%23halftone-blue)"/></svg>');
    background-size: cover;
    opacity: 1;.7;
    z-index: -1;
}

.gallery-section h3 {
    text-align: center;
    margin-top: 40px;
    margin-bottom: 30px;
    font-size: 2.5em;
    color: var(--primary-yellow);
    text-shadow: 2px 2px 0px var(--primary-red), 4px 4px 0px var(--outline-black);
}

.lightbox-gallery.card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 60px;
    justify-items: center;
}

.gallery-item {
    display: block;
    overflow: hidden;
    position: relative;
    border: var(--panel-border-thickness) solid var(--outline-black);
    box-shadow: 10px 10px 0px var(--primary-red);
    transform: rotate(var(--rotate, 0deg));
    width: 100%;
    max-width: 400px;
    z-index: 1;
    cursor: zoom-in;
}
.gallery-item:nth-child(1) { --rotate: 2deg;}
.gallery-item:nth-child(2) { --rotate: -1deg; margin-top: 15px;}
.gallery-item:nth-child(3) { --rotate: 3deg;}
.gallery-item:nth-child(4) { --rotate: -3deg; margin-top: 25px;}
.gallery-item:nth-child(5) { --rotate: 1deg;}
.gallery-item:nth-child(6) { --rotate: -2deg; margin-top: 10px;}


.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease-in-out;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/* Lightbox Modal */
.lightbox-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    padding-top: 60px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(var(--outline-black), 0.9);
}

.lightbox-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 900px;
    border: var(--panel-border-thickness) solid var(--primary-yellow);
    box-shadow: 20px 20px 0px var(--primary-red);
    animation: zoomIn 0.3s ease-out;
}

@keyframes zoomIn {
    from { transform: scale(0.8); opacity: 1; }
    to { transform: scale(1); opacity: 1; }
}

.lightbox-modal .close-button {
    position: absolute;
    top: 25px;
    right: 35px;
    color: var(--primary-red);
    font-size: 50px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
    -webkit-text-stroke: 2px var(--outline-black);
    text-shadow: 3px 3px 0px var(--primary-yellow);
}

.lightbox-modal .close-button:hover,
.lightbox-modal .close-button:focus {
    color: var(--primary-yellow);
    text-decoration: none;
    cursor: pointer;
}


/* Testimonials Section: VIDEO TESTIMONIALS (simulated) */
.testimonials-section {
    background-color: var(--bg-light);
    border-bottom: var(--panel-border-thickness) solid var(--outline-black);
    padding-top: 100px;
    padding-bottom: 100px;
}
.testimonials-section h3 {
    text-align: center;
    margin-top: 40px;
    margin-bottom: 30px;
    font-size: 2.5em;
    color: var(--primary-blue);
    text-shadow: 2px 2px 0px var(--primary-red), 4px 4px 0px var(--outline-black);
}

.video-testimonials.card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 60px;
    justify-items: center;
}

.testimonial-card.card-item {
    background-color: var(--primary-red);
    padding: 30px;
    border: var(--panel-border-thickness) solid var(--outline-black);
    box-shadow: 12px 12px 0px var(--primary-yellow);
    text-align: center;
    position: relative;
    transform: rotate(var(--rotate, 0deg));
    width: 100%;
    max-width: 380px;
    color: var(--bg-light);
    z-index: 1;
}
.testimonial-card.card-item:nth-child(1) { --rotate: -2deg; margin-top: 10px;}
.testimonial-card.card-item:nth-child(2) { --rotate: 3deg;}
.testimonial-card.card-item:nth-child(3) { --rotate: -1deg; margin-top: 20px;}


.video-thumbnail {
    position: relative;
    width: 100%;
    height: 200px;
    background-color: var(--text-dark);
    margin-bottom: 20px;
    overflow: hidden;
    cursor: pointer;
    border: 3px solid var(--outline-black);
    box-shadow: 5px 5px 0px var(--primary-blue);
}

.video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease-in-out;
}

.video-thumbnail:hover img {
    transform: scale(1.05);
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background-color: var(--bg-light);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;.9;
    transition: opacity 0.3s ease-in-out;
    border: var(--panel-border-thickness) solid var(--outline-black);
    box-shadow: 5px 5px 0px var(--primary-blue);
}

.play-button::before {
    content: '';
    width: 0;
    height: 0;
    border-top: 15px solid transparent;
    border-bottom: 15px solid transparent;
    border-left: 25px solid var(--primary-red);
    margin-left: 5px; /* Adjust for triangle center */
}

.video-thumbnail:hover .play-button {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.1);
}

.testimonial-card.card-item h3 {
    font-size: 1.8em;
    color: var(--primary-yellow);
    text-shadow: 2px 2px 0px var(--text-dark);
}

.testimonial-card.card-item .quote {
    font-family: var(--font-body);
    font-style: italic;
    font-size: 1.1em;
    margin-bottom: 15px;
    color: var(--bg-light);
    background-color: rgba(var(--text-dark), 0.3);
    padding: 10px;
    border-radius: 5px;
}

.testimonial-card.card-item .author {
    font-weight: 700;
    color: var(--primary-yellow);
    font-size: 1em;
}


/* FAQ Section: ACCORDION STYLE */
.faq-section {
    background-color: var(--primary-yellow);
    border-bottom: var(--panel-border-thickness) solid var(--outline-black);
    padding-top: 100px;
    padding-bottom: 100px;
    position: relative;
    z-index: 1;
}
.faq-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml;utf8,<svg width="100%" height="100%" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="halftone-faq" patternUnits="userSpaceOnUse" width="10" height="10"><rect x="0" y="0" width="5" height="5" fill="%23000000" opacity="0.1"/><rect x="5" y="5" width="5" height="5" fill="%23000000" opacity="0.1"/></pattern></defs><rect x="0" y="0" width="100%" height="100%" fill="%23F4D35E"/><rect x="0" y="0" width="100%" height="100%" fill="url(%23halftone-faq)"/></svg>');
    background-size: cover;
    opacity: 1;.7;
    z-index: -1;
}

.accordion-container {
    max-width: 800px;
    margin: 60px auto 0 auto;
}

.accordion-item {
    background-color: var(--bg-light);
    margin-bottom: 25px;
    border: var(--panel-border-thickness) solid var(--outline-black);
    box-shadow: 10px 10px 0px var(--primary-red);
    transform: rotate(var(--rotate, 0deg));
    z-index: 1;
}
.accordion-item:nth-child(even) { --rotate: -2deg; margin-left: 20px;}
.accordion-item:nth-child(odd) { --rotate: 1deg; margin-right: 20px;}


.faq-question {
    background-color: var(--primary-blue);
    color: var(--bg-light);
    padding: 20px 30px;
    width: 100%;
    text-align: left;
    border: none;
    outline: none;
    cursor: pointer;
    font-size: 1.3em;
    font-family: var(--font-alt);
    border-bottom: 3px solid var(--outline-black);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    -webkit-text-stroke: 0.5px var(--outline-black);
    text-stroke: 0.5px var(--outline-black);
    text-shadow: 2px 2px 0px var(--text-dark);
}

.faq-question h3 {
    font-size: 1em; /* Adjust to fit button styling */
    margin: 0;
    color: var(--primary-yellow);
    -webkit-text-stroke: 0px; /* Remove text-stroke for inner h3 */
    text-stroke: 0px;
    text-shadow: none;
    transition: color 0.2s ease-out;
}
.faq-question:hover h3 {
    color: var(--bg-light);
}

.faq-question::after {
    content: '+';
    font-size: 2em;
    font-weight: bold;
    color: var(--primary-yellow);
    transition: transform 0.3s ease;
    -webkit-text-stroke: 0.5px var(--outline-black);
    text-stroke: 0.5px var(--outline-black);
    text-shadow: 1px 1px 0px var(--text-dark);
}

.faq-question[aria-expanded="true"]::after {
    content: '-';
    transform: rotate(180deg);
}

.faq-answer {
    padding: 20px 30px;
    background-color: var(--bg-light);
    border-top: 1px solid var(--primary-blue);
    color: var(--text-dark);
    font-size: 1.1em;
    line-height: 1.7;
}

/* Newsletter Section: POPUP MODAL (Trigger section) */
.newsletter-trigger-section {
    text-align: center;
    background-color: var(--text-dark);
    color: var(--bg-light);
    padding: 80px 20px;
    border-bottom: var(--panel-border-thickness) solid var(--outline-black);
    position: relative;
    z-index: 1;
}
.newsletter-trigger-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml;utf8,<svg width="100%" height="100%" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="halftone-dark" patternUnits="userSpaceOnUse" width="10" height="10"><circle cx="5" cy="5" r="2" fill="%23ffffff" opacity="0.1"/></pattern></defs><rect x="0" y="0" width="100%" height="100%" fill="%231D3557"/><rect x="0" y="0" width="100%" height="100%" fill="url(%23halftone-dark)"/></svg>');
    background-size: cover;
    opacity: 1;.7;
    z-index: -1;
}

.newsletter-trigger-section .section-title {
    color: var(--primary-yellow);
    text-shadow: 3px 3px 0px var(--primary-red), 6px 6px 0px var(--outline-black);
}
.newsletter-trigger-section .section-description {
    background-color: rgba(0,0,0,0.4);
    color: var(--bg-light);
    border: 2px dashed var(--primary-yellow);
}

#open-newsletter-modal {
    margin-top: 40px;
    background-color: var(--primary-blue);
    box-shadow: 8px 8px 0px var(--primary-yellow);
}
#open-newsletter-modal:hover {
    background-color: var(--primary-red);
    box-shadow: 12px 12px 0px var(--primary-yellow);
}

/* Modal Overlay (Newsletter) */
.modal-overlay {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1000; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(var(--outline-black), 0.8); /* Black w/ opacity */
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.modal-content {
    background-color: var(--primary-yellow);
    padding: 40px;
    border: var(--panel-border-thickness) solid var(--outline-black);
    box-shadow: 20px 20px 0px var(--primary-red);
    position: relative;
    text-align: center;
    max-width: 600px;
    width: 90%;
    transform: rotate(2deg);
    animation: popIn 0.3s ease-out;
}

@keyframes popIn {
    from { transform: rotate(10deg) scale(0.7); opacity: 1; }
    to { transform: rotate(2deg) scale(1); opacity: 1; }
}

.modal-content .close-button {
    position: absolute;
    top: -15px; /* Adjust to be outside the box */
    right: -15px;
    background-color: var(--primary-red);
    color: var(--bg-light);
    border: var(--panel-border-thickness) solid var(--outline-black);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2.5em;
    cursor: pointer;
    box-shadow: 8px 8px 0px var(--text-dark);
    line-height: 1; /* Adjust line-height to center X */
    padding-bottom: 5px;
}

.modal-content .close-button:hover {
    background-color: var(--primary-blue);
    box-shadow: 10px 10px 0px var(--primary-red);
}

.modal-title {
    font-size: 3em;
    color: var(--primary-red);
    text-shadow: 3px 3px 0px var(--text-dark);
    margin-bottom: 20px;
}

.modal-content p {
    font-size: 1.1em;
    margin-bottom: 20px;
    color: var(--text-dark);
    line-height: 1.7;
}
.modal-content .no-form-text {
    font-size: 0.9em;
    color: var(--primary-red);
    font-style: italic;
    margin-top: 15px;
    border: 1px dashed var(--primary-red);
    padding: 10px;
    background-color: rgba(255,255,255,0.7);
}


/* Contact Section: MAP INTEGRATION (static image) */
.contact-section {
    background-color: var(--primary-red);
    padding-top: 100px;
    padding-bottom: 100px;
    border-bottom: var(--panel-border-thickness) solid var(--outline-black);
    position: relative;
    z-index: 1;
}
.contact-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml;utf8,<svg width="100%" height="100%" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="halftone-contact" patternUnits="userSpaceOnUse" width="10" height="10"><circle cx="2" cy="2" r="1.5" fill="%23ffffff" opacity="0.1"/><circle cx="7" cy="7" r="1.5" fill="%23ffffff" opacity="0.1"/></pattern></defs><rect x="0" y="0" width="100%" height="100%" fill="%23E63946"/><rect x="0" y="0" width="100%" height="100%" fill="url(%23halftone-contact)"/></svg>');
    background-size: cover;
    opacity: 1;.7;
    z-index: -1;
}

.contact-section .section-title {
    color: var(--primary-yellow);
    text-shadow: 3px 3px 0px var(--primary-blue), 6px 6px 0px var(--outline-black);
}
.contact-section .section-description {
    background-color: rgba(0,0,0,0.4);
    color: var(--bg-light);
    border: 2px dashed var(--primary-yellow);
}

.map-container {
    position: relative;
    max-width: 1000px;
    margin: 60px auto 0 auto;
    border: var(--panel-border-thickness) solid var(--outline-black);
    box-shadow: 20px 20px 0px var(--text-dark);
    overflow: hidden;
    transform: rotate(1deg);
}

.map-container img {
    width: 100%;
    height: 500px; /* Large map height */
    object-fit: cover;
    display: block;
    filter: grayscale(80%) brightness(120%) contrast(150%); /* Comic map style */
}

.contact-info-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-3deg);
    background-color: var(--primary-yellow);
    padding: 30px;
    border: var(--panel-border-thickness) solid var(--outline-black);
    box-shadow: 15px 15px 0px var(--primary-red);
    text-align: center;
    max-width: 450px;
    width: 80%;
    color: var(--text-dark);
}

.contact-info-overlay h3 {
    font-size: 2.2em;
    color: var(--primary-blue);
    text-shadow: 2px 2px 0px var(--text-dark);
    margin-bottom: 20px;
}

.contact-info-overlay p {
    font-size: 1.1em;
    margin-bottom: 25px;
    line-height: 1.6;
}
.contact-info-overlay .cta-button {
    background-color: var(--primary-blue);
    box-shadow: 8px 8px 0px var(--primary-yellow);
}
.contact-info-overlay .cta-button:hover {
    background-color: var(--primary-red);
    box-shadow: 12px 12px 0px var(--primary-yellow);
}

/* Footer */
.main-footer {
    background-color: var(--outline-black);
    color: var(--bg-light);
    padding: 30px 0;
    text-align: center;
    border-top: var(--panel-border-thickness) solid var(--primary-blue);
}

.main-footer .container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.main-footer p {
    margin-bottom: 15px;
    font-size: 0.95em;
    -webkit-text-stroke: 0.5px var(--primary-blue);
    text-stroke: 0.5px var(--primary-blue);
}

.footer-nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
}

.footer-nav ul li {
    margin: 0 15px;
}

.footer-nav ul li a {
    color: var(--primary-yellow);
    font-size: 1em;
    font-family: var(--font-body);
    font-weight: 700;
    -webkit-text-stroke: 0.5px var(--primary-blue);
    text-stroke: 0.5px var(--primary-blue);
}

.footer-nav ul li a:hover {
    color: var(--primary-red);
    text-decoration: underline;
}

/* Mobile Responsiveness */
@media (max-width: 992px) {
    h1 { font-size: 3em; }
    h2 { font-size: 2.2em; }
    h3 { font-size: 1.8em; }

    .main-nav ul li {
        margin-left: 15px;
    }

    .hero-content h1 {
        font-size: 3.5em;
    }
    .hero-content p {
        font-size: 1.1em;
    }

    .card-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    .about-card.card-item,
    .feature-item,
    .highlight-card.card-item,
    .testimonial-card.card-item,
    .gallery-item {
        transform: none !important; /* Remove rotation on smaller screens */
        margin: 0 auto 20px auto !important; /* Center and add spacing */
        max-width: 450px; /* Allow wider cards */
        box-shadow: 8px 8px 0px var(--primary-blue); /* Smaller shadow */
    }
    .gallery-item {
        box-shadow: 8px 8px 0px var(--primary-red);
    }
    .feature-icon {
        width: 80px;
        height: 80px;
    }

    .carousel-item {
        margin-right: 15px;
    }
    .carousel-item img {
        height: 350px;
    }
    .carousel-nav {
        padding: 8px 12px;
        font-size: 1em;
        left: -15px;
        right: -15px;
        transform: translateY(-50%) rotate(0deg) !important;
    }

    .lightbox-content {
        width: 90%;
    }

    .accordion-item {
        margin-left: 0px !important;
        margin-right: 0px !important;
        transform: none !important;
        box-shadow: 8px 8px 0px var(--primary-red);
    }
    .accordion-item:nth-child(even), .accordion-item:nth-child(odd) {
        margin: 0 auto 25px auto !important;
        max-width: 700px;
    }

    .contact-info-overlay {
        transform: translate(-50%, -50%) rotate(0deg);
        box-shadow: 10px 10px 0px var(--primary-red);
    }
    .map-container {
        box-shadow: 15px 15px 0px var(--text-dark);
    }
}

@media (max-width: 768px) {
    .main-header .container {
        flex-direction: column;
        text-align: center;
    }
    .logo {
        margin-bottom: 15px;
    }
    .main-nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    .main-nav ul li {
        margin: 5px 10px;
    }

    .hero-content {
        padding: 30px;
        transform: rotate(0deg);
        box-shadow: 10px 10px 0px var(--primary-red);
    }
    .hero-content h1 {
        font-size: 2.8em;
    }

    .card-grid {
        grid-template-columns: 1fr; /* Stack cards on mobile */
        gap: 20px;
    }
    .about-card.card-item,
    .feature-item,
    .highlight-card.card-item,
    .testimonial-card.card-item,
    .gallery-item {
        box-shadow: 5px 5px 0px var(--primary-blue);
        margin-bottom: 15px !important;
    }
    .gallery-item {
        box-shadow: 5px 5px 0px var(--primary-red);
    }

    .carousel-item img {
        height: 250px;
    }
    .carousel-nav {
        left: -5px;
        right: -5px;
    }

    .lightbox-modal .close-button {
        font-size: 40px;
        top: 15px;
        right: 25px;
    }

    .contact-info-overlay {
        width: 90%;
        padding: 20px;
        box-shadow: 8px 8px 0px var(--primary-red);
    }
    .contact-info-overlay h3 {
        font-size: 1.8em;
    }
    .map-container {
        box-shadow: 10px 10px 0px var(--text-dark);
    }

    .footer-nav ul {
        flex-direction: column;
    }
    .footer-nav ul li {
        margin: 5px 0;
    }
    .modal-content {
        padding: 30px;
        transform: rotate(0deg);
        box-shadow: 15px 15px 0px var(--primary-red);
    }
    .modal-title {
        font-size: 2.2em;
    }
    .modal-content .close-button {
        width: 40px;
        height: 40px;
        font-size: 2em;
        top: -10px;
        right: -10px;
        box-shadow: 5px 5px 0px var(--text-dark);
    }
}

@media (max-width: 480px) {
    h1 { font-size: 2.5em; }
    h2 { font-size: 1.8em; }
    h3 { font-size: 1.5em; }
    .section-title { font-size: 2em; }
    .section-description { font-size: 0.9em; }

    .logo { font-size: 2em; }
    .main-nav ul li {
        margin: 5px 5px;
    }
    .main-nav ul li a {
        font-size: 0.9em;
    }

    .hero-content h1 {
        font-size: 2.2em;
        -webkit-text-stroke: 0.5px var(--outline-black);
        text-stroke: 0.5px var(--outline-black);
        text-shadow: 2px 2px 0px var(--primary-yellow), 4px 4px 0px var(--outline-black);
    }
    .hero-content p {
        font-size: 1em;
    }
    .cta-button {
        padding: 12px 25px;
        font-size: 1em;
        box-shadow: 5px 5px 0px var(--primary-blue);
    }
    .cta-button:hover {
        box-shadow: 8px 8px 0px var(--primary-red);
    }

    .about-card.card-item,
    .feature-item,
    .highlight-card.card-item,
    .testimonial-card.card-item,
    .gallery-item {
        padding: 20px;
        border-width: 3px;
    }
    .feature-icon {
        width: 70px;
        height: 70px;
    }

    .carousel-item img {
        height: 200px;
    }
    .carousel-caption {
        padding: 10px;
    }
    .carousel-caption h4 {
        font-size: 1.2em;
    }
    .carousel-caption p {
        font-size: 0.8em;
    }
    .carousel-nav {
        padding: 5px 8px;
        font-size: 0.8em;
    }

    .lightbox-content {
        width: 95%;
    }

    .faq-question {
        padding: 15px 20px;
        font-size: 1.1em;
    }
    .faq-question::after {
        font-size: 1.5em;
    }
    .faq-answer {
        padding: 15px 20px;
        font-size: 0.95em;
    }

    .contact-info-overlay {
        padding: 15px;
    }
    .contact-info-overlay h3 {
        font-size: 1.5em;
    }
    .contact-info-overlay p {
        font-size: 0.9em;
    }
    .map-container img {
        height: 350px;
    }

    .modal-content {
        padding: 20px;
        border-width: 3px;
        box-shadow: 10px 10px 0px var(--primary-red);
    }
    .modal-title {
        font-size: 1.8em;
        text-shadow: 2px 2px 0px var(--text-dark);
    }
    .modal-content p {
        font-size: 1em;
    }
}

/* 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;
}
