/* === style.css === */

/* === Import Inter Font === */
/* Poppins link should be removed from HTML if only Inter is used */

/* === CSS Variables === */
:root {
    --primary-color: #6A40E4;
    --primary-hover-color: #5533B8;
    --secondary-color: #00A6FF;
    --secondary-hover-color: #0085CC;
    --bg-dark: #0D0D1A;
    --bg-dark-lighter: #1A1A3A;
    --bg-dark-lightest: #2A2A5A;
    --text-light: #E0E0FF;
    --text-medium: #A0A0CC;
    --text-dark: #333;
    --text-headings: #FFFFFF;
    --border-color: rgba(255, 255, 255, 0.1);
    --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    --glow-effect: 0 0 15px var(--primary-color), 0 0 30px var(--primary-color);
    --font-body: 'Inter', sans-serif;
    /* USING INTER FONT */
    --header-height: 70px;
    --primary-color-rgb: 106, 64, 228;
    --bg-dark-lightest-rgb: 42, 42, 90;
    /* Safe area insets for notched devices */
    --safe-top: env(safe-area-inset-top);
    --safe-right: env(safe-area-inset-right);
    --safe-bottom: env(safe-area-inset-bottom);
    --safe-left: env(safe-area-inset-left);
}

/* === Basic Reset & Global Styles === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
    scroll-padding-top: var(--header-height);
}

body {
    font-family: var(--font-body);
    line-height: 1.75;
    color: var(--text-light);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    position: relative;
    font-weight: 400;
}

/* Reserve space for fixed header so content doesn't hide behind it */
main {
    padding-top: var(--header-height);
}

body.modal-open,
body.nav-open {
    overflow-y: hidden;
}

/* === BODY BACKGROUND EFFECT === */
/* === BODY BACKGROUND EFFECT (NEW) === */
body.dark-theme::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    /* This sets the base to pure black */
    background-color: #000000;
    /* This creates the subtle, colored glows */
    background-image:
        radial-gradient(ellipse 50% 40% at 20% 25%, hsla(265, 100%, 50%, 0.15) 0px, transparent 50%),
        radial-gradient(ellipse 40% 30% at 80% 30%, hsla(210, 100%, 55%, 0.15) 0px, transparent 50%),
        radial-gradient(ellipse 60% 50% at 50% 90%, hsla(280, 100%, 50%, 0.1) 0px, transparent 60%);
    z-index: -10;
    pointer-events: none;
    opacity: 0.7;
    /* You can adjust this opacity if the glow is too strong/weak */
}

.container {
    max-width: 1200px;
    margin: auto;
    padding: 0 20px;
}

.container {
    max-width: 1320px;
    /* We've increased this from 1200px */
    margin: auto;
    padding: 0 30px;
    /* A bit more padding for better balance */
}

/* === Typography === */
h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--text-headings);
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 1rem;
}

h1 {
    font-size: clamp(2.8rem, 6vw, 4.2rem);
    font-weight: 800;
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    font-weight: 600;
}

p {
    margin-bottom: 1rem;
    color: var(--text-medium);
}

a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--secondary-hover-color);
}

/* === Header & Navigation === */
header {
    background: rgba(13, 13, 26, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: calc(0.8rem + var(--safe-top)) 0 0.8rem 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 2000;
    border-bottom: 1px solid var(--border-color);
    height: var(--header-height);
}

header nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    position: relative;
    gap: 16px;
}

header .logo img {
    height: 35px;
    width: auto;
    display: block;
}

ul.primary-navigation {
    list-style: none;
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0;
}

ul.primary-navigation li {
    margin-left: 25px;
}

ul.primary-navigation li a.nav-link {
    color: var(--text-medium);
    font-weight: 500;
    font-size: 0.95rem;
    padding: 5px 0;
    transition: color 0.3s ease, border-bottom-color 0.3s ease;
    border-bottom: 2px solid transparent;
    position: relative;
}

ul.primary-navigation li a.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

ul.primary-navigation li a.nav-link:hover,
ul.primary-navigation li a.nav-link.active {
    color: var(--text-headings);
}

ul.primary-navigation li a.nav-link:hover::after,
ul.primary-navigation li a.nav-link.active::after {
    width: 100%;
}

/* Ensure nav-controls and mobile-nav-toggle are spaced on mobile/tablet */
@media (max-width: 992px) {
    header nav {
        flex-wrap: nowrap;
        justify-content: space-between;
        align-items: center;
        position: relative;
        gap: 0;
    }

    .mobile-nav-toggle {
        position: absolute;
        left: 10px;
        top: 50%;
        transform: translateY(-50%);
        z-index: 2;
    }

    .nav-controls {
        position: absolute;
        right: 10px;
        top: 50%;
        transform: translateY(-50%);
        z-index: 2;
        margin-left: 0;
        gap: 0;
    }

    ul.primary-navigation {
        width: 100%;
        justify-content: center;
    }
}

/* === CTA Buttons === */
.cta-button {
    display: inline-block;
    background: var(--primary-color);
    color: #fff;
    padding: 12px 28px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: none;
    cursor: pointer;
}

.cta-button:hover {
    background: var(--primary-hover-color);
    transform: translateY(-2px);
    box-shadow: var(--glow-effect);
}

.nav-cta {
    font-size: 0.9rem;
    padding: 10px 24px;
}

.desktop-cta {
    display: inline-block;
}

.cta-button.secondary {
    background: var(--secondary-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.cta-button.secondary:hover {
    background: var(--secondary-hover-color);
    box-shadow: 0 0 15px var(--secondary-color), 0 0 30px var(--secondary-color);
}

/* === General Section Styling === */
.section-block {
    padding: 80px 0;
    position: relative;
    border-top: 1px solid var(--border-color);
}

.section-title-alt {
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    font-weight: 600;
    color: var(--secondary-color);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
    text-align: center;
}

.section-subtitle {
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 700;
    color: var(--text-headings);
    margin-bottom: 50px;
    text-align: center;
    line-height: 1.2;
}

.section-intro-text {
    font-size: 1rem;
    color: var(--text-medium);
    line-height: 1.8;
    margin-bottom: 30px !important;
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* === Hero Section === */
.hero {
    /* Fallback uses 100vh, second line uses small viewport units for mobile */
    min-height: calc(100vh - var(--header-height));
    min-height: calc(100svh - var(--header-height));
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--text-headings);
    position: relative;
    padding: 60px 20px;
    background-color: transparent;
}

.hero h1 {
    text-wrap: balance;
}

.hero-content {
    z-index: 1;
    max-width: 800px;
}

.hero p {
    font-size: clamp(1.1rem, 2.5vw, 1.3rem);
    margin-bottom: 40px;
    color: var(--text-light);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 400;
}

/* What We Do Section (Detailed Services) */
.what-we-do-section {
    background-color: transparent;
}

.detailed-services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.detailed-service-card {
    background: var(--bg-dark-lighter);
    padding: 25px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.detailed-service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.detailed-service-card h3 {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: 10px;
}

/* Removed emoji */
.detailed-service-card p {
    font-size: 0.9rem;
    color: var(--text-medium);
    line-height: 1.7;
    margin-bottom: 0;
}

/* Why Choose Us Section */
.why-choose-us-section {
    background-color: var(--bg-dark-lighter);
}

.comparison-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.comparison-card {
    background: rgba(var(--bg-dark-lightest-rgb), 0.7);
    padding: 30px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: var(--card-shadow);
}

.comparison-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.comparison-header .comparison-logo {
    height: 30px;
    margin-right: 15px;
}

.comparison-header h3 {
    margin-bottom: 0;
    font-size: 1.5rem;
}

.comparison-card ul {
    list-style: none;
    padding-left: 0;
}

.comparison-card ul li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 12px;
    font-size: 0.95rem;
    color: var(--text-medium);
    line-height: 1.6;
}

.comparison-card ul li i {
    margin-right: 10px;
    font-size: 1.1rem;
    margin-top: 5px;
}

.markiety-card ul li i.fa-check {
    color: var(--primary-color);
}

.others-card ul li i.fa-times-circle {
    color: #FF5B5B;
}

/* Founder Section */
.founder-section {
    background-color: transparent;
}

.founder-profile-layout {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 40px;
    background-color: var(--bg-dark-lighter);
    padding: 40px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: var(--card-shadow);
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.founder-image-container {
    flex: 1 1 250px;
    max-width: 280px;
    text-align: center;
}

.founder-image-container img {
    width: 100%;
    max-width: 250px;
    height: auto;
    border-radius: 50%;
    border: 5px solid var(--primary-color);
    box-shadow: 0 0 25px rgba(var(--primary-color-rgb), 0.3);
}

.founder-details {
    flex: 2 1 450px;
}

.founder-details h3 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    color: var(--text-headings);
    margin-bottom: 5px;
}

.founder-details h4 {
    font-size: 1.1rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
    font-weight: 500;
}

.founder-details p {
    font-size: 0.95rem;
    color: var(--text-medium);
    line-height: 1.8;
    margin-bottom: 15px;
}

.founder-social-links {
    margin-top: 25px;
    display: flex;
    gap: 20px;
}

.founder-social-links a {
    color: var(--text-medium);
    font-size: 1.5rem;
    transition: color 0.3s ease, transform 0.3s ease;
}

.founder-social-links a:hover {
    color: var(--primary-color);
    transform: scale(1.1);
}

/* Featured Projects Section */
.featured-projects-section {
    background-color: transparent;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

/* Removed :has selector for broader compatibility, default grid handles one or more items fine */
.project-card {
    background: var(--bg-dark-lighter);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    /* Ensure consistent height if content varies */
}

.project-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    border-color: var(--primary-color);
}

.project-card-image {
    /* Class for optional image in project card */
    width: 100%;
    height: 200px;
    /* Or desired height */
    object-fit: cover;
    border-bottom: 1px solid var(--border-color);
}

.project-info {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

/* Allow info to grow */
.project-info h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.project-info p {
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.project-summary-card .project-info h4 {
    font-size: 1.1rem;
    color: var(--secondary-color);
    margin-top: 20px;
    margin-bottom: 10px;
}

.project-details-list {
    list-style: none;
    padding-left: 0;
    margin-bottom: 15px;
}

.project-details-list li {
    font-size: 0.9rem;
    color: var(--text-medium);
    margin-bottom: 8px;
    line-height: 1.6;
}

.project-details-list li strong {
    color: var(--text-light);
    min-width: 120px;
    display: inline-block;
}

.project-details-list .nested-list {
    list-style: disc;
    padding-left: 20px;
    margin-top: 5px;
}

.project-details-list .nested-list li {
    font-size: 0.85rem;
    margin-bottom: 4px;
}

.project-summary-card .project-info p em {
    display: block;
    text-align: right;
    font-style: italic;
    color: var(--text-medium);
    margin-top: auto;
    padding-top: 15px;
}

/* Pushes to bottom */
.project-documentation-links {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.project-documentation-links h4 {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 15px;
}

.project-doc-link {
    margin: 5px 10px;
    display: inline-flex;
    align-items: center;
    font-size: 0.9rem;
    padding: 10px 20px;
}

.project-doc-link i {
    margin-right: 8px;
}

.disclaimer-text {
    font-size: 0.8rem;
    color: var(--text-medium);
    margin-top: 15px;
    font-style: italic;
}

/* Project Overview Table (lightweight styling) */
.project-overview-table {
    margin-top: 20px;
    overflow-x: auto;
}

.project-overview {
    width: 100%;
    border-collapse: collapse;
}

.project-overview th,
.project-overview td {
    border: 1px solid var(--border-color);
    padding: 10px 12px;
    font-size: 0.9rem;
    text-align: left;
}

.project-overview thead th {
    background: rgba(var(--bg-dark-lightest-rgb), 0.5);
    color: var(--text-headings);
}

.project-overview tbody tr:hover {
    background: rgba(255, 255, 255, 0.03);
}

/* Hide old inline case study sections on the homepage */
#case-study-cp,
#case-study-akmcc,
#case-study-oxydize,
#case-study-khandani {
    display: none !important;
}


/* === OUR PROCESS SECTION STYLES (MZMEDIA INSPIRED) === */
.process-section-mz {
    background-color: transparent;
    overflow: hidden;
    padding-bottom: 100px;
}

.process-section-mz .section-subtitle {
    margin-bottom: 70px;
}

.process-timeline-mz {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
}

.process-step-mz {
    display: flex;
    flex-wrap: wrap;
    position: relative;
    padding: 30px 0 50px 0;
    gap: 20px 40px;
    align-items: flex-start;
    opacity: 0.5;
    transform: scale(0.98);
    transition: opacity 0.6s ease, transform 0.6s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.process-step-mz:last-child {
    border-bottom: none;
}

.process-step-mz.active-step-mz {
    opacity: 1;
    transform: scale(1);
}

.process-step-mz-header {
    flex: 0 0 180px;
    text-align: left;
    position: relative;
    padding-top: 5px;
}

.step-tag-mz {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--text-headings);
    padding: 7px 18px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 50px;
    letter-spacing: 0.8px;
    box-shadow: 0 3px 10px rgba(var(--primary-color-rgb), 0.3);
}

.step-number-graphic-mz {
    font-size: clamp(5rem, 12vw, 8rem);
    font-weight: 800;
    color: rgba(255, 255, 255, 0.08);
    position: absolute;
    top: 35px;
    left: -15px;
    line-height: 1;
    z-index: 1;
    user-select: none;
    transition: color 0.5s ease;
}

.active-step-mz .step-number-graphic-mz {
    color: rgba(var(--primary-color-rgb), 0.15);
}

.process-step-mz-content {
    flex: 1 1 300px;
    min-width: 280px;
    z-index: 2;
    padding-right: 20px;
}

.process-step-mz-content h3 {
    font-size: clamp(1.7rem, 2.8vw, 2.2rem);
    margin-bottom: 10px;
    color: var(--text-headings);
    font-weight: 700;
}

.active-step-mz .process-step-mz-content h3 {
    color: var(--secondary-color);
}

.process-step-mz-content p {
    font-size: 0.95rem;
    color: var(--text-medium);
    line-height: 1.7;
    margin-bottom: 15px;
}

.process-step-mz-content ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 15px;
}

.process-step-mz-content ul li {
    font-size: 0.9rem;
    color: var(--text-medium);
    margin-bottom: 6px;
    padding-left: 20px;
    position: relative;
}

.process-step-mz-content ul li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

.process-step-mz-content .step-summary {
    font-size: 0.9rem;
    font-style: italic;
    color: var(--text-light);
    margin-top: 10px;
    border-left: 3px solid var(--primary-color);
    padding-left: 10px;
}

.process-step-mz-visuals {
    flex: 0 0 280px;
    position: relative;
    min-height: 220px;
    z-index: 2;
    margin-top: 10px;
}

.pill-mz {
    position: absolute;
    background-color: rgba(var(--bg-dark-lightest-rgb), 0.8);
    backdrop-filter: blur(5px);
    color: var(--text-light);
    padding: 9px 18px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0;
    transform: scale(0);
    /* Start from 0 for bloom effect */
    filter: blur(8px);
    /* Blur effect for "focusing" */
    transition: opacity 0.6s ease, transform 0.8s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.6s ease;
    /* Springy bloom */
}

.active-step-mz .pill-mz {
    opacity: 1;
    filter: blur(0);
}

/* Transform is handled by specific classes */
.active-step-mz .pill-mz:nth-child(1) {
    transition-delay: 0.2s;
}

.active-step-mz .pill-mz:nth-child(2) {
    transition-delay: 0.3s;
}

.active-step-mz .pill-mz:nth-child(3) {
    transition-delay: 0.4s;
}

.active-step-mz .pill-mz:nth-child(4) {
    transition-delay: 0.5s;
}

.active-step-mz .coaches-pill {
    top: 0%;
    left: 10%;
    transform: translateY(0) scale(1) rotate(-8deg);
}

.active-step-mz .personal-brand-pill {
    top: 15%;
    right: 5%;
    transform: translateY(0) scale(1) rotate(6deg);
}

.active-step-mz .ecommerce-pill {
    top: 45%;
    left: -5%;
    transform: translateY(0) scale(1) rotate(7deg);
}

.active-step-mz .fashion-pill {
    top: 65%;
    right: 0%;
    transform: translateY(0) scale(1) rotate(-10deg);
}

.active-step-mz .pill-generic-1 {
    top: 5%;
    left: 5%;
    transform: translateY(0) scale(1) rotate(-5deg);
}

.active-step-mz .pill-generic-2 {
    top: 30%;
    right: 10%;
    transform: translateY(0) scale(1) rotate(10deg);
}

.active-step-mz .pill-generic-3 {
    top: 10%;
    left: 15%;
    transform: translateY(0) scale(1) rotate(8deg);
}

.active-step-mz .pill-generic-4 {
    top: 50%;
    right: 5%;
    transform: translateY(0) scale(1) rotate(-6deg);
}

.active-step-mz .pill-generic-5 {
    top: 20%;
    left: 0%;
    transform: translateY(0) scale(1) rotate(-7deg);
}

.active-step-mz .pill-generic-6 {
    top: 60%;
    right: 15%;
    transform: translateY(0) scale(1) rotate(4deg);
}

.active-step-mz .pill-generic-7 {
    top: 15%;
    left: 10%;
    transform: translateY(0) scale(1) rotate(5deg);
}

.active-step-mz .pill-generic-8 {
    top: 55%;
    right: 0%;
    transform: translateY(0) scale(1) rotate(-8deg);
}

.active-step-mz .pill-mz:hover {
    transform: scale(1.1) translateY(-3px) rotate(0deg) !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5), 0 0 20px var(--secondary-color);
    border-color: var(--secondary-color);
    z-index: 10;
}

/* Testimonials, FAQ, Contact, Modal, Footer */
.testimonials-section,
.faq-section,
.contact-section {
    background-color: var(--bg-dark-lighter);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.testimonial-card {
    background: rgba(var(--bg-dark-lightest-rgb), 0.7);
    padding: 30px 25px;
    border-radius: 10px;
    border-left: 4px solid var(--primary-color);
    box-shadow: var(--card-shadow);
    display: flex;
    flex-direction: column;
}

.testimonial-text {
    font-style: italic;
    color: var(--text-light);
    margin-bottom: 20px;
    line-height: 1.8;
    flex-grow: 1;
    font-size: 1rem;
}

.testimonial-author {
    font-weight: 600;
    color: var(--text-medium);
    text-align: right;
    font-size: 0.9rem;
    margin-top: auto;
}

.testimonial-author::before {
    content: "— ";
}

.faq-accordion {
    max-width: 800px;
    margin: 40px auto 0;
}

.faq-item {
    margin-bottom: 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: rgba(var(--bg-dark-lightest-rgb), 0.5);
}

.faq-question {
    background: transparent;
    border: none;
    width: 100%;
    padding: 20px 25px;
    text-align: left;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-headings);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s ease;
}

.faq-question:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

.faq-question span {
    display: flex;
    align-items: center;
}

.faq-question i {
    font-size: 1rem;
    color: var(--secondary-color);
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.4s ease-out;
}

.faq-answer p {
    padding: 0 25px 20px;
    font-size: 0.95rem;
    color: var(--text-medium);
    margin-bottom: 0;
    line-height: 1.8;
}

.contact-intro-text {
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.contact-form {
    max-width: 650px;
    margin: 30px auto 0;
    text-align: left;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-light);
    font-size: 0.9rem;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    background-color: rgba(var(--bg-dark-lightest-rgb), 0.7);
    color: var(--text-light);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-medium);
    opacity: 0.7;
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(var(--primary-color-rgb), 0.3);
}

.form-group select option {
    background-color: var(--bg-dark-lighter);
    color: var(--text-light);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-form .cta-button {
    width: 100%;
    padding: 15px;
    font-size: 1.05rem;
    margin-top: 10px;
}

.contact-alternative-text {
    margin-top: 25px;
    font-size: 0.95em;
    color: var(--text-medium);
    text-align: center;
}

.contact-email-link,
.contact-phone-link {
    color: var(--secondary-color);
    font-weight: 500;
}

.contact-email-link:hover,
.contact-phone-link:hover {
    color: var(--secondary-hover-color);
    text-decoration: underline;
}

.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.8);
    padding-top: 30px;
    padding-bottom: 30px;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content-wrapper {
    background-color: var(--bg-dark-lighter);
    color: var(--text-light);
    margin: auto;
    padding: 0;
    border-radius: 10px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.5);
    width: 90%;
    max-width: 850px;
    position: relative;
    display: flex;
    flex-direction: column;
    max-height: calc(100vh - 60px);
    border: 1px solid var(--border-color);
}

.modal-header {
    padding: 20px 25px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-title {
    font-size: 1.6rem;
    color: var(--text-headings);
    margin-bottom: 0;
    padding-bottom: 0;
    text-align: left;
}

.modal-title::after {
    display: none;
}

.close-modal-button {
    color: var(--text-medium);
    font-size: 28px;
    font-weight: bold;
    line-height: 1;
    cursor: pointer;
    padding: 5px;
}

.close-modal-button:hover,
.close-modal-button:focus {
    color: var(--text-headings);
}

.modal-body {
    padding: 25px;
    overflow-y: auto;
    text-align: left;
    flex-grow: 1;
}

.term-item {
    margin-bottom: 30px;
}

.term-item:last-of-type {
    margin-bottom: 0;
}

.term-item h3 {
    font-size: 1.2rem;
    color: var(--text-headings);
    margin-bottom: 10px;
}

.term-item h3 span {
    color: var(--secondary-color);
    margin-right: 8px;
}

.term-item p {
    font-size: 0.9rem;
    color: var(--text-medium);
    line-height: 1.7;
    margin-bottom: 8px;
}

.term-item p:last-child {
    margin-bottom: 0;
}

.term-item .bengali-text {
    font-size: 0.85rem;
    color: var(--text-medium);
    margin-top: 5px;
    line-height: 1.7;
}

.modal-terms-footer {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.modal-terms-footer p {
    font-size: 0.95rem;
    color: var(--text-medium);
    margin-bottom: 10px;
}

.modal-terms-footer p i {
    margin-right: 8px;
    font-size: 1.05em;
}

.modal-terms-footer p i.fa-info-circle {
    color: var(--secondary-color);
}

.modal-terms-footer p i.fa-check-circle {
    color: #28a745;
}

/* === Footer === */
footer {
    background: var(--bg-dark);
    color: var(--text-medium);
    text-align: center;
    padding: 3rem 0;
    margin-top: 0;
    border-top: 1px solid var(--border-color);
}

.footer-logo {
    margin-bottom: 20px;
}

.footer-logo img {
    height: 40px;
    opacity: 0.8;
}

.footer-nav-links {
    margin-bottom: 25px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px 25px;
}

.footer-nav-links a.nav-link {
    color: var(--text-medium);
    font-size: 0.9rem;
    padding: 5px 0;
    border-bottom: 2px solid transparent;
    transition: color 0.3s ease;
}

.footer-nav-links a.nav-link:hover {
    color: var(--text-headings);
}

.footer-social-and-copyright {
    padding-top: 25px;
    border-top: 1px solid var(--border-color);
}

.social-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 25px;
    margin-bottom: 20px;
}

.social-links a {
    text-decoration: none;
    display: inline-block;
    transition: transform 0.3s ease, color 0.3s ease;
}

.social-links a i {
    font-size: 1.5rem;
    color: var(--text-medium);
}

.social-links a:hover i {
    color: var(--secondary-color);
    transform: scale(1.1);
}

.footer-copyright {
    font-size: 0.85rem;
    margin: 0;
    color: var(--text-medium);
}

/* === Animations === */
.animate-on-load {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease-out forwards;
}

.animate-on-load.delay-1 {
    animation-delay: 0.3s;
}

.animate-on-load.delay-2 {
    animation-delay: 0.6s;
}

.animate-on-load.delay-3 {
    animation-delay: 0.9s;
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.animate-on-scroll.delay-1.is-visible {
    transition-delay: 0.2s;
}

.animate-on-scroll.delay-2.is-visible {
    transition-delay: 0.4s;
}

.animate-on-scroll.delay-3.is-visible {
    transition-delay: 0.6s;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Respect reduced motion preferences */
@media (prefers-reduced-motion: reduce) {

    .animate-on-load,
    .animate-on-scroll,
    .pill-mz,
    .project-card,
    .mobile-nav-toggle,
    .theme-toggle-button {
        animation: none !important;
        transition: none !important;
        transform: none !important;
    }

    /* Ensure content is visible when animations are disabled */
    .animate-on-load,
    .animate-on-scroll,
    .animate-on-scroll.is-visible {
        opacity: 1 !important;
    }
}

/* === Mobile Navigation Styles === */
.mobile-nav-toggle {
    display: none;
    background: transparent;
    border: none;
    color: var(--text-headings);
    font-size: 1.8rem;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1100;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.mobile-nav-toggle .icon-close {
    display: none;
}

.mobile-nav-toggle .icon-hamburger::before {
    content: none !important;
    display: none !important;
}

.mobile-nav-toggle .icon-hamburger {
    position: relative;
    display: inline-block;
    width: 22px;
    height: 2px;
    background-color: var(--text-headings);
    border-radius: 2px;
    box-shadow: 0 6px 0 var(--text-headings), 0 -6px 0 var(--text-headings);
}

.mobile-nav-toggle[aria-expanded="true"] .icon-hamburger {
    display: none;
}

.mobile-nav-toggle[aria-expanded="true"] .icon-close {
    display: block;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@media (max-width: 992px) {
    ul.primary-navigation {
        position: fixed;
        inset: 0;
        display: flex;
        flex-direction: column;
        justify-content: space-evenly;
        align-items: stretch;
        gap: 0;
        height: 100svh;
        padding: var(--header-height) 1rem 12px;
        background: rgba(13, 13, 26, 0.95);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        transform: translateX(100%);
        transition: transform 350ms ease-out;
        z-index: 2200;
        overflow: hidden;
        box-sizing: border-box;
    }

    ul.primary-navigation[data-visible="true"] {
        transform: translateX(0%);
    }

    ul.primary-navigation li {
        margin-left: 0;
        width: 100%;
        flex: 1 1 auto;
        display: flex;
        align-items: center;
    }

    ul.primary-navigation li a.nav-link {
        font-size: 1rem;
        color: var(--text-headings);
        display: block;
        width: 100%;
        text-align: center;
        padding: 10px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        line-height: 1.2;
    }

    ul.primary-navigation li a.nav-link::after {
        display: none;
    }

    .mobile-nav-toggle {
        display: block;
    }

    .desktop-cta {
        display: none;
    }

    .founder-profile-layout {
        flex-direction: column;
        text-align: center;
    }

    .founder-image-container {
        margin-bottom: 20px;
        max-width: 220px;
    }

    .founder-social-links {
        justify-content: center;
    }

    /* Process Section Responsive */
    .process-step-mz {
        align-items: center;
    }

    .process-step-mz-header {
        flex: 1 1 100%;
        text-align: center;
        margin-bottom: 10px;
    }

    .step-number-graphic-mz {
        left: 50%;
        transform: translateX(-50%);
        top: 45px;
    }

    .process-step-mz-content {
        flex: 1 1 100%;
        text-align: center;
        padding-right: 0;
    }

    .process-step-mz-content ul {
        display: inline-block;
        text-align: left;
        padding-left: 0;
    }

    .process-step-mz-visuals {
        flex: 1 1 100%;
        min-height: 100px;
        margin-top: 15px;
        display: flex;
        justify-content: center;
        align-items: center;
        flex-wrap: wrap;
        gap: 10px;
    }

    .pill-mz {
        position: relative;
        top: auto;
        left: auto;
        right: auto;
        bottom: auto;
        transform: none !important;
        margin: 5px;
        opacity: 1;
    }
}

@media (max-width: 768px) {
    ul.primary-navigation {
        inset: 0 0 0 20%;
    }

    .hero h1 {
        font-size: 2.5rem;
        font-weight: 700;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .section-subtitle {
        font-size: 2.2rem;
    }

    .comparison-grid,
    .projects-grid,
    .detailed-services-grid {
        grid-template-columns: 1fr;
    }

    .founder-details h3 {
        font-size: 2rem;
    }

    .founder-details h4 {
        font-size: 1rem;
    }

    .modal-content-wrapper {
        width: 95%;
        max-height: calc(100vh - 40px);
    }

    .modal-header,
    .modal-body {
        padding: 15px 20px;
    }

    .modal-title {
        font-size: 1.4rem;
    }

    .footer-nav-links {
        gap: 10px 15px;
    }

    .project-details-list li strong {
        min-width: 100px;
    }

    .process-step-mz-content h3 {
        font-size: 1.6rem;
    }

    .process-step-mz-content p {
        font-size: 0.9rem;
    }

    .step-tag-mz {
        font-size: 0.75rem;
        padding: 5px 12px;
        margin-bottom: 40px;
    }

    .step-number-graphic-mz {
        font-size: clamp(3rem, 8vw, 5rem);
        top: 30px;
    }
}

/* Compress menu further on very short screens so all items fit without scrolling */
@media (max-height: 640px) and (max-width: 992px) {
    ul.primary-navigation li a.nav-link {
        font-size: 0.95rem;
        padding: 8px 0;
    }
}

@media (max-height: 560px) and (max-width: 992px) {
    ul.primary-navigation li a.nav-link {
        font-size: 0.9rem;
        padding: 6px 0;
    }
}

/* Center the hamburger on smaller phones (logo left, theme right) */
@media (max-width: 768px) {
    .mobile-nav-toggle {
        left: 50% !important;
        right: auto !important;
        transform: translate(-50%, -50%) !important;
    }
}

@media (max-width: 480px) {
    ul.primary-navigation {
        inset: 0 0 0 0;
    }

    .hero h1 {
        font-size: 2rem;
        font-weight: 700;
    }

    .hero p {
        font-size: 1rem;
    }

    .section-subtitle {
        font-size: 1.8rem;
    }

    .cta-button {
        padding: 10px 22px;
        font-size: 0.9rem;
    }

    .nav-cta {
        padding: 8px 20px;
        font-size: 0.85rem;
    }

    header .logo img {
        height: 30px;
    }

    .social-links a i {
        font-size: 1.3rem;
    }

    .detailed-service-card {
        padding: 20px 15px;
    }

    .detailed-service-card h3 {
        font-size: 1.15rem;
    }

    .founder-image-container {
        max-width: 180px;
    }

    .founder-details h3 {
        font-size: 1.8rem;
    }

    .faq-question {
        font-size: 1rem;
        padding: 15px 20px;
    }

    .faq-answer p {
        padding: 0 20px 15px;
    }

    .project-doc-link {
        display: block;
        margin: 10px auto;
    }
}

/* ================================================== */
/* ============== OUR TEAM SECTION (FIXED) ============== */
/* This code should NOT be inside any other @media rule */
/* ================================================== */

.team-grid {
    display: flex;
    flex-wrap: wrap;
    /* Allows items to wrap to the next line */
    gap: 30px;
    margin-top: 40px;
}

/* This is the CSS for the cards themselves */
.team-member-card {
    width: calc(25% - 22.5px);
    /* 4 cards per row, accounting for gap */
    background: var(--bg-dark-lighter);
    border-radius: 12px;
    text-align: center;
    box-shadow: var(--card-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-color);
    overflow: hidden;
}

/* === Responsive adjustments for the team cards === */

/* For tablets */
@media (max-width: 1200px) {
    .team-member-card {
        width: calc(33.33% - 20px);
        /* 3 cards per row */
    }
}

/* For smaller tablets/large phones */
@media (max-width: 768px) {
    .team-member-card {
        width: calc(50% - 15px);
        /* 2 cards per row */
    }
}

/* For mobile phones */
@media (max-width: 480px) {
    .team-member-card {
        width: 100%;
        /* 1 card per row */
    }
}


/* === Hover effects and inner styling (already correct) === */
.team-member-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.team-member-photo {
    width: 100%;
    padding-top: 100%;
    position: relative;
    background-color: #333;
}

.team-member-photo img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.team-member-info {
    padding: 20px 15px;
}

.team-member-name {
    font-size: 1.25rem;
    margin-bottom: 5px;
    color: var(--text-headings);
}

.team-member-title {
    font-size: 0.9rem;
    color: var(--secondary-color);
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ================================================== */
/* ========= FINAL ANIMATED PROCESS SECTION ========= */
/* ================================================== */
.process-section-mz {
    overflow-x: hidden;
    padding-bottom: 100px;
}

.process-section-mz .section-subtitle {
    margin-bottom: 100px;
}

.process-timeline-mz {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
}

.process-step-mz {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 50px;
    position: relative;
    padding: 30px 0 80px 100px;
    opacity: 0.3;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.process-timeline-mz::before {
    content: '';
    position: absolute;
    top: 20px;
    bottom: 20px;
    left: 33px;
    width: 2px;
    background-image: linear-gradient(to bottom, transparent, rgba(var(--primary-color-rgb), 0.3), transparent);
    z-index: 1;
}

.process-step-mz.active-step-mz {
    opacity: 1;
}

.process-step-mz-header {
    position: absolute;
    top: 25px;
    left: 0;
    width: 68px;
    text-align: center;
    z-index: 3;
}

.process-step-mz-header::before {
    content: '';
    position: absolute;
    top: 5px;
    left: 24px;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(var(--primary-color-rgb), 0.3);
    border-radius: 50%;
    background-color: #000;
    transition: all 0.5s ease;
}

.active-step-mz .process-step-mz-header::before {
    border-color: var(--primary-color);
    transform: scale(1.2);
    box-shadow: 0 0 15px var(--primary-color), 0 0 30px var(--primary-color);
}

.step-number-graphic-mz {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-medium);
    margin-top: 35px;
    transition: color 0.5s ease;
}

.active-step-mz .step-number-graphic-mz {
    color: var(--text-headings);
}

.process-step-mz-content h3 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    margin-bottom: 20px;
}

.process-step-mz-content p {
    font-size: 1rem;
    color: var(--text-medium);
    line-height: 1.8;
    max-width: 600px;
    margin-bottom: 20px;
}

.process-step-mz-content ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 20px;
}

.process-step-mz-content ul li {
    font-size: 0.95rem;
    color: var(--text-medium);
    margin-bottom: 10px;
    padding-left: 25px;
    position: relative;
}

.process-step-mz-content ul li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.1rem;
}

.step-summary {
    font-style: italic;
    color: var(--text-light);
    border-left: 3px solid var(--primary-color);
    padding-left: 15px;
    margin-top: 25px !important;
}

.process-step-mz-visuals {
    position: relative;
    min-height: 200px;
}

.pill-mz {
    position: absolute;
    background-color: rgba(var(--bg-dark-lightest-rgb), 0.8);
    backdrop-filter: blur(5px);
    color: var(--text-light);
    padding: 10px 20px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0;
    transform: translateY(30px) scale(0.8);
    transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.active-step-mz .pill-mz {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.active-step-mz .pill-mz:nth-child(1) {
    transition-delay: 0.2s;
    top: 15%;
    left: 5%;
    transform: rotate(5deg);
}

.active-step-mz .pill-mz:nth-child(2) {
    transition-delay: 0.35s;
    top: 55%;
    right: 10%;
    transform: rotate(-10deg);
}

.active-step-mz .pill-mz:nth-child(3) {
    transition-delay: 0.5s;
    top: 80%;
    left: 20%;
    transform: rotate(8deg);
}

@media (max-width: 992px) {
    .process-step-mz {
        grid-template-columns: 1fr;
        padding-left: 80px;
    }

    .process-step-mz-visuals {
        display: none;
    }
}

/* ================================================== */
/* ========= THEME TOGGLE & LIGHT THEME STYLES ======== */
/* ================================================== */

/* Container for nav controls */
.nav-controls {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Theme Toggle Button Styling */
.theme-toggle-button {
    background: rgba(var(--bg-dark-lightest-rgb), 0.7);
    border: 1px solid var(--border-color);
    color: var(--text-light);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    overflow: hidden;
}

.theme-toggle-button:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.theme-toggle-button .fa-sun {
    display: none;
}

.theme-toggle-button .fa-moon {
    display: block;
}

/* ---------------- LIGHT THEME ---------------- */
body.light-theme {
    --bg-dark: #FFFFFF;
    --bg-dark-lighter: #F8F9FA;
    --bg-dark-lightest: #E9ECEF;
    --text-light: #495057;
    --text-medium: #6C757D;
    --text-headings: #212529;
    --border-color: rgba(0, 0, 0, 0.1);
    --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --primary-color-rgb: 106, 64, 228;
    --bg-dark-lightest-rgb: 233, 236, 239;
}

/* Hide dark theme background glow in light mode */
body.light-theme::before {
    display: none;
}

/* Adjust header for light theme */
body.light-theme header {
    background: rgba(255, 255, 255, 0.8);
}

/* Adjust toggle button icons for light theme */
body.light-theme .theme-toggle-button {
    background: rgba(233, 236, 239, 0.7);
    color: #212529;
}

body.light-theme .theme-toggle-button .fa-sun {
    display: block;
}

body.light-theme .theme-toggle-button .fa-moon {
    display: none;
}

/* Adjust form inputs for light theme */
body.light-theme .form-group input,
body.light-theme .form-group select,
body.light-theme .form-group textarea {
    background-color: #FFFFFF;
    color: #212529;
}

/* === PIXEL PERFECT & ULTRA-RESPONSIVE ENHANCEMENTS === */

/* Utility: Responsive images */
img,
video {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Utility: Section max width for ultra-wide screens */
.container,
.section-block,
.main-content {
    max-width: 1440px;
    margin-left: auto;
    margin-right: auto;
}

/* Utility: Consistent section padding for all screens */
.section-block {
    padding-left: max(5vw, var(--safe-left));
    padding-right: max(5vw, var(--safe-right));
}

@media (max-width: 360px) {
    .hero h1 {
        font-size: 1.8rem;
        line-height: 1.15;
    }

    .hero p {
        font-size: 0.95rem;
    }

    .cta-button {
        padding: 12px 20px;
        font-size: 0.95rem;
    }
}

@media (max-width: 600px) {
    .section-block {
        padding-left: max(2vw, var(--safe-left));
        padding-right: max(2vw, var(--safe-right));
        padding-top: 40px;
        padding-bottom: 40px;
    }
}

/* Ultra-small device font scaling */
@media (max-width: 375px) {
    html {
        font-size: 14px;
    }

    .section-title-alt {
        font-size: 0.95rem;
    }

    .section-subtitle {
        font-size: 1.1rem;
    }
}

/* Ultra-large device font scaling */
@media (min-width: 1800px) {
    html {
        font-size: 18px;
    }

    .container,
    .section-block,
    .main-content {
        max-width: 1680px;
    }
}

/* Touch target improvements */
button,
.cta-button,
.nav-link,
.faq-question {
    min-height: 44px;
    min-width: 44px;
    touch-action: manipulation;
}

/* Grid/flex fixes for edge cases */
.detailed-services-grid,
.projects-grid,
.comparison-grid,
.testimonials-grid,
.team-grid {
    gap: min(5vw, 30px);
}

@media (max-width: 350px) {

    .detailed-services-grid,
    .projects-grid,
    .comparison-grid,
    .testimonials-grid,
    .team-grid {
        gap: 10px;
    }
}

/* Prevent horizontal scroll on all elements */
html,
body,
.container,
.section-block,
.main-content {
    overflow-x: hidden;
}

/* Bugfix: ensure list bullets display consistently */
.process-step-mz-content ul li::before {
    content: "\2022";
}

.section-block:first-of-type {
    border-top: none;
}

@media (max-width: 480px) {
    :root {
        --header-height: 56px;
    }
}

/* Mobile-only CTA inside the slide-out nav */
.mobile-only {
    display: none;
}

@media (max-width: 992px) {
    ul.primary-navigation li.mobile-only {
        display: block;
        border-bottom: none;
        padding: 16px 0 0;
        text-align: center;
    }

    ul.primary-navigation li.mobile-only .nav-cta {
        width: 80%;
        max-width: 280px;
        margin: 8px auto 0;
        display: inline-block;
    }
}