:root {
    --red: #FF4136; /* Vibrant Red */
    --teal: #00ADB5; /* Bright Teal */
    --black: #222831; /* Deep Black */
    --yellow: #FFC947; /* Energetic Yellow */
    --white: #EEEEEE; /* Off-white for contrast */

    --font-display: 'Bebas Neue', sans-serif;
    --font-serif: 'Playfair Display', serif;
    --font-sans: 'Roboto', sans-serif;
}

/* Base Styles - Zero Margins, Chaotic Start */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    line-height: 1.6;
    color: var(--white);
    background-color: var(--black);
    overflow-x: hidden; /* Prevent horizontal scroll from overlapping elements */
    position: relative;
}

a {
    color: var(--teal);
    text-decoration: none;
    transition: color 0.3s ease, transform 0.1s ease;
}

a:hover {
    color: var(--red);
    transform: translateY(-2px);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    line-height: 1.2;
    color: var(--yellow);
    margin-bottom: 0.5em;
    position: relative;
    z-index: 2; /* Ensure headings are above some background chaos */
    text-transform: uppercase;
}

p {
    margin-bottom: 1em;
    position: relative;
    z-index: 1;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* Utility Classes for Chaos */
.flicker-animation {
    animation: flicker 0.5s infinite alternate steps(1);
}

@keyframes flicker {
    0% { opacity: 1; }
    50% { opacity: 1;.8; }
    100% { opacity: 1; }
}

.jumpy-hover {
    transition: transform 0.1s cubic-bezier(.68,-0.55,.27,1.55);
}

.jumpy-hover:hover {
    transform: translateY(-5px) scale(1.03);
}

/* Header & Navigation */
.header {
    background-color: var(--black);
    padding: 1rem 2rem;
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 2px solid var(--red); /* Chaotic touch */
}

.main-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

.logo {
    font-family: var(--font-display);
    font-size: 2.5em;
    color: var(--yellow);
    letter-spacing: 2px;
    position: relative;
    padding-right: 15px; /* Visual spacing due to overlapping style */
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 1.5rem;
    position: relative;
    left: -10px; /* Intentional slight overlap */
}

.nav-links a {
    font-family: var(--font-sans);
    font-weight: 500;
    color: var(--white);
    font-size: 1.1em;
    text-transform: uppercase;
    position: relative;
    padding: 5px 0;
    border-bottom: 2px solid transparent;
    transition: all 0.2s ease;
}

.nav-links a:hover {
    color: var(--teal);
    border-color: var(--teal);
    transform: rotate(-2deg); /* Jumpy hover effect */
}

/* Section Common Styles */
section {
    position: relative;
    padding: 80px 5vw; /* Generous padding */
    overflow: hidden; /* Important for containing absolute elements */
    border-bottom: 1px dashed var(--yellow); /* Chaotic separator */
}

.section-title {
    font-size: 3.5em;
    text-align: center;
    margin-bottom: 1.5em;
    position: relative;
    z-index: 5;
    text-shadow: 4px 4px 0px var(--teal); /* Layered text effect */
    letter-spacing: 3px;
    font-family: var(--font-serif);
    transform: rotate(-3deg); /* Slight rotation for chaos */
    left: -20px; /* Offset */
}

.sub-section-title {
    font-size: 2.2em;
    color: var(--red);
    margin-top: 2em;
    margin-bottom: 1em;
    font-family: var(--font-display);
    letter-spacing: 1.5px;
    position: relative;
    left: 10px;
}

.section-description {
    max-width: 800px;
    margin: 0 auto 2em auto;
    text-align: center;
    font-size: 1.1em;
    line-height: 1.8;
    color: var(--white);
    opacity: 1;.9;
    position: relative;
    z-index: 1;
    top: -10px; /* Overlap with title */
}

.cta-button {
    display: inline-block;
    background-color: var(--red);
    color: var(--white);
    font-family: var(--font-display);
    font-size: 1.4em;
    padding: 0.8em 1.8em;
    border: none;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    z-index: 10;
    overflow: hidden;
    transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 5px 5px 0px var(--teal); /* Layered shadow */
    margin-top: 2em;
    transform: rotate(2deg); /* Chaotic rotation */
}

.cta-button:hover {
    background-color: var(--yellow);
    color: var(--black);
    transform: translateY(-5px) rotate(0deg) scale(1.05); /* Jumpy hover, straighten */
    box-shadow: 8px 8px 0px var(--red);
}

/* HERO SECTION: PARALLAX SCROLL */
.hero-section {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    position: relative;
    overflow: hidden;
    padding: 0; /* Hero takes full height */
    border-bottom: none;
}

.parallax-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    z-index: 0;
    filter: brightness(0.7) grayscale(0.2);
    transform: scale(1.1); /* Slight zoom for initial parallax effect */
    animation: zoomOut 60s infinite alternate; /* Slow, subtle background motion */
}

@keyframes zoomOut {
    0% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
}

.hero-text-wrap {
    background: rgba(var(--black-rgb), 0.7); /* Use rgba for transparency with black */
    padding: 40px 30px;
    border: 3px solid var(--red);
    position: relative;
    z-index: 5;
    margin-bottom: -50px; /* Overlap with cards */
    transform: rotate(-1deg); /* Slight tilt */
    box-shadow: 10px 10px 0px var(--teal);
    max-width: 900px;
    width: 100%;
}

.hero-section h1 {
    font-family: var(--font-serif);
    font-size: 5.5em;
    margin-bottom: 0.2em;
    color: var(--yellow);
    text-shadow: 6px 6px 0px var(--red);
    position: relative;
    z-index: 2;
    line-height: 0.9;
    transform: rotate(2deg);
    right: -15px; /* Intentional offset */
}

.hero-paragraph {
    font-family: var(--font-sans);
    font-size: 1.2em;
    line-height: 1.7;
    margin-bottom: 1.5em;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    color: var(--white);
    opacity: 1;.95;
    position: relative;
    z-index: 1;
    text-align: left;
    padding-left: 15px;
}

.hero-cards {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 50px; /* Overlap with text */
    position: relative;
    z-index: 15; /* Above text-wrap */
    flex-wrap: wrap;
}

.hero-cards .card {
    background-color: var(--teal);
    color: var(--black);
    padding: 25px 30px;
    border: 2px solid var(--yellow);
    box-shadow: 8px 8px 0px var(--red);
    transform: rotate(5deg);
    position: relative;
    transition: transform 0.2s ease, background-color 0.2s ease;
    width: 300px; /* Fixed width for card */
    max-width: 100%;
    margin-bottom: 20px;
    font-family: var(--font-sans);
}

.hero-cards .card:nth-child(even) {
    background-color: var(--red);
    color: var(--white);
    box-shadow: 8px 8px 0px var(--teal);
    transform: rotate(-4deg);
    top: -20px;
}

.hero-cards .card:hover {
    transform: translateY(-10px) scale(1.05) rotate(0deg);
    background-color: var(--yellow);
    color: var(--black);
    z-index: 20;
}

.hero-cards .card h3 {
    font-family: var(--font-display);
    font-size: 1.8em;
    color: inherit;
    margin-bottom: 0.5em;
    letter-spacing: 1px;
}

.hero-cards .card p {
    font-size: 1.1em;
    line-height: 1.4;
    color: inherit;
    opacity: 1;.9;
}

/* ABOUT SECTION */
.about-section {
    background-color: var(--black);
    padding-top: 150px; /* Extra padding for overlap */
    position: relative;
    z-index: 10; /* Ensure it overlaps hero if needed */
}

.about-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.about-text {
    flex: 1 1 55%;
    max-width: 700px;
    position: relative;
    z-index: 2;
    padding: 20px;
    background: rgba(var(--black-rgb), 0.8);
    border: 2px solid var(--teal);
    box-shadow: -8px -8px 0px var(--red);
    transform: rotate(-2deg);
    margin-left: -30px; /* Overlap */
}

.about-text p {
    font-family: var(--font-sans);
    font-size: 1.1em;
    line-height: 1.7;
    margin-bottom: 1em;
    text-align: left;
    color: var(--white);
}

.about-text ul {
    list-style: none;
    margin-top: 1.5em;
    padding-left: 0;
    border-left: 3px solid var(--yellow);
    padding-left: 15px;
}

.about-text ul li {
    font-family: var(--font-sans);
    font-size: 1.1em;
    margin-bottom: 0.8em;
    color: var(--white);
    position: relative;
    left: 5px; /* Slight offset */
}

.about-image-stack {
    flex: 1 1 35%;
    min-width: 300px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 500px; /* Fixed height for visual consistency */
}

.about-img-1 {
    position: absolute;
    width: 70%;
    height: 90%;
    z-index: 2;
    border: 4px solid var(--red);
    box-shadow: 10px 10px 0px var(--yellow);
    transform: rotate(8deg);
    clip-path: polygon(10% 0%, 100% 0%, 90% 100%, 0% 100%); /* Dynamic cutout */
}

.about-img-2 {
    position: absolute;
    width: 60%;
    height: 80%;
    z-index: 3;
    border: 4px solid var(--teal);
    box-shadow: -10px -10px 0px var(--red);
    transform: rotate(-5deg) translate(20px, 30px);
    clip-path: polygon(0% 15%, 15% 0%, 100% 85%, 85% 100%); /* Dynamic cutout */
}

/* FEATURES SECTION: BENEFIT FOCUS */
.features-section {
    background-color: var(--black);
    padding-top: 100px;
    padding-bottom: 100px;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 3em auto;
    position: relative;
    z-index: 1;
}

.feature-card {
    background-color: var(--teal);
    color: var(--black);
    padding: 30px;
    border: 3px solid var(--red);
    box-shadow: 12px 12px 0px var(--yellow);
    transform: rotate(3deg);
    position: relative;
    transition: all 0.2s ease-in-out;
    overflow: hidden;
    font-family: var(--font-sans);
}

.feature-card:nth-child(even) {
    background-color: var(--red);
    color: var(--white);
    box-shadow: 12px 12px 0px var(--teal);
    transform: rotate(-2deg) translateY(10px);
}

.feature-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    margin-bottom: 20px;
    border: 2px solid var(--black);
    filter: grayscale(0.2);
    transition: filter 0.3s ease, transform 0.3s ease;
    transform: scale(1.05) rotate(-2deg); /* Initial chaotic image positioning */
}

.feature-card:hover img {
    filter: grayscale(0);
    transform: scale(1) rotate(0deg);
}

.feature-card h3 {
    font-family: var(--font-display);
    font-size: 2em;
    color: inherit;
    margin-bottom: 0.8em;
    letter-spacing: 1px;
    text-shadow: 2px 2px 0px rgba(0,0,0,0.2);
}

.feature-card p {
    font-size: 1em;
    line-height: 1.6;
    color: inherit;
    opacity: 1;.9;
}

/* SERVICES SECTION: FEATURE HIGHLIGHTS */
.services-section {
    background-color: var(--black);
    padding-top: 100px;
    padding-bottom: 100px;
}

.service-highlights {
    max-width: 1200px;
    margin: 3em auto;
    display: flex;
    flex-direction: column;
    gap: 80px; /* More space for alternating layouts */
}

.service-block {
    display: flex;
    align-items: center;
    gap: 50px;
    background-color: var(--black);
    border: 4px solid var(--yellow);
    box-shadow: 15px 15px 0px var(--red);
    padding: 30px;
    position: relative;
    z-index: 1;
    overflow: hidden;
    transform: rotate(1deg);
}

.service-block:nth-child(even) {
    flex-direction: row-reverse;
    border-color: var(--red);
    box-shadow: -15px 15px 0px var(--teal);
    transform: rotate(-2deg);
}

.service-block img {
    flex: 1 1 50%;
    min-width: 300px;
    height: 350px;
    object-fit: cover;
    border: 2px solid var(--black);
    transition: transform 0.3s ease, filter 0.3s ease;
    filter: brightness(0.8);
    transform: scale(1.02) rotate(-3deg);
}

.service-block:nth-child(even) img {
    transform: scale(1.02) rotate(3deg);
}

.service-block:hover img {
    transform: scale(1) rotate(0deg);
    filter: brightness(1);
}

.service-text {
    flex: 1 1 50%;
    color: var(--white);
    padding: 20px 0;
    position: relative;
    z-index: 2;
}

.service-text h3 {
    font-family: var(--font-serif);
    font-size: 2.8em;
    color: var(--yellow);
    margin-bottom: 0.5em;
    text-shadow: 3px 3px 0px var(--teal);
    letter-spacing: 1px;
    transform: rotate(-1deg);
    margin-left: -15px; /* Overlap */
}

.service-text p {
    font-size: 1.1em;
    line-height: 1.7;
    margin-bottom: 1em;
    color: var(--white);
    opacity: 1;.9;
    text-align: justify;
}

/* PORTFOLIO/GALLERY: INTERACTIVE SHOWCASE */
.gallery-section {
    background-color: var(--black);
    padding-top: 100px;
    padding-bottom: 100px;
    border-bottom: 1px dashed var(--red);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 3em auto;
    position: relative;
    z-index: 1;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border: 5px solid var(--teal);
    box-shadow: 10px 10px 0px var(--yellow);
    cursor: pointer;
    transform: rotate(2deg); /* Initial tilt */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:nth-child(even) {
    transform: rotate(-3deg);
    box-shadow: -10px 10px 0px var(--red);
}

.gallery-item img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    filter: brightness(0.7);
    transition: transform 0.3s ease, filter 0.3s ease;
}

.gallery-item .overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(var(--red-rgb), 0.8);
    color: var(--white);
    padding: 15px;
    font-family: var(--font-display);
    font-size: 1.5em;
    text-align: center;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    letter-spacing: 1px;
}

.gallery-item:hover {
    transform: translateY(-10px) rotate(0deg) scale(1.03); /* Jumpy hover, straighten, scale */
    box-shadow: 0px 0px 20px rgba(var(--yellow-rgb), 0.8);
}

.gallery-item:hover img {
    transform: scale(1.1);
    filter: brightness(1);
}

.gallery-item:hover .overlay {
    transform: translateY(0);
    background-color: rgba(var(--teal-rgb), 0.9);
}

/* TEAM SECTION: CIRCULAR PHOTOS */
.team-section {
    background-color: var(--black);
    padding-top: 100px;
    padding-bottom: 100px;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 3em auto;
    text-align: center;
}

.team-member {
    background-color: var(--black);
    color: var(--white);
    padding: 30px;
    border: 3px solid var(--teal);
    box-shadow: 8px 8px 0px var(--yellow);
    transform: rotate(-1deg);
    transition: all 0.2s ease-in-out;
    position: relative;
    z-index: 1;
}

.team-member:nth-child(even) {
    border-color: var(--red);
    box-shadow: -8px 8px 0px var(--teal);
    transform: rotate(2deg);
}

.team-member:hover {
    transform: translateY(-8px) rotate(0deg) scale(1.02);
    box-shadow: 0px 0px 15px rgba(var(--red-rgb), 0.5);
    z-index: 2;
}

.team-member img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    border: 5px solid var(--red);
    margin: 0 auto 20px auto;
    transition: border-color 0.3s ease, transform 0.3s ease;
    object-fit: cover;
    filter: grayscale(0.3);
    transform: rotate(-5deg); /* Chaotic initial rotation */
}

.team-member:nth-child(even) img {
    border-color: var(--yellow);
    transform: rotate(5deg);
}

.team-member:hover img {
    border-color: var(--teal);
    transform: rotate(0deg) scale(1.05);
    filter: grayscale(0);
}

.team-member h3 {
    font-family: var(--font-display);
    font-size: 2em;
    color: var(--yellow);
    margin-bottom: 0.3em;
    letter-spacing: 1px;
}

.team-member p {
    font-family: var(--font-sans);
    font-size: 1.1em;
    color: var(--teal);
    margin-bottom: 1em;
}

.team-member .bio {
    font-size: 0.95em;
    line-height: 1.5;
    color: var(--white);
    opacity: 1;.8;
}

/* FAQ SECTION: SIMPLE LIST */
.faq-section {
    background-color: var(--black);
    padding-top: 100px;
    padding-bottom: 100px;
    border-bottom: 1px dashed var(--yellow);
}

.faq-list {
    max-width: 900px;
    margin: 3em auto;
    position: relative;
    z-index: 1;
}

.faq-item {
    background-color: var(--black);
    border: 2px solid var(--teal);
    margin-bottom: 20px;
    box-shadow: 5px 5px 0px var(--red);
    transform: rotate(0.5deg);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    overflow: hidden;
}

.faq-item:nth-child(even) {
    border-color: var(--yellow);
    box-shadow: -5px 5px 0px var(--teal);
    transform: rotate(-0.5deg);
}

.faq-item:hover {
    transform: translateY(-5px) rotate(0deg);
    box-shadow: 0px 0px 10px rgba(var(--yellow-rgb), 0.5);
}

.faq-question {
    width: 100%;
    background-color: var(--black);
    color: var(--yellow);
    padding: 20px 30px;
    font-family: var(--font-display);
    font-size: 1.6em;
    text-align: left;
    border: none;
    cursor: pointer;
    outline: none;
    transition: background-color 0.3s ease, color 0.3s ease;
    position: relative;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.faq-question:hover {
    background-color: var(--teal);
    color: var(--black);
}

.faq-question::after {
    content: '+';
    position: absolute;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5em;
    font-weight: bold;
    transition: transform 0.3s ease;
}

.faq-question[aria-expanded="true"]::after {
    content: '-';
    transform: translateY(-50%) rotate(0deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
    background-color: rgba(var(--teal-rgb), 0.2);
    padding: 0 30px;
    color: var(--white);
    font-family: var(--font-sans);
    font-size: 1.1em;
    line-height: 1.7;
}

.faq-answer[aria-hidden="false"] {
    padding-top: 20px;
    padding-bottom: 20px;
}

.faq-answer p {
    margin-bottom: 0;
}

/* NEWSLETTER SECTION: INCENTIVE FOCUS */
.newsletter-section {
    background-color: var(--black);
    padding-top: 100px;
    padding-bottom: 100px;
    text-align: center;
    border-bottom: 1px dashed var(--teal);
}

.newsletter-section .section-title {
    color: var(--red);
    text-shadow: 4px 4px 0px var(--yellow);
}

/* CONTACT SECTION: MULTI COLUMN */
.contact-section {
    background-color: var(--black);
    padding-top: 100px;
    padding-bottom: 100px;
    text-align: center;
}

.contact-section .section-title {
    color: var(--teal);
    text-shadow: 4px 4px 0px var(--red);
}

.contact-columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 3em auto;
}

.contact-info-block {
    background-color: var(--black);
    border: 3px solid var(--yellow);
    box-shadow: 10px 10px 0px var(--teal);
    padding: 30px;
    color: var(--white);
    text-align: left;
    transform: rotate(-1.5deg);
    position: relative;
    z-index: 1;
    transition: all 0.2s ease;
}

.contact-info-block:nth-child(even) {
    border-color: var(--red);
    box-shadow: -10px 10px 0px var(--yellow);
    transform: rotate(1.5deg);
}

.contact-info-block:hover {
    transform: translateY(-8px) rotate(0deg);
    box-shadow: 0px 0px 15px rgba(var(--yellow-rgb), 0.5);
    z-index: 2;
}

.contact-info-block h3 {
    font-family: var(--font-display);
    font-size: 2em;
    color: var(--yellow);
    margin-bottom: 0.5em;
    letter-spacing: 1px;
}

.contact-info-block p {
    font-family: var(--font-sans);
    font-size: 1.1em;
    line-height: 1.6;
    margin-bottom: 1.5em;
    color: var(--white);
    opacity: 1;.9;
}

.contact-link {
    display: inline-block;
    color: var(--teal);
    font-family: var(--font-display);
    font-size: 1.2em;
    text-transform: uppercase;
    border-bottom: 2px solid var(--teal);
    padding-bottom: 5px;
    transition: all 0.2s ease;
}

.contact-link:hover {
    color: var(--red);
    border-color: var(--red);
    transform: rotate(1deg) translateY(-2px);
}

/* Footer */
.footer {
    background-color: var(--black);
    color: var(--white);
    text-align: center;
    padding: 3em 1em;
    font-size: 0.9em;
    opacity: 1;.8;
    position: relative;
    z-index: 100;
    border-top: 2px solid var(--yellow);
}

.footer p {
    margin: 0;
}

/* RGB definitions for rgba */
:root {
    --red-rgb: 255, 65, 54;
    --teal-rgb: 0, 173, 181;
    --black-rgb: 34, 40, 49;
    --yellow-rgb: 255, 201, 71;
}

/* Mobile Responsiveness */
@media (max-width: 1024px) {
    .main-nav {
        flex-direction: column;
        align-items: flex-start;
    }

    .nav-links {
        margin-top: 1rem;
        flex-wrap: wrap;
        gap: 1rem;
        left: 0;
    }

    .nav-links li {
        margin-right: 15px;
    }

    .hero-section h1 {
        font-size: 4em;
        left: 0;
    }

    .hero-paragraph {
        font-size: 1em;
    }

    .hero-cards {
        flex-direction: column;
        align-items: center;
        margin-top: 30px;
        gap: 20px;
    }

    .hero-cards .card {
        transform: none; /* Less chaos on small screens */
        box-shadow: 5px 5px 0px var(--teal);
    }
    .hero-cards .card:nth-child(even) {
        transform: none;
        box-shadow: 5px 5px 0px var(--red);
    }

    .section-title {
        font-size: 2.8em;
        left: 0;
        transform: rotate(0deg);
    }

    .about-content {
        flex-direction: column;
        gap: 50px;
    }

    .about-text {
        margin-left: 0;
        transform: rotate(0deg);
        box-shadow: 5px 5px 0px var(--teal);
    }

    .about-image-stack {
        height: 400px;
        min-width: unset;
        width: 100%;
    }
    .about-img-1, .about-img-2 {
        transform: none !important; /* Remove chaotic transforms on mobile */
        clip-path: none !important; /* Remove complex clip-path */
        width: 80%;
        height: 80%;
        position: static;
        margin: 10px auto;
    }
    .about-img-2 {
        display: none; /* Hide one image to simplify layout */
    }

    .service-block {
        flex-direction: column;
        gap: 30px;
        transform: rotate(0deg);
        box-shadow: 8px 8px 0px var(--red);
    }

    .service-block:nth-child(even) {
        flex-direction: column;
        transform: rotate(0deg);
        box-shadow: -8px 8px 0px var(--teal);
    }

    .service-block img {
        transform: rotate(0deg);
    }
    .service-block:nth-child(even) img {
        transform: rotate(0deg);
    }

    .service-text h3 {
        font-size: 2em;
        margin-left: 0;
        transform: rotate(0deg);
        text-align: center;
    }
    .service-text p {
        text-align: left;
    }

    .gallery-item, .team-member, .contact-info-block {
        transform: rotate(0deg); /* Straighten elements */
        box-shadow: 5px 5px 0px var(--teal);
    }
    .gallery-item:nth-child(even), .team-member:nth-child(even), .contact-info-block:nth-child(even) {
        transform: rotate(0deg);
        box-shadow: -5px 5px 0px var(--red);
    }

    .faq-question {
        font-size: 1.2em;
        padding: 15px 20px;
    }

    .faq-question::after {
        right: 20px;
    }
}

@media (max-width: 768px) {
    .main-nav {
        justify-content: center;
        text-align: center;
    }

    .logo {
        font-size: 2em;
        padding-right: 0;
    }

    .nav-links {
        justify-content: center;
        gap: 0.8rem;
        margin-top: 1.5rem;
    }

    .nav-links li {
        margin-right: 0;
    }

    .nav-links a {
        font-size: 0.9em;
        padding: 3px 8px;
    }

    .hero-section h1 {
        font-size: 3em;
        text-shadow: 4px 4px 0px var(--red);
    }
    .hero-paragraph {
        font-size: 0.9em;
        padding-left: 0;
    }

    .section-title {
        font-size: 2.2em;
    }
    .sub-section-title {
        font-size: 1.8em;
    }
    .section-description {
        font-size: 1em;
    }

    .hero-text-wrap {
        padding: 30px 20px;
        box-shadow: 5px 5px 0px var(--teal);
    }

    .cta-button {
        font-size: 1.2em;
        padding: 0.7em 1.5em;
        box-shadow: 4px 4px 0px var(--teal);
    }

    .about-text {
        padding: 15px;
    }
    .about-text p {
        font-size: 1em;
    }
    .about-text ul li {
        font-size: 1em;
    }

    .feature-card img {
        height: 180px;
    }
    .feature-card h3 {
        font-size: 1.8em;
    }

    .service-block img {
        height: 300px;
    }
    .service-text h3 {
        font-size: 2.2em;
    }

    .gallery-item img {
        height: 280px;
    }
    .gallery-item .overlay {
        font-size: 1.2em;
        padding: 10px;
    }

    .team-member img {
        width: 150px;
        height: 150px;
        border-width: 4px;
    }
    .team-member h3 {
        font-size: 1.8em;
    }
    .team-member p {
        font-size: 1em;
    }

    .faq-question {
        font-size: 1.1em;
        padding: 12px 15px;
    }
    .faq-answer p {
        font-size: 1em;
    }

    .contact-info-block h3 {
        font-size: 1.8em;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 1rem 1rem;
    }

    .logo {
        font-size: 1.8em;
    }

    .nav-links {
        gap: 0.5rem;
        justify-content: center;
        width: 100%;
    }

    .nav-links a {
        font-size: 0.8em;
        padding: 2px 5px;
    }

    .hero-section h1 {
        font-size: 2.5em;
    }

    .hero-paragraph {
        font-size: 0.9em;
        text-align: center;
    }

    .hero-cards .card {
        width: 90%;
    }

    .section-title {
        font-size: 1.8em;
        text-shadow: 3px 3px 0px var(--teal);
    }

    .sub-section-title {
        font-size: 1.5em;
    }

    .about-img-1 {
        width: 100%;
    }

    .feature-grid, .gallery-grid, .team-grid, .contact-columns {
        gap: 20px;
    }

    .feature-card, .team-member, .contact-info-block {
        padding: 20px;
    }

    .service-block img {
        height: 250px;
    }

    .service-text h3 {
        font-size: 1.8em;
    }

    .faq-question {
        font-size: 1em;
        padding: 10px 15px;
    }
}

/* 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;
}

/* Enhanced: Team grid stabilization */
+ .team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
+ @media (max-width: 900px) { .team-grid { grid-template-columns: repeat(2, 1fr); } }
+ @media (max-width: 600px) { .team-grid { grid-template-columns: 1fr; } }

/* Enhanced: Missing animation classes from JS */
.animate-on-scroll {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.animate-on-scroll.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;
}

/* Accessibility focus outlines */
:focus{outline:2px solid #5ac8fa;outline-offset:2px;}
:focus:not(:focus-visible){outline:none;}
