/* ===/* ==========================================================================
   1. GLOBAL CORE CONFIGURATION & VARIABLES
   ========================================================================== */
/* Imported both Exo (for headers) and Inter (for crisp, clean body text) */
@import url('https://fonts.googleapis.com/css2?family=Exo:wght@400;600;800&family=Inter:wght@400;500;600&display=swap');

:root {
    --primary: #1a233a;          /* Unified Core Brand Deep Navy */
    --accent: #38bdf8;           /* High-Contrast Industrial Blue */
    --bg-color: #f8fafc;         /* Clean Slate White Background */
    --text: #334155;             /* Balanced Slate Charcoal for body text */
    --text-muted: #64748b;       /* Muted Cool Grey for Footers/Subtitles */
    --card-mask: rgba(255, 255, 255, 0.94); /* Global Image Transparency Control */
}

html, body {
    margin: 0;
    padding: 0;
    font-family: "Inter", sans-serif; /* Clean UI font for the standard layout */
    color: var(--text);
    background-color: var(--bg-color);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Keep the technical, high-impact font restricted to headings & navigation only */
h1, h2, h3, h4, h5, h6, nav a, .card-index, .why-statement-badge {
    font-family: "Exo", sans-serif;
}

h1, h2, h3, h4, h5, h6, p, a {
    font-family: "Exo", sans-serif;
}

/* ==========================================================================
   2. SITE-WIDE NAVIGATION HEADER
   ========================================================================== */
header {
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    padding: 20px 50px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo img { 
    height: 120px; 
    display: block;
}

nav ul { 
    display: flex; 
    list-style: none; 
    gap: 140px; 
    justify-content: center; 
    margin: 0;
    padding: 0;
}

nav a { 
    color: #e2e8f0; 
    text-decoration: none; 
    font-weight: 500; 
    transition: color 0.3s ease; 
}

nav a:hover,
nav a.active { 
    color: var(--accent); 
}

/* ==========================================================================
   3. HERO ELEMENTS (SLIDESHOWS & SUBPAGE BANNERS)
   ========================================================================== */
/* Home Page Cinematic Hero Slider */
.slideshow-container { 
    width: 100%; 
    height: 500px; 
    overflow: hidden; 
}

.slide-wrapper { 
    display: flex; 
    width: 1000%; 
    height: 100%; 
    transition: transform 1s ease-in-out; 
}

.slide { 
    width: 10%; 
    height: 100%; 
    flex-shrink: 0; 
}

.slide img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
}

/* Service Detail Subpage Hero Banner */
.service-page-hero {
    position: relative;
    width: 100%;
    min-height: 280px;
    padding: 90px 20px;
    text-align: center;
    color: #ffffff;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    box-sizing: border-box;
}

.service-page-hero h1 {
    margin: 0 0 15px 0;
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: 1px;
}

.service-page-hero p {
    margin: 0 auto;
    max-width: 800px;
    font-size: 1.1rem;
    line-height: 1.6;
    color: #e2e8f0;
}

/* Subpage Hero Image Bindings (Lowercase to match your exact filenames) */
.dfm-banner { background-image: linear-gradient(rgba(15, 23, 42, 0.7), rgba(15, 23, 42, 0.7)), url('dfm-banner.jpg'); }
.bom-banner { background-image: linear-gradient(rgba(15, 23, 42, 0.7), rgba(15, 23, 42, 0.7)), url('bom-banner.jpg'); }
.fea-banner { background-image: linear-gradient(rgba(15, 23, 42, 0.7), rgba(15, 23, 42, 0.7)), url('fea-banner.jpg'); }
.draft-banner { background-image: linear-gradient(rgba(15, 23, 42, 0.7), rgba(15, 23, 42, 0.7)), url('draft-banner.jpg'); }
.reveng-banner { background-image: linear-gradient(rgba(15, 23, 42, 0.7), rgba(15, 23, 42, 0.7)), url('reveng-banner.jpg'); }
.training-banner { background-image: linear-gradient(rgba(15, 23, 42, 0.7), rgba(15, 23, 42, 0.7)), url('training-banner.jpg'); }

/* ==========================================================================
   4. LAYOUT CONTAINERS & CONTENT BLOCK STYLING
   ========================================================================== */
section {
    max-width: 1000px;
    margin: 40px auto; 
    background: #ffffff;
    padding: 60px;
    border-radius: 24px;
    box-shadow: 0 20px 40px -10px rgba(0,0,0,0.08);
    box-sizing: border-box;
}

/* Targets index page blocks specifically to preserve depth overlaps cleanly */
.home-hero-section {
    margin-top: -80px;
    position: relative;
    z-index: 10;
}

/* Glass Detail Cards for Subpage Layouts */
.glass-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 40px;
    border-radius: 20px;
    max-width: 800px;
    margin: -50px auto 40px auto;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    border: 1px solid rgba(255,255,255,0.3);
    position: relative;
    z-index: 20;
    box-sizing: border-box;
}

/* 3D Content Model Displays */
.model-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
    gap: 30px; 
    margin-top: 40px; 
}

.model-container { 
    height: 400px; 
    background: #f8fafc; 
    border-radius: 16px; 
    border: 1px solid #e2e8f0;
}

/* ==========================================================================
   5. INTERACTIVE COMPONENT DIRECTORY CARDS
   ========================================================================== */
/* Central Services Layout Grids */
.service-grid,
.widescreen-services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

@media (min-width: 1025px) {
    .widescreen-services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Modern Industrial Directory Card Architecture */
.industrial-service-card,
.service-card {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    border: 1px solid #e2e8f0;
    border-top: 4px solid var(--primary);
    border-radius: 8px;
    padding: 40px 30px;
    min-height: 270px;
    text-decoration: none; 
    color: inherit; 
    cursor: pointer;
    box-sizing: border-box;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), 
                border-color 0.3s ease, 
                box-shadow 0.3s ease, 
                background 0.3s ease;
}

/* One Single Universal Hover Rule to control exposure across ALL cards */
.industrial-service-card:hover,
.service-card:hover {
    --card-mask: rgba(255, 255, 255, 0.01); /* Drops white mask to 60% so background details pop out */
    transform: translateY(-5px);
    border-top-color: var(--accent);
    box-shadow: 0 12px 24px rgba(26, 35, 58, 0.12);
}

/* Optimized Asset Image Pipelines (Maintains exact structural file names) */
.bg-draft    { background: linear-gradient(var(--card-mask), var(--card-mask)), url('draft-bg.jpg') center/cover no-repeat; }
.bg-dfm      { background: linear-gradient(var(--card-mask), var(--card-mask)), url('DFM-bg.jpg') center/cover no-repeat; }
.bg-bom      { background: linear-gradient(var(--card-mask), var(--card-mask)), url('BOM-bg.jpg') center/cover no-repeat; }
.bg-fea      { background: linear-gradient(var(--card-mask), var(--card-mask)), url('FEA-bg.jpg') center/cover no-repeat; }
.bg-reveng   { background: linear-gradient(var(--card-mask), var(--card-mask)), url('reverse-bg.jpg') center/cover no-repeat; }
.bg-training { background: linear-gradient(var(--card-mask), var(--card-mask)), url('training-bg.jpg') center/cover no-repeat; }

.card-index {
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--accent);
    letter-spacing: 1.5px;
    margin-bottom: 12px;
    display: block;
}

.industrial-service-card h3,
.service-card h3 {
    font-size: 1.4rem;
    color: var(--primary);
    margin: 0 0 15px 0;
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: -0.3px;
}

.industrial-service-card p,
.service-card p {
    color: var(--text); 
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
}

/* Legacy Card Overlay System Fallbacks (Kept secure for backward page configurations) */
.card-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(15, 23, 42, 0.4);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background 0.4s ease;
}
.card-overlay span {
    color: #ffffff;
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: 2px;
    opacity: 0;
    transition: opacity 0.4s ease;
}
.service-card:hover .card-overlay { background: rgba(15, 23, 42, 0.7); }
.service-card:hover .card-overlay span { opacity: 1; }

/* ==========================================================================
   6. HIGH-IMPACT FULL-BLEED "WHY CHOOSE US" FRAMEWORK
   ========================================================================== */
.why-section-outer {
    background: #1a233a; 
    color: #ffffff;
    padding: 80px 0;
    margin-top: 80px;
    width: 100%;
}

.why-section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.why-section-container h2 {
    color: #ffffff;
    margin-top: 0;
    font-size: 2rem;
    letter-spacing: 1px;
}

.why-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
    align-items: center;
    margin-top: 40px;
}

.why-text-block {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.why-text-block p {
    line-height: 1.7;
    color: #cbd5e1; 
    font-size: 1.05rem;
    margin: 0;
}

.why-highlight-box {
    background: rgba(255, 255, 255, 0.05);
    border-left: 4px solid var(--accent); 
    padding: 24px;
    border-radius: 0 8px 8px 0;
}

.why-highlight-box p {
    color: #ffffff;
}

.why-action-col {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
}

.why-statement-badge {
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1.2;
    color: #ffffff;
    letter-spacing: -0.5px;
}

.why-statement-badge span {
    color: var(--accent);
}

/* ==========================================================================
   7. SEAMLESS NAVIGATION BUTTONS & SITE FOOTER
   ========================================================================== */
.btn,
.cta-btn {
    display: inline-block;
    background-color: var(--accent); 
    color: var(--primary);
    text-decoration: none;
    padding: 16px 40px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: 0.5px;
    transition: all 0.25s ease;
    border: 2px solid var(--accent);
    margin-top: 20px;
}

.btn:hover,
.cta-btn:hover {
    background-color: #ffffff;
    border-color: #ffffff;
    color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(56, 189, 248, 0.2);
}

footer { 
    text-align: center; 
    padding: 20px; 
    color: var(--text-muted); 
    margin-top: auto; 
    box-sizing: border-box;
}

/* ==========================================================================
   8. RESPONSIVE LAYOUT CONSTRAINTS
   ========================================================================== */
@media (max-width: 850px) {
    header {
        padding: 20px;
        grid-template-columns: 1fr;
        text-align: center;
        gap: 20px;
    }
    nav ul {
        gap: 30px;
        flex-wrap: wrap;
    }
    section {
        padding: 30px 20px;
    }
    .why-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .why-action-col {
        align-items: center;
        text-align: center;
    }
    .btn,
    .cta-btn {
        width: 100%;
        text-align: center;
        box-sizing: border-box;
    }
}/* ==========================================================================
   EDGE-TO-EDGE SOFTWARE CRAWLER
   ========================================================================== */

/* 1. Viewport: Breaks out of the white container to go 100% screen width */
.crawler-viewport {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    overflow: hidden;
    background: #f8fafc; /* Clean subtle background grid strip */
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
    padding: 25px 0;
    margin: 40px 0;
}

/* 2. Linear Moving Track */
.crawler-track {
    display: flex;
    width: max-content;
    animation: infiniteMarquee 15s linear infinite;
}

/* 3. Layout Groups */
.crawler-group {
    display: flex;
    justify-content: space-around;
    align-items: center;
    gap: 60px;
    padding-right: 60px;
}

.crawler-item {
    display: flex;
    align-items: center;
    gap: 12px;
    white-space: nowrap;
}

/* 4. Force Full Color Logos (Bypasses any global gray styling) */
.crawler-item img {
    height: 32px;
    width: auto;
    object-fit: contain;
    filter: grayscale(0%) !important; 
    opacity: 1 !important;
}

.crawler-item span {
    font-size: 1.1rem;
    font-weight: 600;
    color: #475569;
    letter-spacing: 0.5px;
    font-family: "Exo", sans-serif;
}

/* 5. Infinite Loop Animation Keyframe */
@keyframes infiniteMarquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ========================================================================== 
   9. MOBILE ENHANCEMENTS
   Desktop declarations above remain unchanged; these rules apply only to
   tablets and phones.
   ========================================================================== */
@media (max-width: 850px) {
    html,
    body {
        width: 100%;
        overflow-x: hidden;
    }

    header {
        padding: 12px 16px;
        gap: 10px;
    }

    .logo img {
        height: 72px;
        margin: 0 auto;
    }

    nav {
        width: 100%;
    }

    nav ul {
        gap: 8px 18px;
        justify-content: center;
    }

    nav a {
        display: inline-block;
        padding: 7px 0;
        font-size: 0.9rem;
    }

    .slideshow-container {
        height: 300px;
    }

    .service-page-hero {
        min-height: 220px;
        padding: 58px 20px;
    }

    .service-page-hero h1 {
        font-size: clamp(1.8rem, 8vw, 2.25rem);
    }

    section {
        width: calc(100% - 28px);
        margin: 24px auto;
        padding: 30px 20px;
        border-radius: 16px;
    }

    .home-hero-section {
        margin-top: -42px;
    }

    .glass-card {
        width: calc(100% - 28px);
        margin: -32px auto 28px;
        padding: 28px 20px;
    }

    .service-grid,
    .widescreen-services-grid,
    .model-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 20px;
    }

    .industrial-service-card,
    .service-card {
        min-height: 0;
        padding: 30px 22px;
    }

    .model-container {
        height: 300px;
    }

    img,
    video,
    iframe,
    model-viewer {
        max-width: 100%;
    }

    .why-section-outer {
        padding: 52px 0;
        margin-top: 48px;
    }

    .why-statement-badge {
        font-size: 1.8rem;
    }

    .crawler-group {
        gap: 36px;
        padding-right: 36px;
    }

    .crawler-viewport {
        padding: 18px 0;
    }
}

@media (max-width: 480px) {
    nav ul {
        gap: 4px 14px;
    }

    nav a {
        font-size: 0.82rem;
    }

    .slideshow-container {
        height: 240px;
    }

    section {
        width: calc(100% - 20px);
        padding: 24px 16px;
    }

    .glass-card {
        width: calc(100% - 20px);
        padding: 24px 16px;
    }

    .btn,
    .cta-btn {
        padding: 14px 18px;
    }

    footer {
        padding: 20px 14px;
        font-size: 0.9rem;
    }
}
