/* ═══════════════════════════════════════════════════════════════
   Igus India - HRMS + ATS Platform - Shared Flow Styles
   Light theme with #F77020 (orange) + white
   ═══════════════════════════════════════════════════════════════ */

:root {
    --igus-orange: #F77020;
    --igus-orange-dark: #c4541a;
    --igus-orange-deep: #9c4214;
    --igus-peach: #FFF1E6;
    --igus-peach-light: #FFF8F2;
    --igus-peach-deep: #FFE4D1;
    --igus-text: #1a1a1a;
    --igus-text-soft: #4a5568;
    --igus-text-muted: #718096;
    --igus-border: #f0e6dd;
    --igus-bg: #ffffff;
    --shadow-sm: 0 4px 12px rgba(247, 112, 32, 0.06);
    --shadow-md: 0 8px 24px rgba(247, 112, 32, 0.08);
    --shadow-lg: 0 20px 60px -15px rgba(247, 112, 32, 0.18);
    --shadow-hover: 0 16px 40px rgba(247, 112, 32, 0.18);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    background: var(--igus-bg);
    background-image:
        radial-gradient(ellipse at 10% 20%, rgba(247, 112, 32, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 10%, rgba(247, 112, 32, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 80%, rgba(247, 112, 32, 0.05) 0%, transparent 50%);
    background-attachment: fixed;
    color: var(--igus-text);
    font-family: 'Inter', sans-serif;
    min-height: 100vh;
}

.bg-particles {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.bg-particles::before, .bg-particles::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    animation: float 20s ease-in-out infinite;
}

.bg-particles::before {
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(247, 112, 32, 0.08), transparent);
    top: -200px; right: -100px;
}

.bg-particles::after {
    width: 700px; height: 700px;
    background: radial-gradient(circle, rgba(247, 112, 32, 0.05), transparent);
    bottom: -300px; left: -200px;
    animation-delay: -10s;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-30px) rotate(3deg); }
    50% { transform: translateY(20px) rotate(-2deg); }
    75% { transform: translateY(-15px) rotate(1deg); }
}

/* Navbar */
.navbar {
    background: rgba(255, 255, 255, 0.92) !important;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--igus-border);
    box-shadow: 0 4px 20px rgba(247, 112, 32, 0.06);
    padding: 12px 0;
    z-index: 100;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 800;
    font-size: 1.15rem;
    color: var(--igus-orange) !important;
    letter-spacing: -0.01em;
}

.navbar-brand img {
    height: 40px;
    width: 40px;
    border-radius: 8px;
    object-fit: cover;
}

.navbar-brand span {
    color: var(--igus-text);
    font-weight: 700;
}

.navbar-brand span em {
    color: var(--igus-orange);
    font-style: normal;
    font-weight: 800;
}

.nav-link {
    color: var(--igus-text-soft) !important;
    font-weight: 500;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.nav-link:hover { color: var(--igus-orange) !important; }

.navbar-toggler { border-color: var(--igus-border); }

/* Layout */
.container-main {
    max-width: 100%;
    margin: 0;
    padding: 0;
    padding-top: 80px;
    position: relative;
    z-index: 1;
}

header {
    text-align: center;
    padding: 40px 20px 20px;
}

.flow-badge {
    display: inline-flex;
    align-items: center;
    background: var(--igus-peach);
    border: 1px solid rgba(247, 112, 32, 0.3);
    color: var(--igus-orange);
    padding: 6px 18px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 16px;
}

h1 {
    font-size: 3rem;
    font-weight: 900;
    color: var(--igus-orange);
    letter-spacing: -0.03em;
    margin-bottom: 0.5rem;
}

.lead {
    color: var(--igus-text-soft);
    font-size: 1.1rem;
    font-weight: 400;
    max-width: 700px;
    margin: 0 auto;
}

.main-card {
    background: var(--igus-bg);
    border-top: 1px solid var(--igus-border);
    border-bottom: 1px solid var(--igus-border);
    padding: 40px;
    margin-bottom: 0;
}

.section-heading {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--igus-text);
    margin-bottom: 16px;
}

.section-heading i {
    color: var(--igus-orange);
}

/* Story Box */
.story-box {
    background: var(--igus-peach-light);
    border: 1px solid var(--igus-border);
    border-left: 4px solid var(--igus-orange);
    border-radius: 16px;
    padding: 28px 32px;
}

.story-box p {
    color: var(--igus-text-soft);
    line-height: 1.85;
    font-size: 1rem;
    margin-bottom: 16px;
}

.story-box p:last-child { margin-bottom: 0; }

.story-box strong {
    color: var(--igus-orange);
    font-weight: 700;
}

/* Diagram */
.diagram-container {
    position: relative;
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid var(--igus-border);
    box-shadow: var(--shadow-md);
    height: 2200px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.mermaid {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    width: 100%;
}

.mermaid .node rect,
.mermaid .node circle,
.mermaid .node ellipse,
.mermaid .node polygon {
    rx: 8;
    ry: 8;
}

/* Info Cards */
.info-card {
    background: var(--igus-bg);
    border: 1px solid var(--igus-border);
    border-radius: 16px;
    padding: 24px;
    height: 100%;
    transition: all 0.3s ease;
    text-align: center;
    box-shadow: var(--shadow-sm);
}

.info-card:hover {
    transform: translateY(-4px);
    border-color: var(--igus-orange);
    box-shadow: var(--shadow-hover);
}

.info-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    margin: 0 auto 16px;
}

.info-card h5 {
    font-weight: 700;
    font-size: 1rem;
    color: var(--igus-text);
    margin-bottom: 8px;
}

.info-card p {
    color: var(--igus-text-soft);
    font-size: 0.85rem;
    margin: 0;
    line-height: 1.5;
}

/* Icon themes - all on-brand variants */
.icon-orange      { background: var(--igus-orange);      color: #ffffff; }
.icon-orange-soft { background: var(--igus-peach);       color: var(--igus-orange); }
.icon-peach       { background: var(--igus-peach-deep);  color: var(--igus-orange-dark); }
.icon-white       { background: #ffffff; border: 1px solid var(--igus-orange); color: var(--igus-orange); }
.icon-deep        { background: var(--igus-orange-dark); color: #ffffff; }
.icon-light       { background: var(--igus-peach-light); color: var(--igus-orange); border: 1px solid var(--igus-border); }

/* Zoom Controls */
.zoom-controls {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    padding: 12px;
    border-radius: 14px;
    box-shadow: 0 8px 30px rgba(247, 112, 32, 0.15);
    z-index: 1000;
    border: 1px solid var(--igus-border);
}

.zoom-range {
    width: 120px;
    margin: 0 5px;
    cursor: pointer;
    accent-color: var(--igus-orange);
}

.zoom-btn {
    width: 40px;
    height: 40px;
    border: none;
    background: var(--igus-peach);
    border-radius: 10px;
    color: var(--igus-orange);
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.zoom-btn:hover {
    background: var(--igus-orange);
    color: #ffffff;
    transform: translateY(-1px);
}

/* Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--igus-peach-light); }
::-webkit-scrollbar-thumb { background: var(--igus-orange); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--igus-orange-dark); }

/* Responsive */
@media (max-width: 768px) {
    .container-main { padding-top: 60px !important; }
    .main-card { padding: 15px; }
    header { margin-bottom: 10px; padding: 20px 15px 10px; }
    h1 { font-size: 2rem; }
    .diagram-container { height: 1600px; }
    .zoom-controls {
        bottom: 15px;
        right: 15px;
        padding: 8px;
        transform: scale(0.85);
        transform-origin: bottom right;
    }
    .zoom-range { width: 70px; }
    .story-box { padding: 20px; }
    .navbar-brand { font-size: 0.95rem; }
    .navbar-brand img { height: 32px; width: 32px; }
}
