/* ===== CSS Variables ===== */
:root {
    --primary: #3575f2;
    --primary-dark: #1a4ba8;
    --primary-light: #5a91f5;
    --secondary: #fff;
    --text-dark: #000000;
    --text-medium: #333333;
    --text-light: #666666;
    --grey-light: #f8f8f8;
    --grey-medium: #e5e5e5;
    --grey-dark: #cccccc;
    --gradient-primary: linear-gradient(135deg, #3575f2 0%, #1a4ba8 100%);
    --gradient-overlay: linear-gradient(to right, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.3) 100%);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 4px 16px rgba(0, 0, 0, 0.12);
    --transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-dark);
    background: #ffffff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse 120% 80% at 80% 20%, rgba(53, 117, 242, 0.28) 0%, transparent 50%),
        radial-gradient(ellipse 100% 70% at 20% 60%, rgba(53, 117, 242, 0.20) 0%, transparent 50%),
        radial-gradient(ellipse 90% 60% at 90% 80%, rgba(53, 117, 242, 0.16) 0%, transparent 50%);
    z-index: -1;
    pointer-events: none;
    filter: blur(100px);
}

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

/* ===== Header ===== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--grey-medium);
    z-index: 1000;
    transition: var(--transition);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    height: 70px;
}

.logo img {
    height: 32px;
    width: auto;
    max-width: 100%;
}

.main-nav {
    display: flex;
    gap: 40px;
}

.main-nav a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 400;
    font-size: 14px;
    letter-spacing: 0.3px;
    transition: var(--transition);
    position: relative;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--primary);
    transition: var(--transition);
}

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

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

/* ===== Mobile Menu ===== */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.hamburger span {
    width: 24px;
    height: 2px;
    background: var(--text-dark);
    transition: var(--transition);
}

.mobile-menu {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: white;
    padding: 24px;
    transform: translateY(-100%);
    opacity: 0;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
    z-index: 999;
}

.mobile-menu.active {
    transform: translateY(0);
    opacity: 1;
}

.mobile-menu nav {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.mobile-menu nav a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 400;
    font-size: 16px;
}

/* ===== Hero Section ===== */
.hero {
    min-height: 85vh;
    display: flex;
    align-items: center;
    background: transparent;
    padding-top: 70px;
    position: relative;
    overflow: hidden;
}

/* Video Background */
.hero-video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-video-background video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(10, 20, 40, 0.85) 0%,
        rgba(20, 40, 80, 0.75) 50%,
        rgba(53, 117, 242, 0.65) 100%
    );
}

.hero > .container {
    position: relative;
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 100px 0;
    text-align: left;
}

.hero-title {
    font-size: 64px;
    font-weight: 700;
    line-height: 1.05;
    margin-bottom: 28px;
    color: #ffffff;
    letter-spacing: -2px;
    text-shadow: 0 2px 40px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 22px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 44px;
    font-weight: 300;
    max-width: 600px;
    text-shadow: 0 1px 20px rgba(0, 0, 0, 0.2);
}

.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.hero-buttons .btn-primary {
    background: #ffffff;
    color: var(--primary);
    font-weight: 600;
    padding: 16px 40px;
    font-size: 15px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
}

.hero-buttons .btn-primary:hover {
    background: var(--primary);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 8px 40px rgba(53, 117, 242, 0.4);
}

.hero-buttons .btn-secondary {
    background: transparent;
    color: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.6);
    padding: 14px 38px;
    font-size: 15px;
}

.hero-buttons .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #ffffff;
    transform: translateY(-2px);
}

/* ===== Buttons ===== */
.btn {
    display: inline-block;
    padding: 14px 32px;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    letter-spacing: 0.5px;
    border-radius: 999px;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    text-transform: uppercase;
}

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

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: var(--text-dark);
    color: white;
}

.btn-secondary:hover {
    background: var(--text-medium);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background: transparent;
    color: var(--text-dark);
    border: 1px solid var(--text-dark);
}

.btn-outline:hover {
    background: var(--text-dark);
    color: white;
}

.btn-primary-light {
    background: white;
    color: var(--primary);
    border: 1px solid white;
}

.btn-primary-light:hover {
    background: transparent;
    color: white;
    border-color: white;
}

/* ===== Section Styles ===== */
.section {
    padding: 120px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-header h2 {
    font-size: 42px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-dark);
    letter-spacing: -0.5px;
}

.section-header p {
    font-size: 18px;
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto;
    font-weight: 300;
}

/* ===== Services Section ===== */
.services-section {
    padding: 120px 0;
    background: transparent;
    position: relative;
}

/* ===== Services Grid ===== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 12px;
}

.service-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    padding: 48px 32px;
    border: none;
    border-bottom: 1px solid var(--grey-medium);
    border-right: 1px solid var(--grey-medium);
    transition: var(--transition);
    position: relative;
}

/* Remove right border on last column items */
.service-card:nth-child(3n) {
    border-right: none;
}

/* Remove bottom border on last row items */
.service-card:nth-last-child(-n+3) {
    border-bottom: none;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
}

.service-card:hover {
    border-color: var(--grey-dark);
    box-shadow: var(--shadow-md);
}

.service-card:hover::before {
    width: 100%;
}

.service-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    color: var(--primary);
}

.service-icon svg {
    width: 32px;
    height: 32px;
}

.service-card h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-dark);
}

.service-card p {
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-light);
    font-weight: 300;
}

/* ===== Products Section ===== */
.products-section {
    background: transparent;
    position: relative;
    padding: 50px 0 120px;
}

.product-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    overflow: hidden;
    border: none;
    border-bottom: 1px solid var(--grey-medium);
    padding-bottom: 0;
}

.product-image {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.product-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(53, 117, 242, 0.05) 0%, rgba(53, 117, 242, 0.1) 100%);
}

.product-image img {
    max-width: 150%;
    height: auto;
    position: relative;
    z-index: 1;
    transform: scale(0.90);
    transform-origin: center;
}
.product-content {
    padding: 80px 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.product-content h3 {
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-dark);
}

.product-content p {
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-light);
    margin-bottom: 32px;
    font-weight: 300;
}

/* ===== CTA Section ===== */
.cta-section {
    background: var(--text-dark);
    color: white;
    text-align: center;
    padding: 100px 0;
}

.cta-content h2 {
    font-size: 40px;
    font-weight: 600;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.cta-content p {
    font-size: 18px;
    margin-bottom: 32px;
    opacity: 0.9;
    font-weight: 300;
}

/* ===== Footer ===== */
.site-footer {
    background: var(--text-dark);
    color: white;
    padding: 80px 0 32px;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 32px clamp(12px, 4vw, 120px);
    max-width: 900px;
    margin: 0 auto 60px;
}
.footer-links {
    display: flex;
    gap: clamp(14px, 4vw, 64px);
}
.footer-brand .footer-logo {
    height: clamp(20px, 3.2vw, 46px);
    width: auto;
    display: block;
}
.footer-col ul li a {
    white-space: nowrap;
    font-size: clamp(12.5px, 3.3vw, 14px);
}

.footer-col h4 {
    font-size: clamp(12px, 3.2vw, 14px);
    font-weight: 600;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-col p {
    font-size: 14px;
    line-height: 1.7;
    opacity: 0.8;
    font-weight: 300;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    color: white;
    text-decoration: none;
    font-size: 14px;
    opacity: 0.8;
    transition: var(--transition);
    font-weight: 300;
}

.footer-col ul li a:hover {
    opacity: 1;
    color: var(--primary-light);
}

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

.footer-bottom p {
    font-size: 13px;
    opacity: 0.6;
    font-weight: 300;
}

/* ===== Page Hero ===== */
.page-hero {
    padding: 160px 0 100px;
    background: transparent;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-hero h1 {
    font-size: 52px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-dark);
    letter-spacing: -1px;
    position: relative;
    z-index: 1;
}

.page-hero p {
    font-size: 20px;
    color: var(--text-medium);
    font-weight: 300;
    position: relative;
    z-index: 1;
}

/* Page Hero with Video Background */
.page-hero-video {
    min-height: 90vh;
    display: flex;
    align-items: center;
    padding: 120px 0 80px;
}

.page-hero-video > .container {
    position: relative;
    z-index: 2;
}

.page-hero-video .page-hero-content {
    max-width: 800px;
    text-align: left;
}

.page-hero-video h1 {
    font-size: 56px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -2px;
    text-shadow: 0 2px 40px rgba(0, 0, 0, 0.3);
    margin-bottom: 24px;
}

.page-hero-video p {
    font-size: 20px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 300;
    max-width: 650px;
    text-shadow: 0 1px 20px rgba(0, 0, 0, 0.2);
}

/* ===== About Page ===== */
.about-content {
    padding: 100px 0;
    background: transparent;
    position: relative;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    margin-bottom: 100px;
}

.about-text h2 {
    font-size: 36px;
    font-weight: 600;
    margin-bottom: 24px;
    color: var(--text-dark);
    letter-spacing: -0.5px;
}

.about-text p {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-light);
    margin-bottom: 16px;
    font-weight: 300;
}

.about-image img {
    width: 100%;
    height: auto;
    border: 1px solid var(--grey-medium);
}

.mission-section {
    padding: 100px 0;
    background: transparent;
    position: relative;
}

.mission-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 60px;
}

/* 2 Column Mission Layout */
.mission-grid-two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}

.mission-card-large {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    padding: 60px 48px;
    border-right: 1px solid var(--grey-medium);
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.mission-card-large::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
}

.mission-card-large:hover::before {
    width: 100%;
}

.mission-card-large h3 {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 24px;
    color: var(--text-dark);
    letter-spacing: -0.5px;
}

.mission-card-large p {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-light);
    font-weight: 300;
    margin-bottom: 16px;
}

.mission-card-large p:last-child {
    margin-bottom: 0;
}

.mission-col-right {
    display: flex;
    flex-direction: column;
}

.mission-col-right .mission-card {
    flex: 1;
    border-right: none;
    border-bottom: 1px solid var(--grey-medium);
}

.mission-col-right .mission-card:last-child {
    border-bottom: none;
}

.mission-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    padding: 48px 32px;
    border: none;
    border-bottom: 1px solid var(--grey-medium);
    border-right: 1px solid var(--grey-medium);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.mission-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
}

.mission-card:hover::before {
    width: 100%;
}

/* Remove right border on last column items (3 columns) */
.mission-card:nth-child(3n) {
    border-right: none;
}

/* Remove bottom border on last row items */
.mission-card:nth-last-child(-n+3) {
    border-bottom: none;
}

.mission-card:hover {
    border-color: var(--grey-dark);
    box-shadow: var(--shadow-md);
}

.mission-card h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-dark);
}

.mission-card p {
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-light);
    font-weight: 300;
}

.expertise-section {
    padding: 50px 0 100px;
    background: transparent;
    position: relative;
}

.tech-logos {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
    margin-top: 60px;
    max-width: 100%;
}

@media (max-width: 1400px) {
    .tech-logos {
        grid-template-columns: repeat(5, 1fr);
        gap: 12px;
    }
}

.tech-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border: none;
    border-bottom: 1px solid var(--grey-medium);
    border-right: 1px solid var(--grey-medium);
    transition: var(--transition);
    min-height: 120px;
    position: relative;
    overflow: hidden;
}

.tech-logo::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
}

.tech-logo:hover::before {
    width: 100%;
}

.tech-logo:nth-child(5n) {
    border-right: none;
}

.tech-logo:nth-last-child(-n+5) {
    border-bottom: none;
}

.tech-logo:hover {
    border-color: var(--grey-dark);
    box-shadow: var(--shadow-sm);
}

.tech-logo img {
    max-width: 100%;
    max-height: 60px;
    object-fit: contain;
    opacity: 0.7;
    transition: var(--transition);
}

.tech-logo:hover img {
    opacity: 1;
}

/* ===== What We Do - Capability Sections ===== */
.capabilities {
    padding: 80px 0 120px;
    background: transparent;
}

.capability {
    position: relative;
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 56px;
    align-items: start;
    max-width: 1080px;
    margin: 0 auto 120px;
    scroll-margin-top: 100px;
}

.capability:last-child {
    margin-bottom: 0;
}

/* Rail: outlined numeral + spec-sheet label */
.capability-rail {
    position: sticky;
    top: 40px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
}

.capability-numeral {
    font-family: 'Space Grotesk', 'Inter', sans-serif;
    font-size: 140px;
    font-weight: 700;
    line-height: 0.9;
    letter-spacing: -0.04em;
    -webkit-text-fill-color: transparent;
    -webkit-text-stroke: 2.5px var(--primary-light);
    text-stroke: 2.5px var(--primary-light);
    color: transparent;
    user-select: none;
}

.capability-rail-label {
    font-family: 'Space Grotesk', 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    color: #e6edf7;
    padding: 6px 10px;
    border: 1px solid rgba(230, 237, 247, 0.55);
    border-radius: 2px;
}

/* Content column */
.capability-content {
    max-width: 720px;
}

.capability-heading {
    font-family: 'Space Grotesk', 'Inter', sans-serif;
    font-size: 42px;
    font-weight: 700;
    line-height: 1.1;
    color: #ffffff;
    margin: 0 0 18px;
    letter-spacing: -0.02em;
}

.capability-tagline {
    font-size: 22px;
    font-weight: 500;
    line-height: 1.35;
    color: var(--primary-light);
    margin: 0 0 26px;
    letter-spacing: -0.01em;
}

.capability-body {
    font-size: 17px;
    font-weight: 400;
    line-height: 1.7;
    color: #e6edf7;
    margin: 0 0 28px;
}

/* CTA: button-style link with animated arrow */
.capability-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: 'Space Grotesk', 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #ffffff;
    text-decoration: none;
    padding: 12px 0 14px;
    border-bottom: 2px solid var(--primary-light);
    margin-bottom: 44px;
    transition: color 0.2s ease, border-color 0.2s ease, padding 0.2s ease;
}

.capability-cta .cta-arrow {
    color: var(--primary-light);
    font-size: 18px;
    transition: transform 0.2s ease;
}

.capability-cta:hover {
    color: var(--primary-light);
    padding-right: 6px;
}

.capability-cta:hover .cta-arrow {
    transform: translateX(4px);
}

/* Bullets: spec lines with chevron + bold topic + description */
.capability-bullets {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 40px;
    row-gap: 22px;
    border-top: 2px solid rgba(230, 237, 247, 0.35);
    padding-top: 24px;
}

.capability-bullets li {
    display: grid;
    grid-template-columns: 28px 1fr;
    row-gap: 4px;
    column-gap: 4px;
    grid-template-areas:
        "mark topic"
        ".    desc";
    transition: transform 0.18s ease;
}

.capability-bullets li:hover {
    transform: translateX(4px);
}

.bullet-mark {
    grid-area: mark;
    color: var(--primary-light);
    font-family: 'Space Grotesk', 'Inter', sans-serif;
    font-size: 18px;
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: -0.05em;
}

.bullet-topic {
    grid-area: topic;
    color: #ffffff;
    font-family: 'Space Grotesk', 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: 0.01em;
    text-transform: uppercase;
}

.bullet-desc {
    grid-area: desc;
    color: #e6edf7;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.55;
}

@media (max-width: 768px) {
    .capabilities {
        padding: 56px 0 80px;
    }
    .capability {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-bottom: 72px;
    }
    .capability-rail {
        position: static;
        flex-direction: row;
        align-items: center;
        gap: 16px;
    }
    .capability-numeral {
        font-size: 72px;
        -webkit-text-stroke-width: 1.5px;
    }
    .capability-rail-label {
        font-size: 10px;
        letter-spacing: 0.18em;
    }
    .capability-heading {
        font-size: 32px;
    }
    .capability-tagline {
        font-size: 19px;
    }
    .capability-body {
        font-size: 16px;
    }
    .capability-bullets {
        grid-template-columns: 1fr;
        row-gap: 18px;
    }
}

/* ===== Legacy: Services Detail (kept for any external links; no longer used on /what-we-do) ===== */
.services-detail {
    padding: 50px 0 100px;
    background: transparent;
    position: relative;
}

.service-detail-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 100px;
    align-items: center;
    margin-bottom: 120px;
}

.service-detail-card:last-child {
    margin-bottom: 0;
}

.service-detail-card.reverse {
    direction: rtl;
}

.service-detail-card.reverse > * {
    direction: ltr;
}

.service-detail-content h2 {
    font-size: 36px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--text-dark);
    letter-spacing: -0.5px;
}

.service-detail-content p {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-light);
    margin-bottom: 24px;
    font-weight: 300;
}

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

.service-detail-content ul li {
    font-size: 15px;
    line-height: 1.8;
    color: var(--text-light);
    padding-left: 24px;
    position: relative;
    margin-bottom: 12px;
    font-weight: 300;
}

.service-detail-content ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 4px;
    height: 4px;
    background: var(--primary);
    border-radius: 50%;
}

.service-detail-image img {
    width: 100%;
    height: auto;
    border: 1px solid var(--grey-medium);
}

/* ===== Product Detail ===== */
.product-detail-section {
    padding: 50px 0 100px;
    background: transparent;
    position: relative;
}

.product-hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 100px;
    align-items: center;
    margin-bottom: 120px;
}

.product-hero-content h2 {
    font-size: 48px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-dark);
    letter-spacing: -1px;
}

.product-tagline {
    font-size: 20px;
    color: var(--primary);
    font-weight: 500;
    margin-bottom: 24px;
}

.product-description {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-light);
    margin-bottom: 32px;
    font-weight: 300;
}

.product-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.product-hero-image {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--grey-medium);
    position: relative;
    overflow: hidden;
}

.product-hero-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(53, 117, 242, 0.05) 0%, rgba(53, 117, 242, 0.1) 100%);
}

.product-hero-image {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--grey-medium);
}

.product-hero-image img {
    max-width: 150%;
    height: auto;
    position: relative;
    z-index: 1;
    transform: scale(0.90);
    transform-origin: center;
}
.product-features {
    margin-top: 80px;
}

.product-features h3 {
    font-size: 40px;
    font-weight: 600;
    text-align: center;
    margin-bottom: 60px;
    color: var(--text-dark);
    letter-spacing: -0.5px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 12px;
}

.feature-item {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    padding: 40px 32px;
    border: none;
    border-bottom: 1px solid var(--grey-medium);
    border-right: 1px solid var(--grey-medium);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.feature-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
}

.feature-item:hover::before {
    width: 100%;
}

/* Remove right border on last column items */
.feature-item:nth-child(3n) {
    border-right: none;
}

/* Remove bottom border on last row items */
.feature-item:nth-last-child(-n+3) {
    border-bottom: none;
}

.feature-item:hover {
    border-color: var(--grey-dark);
    box-shadow: var(--shadow-md);
}

.feature-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: var(--primary);
}

.feature-item h4 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-dark);
}

.feature-item p {
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-light);
    font-weight: 300;
}

/* ===== Contact Section ===== */
.contact-section {
    padding: 50px 0 100px;
    background: transparent;
    position: relative;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 100px;
}

.contact-info h2 {
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-dark);
    letter-spacing: -0.5px;
}

.contact-info > p {
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-light);
    margin-bottom: 48px;
    font-weight: 300;
}

.contact-item {
    display: flex;
    gap: 20px;
    margin-bottom: 32px;
}

.contact-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    flex-shrink: 0;
}

.contact-item h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--text-dark);
}

.contact-item p {
    font-size: 15px;
    color: var(--text-light);
    font-weight: 300;
}

.social-links {
    margin-top: 48px;
}

.social-links h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-dark);
}

.social-icons {
    display: flex;
    gap: 12px;
}

.social-icon {
    width: 40px;
    height: 40px;
    border: 1px solid var(--grey-medium);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dark);
    transition: var(--transition);
}

.social-icon:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* ===== Contact Form ===== */
.contact-form-wrapper {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    padding: 48px;
    border: none;
    border-bottom: 1px solid var(--grey-medium);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

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

.form-group label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-dark);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group input,
.form-group textarea {
    padding: 14px 16px;
    border: 1px solid var(--grey-medium);
    font-size: 15px;
    font-family: inherit;
    transition: var(--transition);
    background: white;
    color: var(--text-dark);
}

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

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

.contact-form button[type="submit"] {
    width: 100%;
    margin-top: 8px;
}

/* ===== Animations ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scroll-triggered animations - Apple-style continuous reveal */
.scroll-animate {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.scroll-animate.visible {
    opacity: 1;
    transform: translateY(0);
}

.scroll-animate.hidden {
    opacity: 0;
    transform: translateY(-20px);
}

/* Different animation directions */
.fade-in-left.scroll-animate {
    transform: translateX(-40px);
}

.fade-in-left.scroll-animate.visible {
    transform: translateX(0);
}

.fade-in-left.scroll-animate.hidden {
    transform: translateX(20px);
}

.fade-in-right.scroll-animate {
    transform: translateX(40px);
}

.fade-in-right.scroll-animate.visible {
    transform: translateX(0);
}

.fade-in-right.scroll-animate.hidden {
    transform: translateX(-20px);
}

/* Hero parallax support */
.hero-content,
.page-hero-content {
    transition: opacity 0.1s ease-out;
}

/* ===== Responsive Design ===== */
@media (max-width: 768px) {
    .container {
        padding: 0 24px;
    }

    .main-nav {
        display: none;
    }
    
    .hamburger {
        display: flex;
    }
    
    .hero-title {
        font-size: 40px;
    }
    
    .hero-subtitle {
        font-size: 18px;
    }
    
    .page-hero h1 {
        font-size: 40px;
    }
    
    .section-header h2 {
        font-size: 32px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }

    /* Mobile: single column, so remove right borders */
    .service-card {
        border-right: none;
    }

    .service-card:last-child {
        border-bottom: none;
    }
    
    .product-card {
        grid-template-columns: 1fr;
    }
    
    .product-image {
        padding: 40px;
    }
    
    .product-content {
        padding: 40px 32px;
    }
    
    .cta-content h2 {
        font-size: 32px;
    }
    
    
    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .mission-grid {
        grid-template-columns: 1fr;
    }

    /* Mobile: single column, so remove right borders */
    .mission-card {
        border-right: none;
    }

    .mission-card:last-child {
        border-bottom: none;
    }

    /* 2 Column Mission - Mobile */
    .mission-grid-two-col {
        grid-template-columns: 1fr;
    }

    .mission-card-large {
        border-right: none;
        border-bottom: 1px solid var(--grey-medium);
        padding: 40px 24px;
    }

    .mission-card-large h3 {
        font-size: 24px;
    }

    .mission-col-right .mission-card:last-child {
        border-bottom: none;
    }

    /* Page Hero Video - Mobile */
    .page-hero-video {
        min-height: 60vh;
        padding: 100px 0 60px;
    }

    .page-hero-video h1 {
        font-size: 36px;
    }

    .page-hero-video p {
        font-size: 17px;
    }
    
    .tech-logos {
        grid-template-columns: repeat(5, 1fr);
        gap: 8px;
    }
    
    .service-detail-card {
        grid-template-columns: 1fr;
        gap: 40px;
        margin-bottom: 80px;
    }
    
    .service-detail-card.reverse {
        direction: ltr;
    }
    
    .product-hero {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .product-hero-content h2 {
        font-size: 36px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }

    /* Mobile: single column, so remove right borders */
    .feature-item {
        border-right: none;
    }

    .feature-item:last-child {
        border-bottom: none;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    
    .contact-form-wrapper {
        padding: 32px;
    }
}

/* ===== Enhanced Transitions & Animations ===== */

/* Image zoom on hover */
.product-image img,
.service-detail-image img,
.about-image img {
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.product-card:hover .product-image img,
.service-detail-card:hover .service-detail-image img,
.about-image:hover img {
    transform: scale(1.08);
}

/* Service card enhanced hover */
.service-card {
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.service-card:hover {
    transform: translateY(-8px);
}

.service-icon {
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.service-card:hover .service-icon {
    transform: scale(1.1);
}

/* Feature card hover */
.feature-item {
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.feature-item:hover {
    transform: translateY(-8px);
}

.feature-icon {
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.feature-item:hover .feature-icon {
    transform: scale(1.1);
}

/* Mission card hover */
.mission-card {
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.mission-card:hover {
    transform: translateY(-8px);
}

/* Tech logo hover */
.tech-logo {
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.tech-logo:hover {
    transform: translateY(-4px);
}

/* Button enhanced hover */
.btn {
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    transition: left 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.btn:hover::before {
    left: 100%;
}

/* Product card hover effect */
.product-card {
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.product-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

/* Form input focus animation */
.form-group input,
.form-group textarea {
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.form-group input:focus,
.form-group textarea:focus {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(53, 117, 242, 0.15);
}

/* Navigation link animation */
.main-nav a {
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.main-nav a:hover {
    transform: translateY(-2px);
}

/* Footer link hover */
.footer-col ul li a {
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.footer-col ul li a:hover {
    transform: translateX(4px);
    display: inline-block;
}

/* Social icon animation */
.social-icon {
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.social-icon:hover {
    transform: translateY(-4px) rotate(5deg);
}

/* Fade in animation for sections */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Slide in from left */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Slide in from right */
@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Apply animations */
.hero-content {
    animation: fadeInUp 0.8s ease-out;
}

.section-header {
    animation: fadeInUp 0.8s ease-out;
}

.service-card {
    animation: fadeInUp 0.8s ease-out;
}

.service-card:nth-child(1) { animation-delay: 0.1s; opacity: 0; animation-fill-mode: forwards; }
.service-card:nth-child(2) { animation-delay: 0.2s; opacity: 0; animation-fill-mode: forwards; }
.service-card:nth-child(3) { animation-delay: 0.3s; opacity: 0; animation-fill-mode: forwards; }
.service-card:nth-child(4) { animation-delay: 0.4s; opacity: 0; animation-fill-mode: forwards; }
.service-card:nth-child(5) { animation-delay: 0.5s; opacity: 0; animation-fill-mode: forwards; }
.service-card:nth-child(6) { animation-delay: 0.6s; opacity: 0; animation-fill-mode: forwards; }

.feature-item:nth-child(1) { animation: fadeInUp 0.8s ease-out 0.1s; opacity: 0; animation-fill-mode: forwards; }
.feature-item:nth-child(2) { animation: fadeInUp 0.8s ease-out 0.2s; opacity: 0; animation-fill-mode: forwards; }
.feature-item:nth-child(3) { animation: fadeInUp 0.8s ease-out 0.3s; opacity: 0; animation-fill-mode: forwards; }
.feature-item:nth-child(4) { animation: fadeInUp 0.8s ease-out 0.4s; opacity: 0; animation-fill-mode: forwards; }
.feature-item:nth-child(5) { animation: fadeInUp 0.8s ease-out 0.5s; opacity: 0; animation-fill-mode: forwards; }
.feature-item:nth-child(6) { animation: fadeInUp 0.8s ease-out 0.6s; opacity: 0; animation-fill-mode: forwards; }

.mission-card:nth-child(1) { animation: fadeInUp 0.8s ease-out 0.1s; opacity: 0; animation-fill-mode: forwards; }
.mission-card:nth-child(2) { animation: fadeInUp 0.8s ease-out 0.2s; opacity: 0; animation-fill-mode: forwards; }
.mission-card:nth-child(3) { animation: fadeInUp 0.8s ease-out 0.3s; opacity: 0; animation-fill-mode: forwards; }

.product-card {
    animation: fadeIn 1s ease-out;
}

.cta-content {
    animation: fadeInUp 0.8s ease-out;
}

/* Header scroll effect */
.site-header.scrolled {
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.1);
}


/* ===== Scroll-Triggered Transitions - Apple Style ===== */

/* Initial hidden state for scroll animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(60px);
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.fade-in-left {
    opacity: 0;
    transform: translateX(-60px);
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.fade-in-right {
    opacity: 0;
    transform: translateX(60px);
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.fade-in {
    opacity: 0;
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Visible state when scrolled into view */
.fade-in-up.visible,
.fade-in-left.visible,
.fade-in-right.visible,
.fade-in.visible {
    opacity: 1;
    transform: translate(0, 0);
}

/* Hidden state when scrolled out of view - fade out effect */
.fade-in-up.hidden {
    opacity: 0;
    transform: translateY(-30px);
}

.fade-in-left.hidden {
    opacity: 0;
    transform: translateX(30px);
}

.fade-in-right.hidden {
    opacity: 0;
    transform: translateX(-30px);
}

.fade-in.hidden {
    opacity: 0;
}

/* Staggered delays for multiple items */
.fade-in-up:nth-child(1) { transition-delay: 0.05s; }
.fade-in-up:nth-child(2) { transition-delay: 0.1s; }
.fade-in-up:nth-child(3) { transition-delay: 0.15s; }
.fade-in-up:nth-child(4) { transition-delay: 0.2s; }
.fade-in-up:nth-child(5) { transition-delay: 0.25s; }
.fade-in-up:nth-child(6) { transition-delay: 0.3s; }


/* ===== Product Hero Image Zoom ===== */
.product-hero-image {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--grey-medium);
}

.product-hero-image img {
    max-width: 150%;
    height: auto;
    position: relative;
    z-index: 1;
    transform: scale(0.90);
    transform-origin: center;
}

/* Product hero image hover effect */
.product-hero-image img {
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.product-hero-image:hover img {
    transform: scale(0.98);
}



/* Footer brand logo (replaces the "Simcha Solutions" text heading) */
.footer-col .footer-logo {
    width: 190px;
    max-width: 100%;
    height: auto;
    margin-bottom: 16px;
    display: block;
}

/* Product demo video frames (walkthrough clips in the IDE / Change Manager sections) */
.demo-video-frame {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--grey-medium);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
    background: #0b0f1a;
    line-height: 0;
}
.demo-video {
    display: block;
    width: 100%;
    height: auto;
}
.pillar-cinematic-stage .demo-video-frame {
    max-width: 1040px;
    margin-left: auto;
    margin-right: auto;
}

/* Featured-product brand logo (replaces the "Simcha DB Studio" text heading) */
.featured-product-logo {
    margin: 0 0 20px;
    line-height: 0;
}
.featured-product-logo img {
    display: block;
    width: 280px;
    max-width: 100%;
    height: auto;
    margin-left: auto;
    margin-right: auto;
}

/* Center the whole Currently Shipping content block (tag, logo, copy, CTAs). */
.featured-product-cinematic .featured-product-content { text-align: center; }
.featured-product-cinematic .featured-product-cta { justify-content: center; }

/* Footer links wrap in narrow mobile columns (e.g. the long email). */
.footer-col ul li a { overflow-wrap: anywhere; }

