/* Reset and Core Styles */
:root {
    --c-black: #000000;
    --c-white: #FFFFFF;
    --c-gray: #888888;
    --c-light-gray: #333;
    --c-accent: #00A3FF;
    --font-main: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
    --transition-speed: 300ms;
}

*, *::before, *::after { 
    box-sizing: border-box; 
    margin: 0; 
    padding: 0; 
}

html, body {
    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    background-color: var(--c-black);
    color: var(--c-white);
    font-family: var(--font-main);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Specific styles for privacy and terms pages */
/* These pages now use the same layout as Capabilities */

/* Header and Navigation */
.shell {
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100%; 
    padding: 2rem 3rem;
    z-index: 1000; 
    display: flex; 
    justify-content: space-between; 
    align-items: center;
}

.logo { 
    font-size: 1.5rem; 
    font-weight: 600; 
    letter-spacing: -0.5px; 
    cursor: pointer; 
    color: var(--c-white); 
    text-decoration: none; 
}

.nav-links a {
    color: var(--c-gray); 
    text-decoration: none; 
    margin-left: 2rem;
    font-size: 0.9rem; 
    position: relative; 
    transition: color var(--transition-speed) ease;
}

.nav-links a:hover, 
.nav-links a.active { 
    color: var(--c-white); 
}

.nav-links a::after {
    content: ''; 
    position: absolute; 
    width: 100%; 
    transform: scaleX(0); 
    height: 1px;
    bottom: -4px; 
    left: 0; 
    background-color: var(--c-white);
    transform-origin: bottom right; 
    transition: transform var(--transition-speed) ease-out;
}

.nav-links a:hover::after, 
.nav-links a.active::after { 
    transform: scaleX(1); 
    transform-origin: bottom left; 
}

/* Screen Management */
main#screens { 
    position: relative; 
    width: 100%; 
    min-height: 100vh; /* Flexible height by default */
}

/* Fixed height only for HOME page */
body.home-page main#screens {
    height: 100vh !important;
}

/* Allow flexible height for standalone pages */
body.privacy-page main#screens,
body.terms-page main#screens,
body.contact-page main#screens,
body.careers-page main#screens {
    height: auto !important;
    min-height: 100vh;
}

/* Screen behavior for standalone pages - use the same logic as other long content screens */

.screen {
    position: absolute; 
    inset: 0; 
    width: 100%; 
    height: 100vh;
    display: flex; 
    align-items: center; 
    justify-content: center;
    flex-direction: column; 
    text-align: center; 
    padding: 0 3rem; /* No bottom padding by default */
    opacity: 0;
    transform: scale(0.98);
    transition: opacity var(--transition-speed) ease-in-out, transform var(--transition-speed) ease-in-out;
    visibility: hidden;
    overflow-y: auto;
}

/* Add bottom padding only for HOME page (fixed footer) */
body.home-page .screen {
    padding: 0 3rem 6rem 3rem;
}

/* Standalone pages now use the unified screen behavior defined above */

.screen.active { 
    opacity: 1; 
    transform: scale(1); 
    visibility: visible; 
    z-index: 1; 
}

/* Hero screen follows normal screen behavior */

/* Hero Initial Content Centering */
#hero-initial-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    width: 100%;
    max-width: 800px;
    margin: 0;
    padding: 2rem 1rem;
    position: absolute;
    top: 65%;
    left: 50%;
    transform: translate(-50%, -100%);
}

/* Content Typography & Elements */
.content-wrapper { 
    max-width: 800px; 
    margin: 0 auto; 
    width: 100%; 
}

h1 { 
    font-size: 3rem; 
    font-weight: 700; 
    letter-spacing: -1.5px; 
    line-height: 1.1; 
    margin-bottom: 1.5rem; 
}

h2 { 
    font-size: 2rem; 
    font-weight: 600; 
    margin-bottom: 2rem; 
}

p { 
    color: var(--c-gray); 
    line-height: 1.6; 
    max-width: 600px; 
    margin: 0 auto; 
}

.cta {
    display: inline-block; 
    margin-top: 2rem; 
    padding: 0.9rem 1.8rem;
    background: transparent;
    border: 1px solid var(--c-white); 
    border-radius: 8px; 
    color: var(--c-white);
    text-decoration: none; 
    font-weight: 500; 
    font-family: var(--font-main);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all var(--transition-speed) ease;
    text-align: center;
}

.cta:hover { 
    background-color: var(--c-white); 
    border-color: var(--c-white); 
    color: var(--c-black);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.1);
}

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

.grid-item { 
    text-align: left; 
}

.grid-item h3 { 
    font-size: 1.2rem; 
    font-weight: 600; 
    margin-bottom: 0.8rem; 
    color: var(--c-white); 
}

.grid-item p { 
    font-size: 0.9rem; 
    margin: 0; 
}

/* --- Overrides for Long Content Sections --- */
#capabilities.screen.active,
#work.screen.active,
#approach.screen.active,
#about.screen.active {
    position: relative; /* Break out of absolute positioning ONLY when active */
    display: block; /* Override flex centering */
    height: auto; /* Allow content to define height */
    min-height: calc(100vh - 8rem); /* Account for header height only */
    padding: 8rem 3rem 2rem 3rem; /* Normal padding - footer is relative */
    width: 100%;
    overflow-y: visible; /* Allow natural scrolling */
}

/* Standalone pages (Privacy, Terms, Contact) - no bottom padding needed for relative footer */
#privacy.screen.active,
#terms.screen.active,
#contact.screen.active,
#careers.screen.active {
    position: relative; /* Break out of absolute positioning ONLY when active */
    display: block; /* Override flex centering */
    height: auto; /* Allow content to define height */
    min-height: calc(100vh - 8rem); /* Account for header height only */
    padding: 8rem 3rem 2rem 3rem; /* No bottom padding - footer is relative */
    width: 100%;
    overflow-y: visible; /* Allow natural scrolling */
}

#capabilities .content-wrapper,
#work .content-wrapper,
#approach .content-wrapper,
#about .content-wrapper,
#privacy .content-wrapper,
#terms .content-wrapper,
#contact .content-wrapper,
#careers .content-wrapper {
    max-width: 1040px; /* Wider container for the tabs */
    margin: 0 auto; /* Center the container */
}

#capabilities .content-wrapper > h2,
#capabilities .content-wrapper > p,
#work .content-wrapper > h2,
#work .content-wrapper > p,
#approach .content-wrapper > h2,
#approach .content-wrapper > p,
#about .content-wrapper > h2,
#about .content-wrapper > p,
#privacy .content-wrapper > h2,
#privacy .content-wrapper > p,
#terms .content-wrapper > h2,
#terms .content-wrapper > p,
#contact .content-wrapper > h2,
#contact .content-wrapper > p,
#careers .content-wrapper > h2,
#careers .content-wrapper > p {
    text-align: center;
    max-width: 720px; /* Keep intro text centered and readable */
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 2rem;
}
/* --- End Overrides --- */


/* --- Overrides for Standalone Pages (Privacy, Terms, Contact) --- */
/* These pages use the same long-content logic as Capabilities */
/* Footer behavior is handled by body.long-content-active in the Footer Logic section */

/* Ensure standalone pages also trigger the long-content-active behavior via JavaScript */
/* No additional CSS needed - they inherit the same logic as capabilities, work, approach, about */

/* --- End Standalone Page Overrides --- */


/* --- Footer Positioning Logic --- */
/* Footer is now relative by default - no special logic needed */
/* --- End Footer Logic --- */


/* Work Section Styles */
#work {
    padding: 80px 0;
    background: var(--c-black);
}

#work.screen.active {
    max-height: none;
    overflow: visible;
}

#work .content-wrapper {
    max-width: 1040px;
    margin: 0 auto;
    padding: 0 20px;
}

#work h2 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: var(--c-white);
    text-align: center;
    font-weight: 700;
    letter-spacing: -1px;
}

#work > .content-wrapper > p {
    font-size: 1.3rem;
    color: var(--c-gray);
    margin-bottom: 4rem;
    line-height: 1.7;
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Work Stats */
.work-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin: 3rem 0 4rem 0;
    padding: 2rem 0;
}

.stat-item {
    text-align: center;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    border: 1px solid var(--c-light-gray);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--c-accent);
    margin-bottom: 0.5rem;
    display: block;
}

.stat-label {
    font-size: 0.95rem;
    color: var(--c-gray);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Work Sections */
.work-section {
    margin: 4rem 0;
}

.section-title {
    font-size: 2rem;
    color: var(--c-white);
    margin-bottom: 2.5rem;
    text-align: center;
    font-weight: 600;
}

/* Case Studies */
.case-study {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    border: 1px solid var(--c-light-gray);
    padding: 2rem;
    margin-bottom: 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.case-study:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.case-study.featured {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.02) 0%, rgba(0, 163, 255, 0.05) 100%);
    border: 2px solid var(--c-accent);
    padding: 2.5rem;
}

.case-study-header {
    margin-bottom: 1.5rem;
}

.case-study-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.industry-tag, .company-size {
    display: inline-block;
    padding: 0.4rem 0.8rem;
    background: var(--c-accent);
    color: white;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.company-size {
    background: var(--c-gray);
}

.case-study h4 {
    font-size: 1.4rem;
    color: var(--c-white);
    margin: 0;
    font-weight: 600;
}

.case-study-content {
    display: grid;
    gap: 2rem;
}

.case-study.featured .case-study-content {
    grid-template-columns: 1fr 1fr;
    align-items: start;
}

.case-study-description p {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--c-gray);
    margin-bottom: 1.5rem;
}

.case-study-challenge, .case-study-solution {
    margin: 1rem 0;
    padding: 1rem;
    background: rgba(0, 163, 255, 0.1);
    border-left: 4px solid var(--c-accent);
    border-radius: 0 8px 8px 0;
}

.case-study-results h5 {
    font-size: 1.1rem;
    color: var(--c-white);
    margin-bottom: 1rem;
    font-weight: 600;
}

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

.result-item {
    text-align: center;
    padding: 1rem;
    background: var(--c-black);
    border-radius: 8px;
    border: 1px solid var(--c-light-gray);
}

.result-number {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--c-accent);
    display: block;
    margin-bottom: 0.3rem;
}

.result-label {
    font-size: 0.85rem;
    color: var(--c-gray);
    font-weight: 500;
}

/* Case Studies Grid */
.case-studies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.case-study-impact {
    display: flex;
    gap: 1.5rem;
    margin-top: 1rem;
}

.impact-item {
    text-align: center;
    flex: 1;
}

.impact-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--c-accent);
    display: block;
    margin-bottom: 0.3rem;
}

.impact-label {
    font-size: 0.8rem;
    color: var(--c-gray);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* Testimonials */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.testimonial {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    border: 1px solid var(--c-light-gray);
    padding: 2rem;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.testimonial::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 20px;
    font-size: 4rem;
    color: var(--c-accent);
    font-family: serif;
    line-height: 1;
}

.testimonial-content p {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--c-gray);
    margin-bottom: 1.5rem;
    font-style: italic;
}

.testimonial-author {
    border-top: 1px solid var(--c-light-gray);
    padding-top: 1rem;
}

.author-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--c-white);
    margin-bottom: 0.3rem;
}

.author-title {
    font-size: 0.9rem;
    color: var(--c-accent);
    margin-bottom: 0.2rem;
    font-weight: 500;
}

.author-company {
    font-size: 0.85rem;
    color: var(--c-gray);
}

/* Industries Grid */
.industries-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.industry-item {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    border: 1px solid var(--c-light-gray);
    padding: 2rem;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.industry-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.industry-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1.5rem auto;
    background: linear-gradient(135deg, var(--c-accent), rgba(0, 163, 255, 0.7));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.industry-item h4 {
    font-size: 1.2rem;
    color: var(--c-white);
    margin-bottom: 0.8rem;
    font-weight: 600;
}

.industry-item p {
    font-size: 0.9rem;
    color: var(--c-gray);
    line-height: 1.5;
    margin: 0;
}

/* Work CTA */
.work-cta {
    text-align: center;
    padding: 3rem 2rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.02) 0%, rgba(0, 163, 255, 0.1) 100%);
    border-radius: 16px;
    border: 2px solid var(--c-accent);
    margin-top: 4rem;
}

.work-cta h3 {
    font-size: 1.8rem;
    color: var(--c-white);
    margin-bottom: 1rem;
    font-weight: 600;
}

.work-cta p {
    font-size: 1.1rem;
    color: var(--c-gray);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.work-cta .cta {
    display: inline-block;
    padding: 1rem 2rem;
    background: var(--c-accent);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.work-cta .cta:hover {
    background: rgba(0, 163, 255, 0.9);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 163, 255, 0.3);
}


/* --- START WORK PAGE STYLES --- */

/* General Work Page Layout */
.work-page .content-wrapper {
    max-width: 1100px;
}

.work-page h2, .work-page h3, .work-page h4 {
    text-align: center;
}

.work-section {
    margin: 5rem 0;
}

.section-title {
    font-size: 2.2rem;
    font-weight: 600;
    color: var(--c-white);
    margin-bottom: 3rem;
}

/* Work Stats Section */
.work-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    margin: 4rem 0;
    padding: 2rem 0;
    border-top: 1px solid var(--c-light-gray);
    border-bottom: 1px solid var(--c-light-gray);
}

.stat-item {
    text-align: center;
    padding: 1rem;
}

.stat-number {
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--c-accent);
    margin-bottom: 0.5rem;
    display: block;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--c-gray);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Case Study Styles */
.case-study {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--c-light-gray);
    border-radius: 12px;
    padding: 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.case-study:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.case-study.featured {
    padding: 3rem;
    border: 2px solid var(--c-accent);
    background: linear-gradient(145deg, rgba(0, 163, 255, 0.05), rgba(0, 0, 0, 0.1));
}

.case-study-header {
    margin-bottom: 1.5rem;
    text-align: left;
}

.case-study-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.industry-tag, .company-size {
    display: inline-block;
    padding: 0.4rem 0.9rem;
    background: var(--c-accent);
    color: var(--c-white);
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.company-size {
    background: var(--c-gray);
}

.case-study h4 {
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--c-white);
    margin: 0;
    text-align: left;
}

.case-study-content {
    display: grid;
    gap: 2.5rem;
    text-align: left;
}

.case-study.featured .case-study-content {
    grid-template-columns: 1fr 1fr;
    align-items: start;
}

.case-study-description p {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--c-gray);
    margin-bottom: 1.5rem;
}

.case-study-challenge, .case-study-solution {
    margin: 1.5rem 0;
    padding: 1.5rem;
    background: rgba(0, 0, 0, 0.2);
    border-left: 4px solid var(--c-accent);
    border-radius: 0 8px 8px 0;
}

.case-study-challenge h5, .case-study-solution h5 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--c-white);
    margin-bottom: 0.5rem;
}

.case-study-results h5 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--c-white);
    margin-bottom: 1.5rem;
    text-align: left;
}

.results-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.result-item {
    text-align: center;
    padding: 1.5rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
}

.result-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--c-accent);
    margin-bottom: 0.3rem;
}

.result-label {
    font-size: 0.8rem;
    color: var(--c-gray);
    text-transform: uppercase;
}

/* Case Studies Grid */
.case-studies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.case-study-impact {
    display: flex;
    gap: 1.5rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--c-light-gray);
}

.impact-item {
    text-align: center;
    flex: 1;
}

.impact-number {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--c-accent);
}

.impact-label {
    font-size: 0.8rem;
    color: var(--c-gray);
    text-transform: uppercase;
}

/* Testimonials Grid */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.testimonial {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--c-light-gray);
    border-radius: 12px;
    padding: 2.5rem 2rem 2rem 2rem;
    position: relative;
}

.testimonial::before {
    content: '\201C';
    position: absolute;
    top: 0.5rem;
    left: 1.5rem;
    font-size: 5rem;
    color: var(--c-accent);
    font-family: serif;
    line-height: 1;
    opacity: 0.5;
}

.testimonial-content p {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--c-gray);
    font-style: italic;
    margin-bottom: 1.5rem;
}

.testimonial-author {
    text-align: left;
}

.author-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--c-white);
}

.author-title, .author-company {
    font-size: 0.9rem;
    color: var(--c-gray);
}

/* Industries Grid */
.industries-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.industry-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--c-light-gray);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    transition: transform 0.3s ease, background 0.3s ease;
}

.industry-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.05);
}

.industry-icon {
    font-size: 2.5rem;
    color: var(--c-accent);
    margin-bottom: 1.5rem;
}

.industry-item h4 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--c-white);
    margin-bottom: 0.5rem;
}

.industry-item p {
    font-size: 0.9rem;
    color: var(--c-gray);
    line-height: 1.6;
}

/* Work CTA */
.work-cta {
    text-align: center;
    padding: 4rem 2rem;
    background: linear-gradient(145deg, rgba(0, 163, 255, 0.1), rgba(0, 0, 0, 0.15));
    border-radius: 16px;
    margin-top: 5rem;
}

.work-cta h3 {
    font-size: 2rem;
    font-weight: 600;
    color: var(--c-white);
    margin-bottom: 1rem;
}

.work-cta p {
    font-size: 1.1rem;
    color: var(--c-gray);
    max-width: 600px;
    margin: 0 auto 2rem auto;
}

/* Responsive Design for Work Page */
@media (max-width: 992px) {
    .case-study.featured .case-study-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .work-stats {
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
    }

    .stat-number {
        font-size: 2.2rem;
    }

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

    .case-studies-grid, .testimonials-grid, .industries-grid {
        grid-template-columns: 1fr;
    }
}

/* --- END WORK PAGE STYLES --- */

@media (max-width: 768px) {
    .work-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .case-study.featured .case-study-content {
        grid-template-columns: 1fr;
    }
    
    .results-grid {
        grid-template-columns: 1fr;
    }
    
    .case-studies-grid {
        grid-template-columns: 1fr;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .industries-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .case-study-impact {
        flex-direction: column;
        gap: 1rem;
    }
    
    #work h2 {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.6rem;
    }
}

@media (max-width: 480px) {
    .work-stats {
        grid-template-columns: 1fr;
    }
    
    .industries-grid {
        grid-template-columns: 1fr;
    }
    
    .case-study, .case-study.featured {
        padding: 1.5rem;
    }
    
    .work-cta {
        padding: 2rem 1rem;
    }
}


/* Capabilities Tab Styles */
.capabilities-tabs-container {
    margin-top: 3rem;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--c-light-gray);
    border-radius: 12px;
    overflow: hidden;
}

.capabilities-tabs {
    display: flex;
    background-color: rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid var(--c-light-gray);
}

.tab-link {
    flex: 1;
    padding: 1rem 0.5rem;
    cursor: pointer;
    background: none;
    border: none;
    color: var(--c-gray);
    font-family: var(--font-main);
    font-size: 0.9rem;
    font-weight: 500;
    transition: all var(--transition-speed) ease;
    border-bottom: 2px solid transparent;
}

.tab-link:hover {
    color: var(--c-white);
    background-color: rgba(255, 255, 255, 0.05);
}

.tab-link.active {
    color: var(--c-white);
    border-bottom-color: var(--c-white);
}

.tab-content {
    display: none;
    padding: 2.5rem 2rem;
    text-align: left;
    animation: fadeIn 0.5s;
}

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

.tab-content h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--c-white);
    text-align: left;
}

.tab-content p {
    max-width: 100%;
    text-align: left;
    margin-bottom: 2rem;
}

.tab-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    text-align: left;
}

.tab-details h4 {
    grid-column: 1 / -1;
    font-size: 1rem;
    font-weight: 600;
    color: var(--c-white);
    margin-bottom: 0.5rem;
    border-bottom: 1px solid var(--c-light-gray);
    padding-bottom: 0.5rem;
}

.tab-details ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.tab-details li {
    margin-bottom: 0.5rem;
    color: var(--c-gray);
}

.tech-stack {
    font-style: italic;
    font-size: 0.9rem;
    color: var(--c-gray);
    max-width: 100% !important;
    text-align: left !important;
}

.capabilities-cta {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--c-light-gray);
}

.capabilities-cta h3 {
    font-size: 1.5rem;
    color: var(--c-white);
    margin-bottom: 0.5rem;
}

@media (max-width: 768px) {
    .capabilities-tabs {
        flex-direction: column;
    }
    .tab-link {
        border-bottom: 1px solid var(--c-light-gray);
    }
    .tab-link.active {
        border-bottom-color: var(--c-white);
    }
    .tab-details {
        grid-template-columns: 1fr;
    }
}


/* Wizard Styles */
#wizard-container {
    display: none;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.wizard-progress {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
    position: relative;
}

.wizard-progress::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--c-light-gray);
    z-index: 0;
}

.wizard-progress-bar {
    position: absolute;
    top: 50%;
    left: 0;
    height: 2px;
    background: var(--c-white);
    transition: width var(--transition-speed) ease;
    z-index: 1;
}

.wizard-progress-step {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--c-light-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9rem;
    position: relative;
    z-index: 2;
    transition: background-color var(--transition-speed) ease;
}

.wizard-progress-step.active {
    background: var(--c-white);
    color: var(--c-black);
}

.wizard-step {
    display: none;
}

.wizard-step.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

.wizard-content h3 {
    text-align: center;
    margin-top: 2rem;
    margin-bottom: 2rem;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--c-white);
}

.form-group input,
.form-group textarea,
.form-group select {
    padding: 0.8rem 1rem;
    background: transparent;
    border: 1px solid var(--c-gray);
    border-radius: 8px;
    color: var(--c-white);
    font-family: var(--font-main);
    font-size: 0.9rem;
    transition: border-color var(--transition-speed) ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--c-white);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--c-gray);
}

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url('data:image/svg+xml;charset=US-ASCII,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 4 5"><path fill="%23ffffff" d="M2 0L0 2h4zm0 5L0 3h4z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 12px;
    padding-right: 3rem;
}

.form-group select option {
    background: var(--c-black);
    color: var(--c-white);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

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

.service-option {
    position: relative;
}

.service-option input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.service-option label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 80px;
    padding: 1rem;
    border: 1px solid var(--c-gray);
    border-radius: 8px;
    cursor: pointer;
    transition: all var(--transition-speed) ease;
    text-align: center;
    font-size: 0.9rem;
}

.service-option input[type="checkbox"]:checked + label {
    background: var(--c-white);
    color: var(--c-black);
    border-color: var(--c-white);
}

.service-option label:hover {
    border-color: var(--c-white);
}

.wizard-nav { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    margin-top: 2rem; 
}

.wizard-nav button {
    padding: 0.8rem 1.8rem; 
    background-color: transparent; 
    font-family: var(--font-main);
    border: 1px solid var(--c-gray); 
    border-radius: 50px; 
    color: var(--c-white);
    font-size: 0.9rem; 
    font-weight: 500; 
    cursor: pointer;
    transition: all var(--transition-speed) ease;
}

.wizard-nav button:hover { 
    background-color: var(--c-white); 
    color: var(--c-black); 
}

.wizard-nav button:disabled { 
    opacity: 0.5; 
    cursor: not-allowed; 
    background-color: transparent; 
    color: var(--c-white); 
}

#form-feedback { 
    margin-top: 1.5rem; 
    font-size: 0.9rem; 
    min-height: 1.2em; 
}

#form-feedback.success { 
    color: #28a745; 
}

#form-feedback.error { 
    color: #dc3545; 
}

/* Initial Hero Content Styling */
#hero-initial-content.hidden {
    transition: opacity 300ms;
    opacity: 0;
    pointer-events: none;
}

/* Footer Styles - Default is RELATIVE for all pages */
.footer {
    position: relative; 
    bottom: 0; 
    left: 0; 
    width: 100%;
    padding: 1.5rem 2rem;
    z-index: 100;
    display: flex;
    justify-content: space-between; 
    align-items: center;
}

/* Footer FIXED only for HOME page */
body.home-page .footer {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 100% !important;
    z-index: 100 !important;
}

.footer-copyright,
.footer-powered,
.footer-link {
    font-size: 0.9rem;
    color: var(--c-gray);
    text-decoration: none;
}

.footer-link:hover {
    color: var(--c-white);
    transition: color var(--transition-speed) ease;
}

.footer-links {
    display: flex; 
    gap: 1.5rem;
    justify-content: flex-start;
}

.footer-powered {
    order: 3;
}

/* Mobile Menu Styles */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: #fff;
    margin: 3px 0;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.mobile-menu-close {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    background: transparent;
    border: none;
    color: var(--c-white);
    font-size: 2.5rem;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.mobile-menu-close:hover {
    color: var(--c-accent);
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
}

.mobile-menu.active {
    display: flex;
}

.mobile-menu a {
    color: #fff;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 300;
    transition: color 0.3s ease;
    padding: 1rem;
}

.mobile-menu a:hover,
.mobile-menu a.active {
    color: #00ff88;
}

/* Tablet Portrait - 768x985 and similar resolutions */
@media (min-width: 768px) and (max-width: 768px) and (min-height: 900px) {
    .screen {
        padding: 8rem 2rem 2rem;
        justify-content: flex-start;
        padding-top: 10rem;
    }
    
    .content-wrapper {
        margin-top: 2rem;
    }
    
    h1 {
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }
    
    h2 {
        font-size: 1.8rem;
        margin-bottom: 1.5rem;
    }
    
    .grid {
        margin-top: 2rem;
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .shell { 
        padding: 1.5rem;
        justify-content: space-between;
    }
    
    .logo { 
        font-size: 1.2rem; 
    }
    
    .nav-links {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    h1 { 
        font-size: 2.2rem; 
    }
    
    h2 { 
        font-size: 1.5rem; 
    }
    
    .screen { 
        padding: 5rem 1.5rem 1rem; /* Normal padding - no footer space by default */
    }
    
    /* HOME page - add bottom padding for fixed footer on mobile */
    body.home-page .screen {
        padding: 5rem 1.5rem 4rem !important; /* Bottom padding for fixed footer */
    }
    
    .form-grid { 
        grid-template-columns: 1fr; 
    }
    
    /* Footer mobile stacking */
    .footer {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem 1.5rem;
    }
    
    .footer-links {
        order: 1;
    }
    
    .footer-copyright {
        order: 2;
    }

    .footer-powered {
        order: 3;
    }
}

/* Contact Page Styles */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    margin-top: 3rem;
    align-items: start;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-section h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--c-white);
    letter-spacing: -0.3px;
}

.contact-section p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.5;
}

.contact-section a {
    color: var(--c-gray);
    text-decoration: none;
    transition: color var(--transition-speed) ease;
}

.contact-section a:hover {
    color: var(--c-white);
}

.contact-form {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 2rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group.full-width {
    grid-column: 1 / -1;
    margin-bottom: 1.5rem;
}

.contact-form label {
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--c-white);
}

.contact-form input,
.contact-form textarea {
    padding: 0.8rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: var(--c-white);
    font-family: var(--font-main);
    font-size: 0.9rem;
    transition: all var(--transition-speed) ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--c-white);
    background: rgba(255, 255, 255, 0.08);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: rgba(136, 136, 136, 0.7);
}

.contact-form textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-form .cta {
    margin-top: 1rem;
    margin-bottom: 1rem;
}

#contact-feedback {
    margin-top: 1rem;
    font-size: 0.9rem;
    min-height: 1.2em;
}

#contact-feedback.success {
    color: #28a745;
}

#contact-feedback.error {
    color: #dc3545;
}

@media (max-width: 768px) {
    .contact-layout {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .contact-form {
        padding: 1.5rem;
    }
}

/* Privacy, Terms and Contact Pages */
/* These pages now match Capabilities layout exactly */

/* Content containers are now handled by the global screen system */
/* No special containers needed - everything uses .content-wrapper */

/* Privacy and terms specific styles are now handled by the global grid system */
/* Content uses .grid and .grid-item classes like other sections */

/* Header positioning is global - no page-specific overrides needed */

/* Footer behavior is now global - all pages use the same fixed footer */

/* --- Standalone Page Footer Fix --- */
/* These pages now use body.long-content-active class which makes footer position: relative */
/* Same logic as Capabilities - no additional CSS needed */

/* --- Careers Page Styles --- */
.careers-page .content-wrapper {
    max-width: 1040px; /* align with other sections */
    margin: 0 auto;
    /* removed extra padding to rely on section padding */
}

/* --- Careers Page Styles --- */
.careers-intro {
    max-width: 1040px;
    margin: 0 auto 3rem auto;
    text-align: center;
}

.careers-form-container {
    max-width: 1040px;
    margin: 0 auto;
}

#careers-form .form-row {
    display: flex;
    flex-direction: row;
    gap: 1.5rem; /* Space between columns */
}

#careers-form .form-group {
    flex: 1; /* Each group takes equal space */
    min-width: 0; /* Prevents overflow */
    margin-bottom: 1.5rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    #careers-form .form-row {
        flex-direction: column; /* Stack on smaller screens */
        gap: 0;
    }
}


/* File Input Styling */
input[type="file"] {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--c-light-gray);
    border-radius: 4px;
    background-color: var(--c-black);
    color: var(--c-white);
    font-family: var(--font-main);
    cursor: pointer;
}

input[type="file"]::-webkit-file-upload-button {
    background-color: var(--c-light-gray);
    color: var(--c-white);
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    margin-right: 1rem;
    font-family: var(--font-main);
}

input[type="file"]::-webkit-file-upload-button:hover {
    background-color: var(--c-gray);
}

/* Form Validation Styles */
.form-group input.error,
.form-group textarea.error {
    border-color: #ff4444;
    box-shadow: 0 0 0 2px rgba(255, 68, 68, 0.2);
}

/* Feedback Messages */
#careers-feedback {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 4px;
    display: none;
    font-weight: 500;
}

#careers-feedback.success {
    background-color: rgba(0, 163, 255, 0.1);
    border: 1px solid var(--c-accent);
    color: var(--c-accent);
}

#careers-feedback.error {
    background-color: rgba(255, 68, 68, 0.1);
    border: 1px solid #ff4444;
    color: #ff4444;
}

/* Button Loading State */
.cta.loading {
    opacity: 0.7;
    cursor: not-allowed;
    position: relative;
}

.cta.loading:after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    margin: auto;
    border: 2px solid transparent;
    border-top-color: var(--c-white);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Small text styling */
.form-group small {
    display: block;
    margin-top: 0.25rem;
    color: var(--c-gray);
    font-size: 0.875rem;
}

/* Responsive adjustments for careers page */
@media (max-width: 768px) {
    .careers-page .content-wrapper {
        padding: 6rem 1.5rem 4rem;
    }
    
    .careers-intro {
        padding: 1.5rem;
    }
}
/* --- Careers Wizard Specific Styles --- */
#careers-wizard-container .form-group label {
    text-align: left;
    margin-bottom: 0.75rem;
}

#careers-wizard-container .form-group small {
    text-align: left;
    margin-top: 0.5rem;
}

#careers-feedback {
    margin-top: 1.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    text-align: center;
}
/* --- New Careers Page Professional Redesign --- */
.application-section {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    align-items: start;
    text-align: left;
    margin-top: 4rem;
    padding: 3rem;
    border: 1px solid var(--c-light-gray);
    border-radius: 12px;
    background-color: rgba(255, 255, 255, 0.02);
}

.application-info h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--c-white);
}

.application-info p {
    max-width: 100%;
    margin-bottom: 2rem;
}

.application-info a {
    color: var(--c-white);
    text-decoration: none;
    border-bottom: 1px solid var(--c-accent);
    transition: color var(--transition-speed), border-bottom-color var(--transition-speed);
}

.application-info a:hover {
    color: var(--c-accent);
}

.hiring-steps {
    list-style: none;
    padding-left: 0;
    margin-top: 1.5rem;
}

.hiring-steps li {
    display: flex;
    align-items: center;
    font-size: 1rem;
    font-weight: 500;
    color: var(--c-white);
    margin-bottom: 1rem;
}

.hiring-steps li span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: var(--c-light-gray);
    margin-right: 1rem;
    font-weight: 600;
}

#careers-wizard-container .wizard-content h4 {
    text-align: left;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--c-white);
}

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

/* Responsive adjustments for the new careers layout */
@media (max-width: 900px) {
    .application-section {
        grid-template-columns: 1fr;
        gap: 3rem;
        padding: 2rem;
    }
}

@media (max-width: 768px) {
    .careers-page .content-wrapper {
        padding: 6rem 1.5rem 4rem;
    }
}
/* --- Hiring Tag Styles --- */
.logo-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.hiring-tag {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    font-size: 0.75rem; /* Half of logo's 1.5rem */
    font-weight: 500;
    color: var(--c-white);
    background: transparent;
    border: 1px solid var(--c-white);
    border-radius: 8px;
    text-decoration: none;
    transition: all var(--transition-speed) ease;
    line-height: 1.5; /* Align vertically */
}

.hiring-tag:hover {
    background-color: var(--c-white);
    border-color: var(--c-white);
    color: var(--c-black);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.1);
}

@media (max-width: 768px) {
    .hiring-tag {
        display: none; /* Hide on mobile to keep header clean */
    }
}