/* =====================================================
   DRO-SYSTEMS.CSS — Wonder Digimech
   Matches index page alternating dark/light themes
   ===================================================== */

/* ---- COMMON SECTION STYLES ---- */
.why-us, .process {
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

/* Subtitle Pill */
.section-subtitle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: rgba(13, 148, 136, 0.05);
    border: 1px solid rgba(13, 148, 136, 0.15);
    border-radius: var(--radius-full);
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--primary-color);
    margin-bottom: 16px;
}

.pulse-dot {
    width: 6px;
    height: 6px;
    background-color: var(--primary-color);
    border-radius: 50%;
    position: relative;
}

.pulse-dot::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px solid rgba(13, 148, 136, 0.4);
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.9); opacity: 1; }
    100% { transform: scale(1.6); opacity: 0; }
}

/* Section Titles */
.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 2.6rem);
    font-weight: 800;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
}

.section-title span {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}


/* =====================================================
   SECTION 1: HERO (Dark Theme)
   ===================================================== */
.hero-slider {
    position: relative;
    width: 100%;
    min-height: 600px;
    padding-top: 140px;
    padding-bottom: 90px;
    overflow: hidden;
    background: radial-gradient(circle at 18% 18%, rgba(34, 211, 238, 0.12), transparent 25%),
                radial-gradient(circle at 88% 12%, rgba(139, 92, 246, 0.1), transparent 20%),
                linear-gradient(180deg, #020617 0%, #0b1528 50%, #020617 100%);
    display: flex;
    align-items: center;
}

.hero-slider > div:nth-child(1) {
    position: absolute;
    top: 15%;
    left: -50px;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(13, 148, 136, 0.2), transparent 70%);
    filter: blur(40px);
    pointer-events: none;
}

.hero-slider > div:nth-child(2) {
    position: absolute;
    bottom: 10%;
    right: -50px;
    width: 350px;
    height: 350px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.15), transparent 70%);
    filter: blur(50px);
    pointer-events: none;
}

.hero-caption {
    max-width: 850px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 2;
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 30px;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: #38bdf8;
    margin-bottom: 25px;
}

.hero-caption h1 {
    font-family: var(--font-display);
    font-size: clamp(2.4rem, 5vw, 3.8rem);
    line-height: 1.25;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 20px;
    letter-spacing: -0.01em;
}

.hero-caption h1 span {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-caption p {
    font-size: clamp(1rem, 1.2vw, 1.15rem);
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 35px;
}

.hero-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
}


/* =====================================================
   SECTION 2: ABOUT DRO (Light Theme)
   ===================================================== */
#about.why-us {
    background: #ffffff;
    color: #334155;
}

#about .section-title {
    color: #0f172a;
}

#about .about-text {
    color: #475569;
}

#about .image-card {
    background: linear-gradient(145deg, #f0fdfa 0%, #d1f5f0 100%);
    border: 1px solid rgba(13, 148, 136, 0.2);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(13, 148, 136, 0.07);
    padding: 14px;
    transition: all 0.45s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
}

#about .image-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 24px;
    border: 2px solid transparent;
    background: linear-gradient(145deg, rgba(13,148,136,0.15), rgba(34,211,238,0.08)) border-box;
    -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: destination-out;
    mask-composite: exclude;
    pointer-events: none;
    transition: opacity 0.4s ease;
    opacity: 0;
}

#about .image-card:hover::before {
    opacity: 1;
}

#about .image-card:hover {
    transform: translateY(-6px);
    border-color: rgba(13, 148, 136, 0.4);
    box-shadow: 0 25px 50px -10px rgba(13, 148, 136, 0.15);
}

#about .image-card img {
    border-radius: 14px;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

#about .image-card:hover img {
    transform: scale(1.03);
}

#about .intro-lead-card {
    background: linear-gradient(145deg, #f0fdfa 0%, #d1f5f0 100%) !important;
    border: 1px solid rgba(13, 148, 136, 0.25) !important;
    border-radius: 24px !important;
    padding: 40px !important;
    box-shadow: 0 15px 35px -5px rgba(13, 148, 136, 0.08) !important;
    color: #334155 !important;
    font-size: 1.05rem;
    line-height: 1.75;
    transition: all 0.45s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

#about .intro-lead-card:hover {
    transform: translateY(-6px) !important;
    border-color: rgba(13, 148, 136, 0.45) !important;
    box-shadow: 0 25px 45px -8px rgba(13, 148, 136, 0.15) !important;
}

#about .intro-lead-card p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #334155;
    margin: 0;
    position: relative;
    z-index: 2;
}

/* Decorative large quote mark behind text */
#about .intro-lead-card::before {
    content: '\201C';
    position: absolute;
    top: -10px;
    left: 20px;
    font-size: 6rem;
    font-family: Georgia, serif;
    color: rgba(13, 148, 136, 0.1);
    line-height: 1;
    pointer-events: none;
    z-index: 1;
    font-weight: 900;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-top: 50px;
}

.gradient-text-cyan {
    background: linear-gradient(135deg, #0d9488 0%, #38bdf8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

.gradient-text-orange {
    background: linear-gradient(135deg, #f97316 0%, #f59e0b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}


/* =====================================================
   SECTION 3: COMPONENTS (Dark Theme)
   ===================================================== */
#components.why-us {
    background: #020617;
    color: var(--text-secondary);
}

#components .section-title {
    color: #ffffff;
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 36px;
    margin-top: 50px;
}

.dro-component-card {
    background: linear-gradient(145deg, rgba(15, 23, 42, 0.4) 0%, rgba(2, 6, 23, 0.7) 100%);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    padding: 32px 24px;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.dro-component-card:hover {
    transform: translateY(-8px);
    border-color: rgba(13, 148, 136, 0.25);
    background: rgba(15, 23, 42, 0.75);
    box-shadow: var(--shadow-lg);
}

.dro-component-card .product-image {
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: 24px;
    background: #020617;
    border: 1px solid rgba(255, 255, 255, 0.05);
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dro-component-card .product-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.dro-component-card:hover .product-image img {
    transform: scale(1.08);
}

.dro-component-card h3 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 12px;
}

.dro-component-card p {
    font-size: 0.92rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin: 0;
}


/* =====================================================
   SECTION 4: HOW IT WORKS (Light Theme)
   ===================================================== */
#how-it-works.process {
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    color: #334155;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
}

#how-it-works .section-title {
    color: #0f172a;
}

#how-it-works .process-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 22px;
    padding: 36px 24px;
    box-shadow: 0 8px 20px -8px rgba(15, 23, 42, 0.06);
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
    overflow: hidden;
}

#how-it-works .process-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--primary-gradient);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

#how-it-works .process-card:hover::after {
    transform: scaleX(1);
}

#how-it-works .process-card:hover {
    transform: translateY(-10px);
    border-color: rgba(13, 148, 136, 0.25);
    box-shadow: 0 25px 40px -10px rgba(13, 148, 136, 0.12);
}

/* Large ghosted step number */
#how-it-works .process-card-number {
    position: absolute;
    bottom: 12px;
    right: 18px;
    font-size: 4rem;
    font-weight: 800;
    font-family: var(--font-display);
    color: rgba(13, 148, 136, 0.05);
    pointer-events: none;
    line-height: 1;
    transition: color 0.4s ease;
}
#how-it-works .process-card:hover .process-card-number {
    color: rgba(13, 148, 136, 0.12);
}

#how-it-works .process-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

#how-it-works .process-block {
    position: relative;
    width: 48px;
    height: 48px;
}

#how-it-works .process-cube {
    width: 100%;
    height: 100%;
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.15rem;
    color: var(--primary-color);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

#how-it-works .process-card:hover .process-cube {
    background: var(--primary-gradient);
    color: #ffffff;
    border-color: transparent;
    transform: scale(1.08) rotate(360deg);
    box-shadow: 0 8px 20px rgba(13, 148, 136, 0.3);
}

#how-it-works .process-step-pill {
    padding: 4px 12px;
    background: rgba(13, 148, 136, 0.06);
    border: 1px solid rgba(13, 148, 136, 0.15);
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: 0.8px;
    text-transform: uppercase;
    font-family: var(--font-display);
}

#how-it-works .process-card h3 {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 10px;
    line-height: 1.4;
}

#how-it-works .process-card p {
    font-size: 0.88rem;
    line-height: 1.6;
    color: #64748b;
    margin: 0;
}

/* Icon color per step in light theme */
#how-it-works .process-cube i {
    font-size: 1.15rem;
    color: var(--primary-color);
    transition: all 0.4s ease;
}

#how-it-works .process-card:hover .process-cube i {
    color: #ffffff;
}

/* =====================================================
   SECTION 5.5: HOW IT CONNECTS — COMPONENT FLOW (Light Theme)
   ===================================================== */

/* Utility spacing helpers */
.mt-16 { margin-top: 5rem; }
.mb-4  { margin-bottom: 2rem; }
.mt-8  { margin-top: 2.5rem; }
.mt-12 { margin-top: 4.5rem; }

#how-it-connects.process {
    background: linear-gradient(160deg, #f0f9ff 0%, #f1f5f9 60%, #e8f4f8 100%);
    color: #334155;
    border-top: 1px solid rgba(13,148,136,0.1);
    border-bottom: 1px solid rgba(13,148,136,0.1);
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

/* subtle decorative grid background */
#how-it-connects.process::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(13,148,136,0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(13,148,136,0.035) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
}

#how-it-connects .section-title {
    color: #0f172a;
}

/* ---- Flow Wrapper ---- */
#how-it-connects .component-flow-wrapper {
    max-width: 1140px;
    margin: 48px auto 0;
    padding: 0;
}

#how-it-connects .component-flow-wrapper > div {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    justify-content: center;
    gap: 0;
    width: 100%;
}

/* ---- Individual Flow Step Card ---- */
#how-it-connects .component-flow-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 32px 20px 28px;
    background: #ffffff;
    border: 1px solid rgba(203,213,225,0.8);
    border-radius: 20px;
    font-family: var(--font-display);
    font-size: 0.88rem;
    font-weight: 700;
    color: #1e293b;
    box-shadow:
        0 4px 6px -1px rgba(15, 23, 42, 0.04),
        0 10px 25px -5px rgba(13,148,136,0.06);
    transition: all 0.45s cubic-bezier(0.16, 1, 0.3, 1);
    min-width: 140px;
    flex: 1;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* bottom accent line animation */
#how-it-connects .component-flow-step::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 100%; height: 3px;
    background: var(--primary-gradient);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

#how-it-connects .component-flow-step:hover::after {
    transform: scaleX(1);
}

#how-it-connects .component-flow-step:hover {
    transform: translateY(-8px);
    border-color: rgba(13,148,136,0.35);
    box-shadow:
        0 20px 40px -10px rgba(13,148,136,0.2),
        0 0 0 3px rgba(13,148,136,0.06);
}

/* ---- Icon inside flow step ---- */
#how-it-connects .component-flow-step i {
    font-size: 1.5rem;
    color: #ffffff;
    background: var(--primary-gradient);
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.45s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 6px 16px rgba(13,148,136,0.3);
    flex-shrink: 0;
}

#how-it-connects .component-flow-step:hover i {
    transform: scale(1.12) rotate(-8deg);
    box-shadow: 0 10px 25px rgba(13,148,136,0.45);
}

/* ---- Arrow connector between steps ---- */
#how-it-connects .component-flow-arrow {
    color: #22d3ee;
    font-size: 1.1rem;
    flex-shrink: 0;
    align-self: center;
    margin: 0 6px;
    opacity: 0.7;
    animation: flowPulseHorizontal 1.8s ease-in-out infinite;
    filter: drop-shadow(0 0 4px rgba(34,211,238,0.5));
}

@keyframes flowPulseHorizontal {
    0%, 100% { opacity: 0.5; transform: translateX(0); }
    50%       { opacity: 1;   transform: translateX(6px); }
}

/* ---- Step number badge (step counter) ---- */
#how-it-connects .component-flow-step::before {
    content: attr(data-step);
    position: absolute;
    top: 10px; right: 12px;
    font-size: 1.8rem;
    font-weight: 800;
    font-family: var(--font-display);
    color: rgba(13,148,136,0.06);
    line-height: 1;
    pointer-events: none;
    transition: color 0.4s ease;
}

#how-it-connects .component-flow-step:hover::before {
    color: rgba(13,148,136,0.14);
}

/* ---- Responsive ---- */
@media (max-width: 1100px) {
    #how-it-connects .component-flow-step {
        min-width: 110px;
        padding: 24px 12px;
        font-size: 0.82rem;
    }
    #how-it-connects .component-flow-step i {
        width: 48px; height: 48px;
        font-size: 1.2rem;
    }
}

@media (max-width: 768px) {
    #how-it-connects .component-flow-wrapper > div {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }
    #how-it-connects .component-flow-step {
        flex-direction: row;
        justify-content: flex-start;
        text-align: left;
        padding: 20px 24px;
        gap: 18px;
        border-radius: 16px;
        min-width: unset;
        flex: unset;
    }
    #how-it-connects .component-flow-arrow {
        align-self: center;
        margin: 4px auto;
        transform: rotate(90deg);
        animation: flowPulseVertical 1.8s ease-in-out infinite;
    }
}

@keyframes flowPulseVertical {
    0%, 100% { opacity: 0.5; transform: rotate(90deg) translateY(0); }
    50%       { opacity: 1;   transform: rotate(90deg) translateY(6px); }
}

/* Axis Configuration Grid */
.axis-config-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 40px;
}

#axis-configurations.process {
    background: #020617;
    color: var(--text-secondary);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

#axis-configurations .section-title {
    color: #ffffff;
}

#axis-configurations .axis-config-card {
    background: linear-gradient(145deg, rgba(15, 23, 42, 0.45) 0%, rgba(2, 6, 23, 0.75) 100%);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-xl);
    padding: 30px 24px;
    text-align: center;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    position: relative;
    overflow: hidden;
}

#axis-configurations .axis-config-card::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 100%; height: 3px;
    background: var(--primary-gradient);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

#axis-configurations .axis-config-card:hover::after {
    transform: scaleX(1);
}

#axis-configurations .axis-config-card:hover {
    transform: translateY(-8px);
    border-color: rgba(34, 211, 238, 0.35);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), 0 0 25px rgba(34, 211, 238, 0.15);
}

#axis-configurations .process-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    width: 100%;
}

#axis-configurations .process-block {
    position: relative;
    width: 44px;
    height: 44px;
}

#axis-configurations .axis-config-card h3 {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 8px;
}

#axis-configurations .axis-config-card p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin: 0;
}

#axis-configurations .process-cube {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, #0f172a 0%, #020617 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--primary-color);
    box-shadow: inset 0 2px 4px rgba(255, 255, 255, 0.05);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

#axis-configurations .axis-config-card:hover .process-cube {
    background: var(--primary-gradient);
    color: #ffffff;
    border-color: transparent;
    transform: scale(1.05) rotate(360deg);
    box-shadow: 0 0 15px rgba(13, 148, 136, 0.4);
}

#axis-configurations .process-step-pill {
    padding: 4px 10px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text-secondary);
    letter-spacing: 0.5px;
    font-family: var(--font-display);
}

/* Machines List tag cards */
.mt-8 {
    margin-top: 2.5rem;
}
.mt-12 {
    margin-top: 4.5rem;
}

.machines-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
    margin-top: 35px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

#axis-configurations .machine-tag-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 26px;
    background: rgba(15, 23, 42, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-full);
    color: #e2e8f0;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.95rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

#axis-configurations .machine-tag-card i {
    color: #22d3ee; /* Cyan/Accent color for machines icons in dark mode */
    font-size: 1.1rem;
    transition: all 0.4s ease;
}

#axis-configurations .machine-tag-card:hover {
    background: rgba(13, 148, 136, 0.15);
    border-color: #22d3ee;
    color: #ffffff;
    transform: translateY(-4px) scale(1.06);
    box-shadow: 0 10px 25px rgba(13, 148, 136, 0.25);
}

#axis-configurations .machine-tag-card:hover i {
    color: #ffffff;
    transform: scale(1.2) rotate(15deg);
    filter: drop-shadow(0 0 8px rgba(34, 211, 238, 0.8));
}


/* =====================================================
   SECTION 5: ADVANTAGES (Dark Theme)
   ===================================================== */
#advantages.process {
    background: #020617;
    color: var(--text-secondary);
}

#advantages .section-title {
    color: #ffffff;
}

.process-grid-5 {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    margin-top: 50px;
}

#advantages .process-card {
    background: linear-gradient(145deg, rgba(15, 23, 42, 0.45) 0%, rgba(2, 6, 23, 0.75) 100%);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 20px;
    padding: 35px 20px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
    overflow: hidden;
}

#advantages .process-card::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 100%; height: 3px;
    background: var(--primary-gradient);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

#advantages .process-card:hover::after {
    transform: scaleX(1);
}

#advantages .process-card:hover {
    transform: translateY(-8px);
    border-color: rgba(13, 148, 136, 0.3);
    box-shadow: var(--shadow-lg);
}

#advantages .process-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

#advantages .process-block {
    position: relative;
    width: 44px;
    height: 44px;
}

#advantages .process-cube {
    width: 100%; height: 100%;
    background: linear-gradient(135deg, #0f172a 0%, #020617 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--primary-color);
}

#advantages .process-card:hover .process-cube {
    background: var(--primary-gradient);
    color: #ffffff;
    transform: scale(1.05) rotate(360deg);
    border-color: transparent;
}

#advantages .process-step-pill {
    padding: 4px 10px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text-secondary);
    letter-spacing: 0.5px;
    font-family: var(--font-display);
}

#advantages .process-card h3 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 10px;
    line-height: 1.4;
}

#advantages .process-card p {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin: 0;
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 50px;
}

.advantages-grid .full-width-card {
    grid-column: span 4;
}

/* Process Cube Color Accent Themes */
.advantage-cube-blue i { color: #38bdf8; }
.advantage-cube-green i { color: #4ade80; }
.advantage-cube-purple i { color: #c084fc; }
.advantage-cube-orange i { color: #fb923c; }
.advantage-cube-cyan i { color: #22d3ee; }
.advantage-cube-red i { color: #f87171; }
.advantage-cube-gold i { color: #fbbf24; }


/* =====================================================
   SECTION 6: TRUSTED BRANDS (Light Theme)
   ===================================================== */
#brands.process {
    background: #ffffff;
    color: #334155;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
    padding: 100px 0;
}

#brands .section-title {
    color: #0f172a;
}

.brands-showcase-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.brand-showcase-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.02);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 160px;
    position: relative;
    overflow: hidden;
}

.brand-showcase-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(13, 148, 136, 0.02), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.brand-showcase-card:hover::before {
    opacity: 1;
}

.brand-showcase-card img {
    max-height: 55px;
    max-width: 80%;
    object-fit: contain;
    filter: grayscale(100%) opacity(0.7);
    transition: all 0.4s ease;
    margin-bottom: 15px;
}

.brand-showcase-card h4 {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 700;
    color: #475569;
    margin: 0;
    transition: all 0.4s ease;
}

.brand-showcase-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary-color);
    box-shadow: 0 20px 35px rgba(13, 148, 136, 0.08);
}

.brand-showcase-card:hover img {
    filter: grayscale(0%) opacity(1);
    transform: scale(1.06);
}

.brand-showcase-card:hover h4 {
    color: var(--primary-color);
}


/* =====================================================
   SECTION 7: SERVICES (Dark Theme)
   ===================================================== */
#services.process {
    background: #020617;
    color: var(--text-secondary);
}

#services .section-title {
    color: #ffffff;
}

#services .process-card {
    background: linear-gradient(145deg, rgba(15, 23, 42, 0.4) 0%, rgba(2, 6, 23, 0.7) 100%);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 22px;
    padding: 35px 26px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

#services .process-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(34, 211, 238, 0.05), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

#services .process-card:hover::before {
    opacity: 1;
}

#services .process-card::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 100%; height: 3px;
    background: var(--primary-gradient);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

#services .process-card:hover::after {
    transform: scaleX(1);
}

#services .process-card:hover {
    transform: translateY(-8px);
    border-color: rgba(34, 211, 238, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 20px rgba(34, 211, 238, 0.1);
}

#services .process-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    width: 100%;
}

#services .process-block {
    position: relative;
    width: 46px;
    height: 46px;
}

#services .process-cube {
    width: 46px;
    height: 46px;
    background: linear-gradient(135deg, #0f172a 0%, #020617 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

#services .process-cube i {
    font-size: 1.2rem;
    transition: all 0.4s ease;
}

#services .process-card:hover .process-cube {
    background: var(--primary-gradient);
    border-color: transparent;
    transform: scale(1.05) rotate(360deg);
    box-shadow: 0 0 15px rgba(34, 211, 238, 0.4);
}

#services .process-card:hover .process-cube i {
    color: #ffffff !important;
}

#services .process-step-pill {
    padding: 4px 10px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text-secondary);
    letter-spacing: 0.5px;
    font-family: var(--font-display);
}

#services .process-card h3 {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 12px;
    line-height: 1.4;
}

#services .process-card p {
    font-size: 0.92rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin: 0;
}


/* =====================================================
   SECTION 8: CTA BANNER (Light Theme)
   ===================================================== */
#contact.corporate-process {
    text-align: center;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    padding: 100px 0;
}

#contact .section-title {
    color: #0f172a;
}

#contact p {
    color: #475569;
    font-size: 1.1rem;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 40px;
}


/* =====================================================
   RESPONSIVE DESIGN MEDIA QUERIES
   ===================================================== */
@media (max-width: 1200px) {
    .advantages-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .advantages-grid .full-width-card {
        grid-column: span 3;
    }
}

@media (max-width: 991px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .why-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .axis-config-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .process-grid-5 {
        grid-template-columns: repeat(3, 1fr);
    }
    .advantages-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .advantages-grid .full-width-card {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    .hero-slider {
        padding-top: 120px;
        padding-bottom: 60px;
    }
    .process, .why-us {
        padding: 80px 0;
    }
}

@media (max-width: 576px) {
    .why-grid {
        grid-template-columns: 1fr;
    }
    .axis-config-grid {
        grid-template-columns: 1fr;
    }
    .process-grid-5 {
        grid-template-columns: 1fr;
    }
    .advantages-grid {
        grid-template-columns: 1fr;
    }
    .advantages-grid .full-width-card {
        grid-column: span 1;
    }
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    .hero-actions .btn-primary,
    .hero-actions .btn-secondary {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    .cta-buttons .btn-primary,
    .cta-buttons .btn-secondary {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
}

/* =====================================================
   ENHANCED RESPONSIVE STYLES
   ===================================================== */
@media (max-width: 991px) {
    #how-it-connects .component-flow-wrapper > div {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }
    
    #how-it-connects .component-flow-step {
        flex-direction: row;
        justify-content: flex-start;
        text-align: left;
        padding: 20px 24px;
        gap: 18px;
        border-radius: 16px;
        min-width: unset;
        flex: unset;
    }
    
    #how-it-connects .component-flow-arrow {
        align-self: center;
        margin: 4px auto;
        transform: rotate(90deg);
        animation: flowPulseVertical 1.8s ease-in-out infinite;
    }
    
    .machines-grid {
        gap: 12px;
    }
}

@media (max-width: 768px) {
    #how-it-connects .component-flow-step i {
        width: 48px;
        height: 48px;
        font-size: 1.1rem;
    }
    
    .dro-component-card {
        padding: 28px 20px;
    }
    
    .dro-component-card .product-image {
        height: 160px;
    }
    
    #axis-configurations .axis-config-card {
        padding: 24px 20px;
    }
    
    #advantages .process-card,
    #services .process-card {
        padding: 32px 24px;
    }
}

@media (max-width: 576px) {
    .about-grid {
        gap: 32px;
    }
    
    #about .image-card {
        padding: 10px;
    }
    
    #about .intro-lead-card {
        padding: 30px 24px;
    }
}
