/* Color Palette */
:root {
    --charcoal: #2A2F36;
    --rust: #A34A2A;
    --moss-green: #5A6A5B;
    --tan: #D4C9A0;
    --off-white: #F8F4E3;
    --dark-grey-text: #E0E0E0; /* Lighter for readability on dark backgrounds */
    --light-border: #4A525C;
    --accent-dark: #7A3821; /* Darker rust for details */
}

/* Typography */
h1, h2, h3, .logo {
    font-family: 'Bebas Neue', sans-serif;
    letter-spacing: 1.5px;
    color: var(--tan);
}

body, p, a, button, li, figcaption {
    font-family: 'Special Elite', cursive;
    color: var(--dark-grey-text);
}

.logo {
    font-family: 'Rock Salt', cursive;
    font-size: 2.5rem;
    color: var(--tan);
    text-shadow: 2px 2px 0px var(--rust);
}

/* Base Styles */
body {
    margin: 0;
    padding: 0;
    line-height: 1.6;
    background-color: var(--charcoal);
    background-image: url('images/image_21.png'); /* Worn paper texture */
    color: var(--dark-grey-text);
    overflow-x: hidden; /* Prevent horizontal scroll from grunge effects */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--rust);
    text-decoration: none;
    transition: color 0.3s ease, transform 0.3s ease;
}

a:hover {
    color: var(--tan);
    transform: translateY(-2px);
}

.btn {
    display: inline-block;
    padding: 12px 25px;
    background-color: var(--rust);
    color: var(--off-white);
    border: 2px solid var(--rust);
    text-transform: uppercase;
    font-size: 0.9rem;
    font-weight: bold;
    letter-spacing: 1px;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    cursor: pointer;
}

.btn:hover {
    background-color: var(--tan);
    color: var(--charcoal);
    border-color: var(--tan);
}

.grunge-btn {
    border: 2px solid var(--rust);
    position: relative;
    overflow: hidden;
    background-color: var(--rust);
    color: var(--off-white);
    text-shadow: 1px 1px 0px var(--accent-dark);
}

.grunge-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, transparent 20%, rgba(255,255,255,0.1) 80%);
    opacity: 1;
    transition: opacity 0.4s ease, transform 0.4s ease;
    transform: scale(0);
}

.grunge-btn:hover::before {
    opacity: 1;
    transform: scale(1);
}

.grunge-btn:hover {
    background-color: var(--tan);
    color: var(--charcoal);
    border-color: var(--tan);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}


section {
    padding: 80px 0;
    position: relative;
    overflow: hidden;
    border-bottom: 2px dashed var(--light-border); /* Subtle separator */
}

section:last-of-type {
    border-bottom: none;
}

.section-title {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 60px;
    position: relative;
    padding-bottom: 20px;
    color: var(--tan);
    text-shadow: 2px 2px 0px var(--moss-green);
}

.section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 100px;
    height: 5px;
    background-color: var(--rust);
    box-shadow: 0 0 10px rgba(163, 74, 42, 0.5);
    border-radius: 5px;
}

.section-description {
    text-align: center;
    max-width: 800px;
    margin: -30px auto 60px auto;
    font-size: 1.1rem;
    color: var(--off-white);
    line-height: 1.8;
}

/* Grunge Effects (General) */
.grunge-effect {
    position: relative;
    padding: 100px 0;
    margin-bottom: -20px; /* Overlap to create torn edge effect */
}

.grunge-effect::before,
.grunge-effect::after {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    height: 30px; /* Height of the torn edge */
    background-size: cover;
    background-repeat: no-repeat;
    z-index: 1;
    filter: drop-shadow(0 2px 2px rgba(0,0,0,0.5));
}

.grunge-effect::before { /* Top torn edge */
    top: -15px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 30" preserveAspectRatio="none"><path fill="%232A2F36" d="M0,15 C20,5 30,25 50,15 C70,5 80,25 100,15 L100,30 L0,30 Z" /></svg>');
}

.grunge-effect::after { /* Bottom torn edge */
    bottom: -15px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 30" preserveAspectRatio="none"><path fill="%232A2F36" d="M0,15 C20,25 30,5 50,15 C70,25 80,5 100,15 L100,0 L0,0 Z" /></svg>');
}

.grunge-effect:nth-child(even)::before {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 30" preserveAspectRatio="none"><path fill="%232A2F36" d="M0,15 C20,25 30,5 50,15 C70,25 80,5 100,15 L100,30 L0,30 Z" /></svg>');
}
.grunge-effect:nth-child(even)::after {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 30" preserveAspectRatio="none"><path fill="%232A2F36" d="M0,15 C20,5 30,25 50,15 C70,5 80,25 100,15 L100,0 L0,0 Z" /></svg>');
}


/* Header */
.header {
    background-color: rgba(42, 47, 54, 0.95); /* Semi-transparent charcoal */
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid var(--light-border);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header .logo {
    margin: 0;
    font-size: 2rem;
    line-height: 1;
}

.header .logo a {
    color: var(--tan);
    text-decoration: none;
    text-shadow: 1px 1px 0 var(--rust);
}

.main-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

.main-nav ul li {
    margin-left: 30px;
}

.main-nav ul li a {
    color: var(--off-white);
    font-size: 1rem;
    text-transform: uppercase;
    position: relative;
    padding-bottom: 5px;
    letter-spacing: 0.5px;
}

.main-nav ul li a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background-color: var(--rust);
    transition: width 0.3s ease;
}

.main-nav ul li a:hover::after,
.main-nav ul li a.active::after {
    width: 100%;
}


/* Hero Section */
.hero-section {
    text-align: left;
    background-color: var(--charcoal);
    padding: 120px 0;
    border-bottom: none; /* No double border with grunge effect */
}

.hero-section::before, .hero-section::after {
    background-color: transparent; /* Disable the specific grunge effect on hero */
    height: 0;
}

.hero-section .split-layout {
    display: flex;
    align-items: center;
    gap: 40px;
}

.hero-content {
    flex: 1;
    padding-right: 20px;
}

.hero-content h1 {
    font-size: 4.5rem;
    margin-bottom: 25px;
    line-height: 1.1;
    color: var(--tan);
    text-shadow: 3px 3px 0px var(--moss-green);
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: var(--off-white);
    line-height: 1.7;
    text-shadow: 0.5px 0.5px 0px rgba(0,0,0,0.5);
}

.hero-image {
    flex: 1;
    position: relative;
    border: 3px solid var(--rust);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
    overflow: hidden;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(1.1) contrast(1.1);
}

/* About Section */
.about-section {
    background-color: var(--moss-green);
    background-image: url('images/image_22.png');
    padding: 100px 0;
}

.about-content {
    display: flex;
    align-items: flex-start;
    gap: 50px;
}

.about-text {
    flex: 2;
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--off-white);
    text-shadow: 0.5px 0.5px 0px rgba(0,0,0,0.4);
}

.about-text h3 {
    font-size: 2rem;
    margin-top: 40px;
    margin-bottom: 20px;
    color: var(--tan);
    text-shadow: 1px 1px 0px var(--rust);
}

.about-text ul {
    list-style: none;
    padding: 0;
    margin-top: 20px;
}

.about-text ul li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 10px;
    font-size: 1rem;
    color: var(--off-white);
}

.about-text ul li::before {
    content: '★'; /* Using a simple character instead of an icon */
    position: absolute;
    left: 0;
    color: var(--rust);
    font-size: 1.2em;
    line-height: 1;
}

.about-image {
    flex: 1;
    position: relative;
    border: 3px solid var(--tan);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
    overflow: hidden;
}

.about-image img {
    filter: grayscale(0.2) sepia(0.3) contrast(1.1);
    transition: filter 0.5s ease;
}

.about-image:hover img {
    filter: grayscale(0) sepia(0) contrast(1);
}

.map-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(163, 74, 42, 0.8); /* Rust overlay */
    padding: 15px;
    text-align: center;
    color: var(--off-white);
    font-family: 'Rock Salt', cursive;
    font-size: 1.2rem;
    letter-spacing: 1px;
    transform: translateY(100%);
    transition: transform 0.4s ease-out;
}

.about-image:hover .map-overlay {
    transform: translateY(0);
}


/* Services Section (Tabbed) */
.services-section {
    background-color: var(--charcoal);
    background-image: url('images/image_23.png'); /* Another texture */
    padding: 100px 0;
}

.tab-buttons {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
    border-bottom: 2px solid var(--light-border);
    padding-bottom: 10px;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

.tab-button {
    background-color: transparent;
    border: none;
    padding: 15px 30px;
    color: var(--dark-grey-text);
    font-size: 1.1rem;
    font-family: 'Bebas Neue', sans-serif;
    letter-spacing: 1px;
    cursor: pointer;
    transition: color 0.3s ease, background-color 0.3s ease, text-shadow 0.3s ease;
    border-bottom: 3px solid transparent;
    margin: 0 10px;
}

.tab-button:hover {
    color: var(--tan);
    text-shadow: 1px 1px 0 var(--rust);
}

.tab-button.active {
    color: var(--tan);
    border-bottom: 3px solid var(--rust);
    background-color: rgba(163, 74, 42, 0.1);
    text-shadow: 1px 1px 0 var(--rust);
}

.tab-pane {
    display: none;
    padding: 30px;
    border: 1px solid var(--light-border);
    background-color: rgba(42, 47, 54, 0.7);
    box-shadow: inset 0 0 10px rgba(0,0,0,0.5);
    position: relative;
    overflow: hidden;
}

.tab-pane.active {
    display: block;
}

.tab-pane h3 {
    font-size: 2.5rem;
    color: var(--tan);
    margin-bottom: 20px;
    text-align: center;
    text-shadow: 1px 1px 0px var(--moss-green);
}

.tab-pane p {
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 20px;
    text-align: center;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.tab-pane ul {
    list-style: none;
    padding: 0;
    margin-top: 30px;
    text-align: center;
}

.tab-pane ul li {
    font-size: 1rem;
    margin-bottom: 10px;
    color: var(--off-white);
    position: relative;
    display: inline-block;
    padding: 5px 15px;
    border: 1px dashed var(--rust);
    border-radius: 5px;
    margin: 5px;
}

/* Features Section (Step-by-step) */
.features-section {
    background-color: var(--moss-green);
    background-image: url('images/image_24.png');
    padding: 100px 0;
}

.step-by-step-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.step-card {
    background-color: rgba(42, 47, 54, 0.8);
    border: 2px solid var(--light-border);
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.step-card::before { /* Textured overlay */
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('images/image_25.png');
    opacity: 1;.1;
    z-index: 0;
}

.step-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
}

.step-card h3 {
    font-size: 2rem;
    color: var(--tan);
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
    text-shadow: 1px 1px 0px var(--rust);
}

.step-card p {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--dark-grey-text);
    position: relative;
    z-index: 1;
    text-shadow: 0.5px 0.5px 0px rgba(0,0,0,0.3);
}

/* Gallery Section */
.gallery-section {
    background-color: var(--charcoal);
    background-image: url('images/image_26.png');
    padding: 100px 0;
}

.image-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.gallery-item {
    border: 3px solid var(--moss-green);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
    overflow: hidden;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item a {
    display: block;
}

.gallery-item img {
    width: 100%;
    height: 300px; /* Fixed height for consistent grid */
    object-fit: cover;
    filter: saturate(0.9) grayscale(0.1);
    transition: transform 0.5s ease, filter 0.5s ease;
}

.gallery-item figcaption {
    background-color: rgba(42, 47, 54, 0.7);
    color: var(--off-white);
    padding: 15px 10px;
    text-align: center;
    font-size: 0.9rem;
    border-top: 1px solid var(--light-border);
}

.gallery-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
}

.gallery-item:hover img {
    transform: scale(1.05);
    filter: saturate(1.2) grayscale(0);
}


/* Portfolio Section (Tabbed) */
.portfolio-section {
    background-color: var(--rust);
    background-image: url('images/image_27.png');
    padding: 100px 0;
}

.portfolio-tabs .tab-button {
    border-color: var(--accent-dark);
    color: var(--off-white);
    text-shadow: 1px 1px 0 var(--charcoal);
}

.portfolio-tabs .tab-button.active {
    background-color: rgba(42, 47, 54, 0.2);
    border-bottom: 3px solid var(--charcoal);
    color: var(--tan);
}

.portfolio-tabs .tab-button:hover {
    color: var(--tan);
    text-shadow: 1px 1px 0 var(--charcoal);
}

.portfolio-section .tab-pane {
    background-color: rgba(42, 47, 54, 0.85);
    border-color: var(--rust);
}

.portfolio-section .tab-pane h3 {
    color: var(--tan);
    text-shadow: 1px 1px 0px var(--moss-green);
}

.portfolio-section .tab-pane p {
    color: var(--off-white);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.portfolio-item {
    background-color: var(--charcoal);
    border: 2px solid var(--light-border);
    padding: 20px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.portfolio-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.5);
}

.portfolio-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    margin-bottom: 15px;
    border: 1px solid var(--rust);
    filter: saturate(1.1);
    transition: filter 0.4s ease;
}

.portfolio-item:hover img {
    filter: saturate(1.3) brightness(1.1);
}

.portfolio-item h4 {
    font-size: 1.5rem;
    color: var(--tan);
    margin-bottom: 10px;
    text-shadow: 1px 1px 0px var(--moss-green);
}

.portfolio-item p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--dark-grey-text);
}


/* Team Section (Interactive Profiles) */
.team-section {
    background-color: var(--charcoal);
    background-image: url('images/image_28.png');
    padding: 100px 0;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 50px;
}

.team-member-card {
    background-color: rgba(90, 106, 91, 0.8); /* Moss Green transparent */
    border: 2px solid var(--tan);
    padding: 30px;
    text-align: center;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-member-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
}

.team-member-card img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 20px auto;
    border: 4px solid var(--rust);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.team-member-card h3 {
    font-size: 2rem;
    color: var(--tan);
    margin-bottom: 10px;
    text-shadow: 1px 1px 0px var(--charcoal);
}

.team-member-card p {
    font-size: 1rem;
    color: var(--off-white);
    margin-bottom: 20px;
}

.member-detail-btn {
    padding: 10px 20px;
    font-size: 0.9rem;
}

/* Member Modals */
.member-modal {
    display: none;
    position: fixed;
    z-index: 1001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    opacity: 1;
    transition: opacity 0.3s ease;
}

.member-modal.active {
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
}

.member-modal .modal-content {
    background-color: var(--charcoal);
    background-image: url('images/image_29.png');
    padding: 40px;
    border: 4px solid var(--rust);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
    max-width: 600px;
    text-align: center;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.member-modal.active .modal-content {
    transform: scale(1);
}

.member-modal .close-button {
    color: var(--tan);
    position: absolute;
    top: 15px;
    right: 25px;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.member-modal .close-button:hover,
.member-modal .close-button:focus {
    color: var(--rust);
}

.member-modal img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 25px;
    border: 5px solid var(--tan);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.member-modal h3 {
    font-size: 2.8rem;
    color: var(--rust);
    margin-bottom: 10px;
    text-shadow: 2px 2px 0px var(--moss-green);
}

.member-modal h4 {
    font-size: 1.5rem;
    color: var(--tan);
    margin-bottom: 20px;
}

.member-modal p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--off-white);
    margin-bottom: 15px;
}


/* FAQ Section (Accordion) */
.faq-section {
    background-color: var(--moss-green);
    background-image: url('images/image_30.png');
    padding: 100px 0;
}

.accordion {
    max-width: 900px;
    margin: 0 auto;
    border: 2px solid var(--rust);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.faq-item {
    border-bottom: 1px solid var(--light-border);
    background-color: rgba(42, 47, 54, 0.8);
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-question {
    background-color: transparent;
    color: var(--tan);
    cursor: pointer;
    padding: 25px 30px;
    width: 100%;
    border: none;
    text-align: left;
    outline: none;
    font-size: 1.5rem;
    font-family: 'Bebas Neue', sans-serif;
    transition: background-color 0.3s ease, color 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-shadow: 1px 1px 0px var(--charcoal);
}

.faq-question h3 {
    margin: 0;
    font-size: 1.5rem; /* Ensure consistent font size for heading inside button */
    color: inherit;
    text-shadow: inherit;
}

.faq-question::after {
    content: '+';
    font-size: 2rem;
    color: var(--rust);
    transition: transform 0.3s ease;
}

.faq-question[aria-expanded="true"] {
    background-color: rgba(163, 74, 42, 0.15);
    color: var(--off-white);
}

.faq-question[aria-expanded="true"]::after {
    content: '-';
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 30px;
    background-color: rgba(42, 47, 54, 0.7);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.4s ease-out;
    border-top: 1px solid var(--light-border);
}

.faq-answer[aria-hidden="false"] {
    max-height: 500px; /* Adjust as needed */
    padding: 20px 30px;
}

.faq-answer p {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--dark-grey-text);
    margin: 0;
}


/* Contact Section (Centered Info - adapted as per restrictions) */
.connect-section {
    background-color: var(--charcoal);
    background-image: url('images/image_31.png');
    text-align: center;
    padding: 100px 0;
}

.connect-section p {
    max-width: 800px;
    margin: 20px auto 30px auto;
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--off-white);
}


/* Footer */
.footer {
    background-color: var(--rust);
    padding: 30px 0;
    text-align: center;
    color: var(--off-white);
    font-size: 0.9rem;
    border-top: 2px solid var(--accent-dark);
}

.footer p {
    margin: 0;
    color: var(--off-white);
}


/* Responsive Design */
@media (max-width: 992px) {
    .hero-section .split-layout {
        flex-direction: column;
        text-align: center;
    }

    .hero-content {
        padding-right: 0;
    }

    .hero-content h1 {
        font-size: 3.5rem;
    }

    .about-content {
        flex-direction: column;
    }

    .about-text {
        order: 2;
    }

    .about-image {
        order: 1;
        margin-bottom: 40px;
    }

    .tab-buttons {
        flex-wrap: wrap;
    }

    .tab-button {
        margin: 5px;
        padding: 10px 20px;
    }

    .step-by-step-grid,
    .image-grid,
    .portfolio-grid,
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .header .container {
        flex-direction: column;
        text-align: center;
    }

    .main-nav ul {
        margin-top: 20px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .main-nav ul li {
        margin: 5px 10px;
    }

    .section-title {
        font-size: 2.5rem;
    }

    .hero-content h1 {
        font-size: 2.8rem;
    }

    .step-by-step-grid,
    .image-grid,
    .portfolio-grid,
    .team-grid {
        grid-template-columns: 1fr;
    }

    .faq-question {
        font-size: 1.2rem;
        padding: 20px 25px;
    }

    .faq-question h3 {
        font-size: 1.2rem;
    }

    .member-modal .modal-content {
        width: 90%;
        padding: 30px;
    }

    .member-modal h3 {
        font-size: 2.2rem;
    }
    .member-modal h4 {
        font-size: 1.2rem;
    }
    .member-modal p {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2rem;
    }

    .section-title {
        font-size: 2rem;
        margin-bottom: 40px;
    }

    .tab-button {
        font-size: 0.9rem;
        padding: 8px 15px;
    }

    .faq-question {
        padding: 15px 20px;
        font-size: 1rem;
    }
    .faq-question h3 {
        font-size: 1rem;
    }

    .member-modal img {
        width: 120px;
        height: 120px;
    }
    .member-modal h3 {
        font-size: 1.8rem;
    }
}


javascript
/* 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: Smooth scroll CSS fallback */
html { scroll-behavior: smooth; }

/* Safe visibility overrides (auto-added) */
:root, html, body, main, header, footer, section, .container, .content {
  opacity: 1 !important;
  visibility: visible !important;
}
