:root {
    --color-black: #000000;
    --color-white: #FFFFFF;
    --color-red: #FF0000;
    --color-lime: #00FF00;
    --color-cobalt: #0000FF;
    --font-heading: 'Anton', sans-serif;
    --font-body: 'Oswald', sans-serif;
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--color-white);
    background-color: var(--color-black);
    line-height: 1.6;
    overflow-x: hidden; /* Prevent horizontal scroll due to edge-to-edge elements */
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    text-transform: uppercase;
    line-height: 1.1;
    color: var(--color-white); /* Ensure headings are white */
}

a {
    color: var(--color-lime);
    text-decoration: none;
    transition: color 0.1s ease-in-out; /* Instant cut, minimal transition */
}

a:hover {
    color: var(--color-red);
}

.section-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    text-align: center;
    color: var(--color-red);
    margin-bottom: 2rem;
    padding: 2rem 1rem;
    background-color: var(--color-black); /* Ensure visibility */
    border-bottom: 3px solid var(--color-cobalt); /* Exposed structure */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5); /* Layered effect */
    position: relative;
    z-index: 2; /* Overlap effect */
}

.section-intro-paragraph {
    max-width: 900px;
    margin: 0 auto 1.5rem auto;
    text-align: center;
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--color-white);
    padding: 0 1rem;
}

/* Header & Navigation */
.site-header {
    background-color: var(--color-black);
    padding: 1rem 2rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
    border-bottom: 2px solid var(--color-cobalt);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
}

.main-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.nav-logo {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    color: var(--color-lime);
    text-transform: uppercase;
    border: 2px solid var(--color-white);
    padding: 0.2rem 0.5rem;
}

.nav-list {
    list-style: none;
    display: flex;
    gap: 1.5rem;
}

.nav-list a {
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--color-white);
    text-transform: uppercase;
    padding: 0.5rem 0.5rem;
    border-bottom: 2px solid transparent;
}

.nav-list a:hover {
    color: var(--color-red);
    border-bottom-color: var(--color-red);
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    overflow: hidden; /* Ensure image doesn't spill */
}

.hero-background-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    filter: brightness(0.3) contrast(1.2); /* Raw, dark aesthetic */
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 2rem;
    background-color: rgba(0, 0, 0, 0.7); /* Strong overlay */
    border: 3px solid var(--color-red);
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.5);
    margin-top: 60px; /* Offset for fixed header */
}

.hero-title {
    font-size: clamp(3rem, 8vw, 6rem);
    color: var(--color-lime);
    margin-bottom: 1.5rem;
    text-shadow: 4px 4px 0 var(--color-cobalt); /* Brutalist text effect */
}

.hero-description {
    font-size: clamp(1rem, 2vw, 1.3rem);
    line-height: 1.7;
    margin-bottom: 1rem;
    color: var(--color-white);
}

/* Highlights Section (Visual Impact) */
.highlights {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0; /* No spacing */
    background-color: var(--color-black);
    position: relative;
    padding: 0;
    border-top: 5px solid var(--color-red);
    border-bottom: 5px solid var(--color-lime);
    margin-top: -30px; /* Overlapping sections */
    z-index: 5;
}

.highlight-image-wrapper {
    position: relative;
    overflow: hidden;
    min-height: 400px; /* Ensure image has space */
}

.highlight-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(80%) contrast(1.1) brightness(0.6);
    transition: filter 0.3s ease-in-out;
}

.highlight-image:hover {
    filter: grayscale(0%) contrast(1.1) brightness(0.8);
}

.highlight-content {
    padding: 3rem 2rem;
    background-color: var(--color-black);
    position: relative;
    top: -50px; /* Overlap effect */
    margin: 0 1rem; /* Indent slightly from edge */
    border: 3px solid var(--color-cobalt);
    box-shadow: 0 0 15px rgba(0, 0, 255, 0.5);
    z-index: 6; /* Higher than image */
}

.highlight-content .section-title {
    margin-top: 0;
    padding: 0;
    border: none;
    background: none;
    box-shadow: none;
    color: var(--color-lime);
    text-align: left;
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: 1.5rem;
}

.highlight-description {
    font-size: clamp(1rem, 2vw, 1.2rem);
    line-height: 1.8;
    margin-bottom: 1.2rem;
    color: var(--color-white);
}

/* About Section (Card Grid) */
.about-section {
    padding: 4rem 1rem;
    background-color: var(--color-black);
    border-top: 3px solid var(--color-red);
    position: relative;
    z-index: 4;
}

.about-section .section-title {
    color: var(--color-red);
    border-bottom-color: var(--color-lime);
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 0;
}

.about-card {
    background-color: var(--color-black);
    border: 2px solid var(--color-cobalt);
    padding: 1.5rem;
    text-align: center;
    box-shadow: 8px 8px 0 var(--color-red); /* Brutalist offset shadow */
    transition: transform 0.1s ease-out, box-shadow 0.1s ease-out; /* Snap transition */
}

.about-card:hover {
    transform: translate(-5px, -5px);
    box-shadow: 13px 13px 0 var(--color-red);
}

.about-card .card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    margin-bottom: 1rem;
    border: 1px solid var(--color-white);
    filter: brightness(0.7) contrast(1.1);
}

.about-card .card-title {
    font-size: 1.8rem;
    color: var(--color-lime);
    margin-bottom: 0.8rem;
}

.about-card .card-text {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--color-white);
    margin-bottom: 0.5rem;
}

/* Services Section (Process Steps) */
.services-section {
    padding: 4rem 1rem;
    background-color: var(--color-black);
    border-top: 3px solid var(--color-lime);
    border-bottom: 3px solid var(--color-cobalt);
    position: relative;
    z-index: 3;
}

.services-section .section-title {
    color: var(--color-lime);
    border-bottom-color: var(--color-red);
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    max-width: 1200px;
    margin: 2rem auto;
    padding: 2rem 0;
}

.process-step {
    background-color: var(--color-black);
    border: 2px solid var(--color-white);
    padding: 2rem;
    text-align: center;
    position: relative;
    box-shadow: -8px -8px 0 var(--color-cobalt); /* Reversed offset shadow */
    transition: transform 0.1s ease-out, box-shadow 0.1s ease-out;
}

.process-step:hover {
    transform: translate(5px, 5px);
    box-shadow: -13px -13px 0 var(--color-cobalt);
}

.step-number {
    font-family: var(--font-heading);
    font-size: 3rem;
    color: var(--color-red);
    margin-bottom: 1rem;
    display: block;
    border-bottom: 1px solid var(--color-red);
    padding-bottom: 0.5rem;
}

.step-title {
    font-size: 2rem;
    color: var(--color-lime);
    margin-bottom: 1rem;
}

.step-description {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--color-white);
    margin-bottom: 0.5rem;
}

/* Portfolio/Gallery Section (Filterable Gallery with Tabs) */
.portfolio-section {
    padding: 4rem 1rem;
    background-color: var(--color-black);
    border-top: 3px solid var(--color-red);
    position: relative;
    z-index: 2;
}

.portfolio-section .section-title {
    color: var(--color-cobalt);
    border-bottom-color: var(--color-lime);
}

.tab-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap; /* For responsiveness */
}

.tab-button {
    background-color: var(--color-black);
    color: var(--color-white);
    border: 2px solid var(--color-white);
    padding: 0.8rem 1.5rem;
    font-family: var(--font-body);
    font-size: 1.1rem;
    cursor: pointer;
    text-transform: uppercase;
    transition: background-color 0.1s ease-out, color 0.1s ease-out, border-color 0.1s ease-out;
}

.tab-button:hover {
    background-color: var(--color-cobalt);
    color: var(--color-black);
    border-color: var(--color-cobalt);
}

.tab-button.active {
    background-color: var(--color-red);
    color: var(--color-black);
    border-color: var(--color-red);
    font-weight: 700;
}

.tab-pane {
    display: none;
    padding: 2rem 0;
    max-width: 1200px;
    margin: 0 auto;
}

.tab-pane.active {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border: 2px solid var(--color-cobalt);
    transition: transform 0.1s ease-out;
}

.gallery-item:hover {
    transform: scale(1.02);
}

.gallery-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
    filter: brightness(0.6) grayscale(70%);
    transition: filter 0.1s ease-out;
}

.gallery-item:hover img {
    filter: brightness(0.9) grayscale(0%);
}

.gallery-item .overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 0, 0, 0.7);
    color: var(--color-white);
    padding: 1rem;
    text-align: center;
    font-family: var(--font-heading);
    font-size: 1.3rem;
    opacity: 1;
    transform: translateY(100%);
    transition: opacity 0.1s ease-out, transform 0.1s ease-out;
    border-top: 2px solid var(--color-white);
}

.gallery-item:hover .overlay {
    opacity: 1;
    transform: translateY(0);
}

/* Testimonials Section (Static Video Testimonials) */
.testimonials-section {
    padding: 4rem 1rem;
    background-color: var(--color-black);
    border-top: 3px solid var(--color-cobalt);
    position: relative;
    z-index: 1;
}

.testimonials-section .section-title {
    color: var(--color-lime);
    border-bottom-color: var(--color-red);
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 2rem auto;
    padding: 2rem 0;
}

.testimonial-card {
    background-color: var(--color-black);
    border: 2px solid var(--color-red);
    padding: 1.5rem;
    box-shadow: 0 0 10px rgba(255, 0, 0, 0.5);
    transition: transform 0.1s ease-out, box-shadow 0.1s ease-out;
    position: relative;
    overflow: hidden;
}

.testimonial-card:hover {
    transform: scale(1.03);
    box-shadow: 0 0 15px rgba(255, 0, 0, 0.8);
}

.testimonial-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    margin-bottom: 1rem;
    border: 1px solid var(--color-white);
    filter: brightness(0.8);
}

.testimonial-quote {
    font-size: 1.1rem;
    font-style: italic;
    color: var(--color-white);
    margin-bottom: 1rem;
    line-height: 1.7;
    border-left: 5px solid var(--color-lime);
    padding-left: 10px;
}

.testimonial-author {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--color-cobalt);
    text-transform: uppercase;
    text-align: right;
}

/* Team Section (Grid with Overlays) */
.team-section {
    padding: 4rem 1rem;
    background-color: var(--color-black);
    border-top: 3px solid var(--color-lime);
    border-bottom: 3px solid var(--color-red);
    position: relative;
    z-index: 0;
}

.team-section .section-title {
    color: var(--color-cobalt);
    border-bottom-color: var(--color-lime);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    max-width: 1200px;
    margin: 2rem auto;
    padding: 2rem 0;
}

.team-member {
    position: relative;
    overflow: hidden;
    border: 2px solid var(--color-white);
    box-shadow: 5px 5px 0 var(--color-lime);
    transition: transform 0.1s ease-out, box-shadow 0.1s ease-out;
}

.team-member:hover {
    transform: translate(-3px, -3px);
    box-shadow: 8px 8px 0 var(--color-lime);
}

.team-member img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    display: block;
    filter: brightness(0.5) grayscale(80%);
    transition: filter 0.1s ease-out;
}

.team-member:hover img {
    filter: brightness(0.8) grayscale(0%);
}

.team-member .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    color: var(--color-white);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 1rem;
    text-align: center;
    opacity: 1;
    transition: opacity 0.1s ease-out;
}

.team-member:hover .overlay {
    opacity: 1;
}

.overlay-name {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--color-red);
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 0 var(--color-cobalt);
}

.overlay-role {
    font-size: 1.2rem;
    color: var(--color-lime);
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.overlay-bio {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--color-white);
    max-width: 80%;
}

/* Newsletter Section (Incentive Focus - Static) */
.newsletter-section {
    padding: 4rem 1rem;
    background-color: var(--color-black);
    border-top: 3px solid var(--color-red);
    text-align: center;
}

.newsletter-section .section-title {
    color: var(--color-lime);
    border-bottom-color: var(--color-cobalt);
}

.newsletter-intro {
    max-width: 800px;
    margin: 0 auto 1.5rem auto;
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--color-white);
    padding: 0 1rem;
}

/* Contact Section (Multi Column - Static) */
.contact-section {
    padding: 4rem 1rem;
    background-color: var(--color-black);
    border-top: 3px solid var(--color-cobalt);
    border-bottom: 3px solid var(--color-lime);
    text-align: center;
}

.contact-section .section-title {
    color: var(--color-red);
    border-bottom-color: var(--color-lime);
}

.contact-columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 2rem auto;
    padding: 2rem 0;
}

.contact-column {
    background-color: var(--color-black);
    border: 2px solid var(--color-white);
    padding: 1.5rem;
    text-align: left;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
    transition: transform 0.1s ease-out, box-shadow 0.1s ease-out;
}

.contact-column:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.4);
}

.column-title {
    font-size: 1.8rem;
    color: var(--color-lime);
    margin-bottom: 1rem;
    border-bottom: 1px dashed var(--color-red);
    padding-bottom: 0.5rem;
}

.column-text {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--color-white);
}

/* Footer */
.site-footer {
    background-color: var(--color-black);
    color: var(--color-white);
    text-align: center;
    padding: 2rem;
    font-size: 0.9rem;
    border-top: 3px solid var(--color-red);
}

/* Responsive Adjustments */
@media (max-width: 1024px) {
    .main-nav {
        flex-direction: column;
    }
    .nav-list {
        margin-top: 1rem;
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .nav-logo {
        font-size: 1.8rem;
    }
    .nav-list a {
        font-size: 0.9rem;
        padding: 0.3rem 0.5rem;
    }

    .hero-content {
        padding: 1rem;
    }
    .hero-title {
        font-size: clamp(2.5rem, 7vw, 4rem);
    }
    .hero-description {
        font-size: clamp(0.9rem, 1.8vw, 1.1rem);
    }

    .highlights {
        grid-template-columns: 1fr;
    }
    .highlight-content {
        top: 0; /* Remove overlap on smaller screens */
        margin: 0 0.5rem;
        padding: 2rem 1rem;
    }
    .highlight-content .section-title {
        text-align: center;
    }

    .card-grid, .process-steps, .gallery-grid, .testimonial-grid, .team-grid, .contact-columns {
        grid-template-columns: 1fr;
        padding: 1rem;
    }

    .tab-buttons {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }
    .tab-button {
        width: 80%;
        max-width: 300px;
        font-size: 1rem;
    }

    .about-card, .process-step, .testimonial-card, .team-member, .contact-column {
        box-shadow: 4px 4px 0 var(--color-red); /* Smaller offset shadow */
    }
    .process-step {
        box-shadow: -4px -4px 0 var(--color-cobalt);
    }
}

/* 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; } }

/* 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;}
