/* =========================================
   NEW LANDING PAGE STYLES (Apple-Clean)
   ========================================= */

.xivotec-landing-container {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    background-color: var(--xivotec-primary);
    color: #fff;
    overflow-x: hidden;
}

/* --- Hero Section --- */
.xivotec-hero-clean {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0; /* REMOVED PADDING to allow full edge-to-edge hover detection */
    /* Dark Blue Background with subtle accent diagonal lines */
    background-color: var(--xivotec-primary);
    background-image: 
        radial-gradient(circle at 80% 20%, rgba(12, 188, 219, 0.15) 0%, transparent 50%),
        repeating-linear-gradient(
            135deg,
            transparent,
            transparent 10px,
            rgba(12, 188, 219, 0.05) 10px,
            rgba(12, 188, 219, 0.05) 11px
        );
    overflow: hidden; /* Ensure content doesn't spill if padding removed */
}

.xivotec-container {
    max-width: 100%; /* FULL WIDTH for hit areas */
    margin: 0;
    width: 100%;
    height: 100%; /* Pass height down */
    position: relative;
    z-index: 2;
    display: flex; /* Allow children to stretch */
    flex-direction: column;
    justify-content: center;
}

/* --- Hero Split Layout --- */
.hero-split-layout {
    display: grid;
    grid-template-columns: 1fr auto 1fr; /* Left, Separator, Right */
    gap: 0; /* REMOVED GAP to eliminate dead zones between columns */
    align-items: stretch; /* Stretch children to full height of container */
    width: 100%;
    height: 100%; /* Occupy full container height */
    opacity: 0; /* Init hidden for animation */
    animation: heroFadeIn 1s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
    animation-delay: 0.2s;
}

@keyframes heroFadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Left Side: Logo & Slogan */
.hero-left {
    display: flex;
    flex-direction: column;
    align-items: center; /* Center children relative to each other */
    justify-content: center;
    text-align: center;
    justify-self: stretch; /* Fill available width */
    height: 100%; /* Fill available vertical space */
    padding: 100px 40px 100px 40px; /* Restore Visual Spacing via Padding */
    transition: all 1.2s cubic-bezier(0.22, 1, 0.36, 1); /* Slower, smoother (ease-out-quint approx) */
}

.hero-logo-svg {
    max-width: 350px; /* Increased size */
    height: auto;
    margin-bottom: 0px;
    filter: drop-shadow(0 0 20px rgba(12, 188, 219, 0.2));
}

.hero-slogan {
    font-size: 2.25rem; /* Increased size */
    font-weight: 450;
    color: var(--xivotec-accent);
    text-transform: uppercase;
    letter-spacing: 1px; /* Increased spacing */
    line-height: 1.2;
    max-width: 500px; /* Increased width constraint */
    margin-bottom: 32px; /* Space for the new tagline below */
}

.hero-slogan-info {
    text-align: left; /* Text inside needs to be readable */
    border-left: 3px solid var(--xivotec-accent); /* The accent bar */
    padding-left: 16px;
    margin-top: 10px;
    max-width: 400px;
    font-size: 1.1rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 300;
}

.hero-robot-gif {
    margin-bottom: 30px; /* Space below gif */
    max-width: 100%; /* Full width of the column */
    width: 600px; /* Constrain max width but allow it to be big */
    height: auto;
    border-radius: 0; /* Straight edges */
    opacity: 1; /* Full opacity */
    mix-blend-mode: screen; /* Keep blend mode for black background integration */
    display: block;
}
/* Vertical Separator */
.hero-separator {
    width: 2px;
    height: 500px; /* Specific height for the line */
    background: linear-gradient(
        to bottom,
        rgba(12, 188, 219, 0) 0%,
        rgba(12, 188, 219, 0.4) 20%,
        rgba(12, 188, 219, 0.8) 50%,
        rgba(12, 188, 219, 0.4) 80%,
        rgba(12, 188, 219, 0) 100%
    );
    border-radius: 2px;
    opacity: 0.8;
    align-self: center; /* Vertically center the separator */
}

/* Right Side: CTA Content */
.hero-right {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center; /* Center content horizontally in the right pane */
    height: 100%; /* Fill available vertical space */
    padding: 100px 40px 100px 40px; /* Restore Visual Spacing via Padding */
    transition: all 1.2s cubic-bezier(0.22, 1, 0.36, 1); /* Slower, smoother */
}

/* --- Focus Interaction (Desktop) --- */
@media (min-width: 981px) {
    /* Default Setup: Left Focused, Right Dimmed */
    /* Add transition delay for "snapping" prevention - layout keeps state for a moment */
    .hero-right, .hero-left {
        transition-delay: 0.1s;
    }

    .hero-right {
        opacity: 0.4;
        filter: blur(5px) grayscale(80%);
        transform: scale(0.98);
    }
    
    /* Hover Right: Right Focuses */
    /* Use :hover on the GRID CELL/Container logic if possible, but hero-right is the cell content */
    /* We expanded hero-right to height:100% so it covers more area */
    .hero-right:hover {
        opacity: 1;
        filter: blur(0) grayscale(0);
        transform: scale(1);
        transition-delay: 0s; /* Instant focus entry, delayed exit */
    }

    /* Hover Right: Left Dims (using :has selector) */
    .hero-split-layout:has(.hero-right:hover) .hero-left {
        opacity: 0.4;
        filter: blur(5px) grayscale(80%);
        transform: scale(0.98);
        transition-delay: 0s;
    }
}


.hero-content-wrapper {
    text-align: left;
    width: 600px; /* Match GIF width */
    max-width: 100%;
}

/* New clean text style */
.hero-text-large {
    font-size: 1.25rem; /* Larger than body text */
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    margin-bottom: 32px;
    font-weight: 400;
}

.hero-actions {
    display: flex;
    gap: 20px;
    justify-content: flex-start; 
}

/* Mobile Responsive */
@media (max-width: 980px) {
    .xivotec-hero-clean {
        min-height: auto; /* Allow content to dictate height on mobile */
        padding-top: 60px; /* Space for navbar */
        padding-bottom: 60px;
        align-items: flex-start; /* Start from top */
    }

    .hero-split-layout {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto; /* Explicit rows */
        gap: 0; /* Control spacing via padding */
        text-align: center;
        display: flex;
        flex-direction: column;
    }

    .hero-separator {
        width: 80%; /* Horizontal line on mobile */
        height: 1px;
        max-width: 200px;
        margin: 20px auto; /* Add vertical spacing around separator */
        background: linear-gradient(
            to right,
            rgba(12, 188, 219, 0) 0%,
            rgba(12, 188, 219, 0.8) 50%,
            rgba(12, 188, 219, 0) 100%
        );
        flex-grow: 0; /* Do not stretch */
    }

    .hero-left {
        align-items: center;
        text-align: center;
        order: 1;
        padding: 40px 20px 20px 20px !important; /* Reduce padding significantly */
        height: auto;
    }

    .hero-right {
        order: 3; /* After separator */
        align-items: center;
        padding: 20px 20px 60px 20px !important; /* Reduce padding significantly */
        height: auto;
        opacity: 1; /* Reset opacity logic for mobile */
        filter: none;
        transform: none;
    }

    /* Reset Interaction logic for mobile */
    .hero-right:hover, 
    .hero-split-layout:has(.hero-right:hover) .hero-left {
        opacity: 1;
        filter: none;
        transform: none;
    }

    .hero-content-wrapper {
        text-align: center;
        max-width: 100%;
        width: 100%;
    }
    
    .hero-actions {
        justify-content: center;
        flex-wrap: wrap; /* Allow buttons to stack on very small screens */
    }
    
    .hero-logo-svg {
        max-width: 200px;
        margin-bottom: 20px;
    }

    .hero-slogan {
        font-size: 1.5rem; /* Smaller font */
        margin-bottom: 20px;
    }

    .hero-slogan-info {
        border-left: none;
        border-top: 2px solid var(--xivotec-accent);
        padding-left: 0;
        padding-top: 10px;
        text-align: center;
        margin: 0 auto;
    }

    .hero-robot-gif {
        width: 100%;
        max-width: 300px; /* Limit size on mobile */
        margin-bottom: 20px;
    }
}

/* --- Methodology / Pair Programming Section --- */
.xivotec-methodology {
    padding: 120px 0;
    display: flex;
    align-items: center;
    background-color: var(--xivotec-primary);
    color: #fff;
    position: relative;
    overflow: hidden;
}

/* Subtle radial accent glow in background */
.methodology-bg-accent {
    position: absolute;
    top: -30%;
    right: -10%;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(12, 188, 219, 0.12) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

/* Re-add Common Section Header for Tech Stack */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 3rem;
    color: var(--xivotec-primary);
    margin-bottom: 16px;
}

.section-header p {
    font-size: 1.25rem;
    color: rgba(0, 35, 64, 0.7);
}

/* Container */
.xivotec-methodology .xivotec-container {
    padding: 0 5vw;
    position: relative;
    z-index: 1;
}

.methodology-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 100px;
}

/* Badge */
.methodology-badge {
    display: inline-block;
    background: rgba(12, 188, 219, 0.12);
    color: var(--xivotec-accent);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 24px;
}

/* Text Side (Left) */
.methodology-text {
    max-width: 600px;
}

.methodology-text h2 {
    font-size: 3.2rem;
    font-weight: 700;
    margin-bottom: 28px;
    color: #fff;
    line-height: 1.1;
    letter-spacing: -0.03em;
}

.methodology-desc {
    font-size: 1.15rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.75);
    font-weight: 400;
}

.methodology-desc p {
    margin-bottom: 1.25rem;
}

/* Image Side (Right) */
.methodology-image {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow:
        0 30px 60px -15px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.06);
    line-height: 0;
}

/* Accent border top */
.methodology-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--xivotec-accent), rgba(12, 188, 219, 0.3));
    z-index: 2;
}

.methodology-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
}


/* Separator */
.methodology-separator {
    width: 60px;
    height: 4px;
    background: var(--xivotec-accent);
    margin-bottom: 32px;
    border-radius: 2px;
}

/* Responsive */
@media (max-width: 1024px) {
    .xivotec-methodology {
        padding: 80px 0;
    }

    .methodology-split {
        grid-template-columns: 1fr;
        gap: 50px;
        text-align: center;
    }

    .methodology-text {
        margin: 0 auto;
    }

    .methodology-text h2 {
        font-size: 2.5rem;
    }

    .methodology-separator {
        margin-left: auto;
        margin-right: auto;
    }

    .methodology-bg-accent {
        width: 400px;
        height: 400px;
        top: -20%;
        right: -20%;
    }
}



/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-actions {
        flex-direction: column;
    }
    .btn {
        width: 100%;
        text-align: center;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .section-header p {
        font-size: 1rem;
    }

    .section-header {
        margin-bottom: 40px;
    }

    .xivotec-methodology {
        padding: 60px 0;
    }

    .methodology-text h2 {
        font-size: 2rem;
    }

    .methodology-desc {
        font-size: 1.1rem;
    }

    .xivotec-business-areas {
        padding: 60px 16px;
    }

    .biz-header h2 {
        font-size: 1.8rem;
    }

    .xivotec-location .xivotec-container {
        padding: 0 16px;
    }

    .loc-header h2 {
        font-size: 2rem;
    }

    .loc-sub {
        font-size: 1.1rem;
    }

    .xivotec-testimonials {
        padding: 60px 16px;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .testimonial-card {
        padding: 24px;
        word-break: break-word;
        overflow-wrap: break-word;
    }

    .testi-text {
        font-size: 1rem;
    }

    .testi-author span {
        font-size: 0.8rem;
        word-break: break-word;
    }

    .career-cta-overlay {
        padding: 60px 16px;
    }
}

@media (max-width: 480px) {
    .section-header h2 {
        font-size: 1.6rem;
    }

    .biz-header h2 {
        font-size: 1.5rem;
    }

    .loc-header h2 {
        font-size: 1.6rem;
    }

    .career-cta-content h2 {
        font-size: 1.6rem;
    }

    .kf-number {
        font-size: 2rem;
    }

    .xivotec-testimonials {
        padding: 48px 12px;
    }

    .testimonial-card {
        padding: 20px 16px;
    }

    .quote-symbol {
        font-size: 2.5rem;
        margin-bottom: 12px;
    }

    .testi-text {
        font-size: 0.95rem;
        margin-bottom: 20px;
    }

    .testi-author span {
        font-size: 0.75rem;
    }
}
/* --- Tech Stack Section --- */
.xivotec-tech-stack {
    background: #f9f9f9;
    padding: 80px 20px;
}

@media (max-width: 768px) {
    .xivotec-tech-stack {
        padding: 48px 16px;
    }
}

/* =========================================
   New Business Sections (Services, Domain, Products)
   ========================================= */

.xivotec-business-areas {
    padding: 100px 20px;
    background: #fdfdfd; /* Light background for high contrast with cards */
    position: relative;
    z-index: 10;
}

/* Header */
.biz-header {
    text-align: center;
    margin-bottom: 64px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.biz-header h2 {
    font-size: 2.5rem;
    color: var(--xivotec-primary);
    font-weight: 700;
    margin-bottom: 16px;
    position: relative;
    display: inline-block;
}

/* Add an underline accent to the main headline */
.biz-header h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--xivotec-primary);
    margin: 8px auto 0;
    border-radius: 2px;
}

.biz-header p {
    font-size: 1.15rem;
    color: #555;
    line-height: 1.6;
}

/* --- New 3 Column Horizontal Layout (Cards) --- */
/* MOVED TO GLOBAL.CSS */

/* Inner List for Product Tiles (Nested) */
.biz-products-inner-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-top: 0;
    width: 100%;
}

/* Product Tile - Card-style, logo centered & prominent */
.product-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: #fff;
    border: 1px solid rgba(0, 35, 64, 0.1);
    border-radius: 14px;
    padding: 24px 16px 20px;
    text-decoration: none;
    color: var(--xivotec-primary);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    box-shadow: 0 2px 8px rgba(0, 35, 64, 0.04);
}

.product-tile:hover {
    border-color: var(--xivotec-primary);
    box-shadow: 0 8px 24px rgba(0, 35, 64, 0.1);
    transform: translateY(-3px);
}

/* Title */
.product-tile-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--xivotec-primary);
    margin: 0 0 10px 0;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

/* Description */
.product-tile-desc {
    font-size: 0.82rem;
    color: #666;
    line-height: 1.45;
    margin: 0 0 12px 0;
    font-weight: 400;
    flex: 1;
}

/* Arrow indicator */
.product-tile-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(0, 35, 64, 0.05);
    color: var(--xivotec-primary);
    transition: all 0.25s ease;
    margin-top: auto;
}

.product-tile:hover .product-tile-arrow {
    background: var(--xivotec-primary);
    color: #fff;
}

/* Responsive: stack tiles on very narrow cards */
@media (max-width: 480px) {
    .biz-products-inner-list {
        grid-template-columns: 1fr;
    }
}

/* Responsive */
@media (max-width: 1024px) {
    .biz-3-col-layout {
        grid-template-columns: repeat(2, 1fr); /* 2 columns on tablet */
    }
    /* Provide a layout rule if needed for 3rd col */
}

@media (max-width: 768px) {
    .biz-3-col-layout {
        grid-template-columns: 1fr; /* Stack vertically on mobile */
        gap: 30px;
    }
    .hero-actions {
        flex-direction: column;
    }
    .btn {
        width: 100%;
        text-align: center;
    }
}

/* =========================================
   NEW: Partner / Reference Bar (Marquee)
   ========================================= */
.xivotec-partners-marquee {
    background: #ffffff; 
    border-top: 1px solid rgba(0,0,0,0.05); 
    padding: 30px 0; 
    overflow: hidden; 
    width: 100%;
    position: relative;
    z-index: 5; 
    display: block; 
}

.marquee-wrapper {
    width: 100%;
    overflow: hidden;
    position: relative;
    /* Fade effect on edges to look Apple-like */

}

.marquee-track {
    display: flex;
    gap: 80px; 
    width: max-content;
    animation: scroll 60s linear infinite; 
    will-change: transform;
}

/* Pause on hover to allow clicking */
.marquee-track:hover {
    animation-play-state: paused;
    filter:none;
}

.partner-item {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    height: 50px; /* Optimal height */
    width: auto;
    filter: none; /* Make logos b&w initially for clean look */
    opacity: 0.8; /* Good visibility */
    transition: all 0.3s ease;
}

.partner-item a {
    display: block;
    height: 100%;
    display: flex;
    align-items: center;
}

.partner-item:hover {
    filter: none; /* Color on hover */
    opacity: 1;
    transform: scale(1.05);
    cursor: pointer;
     -webkit-mask-image: none;
    mask-image: none;
}

.partner-item img {
    height: 100%; /* Fill the constrained height */
    width: auto;
    object-fit: contain;
    max-width: 180px; 
    display: block;
}
.biz-top-logo {
    height: 100px;
    width: auto;
    object-fit: contain;
}
@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        /* We merged the list 4 times in PHP. Moving by -25% shifts exactly one full set */
        transform: translateX(-25%);
    }
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .marquee-track {
        gap: 40px;
        animation-duration: 40s; 
    }
    .partner-item {
        height: 30px; 
    }
}

/* =========================================
   VARIANT Styles
   ========================================= */

/* --- ACTIVE VARIANT: Variant 3 (Dark Mode) --- */

.xivotec-partners-marquee.variant-dark {
    background-color: var(--xivotec-primary) !important;
    color: #fff;
    border-top: none; /* Seamless look */
}

.xivotec-partners-marquee.variant-dark .partner-item {
    filter: none !important; /* Remove grayscale */
    opacity: 0.8 !important;   /* Slightly dimmed */
}

/* Invert filter: Makes dark logos white. */
.xivotec-partners-marquee.variant-dark .partner-item img {
    /* IMPROVED: Better handling for logos with backgrounds */
    filter: grayscale(100%) invert(1) contrast(200%) !important;
    mix-blend-mode: screen; 
}

.xivotec-partners-marquee.variant-dark .partner-item:hover {
    opacity: 1 !important;
}

.xivotec-partners-marquee.variant-dark .partner-item:hover img {
    filter: none !important; /* Full color on hover */
    mix-blend-mode: normal !important;
}

/* =========================================
   Fullscreen Hero Section
   ========================================= */
.xivotec-hero-fullscreen {
    position: relative;
    width: 100%;
    height: 75vh; /* Shorter vertical profile as requested */
    min-height: 500px;
    display: flex;
    align-items: center; /* Vertically center the content block */
    justify-content: flex-start; /* Left align */
    overflow: hidden;
    margin-bottom: 0;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
}

.hero-fs-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover; 
    background-position: center 30%;
    z-index: 1;
}

/* The Professional Gradient "Mask" */
.hero-fs-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    /* 
       Left: Solid Dark Blue for text readability.
       Right: Fades to transparent to show the image.
    */
    background: linear-gradient(
        90deg, 
        rgba(0, 35, 64, 1) 0%, 
        rgba(0, 35, 64, 0.95) 40%, 
        rgba(0, 35, 64, 0.2) 100%
    );
    display: flex;
    align-items: center;
    padding-left: 10%; /* The "Safe Zone" for text */
}

.hero-fs-content-left {
    position: relative;
    z-index: 3;
    max-width: 600px; /* Constrained width for readability */
    opacity: 0;
    transform: translateY(30px);
    animation: heroContentSlideIn 1s cubic-bezier(0.2, 1, 0.3, 1) forwards;
    animation-delay: 0.2s;
}

@keyframes heroContentSlideIn {
    to { opacity: 1; transform: translateY(0); }
}

/* 1. Logo */
.hero-fs-logo-left {
    display: block;
    max-width: 350px; /* Increased from 160px to be dominant */
    height: auto;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1); /* Subtle divider */
}

/* 2. Slogan (Accent Color) */
.hero-fs-slogan-left {
    font-size: 2.25rem; /* Exact match to original hero */
    line-height: 1.2;
    font-weight: 450; /* Exact match to original hero */
    text-transform: uppercase;
    color: var(--xivotec-accent); 
    margin: 0 0 2rem 0;
    letter-spacing: 1px;
    text-shadow: none; /* Removed shadow to match original style exactly */
}


/* 3. Visual Separator */
.hero-fs-separator {
    width: 80px;
    height: 4px;
    background-color: #fff;
    margin-bottom: 2rem;
    border-radius: 2px;
}

/* 4. Subtitle */
.hero-fs-subtitle-left {
    font-size: 1.25rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 300;
    margin-bottom: 2.5rem;
}

/* 5. Buttons */
.hero-fs-actions-left {
    display: flex;
    gap: 20px;
    align-items: center;
}

.hero-fs-actions-left .btn {
    padding: 14px 32px;
    font-size: 1rem;
    border-radius: 4px; /* Crisp professional edges */
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.btn-arrow::after {
    content: " \2192"; /* Right arrow */
    opacity: 0;
    margin-left: -5px;
    transition: all 0.3s ease;
}

.btn-arrow:hover::after {
    opacity: 1;
    margin-left: 8px;
}

.btn-outline-light {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
}

.btn-outline-light:hover {
    background: #fff;
    color: var(--xivotec-primary);
    border-color: #fff;
}

/* Mobile Responsiveness */
@media (max-width: 900px) {
    .xivotec-hero-fullscreen {
        height: auto;
        min-height: 100vh; /* Full height on mobile */
        align-items: flex-start;
        padding-top: 80px;
    }

    .hero-fs-overlay {
        background: linear-gradient(
            180deg,
            rgba(0, 35, 64, 0.8) 0%,
            rgba(0, 35, 64, 1) 50%
        ); /* Top-down gradient on mobile */
        padding-left: 0;
        justify-content: center;
        align-items: flex-start;
    }

    .hero-fs-content-left {
        padding: 100px 20px;
        text-align: left;
        max-width: 100%;
    }

    .hero-fs-logo-left {
        max-width: 200px;
    }

    .hero-fs-slogan-left {
        font-size: 1.8rem;
    }

    .hero-fs-subtitle-left {
        font-size: 1.05rem;
    }

    .hero-fs-actions-left {
        flex-direction: column;
        align-items: flex-start;
    }

    .hero-fs-actions-left .btn {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-fs-logo-left {
        max-width: 160px;
    }

    .hero-fs-slogan-left {
        font-size: 1.5rem;
    }
}

/* =========================================
   Key Facts Section
   ========================================= */
.xivotec-key-facts {
    background-color: #ffffff;
    border-bottom: 1px solid #eaeaea;
    padding: 24px 0; /* Increased padding for professional whitespace */
    color: var(--xivotec-primary);
    position: relative;
    z-index: 20; 
    box-shadow: 0 4px 20px rgba(0,0,0,0.03); /* Subtle lift */
}

.key-facts-content {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0; /* Remove gap, control spacing via divider margins */
    flex-wrap: wrap; 
}

.kf-item {
    display: flex;
    align-items: center; 
    gap: 8px; /* Tighter interaction between number and label */
}

.kf-number {
    font-size: 2.2rem; /* Larger, bolder */
    font-weight: 700;
    color: var(--xivotec-primary); /* Dark Blue */
    line-height: 1;
    letter-spacing: -1px; /* Tighten standard tracking for numbers */
}

.kf-label {
    font-size: 1rem;
    color: #666; /* Softer dark grey */
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.kf-divider {
    width: 1px; /* Thin vertical line */
    height: 30px; /* Height of the separator */
    background-color: #e0e0e0;
    border-radius: 0;
    margin: 0 50px; /* Generous spacing around separator */
}

/* Mobile Responsiveness for Key Facts */
@media (max-width: 900px) {
    .xivotec-key-facts {
        padding: 40px 20px;
    }

    .key-facts-content {
        flex-direction: column; 
        gap: 30px; /* Spacing for stack */
        align-items: center; 
    }

    .kf-item {
        width: 100%;
        justify-content: center;
        flex-direction: column; /* Stack number and label on mobile for impact */
        align-items: center;
        gap: 5px;
    }

    .kf-number {
        font-size: 2.5rem;
    }

    .kf-label {
        font-size: 0.9rem;
        opacity: 0.8;
    }

    .kf-divider {
        display: none; 
    }
}


/* --- Location / Stellwerk Section --- */
.xivotec-location {
    padding: 100px 0;
    background-color: #fff;
    color: var(--xivotec-primary);
}

.xivotec-location .xivotec-container {
    padding: 0 8vw; /* Increased side padding for better framing without constraining width */
    max-width: 100%; /* Allow full width flow */
    margin: 0;
}

.location-layout {
    display: grid;
    grid-template-columns: 1fr 0.9fr; /* Text side slightly wider than image side */
    gap: 100px; /* Spacious gap to prevent "squeezed" look */
    align-items: center;
}

.loc-badge {
    display: inline-block;
    background: rgba(12, 188, 219, 0.1);
    color: var(--xivotec-accent);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 24px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.loc-header h2 {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 12px;
    color: var(--xivotec-primary);
}

.loc-sub {
    font-size: 1.5rem;
    color: #667;
    margin-bottom: 32px;
    font-weight: 400;
}

.loc-body {
    font-size: 1.15rem;
    line-height: 1.6;
    color: #445;
    margin-bottom: 40px;
}

.loc-body p {
    margin-bottom: 1.5rem;
}

.loc-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid rgba(0,0,0,0.08);
    padding-top: 24px;
}

.loc-address {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.loc-icon {
    color: var(--xivotec-accent);
}

.loc-details span {
    display: block;
    font-weight: 500;
    color: var(--xivotec-primary);
}

.loc-logo-wrapper img {
    height: 50px;
    width: auto;
    opacity: 0.9;
}

/* Visual Side */
.location-visual {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.15); /* Softer shadow */
    /* Removed min-height and absolute positioning to allow natural image size */
}

.location-visual img {
    width: 100%;
    height: auto; /* Natural aspect ratio */
    display: block; /* Remove inline gap */
    object-fit: contain; /* Ensure everything is visible */
    /* Removed transition and hover transform */
}

@media (max-width: 1024px) {
    .location-layout {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    /* Visual adjustment for mobile not needed as natural height works */
    .loc-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
}


/* --- Testimonials Section --- */
.xivotec-testimonials {
    padding: 100px 20px;
    background-color: var(--xivotec-primary); /* Dark Blue */
    color: #fff;
    text-align: center;
    box-sizing: border-box;
}

.xivotec-testimonials .section-header h2 {
    color: #fff; /* Override section header for dark bg */
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
    gap: 40px;
    max-width: 900px;
    margin: 0 auto 60px auto;
}

.testimonial-card {
    background: rgba(255, 255, 255, 0.05); /* Subtle glass effect */
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 40px;
    text-align: left; /* Text left aligned for readability */
    position: relative;
    transition: transform 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.08);
}

.quote-symbol {
    font-size: 4rem;
    line-height: 1;
    color: var(--xivotec-accent);
    font-family: Georgia, serif;
    opacity: 0.5;
    margin-bottom: 20px;
}

.testi-text {
    font-size: 1.15rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 30px;
    font-style: italic;
}

.testi-author {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
}

.testi-author strong {
    display: block;
    font-size: 1.1rem;
    color: #fff;
    margin-bottom: 4px;
}

.testi-author span {
    font-size: 0.9rem;
    color: var(--xivotec-accent);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.testimonials-actions {
    margin-top: 20px;
}


/* =========================================
   Career & Team CTA Section
   ========================================= */
.xivotec-career-cta {
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    /* Remove padding from parent, move to overlay to ensure full coverage */
    padding: 0; 
    color: #fff;
    text-align: center;
}

.career-cta-overlay {
    background: rgba(0, 35, 64, 0.85); /* Strong Dark Blue Overlay */
    /* Fix: Use relative positioning so content dictates height */
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 20px; /* Vertical spacing moved here */
}

/* Ensure content sits on top of overlay */
.xivotec-career-cta .xivotec-container {
    position: relative;
    z-index: 2;
    padding: 0;
    margin: 0 auto;
    width: 100%;
}

.career-cta-content {
    max-width: 700px;
    margin: 0 auto;
}

.career-cta-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: #fff;
}

.career-cta-content p {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
    line-height: 1.5;
}

.career-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Responsive Tweaks */
@media (max-width: 768px) {
    .career-cta-content h2 {
        font-size: 2rem;
    }
    .career-actions {
        flex-direction: column;
        align-items: center;
    }
    .career-actions .btn {
        width: 100%;
        max-width: 300px;
    }
}
