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

:root {
    --primary-color: #2563eb;
    --primary-dark: #1e40af;
    --secondary-color: #7c3aed;
    --accent-color: #f59e0b;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --bg-light: #f9fafb;
    --bg-white: #ffffff;
    --border-color: #e5e7eb;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-white);
}

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

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    box-shadow: var(--shadow-md);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.nav-brand .logo {
    height: 45px;
    width: auto;
    object-fit: contain;
}

.nav-brand-name {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    color: var(--primary-color);
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    gap: 5px;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-dark);
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 80px;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: -1;
}

.hero-content {
    text-align: center;
    max-width: 800px;
    z-index: 1;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: white;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.5rem;
    color: white;
    font-weight: 600;
    margin-bottom: 1rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.hero-description {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 2rem;
    line-height: 1.8;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 0.875rem 2rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
    border: 2px solid transparent;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: white;
}

/* Section Styles */
section {
    padding: 5rem 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    font-size: 1.125rem;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* About Section */
.about {
    background: var(--bg-light);
}

.about-content {
    max-width: 900px;
    margin: 0 auto;
}

.about-text p {
    font-size: 1.125rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.about-highlights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.highlight {
    background: white;
    padding: 2rem;
    border-radius: 0.75rem;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease;
}

.highlight:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.highlight h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

.highlight p {
    color: var(--text-light);
    margin: 0;
}

/* Portfolio Section */
.portfolio {
    background: var(--bg-light);
}

.portfolio-header {
    margin-bottom: 3rem;
}

.case-study {
    background: white;
    border-radius: 1rem;
    box-shadow: var(--shadow-md);
    overflow: hidden;
    margin-bottom: 3rem;
}

.case-study-featured {
    border: 1px solid var(--border-color);
}

.case-study-label {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    text-align: center;
    padding: 0.625rem 1rem;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.case-study-hero {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 3rem;
    padding: 3rem;
    align-items: center;
}

.case-study-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.case-badge {
    padding: 0.375rem 0.875rem;
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 2rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--primary-color);
}

.case-study-title {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-dark);
    line-height: 1.2;
}

.case-study-lead {
    font-size: 1.0625rem;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.case-study-stats {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
    padding: 1.5rem 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.case-stat {
    display: flex;
    flex-direction: column;
}

.case-stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1.2;
}

.case-stat-label {
    font-size: 0.8125rem;
    color: var(--text-light);
    margin-top: 0.25rem;
}

.case-study-cta {
    margin-top: 0.5rem;
}

/* Browser Mockup */
.browser-mockup {
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    background: #1e293b;
    display: block;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.browser-mockup:hover {
    transform: translateY(-4px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.browser-mockup-sm {
    max-width: 100%;
}

.browser-bar {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: #334155;
}

.browser-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #64748b;
}

.browser-dot:nth-child(1) { background: #ef4444; }
.browser-dot:nth-child(2) { background: #f59e0b; }
.browser-dot:nth-child(3) { background: #22c55e; }

.browser-url {
    flex: 1;
    background: #1e293b;
    color: #94a3b8;
    font-size: 0.8125rem;
    padding: 0.375rem 0.75rem;
    border-radius: 0.375rem;
    margin-left: 0.5rem;
    font-family: monospace;
}

.browser-screen {
    position: relative;
    display: block;
    background: white;
    overflow: hidden;
}

.browser-screen .project-screenshot {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    object-position: top center;
    background: #0a0a0a;
    max-height: 520px;
}

.browser-screen .project-placeholder {
    position: relative;
    aspect-ratio: 16/9;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    font-weight: 700;
    color: white;
}

/* Project Scope Grid */
.scope-intro {
    padding: 0 3rem 1.5rem;
    max-width: 900px;
}

.scope-intro p {
    color: var(--text-light);
    font-size: 1rem;
    line-height: 1.7;
    margin: 0;
}

.scope-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    padding: 0 3rem 3rem;
}

.scope-card {
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    padding: 1.5rem;
    color: inherit;
    transition: all 0.3s ease;
}

.scope-card-link {
    text-decoration: none;
    display: block;
}

.scope-card-link:hover {
    border-color: var(--primary-color);
    background: white;
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.scope-icon {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

.scope-card h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.35rem;
}

.scope-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-light);
    margin-bottom: 0.75rem;
}

.scope-label-live {
    color: var(--primary-color);
}

.scope-card-link:hover .scope-label-live {
    text-decoration: underline;
}

.scope-card p:last-child {
    font-size: 0.875rem;
    color: var(--text-light);
    line-height: 1.6;
    margin: 0;
}

/* Deliverables */
.case-study-deliverables {
    padding: 2rem 3rem 3rem;
    background: var(--bg-light);
    border-top: 1px solid var(--border-color);
}

.case-study-deliverables h4 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    text-align: center;
}

.deliverables-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.deliverable {
    background: white;
    padding: 1.5rem;
    border-radius: 0.75rem;
    border: 1px solid var(--border-color);
}

.deliverable strong {
    display: block;
    color: var(--text-dark);
    font-size: 0.9375rem;
    margin-bottom: 0.5rem;
}

.deliverable p {
    font-size: 0.875rem;
    color: var(--text-light);
    line-height: 1.6;
    margin: 0;
}

/* Secondary Case Study */
.case-study-secondary {
    padding: 2rem;
}

.portfolio-secondary-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.portfolio-secondary-grid .secondary-case-content .case-study-title {
    font-size: 1.5rem;
}

.portfolio-secondary-grid .case-study-lead {
    font-size: 0.9375rem;
}

.secondary-case-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.secondary-case-content .case-study-title {
    font-size: 1.75rem;
}

.case-study-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem;
}

.case-study-list li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--text-light);
    font-size: 0.9375rem;
    line-height: 1.6;
}

.case-study-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: 700;
}

/* Project placeholders (fallback images) */
.project-placeholder.bodyshopos {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.project-placeholder.timetracker {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.service-list a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.service-list a:hover {
    text-decoration: underline;
}

/* PWA Showcase Case Study */
.case-study-pwa {
    border: 1px solid #0ea5e9;
    margin-bottom: 4rem;
}

.case-study-label-pwa {
    background: linear-gradient(135deg, #0ea5e9 0%, #6366f1 50%, #8b5cf6 100%);
}

.case-study-hero-reverse {
    direction: rtl;
}

.case-study-hero-reverse > * {
    direction: ltr;
}

.case-badge.case-badge-live {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    border-color: transparent;
}

.case-study-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 0.5rem;
}

.pwa-pitch {
    padding: 2rem 3rem;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: white;
    text-align: center;
}

.pwa-pitch h4 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: white;
}

.pwa-pitch p {
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.0625rem;
}

.pwa-capabilities-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    padding: 2rem 3rem;
    background: var(--bg-light);
}

.pwa-capability {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    padding: 1.5rem;
    transition: border-color 0.3s ease;
}

.pwa-capability:hover {
    border-color: #0ea5e9;
}

.pwa-capability strong {
    display: block;
    color: var(--text-dark);
    font-size: 0.9375rem;
    margin-bottom: 0.5rem;
}

.pwa-capability p {
    font-size: 0.875rem;
    color: var(--text-light);
    line-height: 1.6;
    margin: 0;
}

.pwa-crosspromo {
    padding: 2.5rem 3rem;
    text-align: center;
    background: white;
    border-top: 1px solid var(--border-color);
}

.pwa-crosspromo p {
    max-width: 700px;
    margin: 0 auto 1.5rem;
    color: var(--text-light);
    line-height: 1.8;
    font-size: 1.0625rem;
}

.project-placeholder.halley {
    background: linear-gradient(135deg, #0ea5e9 0%, #6366f1 50%, #164e63 100%);
}

.project-placeholder.performance {
    background: linear-gradient(135deg, #1a1a2e 0%, #e94560 100%);
}

.project-screenshot-logo {
    object-fit: contain;
    background: #0a0a0a;
    padding: 2rem;
    aspect-ratio: 16/9;
}

.project-screenshot {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    object-position: top center;
}

.project-screenshot-promo {
    object-position: center;
    background: linear-gradient(180deg, #87ceeb 0%, #1a3a4a 100%);
    max-height: 560px;
}

/* Capabilities Section */
.capabilities {
    background: var(--bg-white);
}

.capabilities-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.capability-card {
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    padding: 2rem;
    transition: all 0.3s ease;
}

.capability-card:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

.capability-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.capability-example {
    font-size: 0.875rem;
    color: var(--text-light);
    margin-bottom: 1.25rem;
    line-height: 1.5;
}

.capability-example a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.capability-example a:hover {
    text-decoration: underline;
}

.capability-list {
    list-style: none;
    padding: 0;
}

.capability-list li {
    padding: 0.4rem 0;
    padding-left: 1.25rem;
    position: relative;
    color: var(--text-light);
    font-size: 0.9375rem;
    line-height: 1.5;
}

.capability-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: 700;
}

/* Services Section */
.services {
    background: var(--bg-light);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.service-card {
    background: white;
    padding: 2.5rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.service-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.service-card > p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.service-list {
    list-style: none;
    padding: 0;
}

.service-list li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--text-light);
}

.service-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: 700;
}

/* Contact Section */
.contact {
    background: var(--bg-white);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-info h3 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.contact-info > p {
    color: var(--text-light);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-item strong {
    display: block;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.contact-item p {
    color: var(--text-light);
    margin: 0;
}

.contact-form-container {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: 1rem;
}

.contact-email {
    text-align: center;
}

.contact-email h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.contact-email p {
    color: var(--text-light);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.875rem;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-group textarea {
    resize: vertical;
}

/* Footer */
.footer {
    background: var(--text-dark);
    color: white;
    padding: 3rem 0 1.5rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 2fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.footer-brand h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #ffffff, #a0aec0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.7);
}

.footer-location {
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.55);
}

.footer-column h4 {
    margin-bottom: 1rem;
    font-size: 1.125rem;
}

.footer-column ul {
    list-style: none;
    padding: 0;
}

.footer-column li {
    margin-bottom: 0.5rem;
    color: rgba(255, 255, 255, 0.7);
}

.footer-column a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-column a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
}

/* Responsive Design */
@media (max-width: 968px) {
    .nav-brand .logo {
        height: 40px;
    }

    .nav-brand-name {
        font-size: 1.25rem;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: var(--shadow-lg);
        padding: 2rem 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-toggle {
        display: flex;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.25rem;
    }

    .capabilities-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .case-study-hero-reverse {
        direction: ltr;
    }

    .pwa-capabilities-grid {
        grid-template-columns: repeat(2, 1fr);
        padding: 2rem;
    }

    .pwa-pitch {
        padding: 2rem;
    }

    .pwa-crosspromo {
        padding: 2rem;
    }

    .case-study-actions {
        flex-direction: column;
    }

    .case-study-actions .btn {
        text-align: center;
    }

    .case-study-hero {
        grid-template-columns: 1fr;
        padding: 2rem;
    }

    .scope-grid {
        grid-template-columns: repeat(2, 1fr);
        padding: 0 2rem 2rem;
    }

    .scope-intro {
        padding: 0 2rem 1.5rem;
    }

    .deliverables-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .case-study-deliverables {
        padding: 2rem;
    }

    .secondary-case-grid {
        grid-template-columns: 1fr;
    }

    .portfolio-secondary-grid {
        grid-template-columns: 1fr;
    }

    .case-study-secondary {
        padding: 2rem;
    }

    .case-study-stats {
        gap: 1rem;
    }

    .contact-content {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 640px) {
    .nav-brand .logo {
        height: 35px;
    }

    .nav-brand-name {
        font-size: 1.125rem;
    }

    .nav-brand {
        gap: 0.5rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.125rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .about-highlights {
        grid-template-columns: 1fr;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .capabilities-grid {
        grid-template-columns: 1fr;
    }

    .pwa-capabilities-grid {
        grid-template-columns: 1fr;
        padding: 1.5rem;
    }

    .scope-grid {
        grid-template-columns: 1fr;
        padding: 0 1.5rem 1.5rem;
    }

    .scope-intro {
        padding: 0 1.5rem 1.5rem;
    }

    .deliverables-grid {
        grid-template-columns: 1fr;
    }

    .case-study-stats {
        flex-direction: column;
        gap: 1rem;
    }
}

.game-promo-banner + .hero {
    padding-top: 2rem;
}

.game-promo-banner {
    background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 100%);
    color: white;
    padding: 0.75rem 0;
    margin-top: 72px;
    border-bottom: 2px solid #0ea5e9;
}

.game-promo-banner-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    text-align: center;
}

.game-promo-banner-text {
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.9);
}

.game-promo-banner-link {
    color: #38bdf8;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

.game-promo-banner-link:hover {
    text-decoration: underline;
    color: white;
}

.pwa-crosspromo-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

/* Halley's Big Catch player landing page */
.game-landing-page {
    background: #0f172a;
}

.game-nav {
    background: rgba(15, 23, 42, 0.98);
}

.game-nav .nav-link {
    color: rgba(255, 255, 255, 0.85);
}

.game-nav .nav-link:hover {
    color: #38bdf8;
}

.game-nav-brand {
    text-decoration: none;
}

.game-nav-title {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 1.375rem;
    font-weight: 700;
    color: #38bdf8;
    letter-spacing: 0.02em;
}

.game-nav-cta {
    padding: 0.5rem 1.25rem;
    font-size: 0.875rem;
    margin-left: 1rem;
    white-space: nowrap;
}

.game-landing-page .navbar .container {
    flex-wrap: nowrap;
}

.game-hero {
    padding: 6rem 0 4rem;
    background: linear-gradient(180deg, #0f172a 0%, #1e293b 50%, #0c4a6e 100%);
    color: white;
}

.game-hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.game-hero-tagline {
    color: #38bdf8;
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 0.75rem;
}

.game-hero-content h1 {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.25rem;
    color: white;
}

.game-hero-lead {
    font-size: 1.125rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 1.5rem;
}

.game-hero-features {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem;
}

.game-hero-features li {
    padding: 0.4rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: rgba(255, 255, 255, 0.8);
}

.game-hero-features li::before {
    content: '🎣';
    position: absolute;
    left: 0;
}

.game-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
}

.game-hero-note {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.55);
    margin: 0;
}

.game-promo-image {
    width: 100%;
    height: auto;
    border-radius: 1rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease;
}

.game-hero-art a:hover .game-promo-image {
    transform: scale(1.02);
}

.btn-game-primary {
    background: linear-gradient(135deg, #0ea5e9, #0284c7);
    color: white;
    padding: 0.875rem 2rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.btn-game-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(14, 165, 233, 0.4);
}

.btn-game-secondary {
    background: transparent;
    color: #38bdf8;
    border: 2px solid #38bdf8;
    padding: 0.875rem 2rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    transition: all 0.3s ease;
}

.btn-game-secondary:hover {
    background: rgba(56, 189, 248, 0.1);
    color: white;
}

.btn-game-large {
    font-size: 1.125rem;
    padding: 1rem 2.5rem;
}

.game-about {
    padding: 4rem 0;
    background: white;
}

.game-about-inner {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.game-about-inner h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.game-about-inner p {
    font-size: 1.0625rem;
    line-height: 1.8;
    color: var(--text-light);
    margin-bottom: 1rem;
}

.game-features {
    padding: 5rem 0;
    background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
}

.section-title-light {
    color: white;
}

.game-features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.game-feature-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
    transition: border-color 0.3s ease;
}

.game-feature-card:hover {
    border-color: #0ea5e9;
}

.game-feature-icon {
    font-size: 2rem;
    display: block;
    margin-bottom: 1rem;
}

.game-feature-card h3 {
    color: white;
    font-size: 1.125rem;
    margin-bottom: 0.75rem;
}

.game-feature-card p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9375rem;
    line-height: 1.6;
    margin: 0;
}

.game-features-cta {
    text-align: center;
}

.game-install {
    padding: 5rem 0;
    background: var(--bg-light);
}

.game-install-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.game-install-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    padding: 2rem;
}

.game-install-card h3 {
    font-size: 1.125rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.game-install-card ol {
    padding-left: 1.25rem;
    margin: 0;
}

.game-install-card li {
    padding: 0.35rem 0;
    color: var(--text-light);
    line-height: 1.6;
    font-size: 0.9375rem;
}

.game-install-card a {
    color: var(--primary-color);
}

.game-install-tip {
    text-align: center;
    color: var(--text-light);
    font-size: 0.9375rem;
    margin: 0;
}

.game-faq {
    padding: 5rem 0;
    background: white;
}

.game-faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.game-faq-item {
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    margin-bottom: 0.75rem;
    overflow: hidden;
}

.game-faq-item summary {
    padding: 1.25rem 1.5rem;
    font-weight: 600;
    cursor: pointer;
    color: var(--text-dark);
    list-style: none;
}

.game-faq-item summary::-webkit-details-marker {
    display: none;
}

.game-faq-item[open] summary {
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-light);
}

.game-faq-item p {
    padding: 1.25rem 1.5rem;
    margin: 0;
    color: var(--text-light);
    line-height: 1.7;
}

.game-final-cta {
    padding: 5rem 0;
    text-align: center;
    background: linear-gradient(135deg, #0c4a6e 0%, #0ea5e9 100%);
    color: white;
}

.game-final-cta h2 {
    font-size: 2.25rem;
    margin-bottom: 0.75rem;
}

.game-final-cta p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.game-credit {
    padding: 2rem 0;
    background: #0f172a;
    text-align: center;
}

.game-credit p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9375rem;
    margin: 0;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}

.game-credit a {
    color: #38bdf8;
    text-decoration: none;
}

.game-credit a:hover {
    text-decoration: underline;
}

.game-footer .footer-bottom a {
    color: #38bdf8;
    text-decoration: none;
}

.game-footer .footer-bottom a:hover {
    text-decoration: underline;
}

@media (max-width: 968px) {
    .game-nav-cta {
        display: none;
    }

    .game-hero-grid {
        grid-template-columns: 1fr;
    }

    .game-hero-art {
        order: -1;
        max-width: 400px;
        margin: 0 auto;
    }

    .game-features-grid,
    .game-install-grid {
        grid-template-columns: 1fr;
    }

    .footer-links {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 640px) {
    .game-hero-content h1 {
        font-size: 1.875rem;
    }

    .footer-links {
        grid-template-columns: 1fr;
    }

    .game-promo-banner-inner {
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* ACC Inventory — portfolio case study */
.case-study-inventory {
    border: 1px solid #0f766e;
    margin-bottom: 4rem;
}

.case-study-label-inventory {
    background: linear-gradient(135deg, #0f766e 0%, #115e59 50%, #134e4a 100%);
}

.project-placeholder.inventory {
    background: linear-gradient(135deg, #0f766e 0%, #0ea5e9 100%);
    position: relative;
    aspect-ratio: 16/9;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    font-weight: 700;
    color: white;
    border-radius: 0.75rem 0.75rem 0 0;
}

.inventory-portfolio-card {
    display: block;
    text-decoration: none;
    color: inherit;
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.inventory-portfolio-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.inventory-portfolio-url {
    font-family: monospace;
    font-size: 0.8125rem;
    color: #0f766e;
    padding: 1rem 1.5rem 0.5rem;
    margin: 0;
}

.inventory-portfolio-blurb {
    font-size: 0.9375rem;
    color: var(--text-light);
    line-height: 1.6;
    padding: 0 1.5rem 1.5rem;
    margin: 0;
}

.shop-tools-pitch {
    padding: 2rem 3rem;
    background: linear-gradient(135deg, #134e4a 0%, #0f766e 100%);
    color: white;
    text-align: center;
}

.shop-tools-pitch h4 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: white;
}

.shop-tools-pitch p {
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.0625rem;
}

/* ACC Inventory landing page */
.inventory-landing-page {
    background: #f8fafc;
}

.inventory-nav-cta {
    padding: 0.5rem 1.25rem;
    font-size: 0.875rem;
    margin-left: 1rem;
    white-space: nowrap;
}

.inventory-hero {
    padding: 7rem 0 4rem;
    background: linear-gradient(180deg, #f0fdfa 0%, #ffffff 60%);
}

.inventory-hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 3rem;
    align-items: center;
}

.inventory-hero-eyebrow {
    color: #0f766e;
    font-weight: 600;
    font-size: 0.9375rem;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.inventory-hero-content h1 {
    font-size: 2.35rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.25rem;
    color: var(--text-dark);
}

.inventory-hero-lead {
    font-size: 1.0625rem;
    line-height: 1.8;
    color: var(--text-light);
    margin-bottom: 1rem;
}

.inventory-hero-note {
    font-size: 0.9375rem;
    color: #0f766e;
    font-weight: 500;
    margin-bottom: 1.75rem;
}

.inventory-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.project-screenshot-phone {
    object-fit: contain;
    object-position: top center;
    background: #0f172a;
    max-height: 560px;
}

.inventory-phone-frame {
    display: block;
    max-width: 320px;
    margin: 0 auto;
    border-radius: 1.25rem;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.45);
    border: 3px solid #1e293b;
    transition: transform 0.3s ease;
}

.inventory-phone-frame:hover {
    transform: translateY(-4px);
}

.inventory-screenshot {
    width: 100%;
    height: auto;
    display: block;
    vertical-align: top;
}

.inventory-features {
    padding: 5rem 0;
    background: white;
}

.inventory-features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

.inventory-feature-card {
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    padding: 1.5rem;
}

.inventory-feature-card h3 {
    font-size: 1.0625rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.inventory-feature-card p {
    font-size: 0.9375rem;
    color: var(--text-light);
    line-height: 1.6;
    margin: 0;
}

.inventory-steps {
    padding: 5rem 0;
    background: var(--bg-light);
}

.inventory-steps-list {
    list-style: none;
    padding: 0;
    max-width: 800px;
    margin: 0 auto 2.5rem;
}

.inventory-steps-list li {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    padding: 1.5rem;
    margin-bottom: 1rem;
}

.inventory-step-num {
    flex-shrink: 0;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    background: #0f766e;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.inventory-steps-list h3 {
    font-size: 1.0625rem;
    margin-bottom: 0.35rem;
    color: var(--text-dark);
}

.inventory-steps-list p {
    margin: 0;
    color: var(--text-light);
    font-size: 0.9375rem;
    line-height: 1.6;
}

.inventory-steps-cta {
    text-align: center;
}

.inventory-pricing {
    padding: 5rem 0;
    background: linear-gradient(135deg, #134e4a 0%, #0f766e 100%);
    color: white;
    text-align: center;
}

.inventory-pricing-inner {
    max-width: 700px;
    margin: 0 auto;
}

.inventory-pricing .section-title {
    color: white;
}

.inventory-pricing p {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.inventory-pricing a:not(.btn) {
    color: #99f6e4;
}

.inventory-pricing .btn-primary {
    margin-top: 1rem;
    background: white;
    color: #0f766e;
}

.inventory-pricing .btn-primary:hover {
    background: #f0fdfa;
}

.inventory-credibility {
    padding: 5rem 0;
    background: white;
}

.inventory-credibility-inner {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.inventory-credibility-inner p {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.inventory-credibility-inner a:not(.btn) {
    color: #0f766e;
}

.inventory-credibility-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-top: 1.5rem;
}

.inventory-landing-page .btn-secondary {
    color: #0f766e;
    border-color: #0f766e;
}

.inventory-landing-page .btn-secondary:hover {
    background: #0f766e;
    color: white;
}

@media (max-width: 968px) {
    .inventory-nav-cta {
        display: none;
    }

    .inventory-hero-grid {
        grid-template-columns: 1fr;
    }

    .inventory-features-grid {
        grid-template-columns: 1fr;
    }

    .shop-tools-pitch {
        padding: 2rem;
    }
}

@media (max-width: 640px) {
    .inventory-hero-content h1 {
        font-size: 1.75rem;
    }

    .inventory-hero {
        padding-top: 6rem;
    }
}


