:root {
    /* Light Mode - Grayscale Palette */
    --bg-primary: #f9fafb; /* Very light gray */
    --bg-secondary: #ffffff; /* White */
    --text-primary: #111827; /* Almost black */
    --text-secondary: #4b5563; /* Medium gray */
    --border-color: #e5e7eb; /* Light gray border */
    --accent-color: #374151; /* Dark gray for buttons/accents */
    --accent-text: #ffffff;
}

:root[data-theme="light"] {
    --bg-primary: #f9fafb;
    --bg-secondary: #ffffff;
    --text-primary: #111827;
    --text-secondary: #4b5563;
    --border-color: #e5e7eb;
    --accent-color: #374151;
    --accent-text: #ffffff;
}

:root[data-theme="dark"] {
    --bg-primary: #111827;
    --bg-secondary: #1f2937;
    --text-primary: #f9fafb;
    --text-secondary: #9ca3af;
    --border-color: #374151;
    --accent-color: #e5e7eb;
    --accent-text: #111827;
}

@media (prefers-color-scheme: dark) {
    :root {
        /* Dark Mode - Grayscale Palette */
        --bg-primary: #111827; /* Very dark gray */
        --bg-secondary: #1f2937; /* Dark gray */
        --text-primary: #f9fafb; /* Off-white */
        --text-secondary: #9ca3af; /* Light gray */
        --border-color: #374151; /* Medium-dark gray border */
        --accent-color: #e5e7eb; /* Light gray for buttons/accents */
        --accent-text: #111827;
    }
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease;
    overflow-x: hidden;
    overflow-y: auto;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 2rem;
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.skip-link:focus {
    left: 1rem;
    top: 1rem;
    width: auto;
    height: auto;
    padding: 0.5rem 0.75rem;
    background: var(--bg-secondary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    z-index: 1000;
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

/* Navigation */
header {
    padding: 2rem 0;
    border-bottom: 1px solid var(--border-color);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo {
    font-weight: 700;
    font-size: 1.25rem;
    text-decoration: none;
    color: var(--text-primary);
}

.nav-links a {
    margin-left: 2rem;
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 0.9rem;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--text-primary);
}

/* Hamburger button (mobile only) */
.nav-hamburger {
    display: none;
    width: 2.1rem;
    height: 2.1rem;
    border-radius: 999px;
    border: 1px solid var(--border-color);
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 4px;
    padding: 0;
    cursor: pointer;
    transition: border-color 0.2s;
    flex-shrink: 0;
}

.nav-hamburger:hover {
    border-color: var(--accent-color);
}

.nav-hamburger span {
    display: block;
    width: 15px;
    height: 2px;
    background-color: currentColor;
    border-radius: 2px;
}

/* Mobile slide-in menu */
.mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 1000;
    pointer-events: none;
    visibility: hidden;
}

.mobile-menu.is-open {
    pointer-events: auto;
    visibility: visible;
}

.mobile-menu-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-menu.is-open .mobile-menu-overlay {
    opacity: 1;
}

.mobile-menu-drawer {
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
    width: min(300px, 80vw);
    background-color: var(--bg-primary);
    border-left: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    padding: 1.25rem 1.5rem;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.mobile-menu.is-open .mobile-menu-drawer {
    transform: translateX(0);
}

.mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
}

.mobile-menu-brand {
    font-weight: 700;
    font-size: 1rem;
    color: var(--text-primary);
}

.mobile-menu-close {
    width: 2.1rem;
    height: 2.1rem;
    border-radius: 999px;
    border: 1px solid var(--border-color);
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: border-color 0.2s;
    flex-shrink: 0;
    padding: 0;
}

.mobile-menu-close:hover {
    border-color: var(--accent-color);
}

.mobile-menu-close svg {
    width: 0.95rem;
    height: 0.95rem;
}

.mobile-menu-nav {
    display: flex;
    flex-direction: column;
}

.mobile-menu-nav a {
    display: flex;
    align-items: center;
    min-height: 3rem;
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 1rem;
    font-weight: 500;
    border-bottom: 1px solid var(--border-color);
    transition: color 0.2s;
}


.mobile-menu-nav a:hover {
    color: var(--text-primary);
}

.theme-toggle {
    width: 2.1rem;
    height: 2.1rem;
    border-radius: 999px;
    border: 1px solid var(--border-color);
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.theme-toggle:hover {
    border-color: var(--accent-color);
}

.theme-toggle-icon {
    font-size: 0.9rem;
    line-height: 1;
}

.cta-buttons {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.cta-buttons .btn-secondary {
    margin-left: 0;
}

/* Hero Section */
.hero {
    padding: 6rem 0;
    text-align: left;
}

.hero h1 {
    font-size: 3rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin-bottom: 2.5rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: opacity 0.2s;
}

.btn:hover {
    opacity: 0.9;
}

.btn-primary {
    background-color: var(--accent-color);
    color: var(--accent-text);
    border: 1px solid var(--accent-color);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    margin-left: 1rem;
}

/* Services Layout */
.services {
    padding: 4rem 0;
    border-top: 1px solid var(--border-color);
}

.services h2 {
    font-size: 1.5rem;
    margin-bottom: 3rem;
    font-weight: 600;
}

.services-layout {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.services-list {
    display: flex;
    flex-direction: row;
    gap: 0.5rem;
    overflow-x: auto;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0;
}

.service-item {
    background: none;
    border: none;
    text-align: center;
    padding: 1rem 1.5rem;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    color: var(--text-secondary);
    transition: all 0.2s ease;
    white-space: nowrap;
}

.service-item h3 {
    font-size: 1.1rem;
    font-weight: 500;
}

.service-item:hover {
    color: var(--text-primary);
    background-color: var(--bg-secondary);
}

.service-item.active {
    color: var(--text-primary);
    border-bottom-color: var(--accent-color);
    background-color: var(--bg-secondary);
}

.service-details {
    background-color: var(--bg-secondary);
    padding: 2.5rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
}

.service-content {
    display: none;
    font-size: 1rem;
}

.service-content.active {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
    animation: fadeIn 0.3s ease;
}

.service-info {
    display: flex;
    flex-direction: column;
}

.service-content h3 {
    font-size: 1.5rem;
    margin-bottom: 0.4rem;
    color: var(--text-primary);
}

.engagement-type {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--accent-color);
    border: 1px solid var(--accent-color);
    border-radius: 999px;
    padding: 0.2rem 0.65rem;
    margin-top: 0.1rem;
    margin-bottom: 1.25rem;
    width: fit-content;
}

.service-subheading {
    font-size: 1rem;
    margin: 2rem 0 0.6rem;
    color: var(--text-primary);
}

.faq .service-subheading:first-child {
    margin-top: 0;
}

.service-content p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.service-content .headline {
    margin-bottom: 0px;
    font-size: 1.15rem;
}

.service-content ul {
    list-style-type: none;
    padding-left: 0;
}

.service-content li {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
}

.service-content li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--accent-color);
}

.mentorship-block {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}



.cta-buttons {
    margin: 2.25rem 0;
    text-align: center;
}

.faq details {
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 0.75rem 0.9rem;
    margin-bottom: 0.6rem;
    background-color: var(--bg-primary);
}

.faq summary {
    cursor: pointer;
    font-weight: 500;
    color: var(--text-primary);
}

.faq details p {
    margin-top: 0.6rem;
    margin-bottom: 0;
    font-size: 0.95rem;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 768px) {
    header {
        padding: 1rem 0;
    }

    nav {
        display: flex;
        flex-direction: row;
        align-items: center;
    }

    .logo {
        font-size: 1.1rem;
    }

    .nav-links {
        display: none;
    }

    .nav-right {
        margin-left: auto;
        flex-direction: row;
        gap: 0.5rem;
    }

    .nav-hamburger {
        display: inline-flex;
    }

    .theme-toggle {
        width: 2rem;
        height: 2rem;
    }

    .hero {
        padding: 3rem 0;
    }

    .hero h1 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }

    .hero p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .cta-buttons {
        gap: 0.75rem;
    }

    .cta-buttons .btn {
        width: 100%;
        text-align: center;
    }

    .services {
        padding: 3rem 0;
    }

    .services h2 {
        margin-bottom: 1.5rem;
    }

    .services-list {
        display: grid;
        grid-template-columns: 1fr;
        gap: 0.6rem;
        overflow: visible;
        border-bottom: none;
        padding-bottom: 0;
    }

    .service-item {
        width: 100%;
        text-align: left;
        border: 1px solid var(--border-color);
        border-radius: 8px;
        border-bottom: 1px solid var(--border-color);
        padding: 0.9rem 1rem;
    }

    .service-item h3 {
        font-size: 1rem;
    }

    .service-item.active {
        border-color: var(--accent-color);
    }

    .service-details {
        padding: 1.5rem;
    }

    .service-content.active {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 520px) {
    .hero h1 {
        font-size: 1.7rem;
    }
}

.about {
    padding: 4rem 0;
    border-top: 1px solid var(--border-color);
}

.about h2 {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    font-weight: 600;
}

.about-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.about-side {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.profile-pic-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
}

.profile-pic {
    max-width: 200px;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid var(--border-color);
    align-self: center;
}

.about-main p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-size: 1.02rem;
}

.about-facts {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
}

.about-facts h3 {
    font-size: 1rem;
    margin-bottom: 1rem;
}

.about-facts ul {
    font-size: 15px;
    list-style: none;
    padding-left: 0;
}

.about-facts li {
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
    padding-left: 1rem;
    position: relative;
}

.about-facts li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--accent-color);
}

.case-studies {
    padding: 4rem 0;
    border-top: 1px solid var(--border-color);
}

.case-studies h2 {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    font-weight: 600;
}

.case-studies-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.case-nav-btn {
    width: 2.2rem;
    height: 2.2rem;
    border-radius: 999px;
    border: 1px solid var(--border-color);
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    line-height: 1;
}

.case-nav-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.case-studies-dots {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    flex: 1;
}

.case-dot {
    width: 0.6rem;
    height: 0.6rem;
    border-radius: 999px;
    border: 1px solid var(--border-color);
    background-color: transparent;
    cursor: pointer;
}

.case-dot.active {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
}

.case-studies-grid {
    display: flex;
    gap: 2rem;
    overflow-x: auto;
    padding-bottom: 1rem;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--border-color) var(--bg-secondary);
}

.case-studies-grid::-webkit-scrollbar {
    height: 8px;
}

.case-studies-grid::-webkit-scrollbar-track {
    background: var(--bg-secondary);
    border-radius: 4px;
}

.case-studies-grid::-webkit-scrollbar-thumb {
    background-color: var(--border-color);
    border-radius: 4px;
}

.case-card {
    display: flex;
    flex-direction: column;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none;
    color: var(--text-primary);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    min-width: 300px;
    max-width: 350px;
    height: 250px;
    flex-shrink: 0;
    scroll-snap-align: start;
}

.case-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.case-thumb {
    width: 100%;
    height: 120px;
    overflow: hidden;
    flex-shrink: 0;
}

.case-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.case-card:hover .case-thumb img {
    transform: scale(1.05);
}

.case-info {
    padding: 1rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    flex-grow: 1;
    justify-content: center;
}

.case-market {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.case-info h3 {
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.3;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

#case-studies .case-studies-grid {
    display: flex !important;
    gap: 2rem;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 1rem;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x;
}

#case-studies .case-card {
    min-width: 300px;
    max-width: 350px;
    height: 250px !important;
    max-height: 250px;
    flex-shrink: 0;
    scroll-snap-align: start;
}

#case-studies .case-thumb {
    height: 120px;
}

.case-studies-view-all {
    margin-top: 1.25rem;
    display: flex;
    justify-content: center;
}

.case-studies-view-all .btn-secondary {
    margin-left: 0;
}

@media (max-width: 768px) {
    #case-studies .case-studies-grid {
        gap: 1rem;
        padding-bottom: 0.75rem;
    }

    #case-studies .case-card {
        min-width: calc(100vw - 6rem);
        max-width: calc(100vw - 6rem);
        height: 250px !important;
    }

    .case-studies-controls {
        margin-bottom: 0.75rem;
    }

    .case-study-header {
        padding: 2rem 0 1.5rem;
        margin-bottom: 2rem;
    }

    .case-study-header h1 {
        font-size: 1.8rem;
    }

    .case-study-meta {
        flex-direction: column;
        gap: 0.9rem;
        margin-bottom: 1.5rem;
    }

    .case-study-hero-img {
        height: 220px;
        margin-bottom: 2rem;
    }

    .case-study-content h2 {
        font-size: 1.4rem;
        margin: 2rem 0 0.75rem;
    }

    .case-study-content h3 {
        font-size: 1.1rem;
    }

    .case-study-content p,
    .case-study-content li {
        font-size: 1rem;
    }
}

@media (max-width: 520px) {
    #case-studies .case-card {
        min-width: calc(100vw - 4rem);
        max-width: calc(100vw - 4rem);
    }
}

/* Case Study Page Specific Styles */
.case-study-header {
    padding: 4rem 0 2rem;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 3rem;
}

.case-study-header h1 {
    font-size: 2.5rem;
    line-height: 1.2;
    margin-bottom: 1rem;
    font-weight: 800;
}

.case-study-meta {
    display: flex;
    gap: 2rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 2rem;
}

.case-study-meta-item {
    display: flex;
    flex-direction: column;
}

.case-study-meta-label {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.case-study-hero-img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 3rem;
}

.case-study-content {
    max-width: 800px;
    margin: 0 auto;
}

.case-study-content h2 {
    font-size: 1.75rem;
    margin: 2.5rem 0 1rem;
    font-weight: 600;
}

.case-study-content h3 {
    font-size: 1.25rem;
    margin: 1.5rem 0 0.75rem;
    font-weight: 600;
}

.case-study-content p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    color: var(--text-secondary);
}

.case-study-content ul {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.case-study-content li {
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.case-study-content blockquote {
    margin: 1.5rem 0 0;
    padding: 1rem 1.25rem;
    border-left: 4px solid var(--link-color);
    background-color: var(--card-bg);
    color: var(--text-primary);
    border-radius: 6px;
    font-size: 1.05rem;
    line-height: 1.7;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    margin-bottom: 2rem;
    transition: color 0.2s;
}

.back-link:hover {
    color: var(--text-primary);
}

.case-studies-index {
    padding: 4rem 0;
}

.case-studies-index h1 {
    font-size: 2rem;
    line-height: 1.2;
    margin-bottom: 0.75rem;
    font-weight: 700;
}

.case-studies-index-intro {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    max-width: 760px;
}

.case-studies-index-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
}

.case-studies-index-grid .case-card {
    min-width: 0;
    max-width: none;
    width: 100%;
}

@media (max-width: 768px) {
    .case-study-header h1 {
        font-size: 2rem;
        line-height: 1.2;
        margin-bottom: 1rem;
        font-weight: 800;
    }
    
    .about-layout {
        grid-template-columns: 1fr;
    }

    .case-studies-index {
        padding: 3rem 0;
    }

    .case-studies-index h1 {
        font-size: 1.65rem;
    }

    .case-studies-index-grid {
        grid-template-columns: 1fr;
    }
}

.engagement-models {
    padding: 4rem 0;
    border-top: 1px solid var(--border-color);
}

.engagement-models h2 {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    font-weight: 600;
}

.engagement-layout {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.engagement-card {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.engagement-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.engagement-card p {
    color: var(--text-secondary);
    font-size: 1rem;
    margin: 0;
}

@media (max-width: 768px) {
    .engagement-layout {
        grid-template-columns: 1fr;
    }
}

.contact {
    padding: 4rem 0;
    border-top: 1px solid var(--border-color);
}

.contact h2 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.contact-layout {
    max-width: 760px;
}

.contact-layout p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.contact-actions {
    margin: 1.5rem 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.contact-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
}

.contact-icon {
    width: 1rem;
    height: 1rem;
    flex-shrink: 0;
}

.contact-link span {
    line-height: 1;
}

@media (max-width: 768px) {
    .contact-actions .btn {
        width: calc(50% - 0.375rem);
        text-align: center;
    }
}

@media (max-width: 520px) {
    .contact-actions .btn {
        width: 100%;
    }
}

    .case-study-cta-panel {
        max-width: 800px;
        margin: 3rem auto 3rem;
        padding: 2rem;
        background-color: var(--bg-secondary);
        border: 1px solid var(--border-color);
        border-radius: 8px;
    }

    .case-study-cta-panel h2,
    .case-study-cta-panel h1 {
        font-size: 1.5rem;
        margin-bottom: 0.75rem;
        font-weight: 600;
    }

    .case-study-cta-panel p {
        color: var(--text-secondary);
        margin-bottom: 1.25rem;
    }

    .not-found-panel {
        margin: 5rem auto;
    }

/* Testimonials Section */
.testimonials {
    padding: 4rem 0;
    border-top: 1px solid var(--border-color);
}

.testimonials h2 {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    font-weight: 600;
}

.testimonials-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.testimonial-nav-btn {
    width: 2.2rem;
    height: 2.2rem;
    border-radius: 999px;
    border: 1px solid var(--border-color);
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    line-height: 1;
    transition: border-color 0.2s;
    flex-shrink: 0;
}

.testimonial-nav-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.testimonial-nav-btn:not(:disabled):hover {
    border-color: var(--accent-color);
}

.testimonials-dots {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    flex: 1;
}

.testimonial-dot {
    width: 0.6rem;
    height: 0.6rem;
    border-radius: 999px;
    border: 1px solid var(--border-color);
    background-color: transparent;
    cursor: pointer;
    transition: background-color 0.2s, border-color 0.2s;
}

.testimonial-dot.active {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
}

.testimonials-track {
    overflow: hidden;
    border-radius: 8px;
}

.testimonials-slider {
    display: flex;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
}

.testimonial-card {
    min-width: 100%;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 2.5rem 2.75rem 2.25rem;
    margin: 0;
    box-sizing: border-box;
    position: relative;
}

.testimonial-card::before {
    content: "\201C";
    position: absolute;
    top: 1rem;
    left: 2.25rem;
    font-size: 5rem;
    line-height: 1;
    color: var(--border-color);
    font-family: Georgia, serif;
    pointer-events: none;
    user-select: none;
}

.testimonial-card > p {
    font-size: 1.15rem;
    line-height: 1.75;
    color: var(--text-secondary);
    margin-bottom: 1.75rem;
    padding-top: 2.25rem;
    font-style: italic;
}

.testimonial-card footer {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border-color);
}

.testimonial-card cite {
    font-style: normal;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.95rem;
    line-height: 1.5;
}

.testimonial-company {
    font-weight: 400;
    color: var(--text-secondary);
}

.testimonial-context {
    font-size: 0.78rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0;
}

.testimonials-note {
    margin-top: 1.25rem;
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-align: center;
}

@media (max-width: 768px) {
    .testimonials {
        padding: 3rem 0;
    }

    .testimonial-card {
        padding: 2rem 1.5rem 1.75rem;
    }

    .testimonial-card::before {
        left: 1.25rem;
        font-size: 4rem;
    }

    .testimonial-card > p {
        font-size: 1rem;
        padding-top: 2rem;
    }
}

/* Footer */
footer {
    padding: 3rem 0;
    border-top: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-items: center;
    text-align: center;
}

.footer-registration {
    margin: 0;
}

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem 1rem;
}

.footer-nav a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-nav a:hover {
    color: var(--text-primary);
}

@media (max-width: 768px) {
    footer {
        padding: 2rem 0;
    }

    .footer-nav {
        flex-direction: column;
        align-items: center;
        gap: 0;
    }

    .footer-nav a {
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 2.75rem;
        width: 100%;
        border-bottom: 1px solid var(--border-color);
        font-size: 0.9rem;
    }

    .footer-nav a:first-child {
        border-top: 1px solid var(--border-color);
    }

    .footer-nav a:not(:first-child):not(:last-child) {
        display: none;
    }

    .footer-content {
        gap: 1.25rem;
    }
}
