/* ═══════════════════════════════════════════════════════════
   IJS Website - Main Page Styles
   Hero section, home sections, KPI bar, tech cards, CTA
   ═══════════════════════════════════════════════════════════ */

/* ── Hero Section (Main Page) ── */
.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 600px;
    overflow: hidden;
}

.hero-slider {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.hero-slider .swiper-wrapper {
    width: 100%;
    height: 100%;
}

.hero-slider .swiper-slide {
    position: relative;
    overflow: hidden;
    width: 100% !important;
}

.hero-slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hero-slide-bg img,
.hero-slide-bg video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-slide-bg picture {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Ken Burns zoom-out on active image slides (video slide unaffected) */
.hero-slider .swiper-slide-active .hero-slide-bg img {
    animation: heroKenBurns 6s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0s 1 forwards;
}
@keyframes heroKenBurns {
    0%   { transform: scale(1.1); }
    100% { transform: scale(1.0); }
}

.hero-slide-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.3) 0%,
        rgba(0, 0, 0, 0.1) 50%,
        rgba(0, 0, 0, 0.4) 100%
    );
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 2;
    width: 90%;
    max-width: 900px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.6s ease;
}

.hero-content.active {
    opacity: 1;
    pointer-events: auto;
}

.hero-subtitle {
    font-size: var(--text-lg);
    font-weight: var(--weight-medium);
    color: rgba(255, 255, 255, 0.8);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: var(--space-4);
}

.hero-title {
    font-size: var(--text-6xl);
    font-weight: var(--weight-extrabold);
    color: white;
    line-height: 1.15;
    margin-bottom: var(--space-6);
}

.hero-desc {
    font-size: var(--text-xl);
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: var(--space-8);
}

.hero-actions {
    display: flex;
    gap: var(--space-4);
    justify-content: center;
}

/* Hero pagination */
.hero .swiper-pagination {
    bottom: var(--space-10) !important;
}

.hero .swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.4);
    opacity: 1;
}

.hero .swiper-pagination-bullet-active {
    background: white;
    width: 36px;
    border-radius: 6px;
}

/* Hero scroll indicator */
.hero-scroll {
    position: absolute;
    bottom: var(--space-4);
    left: var(--space-8);
    z-index: 2;
    color: white;
    font-size: var(--text-xs);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-1);
    animation: scrollBounce 2s infinite;
    opacity: 0.7;
}

@keyframes scrollBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(6px); }
}

/* ── Hero Video ── */
.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ── Main Page Sections ── */
.main-section {
    padding: var(--space-24) 0;
    position: relative;
}

.main-section:nth-child(even) {
    background: var(--ijs-bg-gray);
}

.main-section-header {
    text-align: center;
    margin-bottom: var(--space-12);
}

.main-section-eyebrow {
    font-family: var(--font-heading);
    font-size: var(--text-sm);
    font-weight: var(--weight-semibold);
    color: var(--ijs-primary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: var(--space-3);
}

.main-section-title {
    font-size: var(--text-4xl);
    font-weight: var(--weight-extrabold);
    color: var(--ijs-dark);
    margin-bottom: var(--space-4);
}

.main-section-desc {
    font-size: var(--text-lg);
    color: var(--ijs-text-light);
    max-width: 700px;
    margin: 0 auto;
    line-height: var(--leading-relaxed);
}

/* ═══════════════════════════════════════════════════════════
   HOME — Trust KPI Bar
   ═══════════════════════════════════════════════════════════ */
.home-kpi {
    background: var(--ijs-dark);
    padding: 56px 0;
}

.home-kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    text-align: center;
}

.home-kpi-item {
    color: #fff;
}

.home-kpi-item i {
    font-size: 28px;
    color: var(--ijs-primary);
    margin-bottom: 12px;
    display: block;
}

.home-kpi-num {
    font-family: var(--font-heading);
    font-size: var(--text-4xl);
    font-weight: var(--weight-extrabold);
    color: #fff;
    line-height: 1.1;
    margin-bottom: 4px;
}

.home-kpi-label {
    font-size: var(--text-sm);
    color: rgba(255, 255, 255, 0.85);
    font-weight: var(--weight-medium);
    margin-bottom: 2px;
}

.home-kpi-sub {
    font-size: var(--text-xs);
    color: rgba(255, 255, 255, 0.45);
}

/* ═══════════════════════════════════════════════════════════
   HOME — Section Header (shared)
   ═══════════════════════════════════════════════════════════ */
.home-section {
    padding: 100px 0;
}

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

.home-section-eyebrow {
    font-family: var(--font-heading);
    font-size: var(--text-sm);
    font-weight: var(--weight-semibold);
    color: var(--ijs-primary);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 12px;
}

.home-section-title {
    font-family: var(--font-heading);
    font-size: var(--text-4xl);
    font-weight: var(--weight-bold);
    color: var(--ijs-dark);
    line-height: var(--leading-tight);
    margin: 0;
}

.home-section-title em {
    font-style: normal;
    color: var(--ijs-primary);
}

.home-section-desc {
    font-size: var(--text-lg);
    color: var(--ijs-text-light);
    margin-top: 16px;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
}

/* Dark section variant */
.home-section-dark {
    background: var(--ijs-dark);
}

.home-section-dark .home-section-eyebrow {
    color: rgba(255, 255, 255, 0.6);
}

.home-section-dark .home-section-title {
    color: #fff;
}

.home-section-dark .home-section-title em {
    color: var(--ijs-primary);
}

.home-section-dark .home-section-desc {
    color: rgba(255, 255, 255, 0.65);
}

/* ═══════════════════════════════════════════════════════════
   HOME — Core Technology Cards
   ═══════════════════════════════════════════════════════════ */
.home-tech-cards {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.home-tech-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    background: #fff;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.3s ease;
}

.home-tech-card:hover {
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.1);
}

.home-tech-card:nth-child(even) {
    direction: rtl;
}

.home-tech-card:nth-child(even) > * {
    direction: ltr;
}

.home-tech-card-visual {
    position: relative;
    overflow: hidden;
    aspect-ratio: 3/2;
}

.home-tech-card-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.home-tech-card:hover .home-tech-card-visual img {
    transform: scale(1.04);
}

.home-tech-card-body {
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.home-tech-card-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-lg);
    background: var(--ijs-primary-light);
    color: var(--ijs-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin-bottom: 20px;
}

.home-tech-card-body h3 {
    font-family: var(--font-heading);
    font-size: var(--text-2xl);
    font-weight: var(--weight-bold);
    color: var(--ijs-dark);
    margin: 0 0 12px;
    line-height: var(--leading-tight);
}

.home-tech-card-body p {
    font-size: var(--text-base);
    color: var(--ijs-text-light);
    line-height: var(--leading-relaxed);
    margin: 0 0 20px;
}

.home-tech-specs {
    list-style: none;
    padding: 0;
    margin: 0 0 24px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.home-tech-specs li {
    font-size: var(--text-sm);
    color: var(--ijs-text);
    display: flex;
    align-items: center;
    gap: 8px;
}

.home-tech-specs li i {
    color: var(--ijs-primary);
    font-size: 16px;
    flex-shrink: 0;
}

/* ═══════════════════════════════════════════════════════════
   HOME — Applications Grid
   ═══════════════════════════════════════════════════════════ */
.home-app-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.home-app-card {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-xl);
    padding: 32px 24px;
    text-align: center;
    transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

.home-app-card:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--ijs-primary);
    transform: translateY(-4px);
}

.home-app-card-tag {
    display: inline-block;
    font-size: 11px;
    font-weight: var(--weight-semibold);
    color: var(--ijs-primary);
    background: rgba(208, 17, 100, 0.15);
    border-radius: 20px;
    padding: 3px 12px;
    margin-bottom: 16px;
    letter-spacing: 0.03em;
}

.home-app-card i {
    font-size: 36px;
    color: rgba(255, 255, 255, 0.8);
    display: block;
    margin-bottom: 16px;
}

.home-app-card h3 {
    font-size: var(--text-lg);
    font-weight: var(--weight-semibold);
    color: #fff;
    margin: 0 0 10px;
}

.home-app-card p {
    font-size: var(--text-sm);
    color: rgba(255, 255, 255, 0.55);
    line-height: var(--leading-relaxed);
    margin: 0;
}

/* ═══════════════════════════════════════════════════════════
   HOME — Company Snapshot
   ═══════════════════════════════════════════════════════════ */
.home-snapshot {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.home-snapshot-image {
    border-radius: var(--radius-xl);
    overflow: hidden;
}

.home-snapshot-image img {
    width: 100%;
    height: auto;
    display: block;
}

.home-snapshot-content {
    display: flex;
    flex-direction: column;
}

.home-snapshot-lead {
    font-size: var(--text-lg);
    color: var(--ijs-text);
    line-height: var(--leading-relaxed);
    margin: 0 0 28px;
}

.home-snapshot-facts {
    display: flex;
    gap: 24px;
    margin-bottom: 24px;
}

.home-snapshot-fact {
    flex: 1;
    padding: 16px;
    background: var(--ijs-bg-gray);
    border-radius: var(--radius-lg);
    text-align: center;
    border-left: 3px solid var(--ijs-primary);
}

.home-snapshot-fact strong {
    display: block;
    font-family: var(--font-heading);
    font-size: var(--text-lg);
    font-weight: var(--weight-bold);
    color: var(--ijs-dark);
    margin-bottom: 4px;
}

.home-snapshot-fact span {
    font-size: var(--text-xs);
    color: var(--ijs-text-muted);
}

.home-snapshot-clients {
    font-size: var(--text-sm);
    color: var(--ijs-text-light);
    display: flex;
    align-items: center;
    gap: 8px;
}

.home-snapshot-clients strong {
    font-size: var(--text-base);
    color: var(--ijs-dark);
    letter-spacing: 0.03em;
}

/* ═══════════════════════════════════════════════════════════
   HOME — CTA Section
   ═══════════════════════════════════════════════════════════ */
.home-cta {
    background: linear-gradient(135deg, var(--ijs-primary) 0%, var(--ijs-primary-dark) 100%);
    padding: 80px 0;
}

.home-cta-inner {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.home-cta-inner h2 {
    font-family: var(--font-heading);
    font-size: var(--text-3xl);
    font-weight: var(--weight-bold);
    color: #fff;
    margin: 0 0 16px;
    line-height: var(--leading-tight);
}

.home-cta-inner p {
    font-size: var(--text-lg);
    color: rgba(255, 255, 255, 0.8);
    margin: 0 0 32px;
    line-height: var(--leading-relaxed);
}

.home-cta-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ═══════════════════════════════════════════════════════════
   PERFORMANCE STRIP — Full-width bar with key metrics
   ═══════════════════════════════════════════════════════════ */
.perf-strip {
    background: var(--ijs-bg-dark, #F0F2F5);
    border-top: 1px solid rgba(0,0,0,0.06);
    border-bottom: 1px solid rgba(0,0,0,0.06);
    padding: 0;
    overflow: hidden;
}

.perf-strip-inner {
    max-width: var(--container-max, 1320px);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    padding: 28px 24px;
}

.perf-strip-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 32px;
    white-space: nowrap;
}

.perf-strip-value {
    font-family: var(--font-heading);
    font-size: var(--text-2xl);
    font-weight: var(--weight-extrabold);
    color: var(--ijs-primary);
    letter-spacing: -0.02em;
    line-height: 1;
}

.perf-strip-label {
    font-size: var(--text-sm);
    color: var(--ijs-text-light, #666);
    font-weight: var(--weight-medium);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.perf-strip-divider {
    width: 1px;
    height: 36px;
    background: rgba(0,0,0,0.12);
    flex-shrink: 0;
}

[data-theme="dark"] .perf-strip {
    background: var(--ijs-dark-alt, #12151f);
    border-top-color: rgba(255,255,255,0.06);
    border-bottom-color: rgba(255,255,255,0.06);
}

[data-theme="dark"] .perf-strip-label {
    color: rgba(255,255,255,0.55);
}

[data-theme="dark"] .perf-strip-divider {
    background: rgba(255,255,255,0.12);
}

.perf-strip-footnote {
    max-width: var(--container-max, 1320px);
    margin: 0 auto;
    padding: 6px 24px 0;
    text-align: right;
}

.perf-strip-footnote small {
    font-size: 11px;
    color: var(--ijs-text-muted, #999);
    line-height: 1.4;
}

[data-theme="dark"] .perf-strip-footnote small {
    color: rgba(255, 255, 255, 0.3);
}

.perf-strip-value sup {
    font-size: 0.55em;
    color: var(--ijs-text-muted, #999);
}

[data-theme="dark"] .perf-strip-value sup {
    color: rgba(255, 255, 255, 0.4);
}

/* ═══════════════════════════════════════════════════════════
   ENGINEERING PROCESS — 5-step horizontal flow
   ═══════════════════════════════════════════════════════════ */
.eng-process-section {
    background: var(--ijs-bg);
}

.eng-process-flow {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
}

.eng-process-item {
    flex: 1;
    max-width: 220px;
    text-align: center;
    padding: 24px 16px;
    position: relative;
}

.eng-process-num {
    font-family: var(--font-heading);
    font-size: var(--text-sm);
    font-weight: var(--weight-bold);
    color: var(--ijs-primary);
    letter-spacing: 0.05em;
    margin-bottom: 12px;
    opacity: 0.7;
}

.eng-process-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--ijs-primary), var(--ijs-secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    color: #fff;
    font-size: 24px;
    box-shadow: 0 4px 16px rgba(208, 17, 100, 0.25);
}

.eng-process-title {
    font-family: var(--font-heading);
    font-size: var(--text-base);
    font-weight: var(--weight-bold);
    color: var(--ijs-text);
    margin-bottom: 8px;
    line-height: 1.3;
}

.eng-process-desc {
    font-size: var(--text-sm);
    color: var(--ijs-text-muted);
    line-height: 1.6;
    margin: 0;
}

.eng-process-arrow {
    display: flex;
    align-items: center;
    padding-top: 64px;
    color: var(--ijs-primary);
    font-size: 20px;
    opacity: 0.4;
    flex-shrink: 0;
}

/* ═══════════════════════════════════════════════════════════
   CLIENT PROOF — Logo grid
   ═══════════════════════════════════════════════════════════ */
.client-proof-section {
    background: var(--ijs-bg-alt, var(--ijs-bg));
}

.client-logo-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
    max-width: 1100px;
    margin: 0 auto;
}

.client-logo-item {
    aspect-ratio: 5/3;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--ijs-border-light);
    background: var(--ijs-bg);
    transition: all 0.3s ease;
    filter: grayscale(100%);
    opacity: 0.55;
    cursor: default;
}

.client-logo-item:hover {
    filter: grayscale(0%);
    opacity: 1;
    border-color: var(--ijs-primary);
    box-shadow: 0 4px 16px rgba(208, 17, 100, 0.1);
    transform: translateY(-2px);
}

.client-logo-item img {
    max-width: 85%;
    max-height: 85%;
    object-fit: contain;
}

/* ═══════════════════════════════════════════════════════════
   ENGINEERING VISUAL PLACEHOLDER — aspect-ratio fixed, CLS safe
   ═══════════════════════════════════════════════════════════ */
.eng-visual-placeholder {
    position: relative;
    aspect-ratio: 3/2;
    overflow: hidden;
    background: var(--ijs-bg-alt, #f5f5f5);
}

.eng-visual-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.eng-visual-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(0,0,0,0.7);
    color: #fff;
    font-size: var(--text-xs);
    font-weight: var(--weight-semibold);
    padding: 5px 12px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    gap: 5px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.eng-visual-badge i {
    font-size: 14px;
    color: var(--ijs-primary);
}
