:root {
    --color-dark-base: #1a1a2e; /* Deep Navy/Graphite */
    --color-dark-gloss: #0f0f1d; /* Midnight */
    --color-accent-teal: #00bcd4; /* Subtle Teal */
    --color-accent-rose: #e91e63; /* Subtle Rose */
    --color-text-light: #e0e0e0;
    --color-text-dim: #a0a0a0;
    --color-button-bg: linear-gradient(90deg, var(--color-accent-teal) 0%, var(--color-accent-violet) 100%);
    --color-button-hover-bg: linear-gradient(90deg, var(--color-accent-violet) 0%, var(--color-accent-rose) 100%);
    --border-gradient: linear-gradient(90deg, var(--color-accent-teal), var(--color-accent-violet), var(--color-accent-rose));
    --holographic-shadow: 0 0 10px rgba(0, 188, 212, 0.6), 0 0 20px rgba(136, 14, 212, 0.4), 0 0 30px rgba(233, 30, 99, 0.2);
    --header-height: 80px;
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Manrope', 'Exo 2', 'Poppins', sans-serif;
    color: var(--color-text-light);
    background-color: var(--color-dark-base);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    color: var(--color-accent-teal);
    text-decoration: none;
    transition: color 0.3s ease, transform 0.3s ease;
}

a:hover {
    color: var(--color-accent-rose);
    transform: translateY(-2px);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Exo 2', 'Poppins', sans-serif;
    font-weight: 600;
    color: var(--color-text-light);
    margin-bottom: 0.8em;
}

h1 { font-size: 3.5em; line-height: 1.1; }
h2 { font-size: 2.8em; line-height: 1.2; }
h3 { font-size: 2.2em; line-height: 1.3; }
h4 { font-size: 1.8em; }
p { margin-bottom: 1em; }

.section-title {
    text-align: center;
    padding-bottom: 40px;
    position: relative;
    font-size: 3em;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 20px;
    width: 80px;
    height: 3px;
    background: var(--border-gradient);
    transform: translateX(-50%);
    box-shadow: var(--holographic-shadow);
}

.section-subtitle {
    text-align: center;
    font-size: 1.5em;
    color: var(--color-text-dim);
    margin-bottom: 60px;
    letter-spacing: 0.5px;
}

/* Gradient Panel Base */
.gradient-panel {
    background-color: var(--color-dark-gloss);
    margin: 40px auto;
    padding: 80px 0;
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    isolation: isolate; /* Ensures stacking context for pseudo-elements */
}

.gradient-panel::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    background: var(--border-gradient);
    filter: blur(10px);
    border-radius: 20px;
    z-index: -1;
    opacity: 1;.3;
}

.gradient-panel::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 15px;
    pointer-events: none;
    background: radial-gradient(circle at top left, rgba(0, 188, 212, 0.1) 0%, transparent 30%),
                radial-gradient(circle at bottom right, rgba(136, 14, 212, 0.1) 0%, transparent 30%);
    opacity: 1;.7;
    transition: opacity 0.5s ease;
}

.gradient-panel:hover::after {
    opacity: 1;
}

/* CTA Button Styles */
.cta-button {
    display: inline-block;
    padding: 15px 35px;
    margin-top: 25px;
    border-radius: 30px;
    background: var(--color-button-bg);
    color: var(--color-text-light);
    font-size: 1.1em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.4s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: all 0.6s ease;
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button:hover {
    background: var(--color-button-hover-bg);
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 8px 25px var(--holographic-shadow);
}


/* Header */
.main-header {
    background-color: rgba(15, 15, 29, 0.95); /* Semi-transparent midnight */
    padding: 15px 0;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(0, 188, 212, 0.1);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Exo 2', sans-serif;
    font-size: 2em;
    font-weight: 600;
    color: var(--color-text-light);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    position: relative;
}

.logo::before {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--border-gradient);
    opacity: 1;
    transform: scaleX(0);
    transition: all 0.4s ease;
}

.logo:hover::before {
    opacity: 1;
    transform: scaleX(1);
}

.main-nav .nav-links {
    list-style: none;
    display: flex;
}

.main-nav .nav-links li {
    margin-left: 30px;
}

.main-nav .nav-links a {
    color: var(--color-text-light);
    font-weight: 400;
    font-size: 1.05em;
    padding: 5px 0;
    position: relative;
    transition: color 0.3s ease;
}

.main-nav .nav-links a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 0;
    height: 2px;
    background: var(--border-gradient);
    transition: width 0.3s ease;
}

.main-nav .nav-links a:hover {
    color: var(--color-accent-teal);
}

.main-nav .nav-links a:hover::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
    background: transparent;
    border: none;
    padding: 0;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--color-accent-teal);
    border-radius: 5px;
    transition: all 0.3s ease;
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--color-text-light);
    overflow: hidden;
    padding-top: var(--header-height); /* Offset for fixed header */
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('images/image_25.jpg'); /* Static image for video background */
    background-size: cover;
    background-position: center;
    filter: brightness(0.7) blur(2px);
    z-index: -2;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(15, 15, 29, 0.8) 0%, rgba(26, 26, 46, 0.7) 100%);
    z-index: -1;
    animation: pulseGlow 10s infinite alternate;
}

@keyframes pulseGlow {
    0% { background: linear-gradient(180deg, rgba(15, 15, 29, 0.8) 0%, rgba(26, 26, 46, 0.7) 100%); }
    50% { background: linear-gradient(180deg, rgba(15, 15, 29, 0.85) 0%, rgba(26, 26, 46, 0.75) 100%),
                      radial-gradient(circle at 70% 30%, rgba(0, 188, 212, 0.1) 0%, transparent 40%); }
    100% { background: linear-gradient(180deg, rgba(15, 15, 29, 0.8) 0%, rgba(26, 26, 46, 0.7) 100%); }
}

.hero-content {
    max-width: 900px;
    z-index: 1;
    animation: fadeInScale 1.5s ease-out forwards;
}

.hero-content h1 {
    font-size: 4.5em;
    margin-bottom: 20px;
    text-shadow: 0 0 15px rgba(0, 188, 212, 0.5);
}

.hero-content p {
    font-size: 1.3em;
    max-width: 800px;
    margin: 0 auto 30px;
    color: var(--color-text-dim);
}

@keyframes fadeInScale {
    from { opacity: 1; transform: translateY(20px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

/* About Section */
.about-section {
    padding-top: 100px;
    padding-bottom: 100px;
}

.about-story {
    display: flex;
    flex-direction: column;
    gap: 80px;
}

.story-panel {
    display: flex;
    align-items: center;
    gap: 40px;
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(0, 188, 212, 0.1);
    position: relative;
    padding: 30px;
}

.story-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(0, 188, 212, 0.05), rgba(136, 14, 212, 0.05), rgba(233, 30, 99, 0.05));
    opacity: 1;
    transition: opacity 0.5s ease;
    z-index: 0;
}

.story-panel:hover::before {
    opacity: 1;
}

.story-panel .story-image {
    flex: 1;
    width: 100%;
    height: 350px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    filter: saturate(0.8) brightness(0.9);
    transition: transform 0.6s ease, filter 0.6s ease;
    z-index: 1;
}

.story-panel:hover .story-image {
    transform: scale(1.03);
    filter: saturate(1) brightness(1);
}

.story-text-overlay {
    flex: 1;
    z-index: 1;
    padding: 20px;
}

.story-text-overlay h3 {
    font-size: 1.8em;
    color: var(--color-accent-teal);
    margin-bottom: 15px;
}

.story-text-overlay p {
    color: var(--color-text-dim);
    font-size: 1.05em;
    margin-bottom: 15px;
}

.story-panel.reverse {
    flex-direction: row-reverse;
}

/* Services Section (Tabbed Interface) */
.services-section {
    padding-top: 100px;
    padding-bottom: 100px;
}

.tab-buttons {
    display: flex;
    justify-content: center;
    margin-bottom: 50px;
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(0, 188, 212, 0.1);
}

.tab-button {
    background-color: transparent;
    border: none;
    padding: 18px 30px;
    color: var(--color-text-dim);
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    flex-grow: 1;
    text-align: center;
}

.tab-button::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--border-gradient);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.tab-button:hover {
    color: var(--color-text-light);
    background-color: rgba(0, 0, 0, 0.2);
}

.tab-button.active {
    color: var(--color-text-light);
    background: linear-gradient(90deg, rgba(0, 188, 212, 0.2) 0%, rgba(136, 14, 212, 0.2) 100%);
    box-shadow: var(--holographic-shadow);
}

.tab-button.active::before {
    transform: scaleX(1);
}

.tab-content {
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    padding: 40px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(136, 14, 212, 0.1);
}

.tab-pane {
    display: none;
    animation: fadeIn 0.5s ease-out;
}

.tab-pane.active {
    display: block;
}

.tab-pane h3 {
    font-size: 2em;
    color: var(--color-accent-teal);
    margin-bottom: 20px;
    text-align: center;
}

.tab-pane p {
    color: var(--color-text-dim);
    font-size: 1.1em;
    margin-bottom: 15px;
}

.tab-pane ul {
    list-style: none;
    padding: 20px 0;
    border-top: 1px solid rgba(0, 188, 212, 0.1);
    margin-top: 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 15px;
}

.tab-pane ul li {
    background-color: rgba(0, 0, 0, 0.1);
    padding: 15px 20px;
    border-radius: 8px;
    color: var(--color-text-light);
    font-weight: 400;
    position: relative;
    border-left: 3px solid var(--color-accent-violet);
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.tab-pane ul li:hover {
    background-color: rgba(0, 188, 212, 0.1);
    transform: translateX(5px);
}

/* Process Section */
.process-section {
    padding-top: 100px;
    padding-bottom: 100px;
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.process-card {
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(233, 30, 99, 0.1);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    display: flex;
    flex-direction: column;
    position: relative;
}

.process-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(0, 188, 212, 0.05), rgba(233, 30, 99, 0.05));
    opacity: 1;
    transition: opacity 0.4s ease;
}

.process-card:hover::before {
    opacity: 1;
}

.process-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px var(--holographic-shadow);
}

.process-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    filter: brightness(0.8) saturate(0.9);
    transition: filter 0.4s ease;
}

.process-card:hover .process-image {
    filter: brightness(1) saturate(1.1);
}

.process-card .card-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.process-card h4 {
    font-size: 1.5em;
    color: var(--color-accent-violet);
    margin-bottom: 15px;
}

.process-card p {
    color: var(--color-text-dim);
    font-size: 1em;
    margin-bottom: 20px;
    flex-grow: 1;
}

.process-card .card-link {
    display: inline-block;
    color: var(--color-accent-teal);
    font-weight: 600;
    border-bottom: 1px solid var(--color-accent-teal);
    padding-bottom: 2px;
    align-self: flex-start;
}

.process-card .card-link:hover {
    color: var(--color-accent-rose);
    border-color: var(--color-accent-rose);
}


/* Case Studies Section */
.case-studies-section {
    padding-top: 100px;
    padding-bottom: 100px;
}

.case-study-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.case-study-card {
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(0, 188, 212, 0.1);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    display: flex;
    flex-direction: column;
    position: relative;
}

.case-study-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(136, 14, 212, 0.05), rgba(0, 188, 212, 0.05));
    opacity: 1;
    transition: opacity 0.4s ease;
}

.case-study-card:hover::before {
    opacity: 1;
}

.case-study-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px var(--holographic-shadow);
}

.case-study-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.case-study-content h4 {
    font-size: 1.6em;
    color: var(--color-accent-teal);
    margin-bottom: 15px;
    text-align: center;
}

.before-after-text {
    font-size: 0.95em;
    color: var(--color-text-dim);
    margin-bottom: 10px;
    line-height: 1.5;
}

.before-after-text strong {
    color: var(--color-text-light);
}

.case-study-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
    margin: 15px 0;
    filter: brightness(0.8);
    transition: filter 0.4s ease;
}

.case-study-card:hover .case-study-image {
    filter: brightness(1);
}

.before-image {
    border: 2px dashed rgba(233, 30, 99, 0.5);
}

.after-image {
    border: 2px solid rgba(0, 188, 212, 0.5);
}

/* Gallery Section */
.gallery-section {
    padding-top: 100px;
    padding-bottom: 100px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.gallery-item {
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(233, 30, 99, 0.1);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    display: flex;
    flex-direction: column;
    position: relative;
}

.gallery-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(233, 30, 99, 0.05), rgba(136, 14, 212, 0.05));
    opacity: 1;
    transition: opacity 0.4s ease;
}

.gallery-item:hover::before {
    opacity: 1;
}

.gallery-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px var(--holographic-shadow);
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    filter: grayscale(0.2) brightness(0.8);
    transition: filter 0.4s ease, transform 0.4s ease;
}

.gallery-item:hover img {
    filter: grayscale(0) brightness(1);
    transform: scale(1.05);
}

.gallery-item figcaption {
    padding: 18px 20px;
    font-size: 0.95em;
    color: var(--color-text-dim);
    background-color: rgba(0, 0, 0, 0.3);
    border-top: 1px solid rgba(0, 188, 212, 0.1);
    flex-grow: 1;
}

/* Newsletter Section (Static Reinterpretation) */
.newsletter-section {
    text-align: center;
    padding-top: 100px;
    padding-bottom: 100px;
}

.newsletter-section h3 {
    font-size: 2.5em;
    color: var(--color-accent-violet);
    margin-bottom: 20px;
}

.newsletter-section p {
    font-size: 1.1em;
    color: var(--color-text-dim);
    max-width: 800px;
    margin: 0 auto 30px;
}

/* Team Section */
.team-section {
    padding-top: 100px;
    padding-bottom: 100px;
}

.department-section {
    margin-bottom: 80px;
}

.department-section:last-child {
    margin-bottom: 0;
}

.department-section h4 {
    text-align: center;
    font-size: 2.2em;
    color: var(--color-accent-rose);
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 15px;
}

.department-section h4::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 60px;
    height: 2px;
    background: var(--border-gradient);
    transform: translateX(-50%);
    box-shadow: 0 0 8px rgba(233, 30, 99, 0.5);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.team-card {
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(136, 14, 212, 0.1);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    text-align: center;
    position: relative;
    padding-bottom: 25px;
    display: flex;
    flex-direction: column;
}

.team-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(136, 14, 212, 0.05), rgba(0, 188, 212, 0.05));
    opacity: 1;
    transition: opacity 0.4s ease;
}

.team-card:hover::before {
    opacity: 1;
}

.team-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px var(--holographic-shadow);
}

.team-image {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin: 25px auto 15px;
    border: 3px solid var(--color-accent-teal);
    box-shadow: 0 0 10px rgba(0, 188, 212, 0.5);
    transition: transform 0.4s ease, border-color 0.4s ease;
}

.team-card:hover .team-image {
    transform: scale(1.05);
    border-color: var(--color-accent-rose);
}

.team-card h5 {
    font-size: 1.6em;
    margin-bottom: 5px;
    color: var(--color-text-light);
}

.team-card p:first-of-type { /* Role */
    color: var(--color-accent-teal);
    font-weight: 600;
    margin-bottom: 15px;
    font-size: 1.1em;
}

.team-card .bio-snippet {
    color: var(--color-text-dim);
    font-size: 0.95em;
    padding: 0 20px;
    flex-grow: 1;
}

/* FAQ Section (Interactive Chat Style - Accordion) */
.faq-section {
    padding-top: 100px;
    padding-bottom: 100px;
}

.faq-chat-container {
    max-width: 800px;
    margin: 0 auto;
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(0, 188, 212, 0.1);
}

.faq-message {
    padding: 15px 20px;
    margin-bottom: 15px;
    border-radius: 10px;
    max-width: 80%;
    font-size: 1.05em;
    line-height: 1.6;
    animation: fadeIn 0.5s ease-out;
}

.bot-message {
    background-color: rgba(0, 188, 212, 0.15);
    color: var(--color-text-light);
    margin-right: auto;
    border-top-left-radius: 0;
    border-left: 3px solid var(--color-accent-teal);
}

.user-message {
    background-color: rgba(136, 14, 212, 0.15);
    color: var(--color-text-light);
    margin-left: auto;
    border-top-right-radius: 0;
    border-right: 3px solid var(--color-accent-violet);
}

.faq-item {
    margin-bottom: 20px;
}

.faq-question {
    width: 100%;
    text-align: left;
    background-color: rgba(0, 0, 0, 0.3);
    color: var(--color-text-light);
    border: 1px solid rgba(136, 14, 212, 0.2);
    padding: 18px 25px;
    font-size: 1.15em;
    font-weight: 600;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.faq-question::after {
    content: '+';
    font-size: 1.5em;
    line-height: 1;
    transition: transform 0.3s ease;
    color: var(--color-accent-teal);
}

.faq-question.active::after {
    content: '-';
    transform: rotate(0deg);
    color: var(--color-accent-rose);
}

.faq-question:hover {
    background-color: rgba(0, 0, 0, 0.4);
    color: var(--color-accent-teal);
    box-shadow: 0 0 15px rgba(0, 188, 212, 0.3);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.25, 0.1, 0.25, 1);
    padding: 0 15px;
    border-left: 2px solid rgba(0, 188, 212, 0.1);
    margin-top: 10px;
}

.faq-answer[aria-hidden="false"] {
    max-height: 500px; /* Arbitrarily large value, JS will set scrollHeight */
}

.faq-answer .faq-message {
    margin-top: 10px;
    margin-bottom: 5px; /* Adjust spacing between chat bubbles */
}

/* Connect Section (Reinterpreted CTA) */
.connect-section {
    padding-top: 100px;
    padding-bottom: 100px;
}

.connect-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 15px;
    padding: 50px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(136, 14, 212, 0.1);
}

.connect-left h2 {
    font-size: 2.5em;
    color: var(--color-accent-teal);
    margin-bottom: 20px;
}

.connect-left p {
    font-size: 1.1em;
    color: var(--color-text-dim);
    margin-bottom: 15px;
}

.connect-right {
    text-align: center;
}

.connect-right h2 {
    font-size: 2.5em;
    color: var(--color-accent-violet);
    margin-bottom: 20px;
}

.map-placeholder {
    width: 100%;
    height: 350px;
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    margin-bottom: 25px;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(233, 30, 99, 0.2);
    box-shadow: 0 0 20px rgba(233, 30, 99, 0.2);
}

.map-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(0.7) brightness(0.6);
    transition: filter 0.5s ease;
}

.map-placeholder:hover img {
    filter: grayscale(0.2) brightness(0.8);
}

.map-caption {
    font-size: 0.95em;
    color: var(--color-text-dim);
    margin-top: 15px;
}


/* Footer */
.main-footer {
    background-color: var(--color-dark-gloss);
    padding: 60px 0;
    border-top: 1px solid rgba(0, 188, 212, 0.1);
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.main-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--border-gradient);
    filter: blur(5px);
    opacity: 1;.5;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
}

.footer-brand {
    flex-basis: 30%;
    min-width: 250px;
}

.footer-brand .logo {
    display: block;
    margin-bottom: 15px;
    font-size: 2.2em;
}

.footer-brand p {
    color: var(--color-text-dim);
    font-size: 0.9em;
}

.footer-nav, .footer-info {
    flex-basis: 20%;
    min-width: 150px;
}

.footer-nav h4, .footer-info h4 {
    font-size: 1.3em;
    color: var(--color-accent-teal);
    margin-bottom: 20px;
    position: relative;
}

.footer-nav h4::after, .footer-info h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 30px;
    height: 2px;
    background-color: var(--color-accent-violet);
}

.footer-nav ul, .footer-info ul {
    list-style: none;
}

.footer-nav li, .footer-info li {
    margin-bottom: 10px;
}

.footer-nav a, .footer-info a {
    color: var(--color-text-dim);
    font-size: 1em;
    transition: color 0.3s ease;
}

.footer-nav a:hover, .footer-info a:hover {
    color: var(--color-accent-rose);
}

.main-footer > p {
    text-align: center;
    margin-top: 30px;
    color: var(--color-white);
}

/* General Animations */
@keyframes fadeIn {
    from { opacity: 1; }
    to { opacity: 1; }
}

/* Mobile Responsiveness */
@media (max-width: 1024px) {
    .hero-content h1 {
        font-size: 3.5em;
    }
    .hero-content p {
        font-size: 1.1em;
    }

    .main-nav .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: var(--header-height);
        left: 0;
        width: 100%;
        background-color: rgba(15, 15, 29, 0.98);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
        padding: 20px 0;
        border-top: 1px solid rgba(0, 188, 212, 0.2);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease-out;
    }

    .main-nav .nav-links.active {
        display: flex;
        max-height: 500px; /* Sufficient height for all links */
    }

    .main-nav .nav-links li {
        margin: 0;
        text-align: center;
        width: 100%;
    }

    .main-nav .nav-links a {
        display: block;
        padding: 15px 0;
        font-size: 1.2em;
        border-bottom: 1px solid rgba(0, 188, 212, 0.1);
    }
    .main-nav .nav-links a:hover::after { width: 0; } /* Remove hover underline on mobile menu */

    .menu-toggle {
        display: flex;
        z-index: 1001;
    }

    .menu-toggle.active span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }
    .menu-toggle.active span:nth-child(2) {
        opacity: 1;
    }
    .menu-toggle.active span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }

    .process-grid, .case-study-grid, .gallery-grid, .team-grid {
        grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    }

    .tab-buttons {
        flex-wrap: wrap;
    }

    .tab-button {
        flex-basis: 50%;
        border-bottom: 1px solid rgba(0, 0, 0, 0.3);
    }
    .tab-button:last-child { border-bottom: none; } /* Only for multi-row wrap */
}

@media (max-width: 768px) {
    :root {
        --header-height: 60px;
    }
    .section-title {
        font-size: 2.2em;
        padding-bottom: 30px;
    }
    .section-subtitle {
        font-size: 1.2em;
        margin-bottom: 40px;
    }

    .hero-content h1 {
        font-size: 2.5em;
    }
    .hero-content p {
        font-size: 1em;
    }
    .cta-button {
        padding: 12px 25px;
        font-size: 1em;
    }

    .about-story, .story-panel, .story-panel.reverse {
        flex-direction: column;
    }
    .story-panel {
        padding: 20px;
    }
    .story-panel .story-image {
        height: 250px;
    }
    .story-text-overlay h3 {
        font-size: 1.5em;
    }
    .story-text-overlay p {
        font-size: 0.95em;
    }

    .tab-buttons {
        flex-direction: column;
    }
    .tab-button {
        flex-basis: 100%;
        border-bottom: 1px solid rgba(0, 0, 0, 0.3);
        border-radius: 0;
    }
    .tab-button:first-child { border-top-left-radius: 10px; border-top-right-radius: 10px; }
    .tab-button:last-child { border-bottom-left-radius: 10px; border-bottom-right-radius: 10px; border-bottom: none; }

    .tab-content {
        padding: 30px 20px;
    }
    .tab-pane h3 {
        font-size: 1.8em;
    }
    .tab-pane p {
        font-size: 1em;
    }
    .tab-pane ul {
        grid-template-columns: 1fr;
    }

    .process-grid, .case-study-grid, .gallery-grid, .team-grid {
        grid-template-columns: 1fr;
    }

    .case-study-content h4 {
        font-size: 1.4em;
    }
    .before-after-text {
        font-size: 0.9em;
    }
    .case-study-image {
        height: 150px;
    }

    .gallery-item figcaption {
        font-size: 0.85em;
    }

    .newsletter-section h3 {
        font-size: 2em;
    }
    .newsletter-section p {
        font-size: 1em;
    }

    .department-section h4 {
        font-size: 1.8em;
    }
    .team-card h5 {
        font-size: 1.4em;
    }
    .team-card p:first-of-type {
        font-size: 1em;
    }
    .team-card .bio-snippet {
        font-size: 0.9em;
    }

    .faq-chat-container {
        padding: 20px;
    }
    .faq-message {
        padding: 12px 15px;
        font-size: 0.95em;
    }
    .faq-question {
        padding: 15px 20px;
        font-size: 1.05em;
    }

    .connect-grid {
        grid-template-columns: 1fr;
        padding: 30px;
        gap: 40px;
    }
    .connect-left h2, .connect-right h2 {
        font-size: 2em;
    }
    .connect-left p, .map-caption {
        font-size: 1em;
    }
    .map-placeholder {
        height: 250px;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    .footer-brand, .footer-nav, .footer-info {
        min-width: unset;
        width: 100%;
        margin-bottom: 20px;
    }
    .footer-nav ul, .footer-info ul {
        padding-left: 0;
    }
    .footer-nav h4::after, .footer-info h4::after {
        left: 50%;
        transform: translateX(-50%);
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    h1 { font-size: 2.2em; }
    h2 { font-size: 1.8em; }
    h3 { font-size: 1.5em; }
    h4 { font-size: 1.3em; }

    .logo {
        font-size: 1.8em;
    }

    .section-title {
        font-size: 1.8em;
    }
    .hero-content h1 {
        font-size: 2em;
    }
    .hero-content p {
        font-size: 0.9em;
    }

    .tab-pane h3 {
        font-size: 1.5em;
    }
    .tab-pane ul li {
        padding: 12px 15px;
        font-size: 0.9em;
    }

    .process-card h4, .case-study-content h4 {
        font-size: 1.3em;
    }
    .process-card p {
        font-size: 0.9em;
    }

    .team-card h5 {
        font-size: 1.2em;
    }
    .team-card p:first-of-type {
        font-size: 0.9em;
    }
    .team-image {
        width: 120px;
        height: 120px;
    }

    .faq-message {
        font-size: 0.9em;
    }
    .faq-question {
        font-size: 1em;
        padding: 12px 18px;
    }
}

/* 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;}
