/* CSS Variables for Unique & Eye-Catchy Tech Aesthetic */
:root {
    --primary: #FF6500; /* Vibrant Orange to match logo */
    --primary-hover: #E65A00;
    --secondary: #080D20; /* Deep Space Navy */
    --accent-cyan: #00D2FF; 
    --bg-light: #F8FAFC;
    --bg-dark: #040714;
    --text-main: #0F172A;
    --text-muted: #64748B;
    --white: #FFFFFF;
    
    --glass-bg-dark: rgba(8, 13, 32, 0.6);
    --glass-border-dark: rgba(255, 255, 255, 0.1);
    --glass-bg-light: rgba(255, 255, 255, 0.8);
    --glass-border-light: rgba(255, 255, 255, 0.4);
    
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1); /* Smooth snap */
    --radius-sm: 16px;
    --radius-lg: 32px;
    --radius-pill: 50px;
    --shadow-sm: 0 10px 30px rgba(8, 13, 32, 0.05);
    --shadow-lg: 0 30px 60px rgba(8, 13, 32, 0.1);
    --shadow-glow: 0 10px 40px rgba(255, 101, 0, 0.3);
    --shadow-glow-cyan: 0 10px 40px rgba(0, 210, 255, 0.3);
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

html {
    scroll-behavior: smooth;
}

html, body {
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

body {
    color: var(--text-main);
    line-height: 1.7;
    background-color: var(--bg-light);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

/* Typography Enhancements */
h1, h2, h3, h4 {
    letter-spacing: -0.03em;
    line-height: 1.2;
}

/* Utility Classes */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 120px 0;
}

.success-stories-section {
    padding: 40px 0;
}

.text-center { text-align: center; }
.text-white { color: var(--white); }
.text-dark { color: var(--text-main); }
.bg-white { background-color: var(--white); }
.bg-light { background-color: var(--bg-light); }
.bg-dark { background-color: var(--secondary); color: var(--white); }

.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.pt-3 { padding-top: 1.5rem; }
.border-top { border-top: 1px solid rgba(255,255,255,0.1); }
.rounded-lg { border-radius: var(--radius-lg); }
.p-4 { padding: 2.5rem; }

.section-header {
    max-width: 1000px;
    margin: 0 auto 60px auto;
}

.section-header h2 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: var(--secondary);
    position: relative;
    display: inline-block;
}

/* Fun glowing line under headers */
.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent-cyan));
    border-radius: 10px;
}

.bg-dark .section-header h2 {
    color: var(--white);
}

.section-header p {
    font-size: 1.15rem;
    color: var(--text-muted);
}

.bg-dark .section-header p {
    color: rgba(255,255,255,0.7);
}

/* Eye-Catchy Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: var(--radius-pill);
    font-weight: 700;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    font-size: 1.05rem;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-large {
    padding: 18px 40px;
    font-size: 1.15rem;
}

.btn-block {
    width: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-hover));
    color: var(--white);
    box-shadow: var(--shadow-glow);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(135deg, var(--accent-cyan), var(--primary));
    z-index: -1;
    transition: opacity 0.4s ease;
    opacity: 0;
}

.btn-primary:hover::before {
    opacity: 1;
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 40px rgba(255, 101, 0, 0.4);
}

.btn-secondary {
    background-color: var(--white);
    color: var(--secondary);
    box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: var(--shadow-lg);
    color: var(--primary);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid rgba(255, 101, 0, 0.3);
    color: var(--primary);
}

.btn-outline:hover {
    border-color: var(--primary);
    background-color: rgba(255, 101, 0, 0.05);
    transform: translateY(-3px);
}

/* Glassmorphism Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: var(--glass-bg-light);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 1000;
    border-bottom: 1px solid var(--glass-border-light);
    transition: var(--transition);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 90px;
    transition: height 0.3s ease;
}

.logo {
    display: flex;
    align-items: center;
}

/* Adjusted logo inversion logic */
.navbar .logo img {
    filter: invert(1) hue-rotate(180deg) brightness(0.8) contrast(1.5);
    transition: transform 0.3s ease;
}

.navbar .logo:hover img {
    transform: scale(1.05);
}

.nav-links {
    display: flex;
    gap: 35px;
    background: var(--white);
    padding: 10px 30px;
    border-radius: var(--radius-pill);
    box-shadow: var(--shadow-sm);
}

.nav-links a {
    font-weight: 600;
    color: var(--secondary);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: var(--primary);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    gap: 15px;
}

.mobile-menu-btn {
    display: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--secondary);
}

/* Hero Section with Mesh Gradient */
.hero {
    padding: 200px 0 120px 0;
    position: relative;
    overflow: hidden;
}

.hero-bg-image {
    background: 
        radial-gradient(circle at 10% 20%, rgba(255, 101, 0, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(0, 210, 255, 0.1) 0%, transparent 40%),
        linear-gradient(135deg, rgba(248, 250, 252, 0.95) 0%, rgba(255, 255, 255, 0.98) 100%),
        url('images/Bg image.jpg') center/cover no-repeat;
}

.hero-container {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
    align-items: center;
}

.badge {
    display: inline-block;
    padding: 8px 20px;
    background: linear-gradient(90deg, rgba(255, 101, 0, 0.1), rgba(0, 210, 255, 0.1));
    color: var(--primary);
    border-radius: var(--radius-pill);
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 25px;
    border: 1px solid rgba(255, 101, 0, 0.2);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.hero h1 {
    font-size: 4rem;
    line-height: 1.1;
    font-weight: 800;
    color: var(--secondary);
    margin-bottom: 25px;
}

.hero h1 span {
    background: linear-gradient(90deg, var(--primary), var(--accent-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 45px;
    max-width: 90%;
    line-height: 1.8;
}

.hero-cta {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

/* Floating Image Effect */
.hero-visual {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Decorative rings */
.hero-ring {
    position: absolute;
    border-radius: 50%;
    border: 1.5px solid rgba(255, 101, 0, 0.18);
    pointer-events: none;
    animation: ringPulse 4s ease-in-out infinite;
}
.hero-ring-1 {
    width: 420px; height: 420px;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: 0s;
}
.hero-ring-2 {
    width: 560px; height: 560px;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    border-color: rgba(0, 194, 255, 0.12);
    animation-delay: 1.5s;
}
@keyframes ringPulse {
    0%, 100% { opacity: 0.5; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 1; transform: translate(-50%, -50%) scale(1.04); }
}

/* Glow orb behind image */
.hero-orb {
    position: absolute;
    width: 320px; height: 320px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 101, 0, 0.22) 0%, rgba(0, 194, 255, 0.1) 60%, transparent 80%);
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    filter: blur(30px);
    z-index: 0;
    pointer-events: none;
}

/* Image frame */
.hero-img-frame {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-img {
    width: 100%;
    max-width: 600px;
    height: auto;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
    transform: perspective(1000px) rotateY(-8deg) rotateX(4deg) translateY(0);
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    animation: float 6s ease-in-out infinite;
    display: block;
    margin: 0 auto;
    position: relative;
    right: 0;
}

.hero-visual:hover .hero-img {
    transform: perspective(1000px) rotateY(0) rotateX(0) translateY(-10px);
}

/* Floating badge */
.hero-badge {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 7px;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.8);
    border-radius: 50px;
    padding: 7px 14px;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--secondary);
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    white-space: nowrap;
    animation: floatChip 5s ease-in-out infinite;
}
.hero-badge-tl {
    top: -16px;
    left: 20px;
}
.badge-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 0 3px rgba(34,197,94,0.25);
    animation: blink 1.5s ease-in-out infinite;
}
@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

/* Floating stat chip */
.hero-chip {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.8);
    border-radius: 14px;
    padding: 10px 16px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    animation: floatChip 5s ease-in-out infinite reverse;
}
.hero-chip-br {
    bottom: -18px;
    right: 20px;
}
.hero-chip i {
    font-size: 1.4rem;
    color: var(--primary);
}
.chip-value {
    display: block;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--secondary);
    line-height: 1;
}
.chip-label {
    display: block;
    font-size: 0.68rem;
    color: var(--text-muted);
    margin-top: 2px;
}
@keyframes floatChip {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}

@keyframes float {
    0% { transform: perspective(1000px) rotateY(-10deg) rotateX(5deg) translateY(0px); }
    50% { transform: perspective(1000px) rotateY(-10deg) rotateX(5deg) translateY(-20px); }
    100% { transform: perspective(1000px) rotateY(-10deg) rotateX(5deg) translateY(0px); }
}

/* Why MES (Benefits Grid) */
.why-mes {
    background: var(--white);
    position: relative;
}

.why-mes::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0,0,0,0.05), transparent);
}

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

.carousel-dots-benefits {
    display: none;
}

@media (max-width: 1200px) {
    .benefits-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
        overflow-x: unset;
        scroll-snap-type: unset;
        padding-bottom: 0;
    }
}

@media (max-width: 480px) {
    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
        overflow-x: unset;
        scroll-snap-type: unset;
    }
    .carousel-dots-benefits {
        display: none !important;
    }
    .benefit-card {
        padding: 18px 14px;
    }
    .benefit-card h3 {
        font-size: 0.95rem;
    }
    .benefit-card p {
        font-size: 0.8rem;
    }
    .icon-wrapper {
        width: 50px;
        height: 50px;
        border-radius: 14px;
        margin-bottom: 10px;
    }
}

.benefit-card {
    background: var(--bg-light);
    padding: 30px 20px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    text-align: center;
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.02);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.benefit-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 4px;
    background: var(--primary);
    transform: scaleX(0);
    transition: transform 0.4s ease;
    transform-origin: left;
}

.benefit-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    background: var(--white);
}

.benefit-card:hover::before {
    transform: scaleX(1);
}

.icon-wrapper {
    width: 70px;
    height: 70px;
    background: white;
    color: var(--primary);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 25px auto;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.benefit-card:hover .icon-wrapper {
    background: var(--primary);
    color: white;
    transform: rotate(10deg) scale(1.1);
}

.benefit-card h3 {
    margin-bottom: 12px;
    color: var(--secondary);
    font-size: 1.3rem;
}

.benefit-card p {
    color: var(--text-muted);
}

/* Differentiators - Glassmorphism List */
.differentiators {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--bg-dark) 100%);
    color: var(--white);
    position: relative;
}

.differentiators .section-header h2,
.differentiators .section-header p {
    color: var(--white);
}

.diff-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.carousel-dots-diff {
    display: none;
}

@media (max-width: 992px) {
    .diff-list {
        grid-template-columns: 1fr;
    }
}

.diff-item {
    display: flex;
    gap: 25px;
    background: var(--glass-bg-dark);
    border: 1px solid var(--glass-border-dark);
    padding: 30px;
    border-radius: var(--radius-sm);
    backdrop-filter: blur(10px);
    transition: var(--transition);
}

.diff-item:hover {
    transform: translateX(10px);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 101, 0, 0.5);
}

.diff-icon {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary), var(--accent-cyan));
    color: var(--white);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    box-shadow: var(--shadow-glow);
}

.diff-text h3 {
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.diff-text p {
    color: rgba(255,255,255,0.7);
}

/* Features Tabs - Neon Glowing Style */
.features {
    background: var(--bg-dark);
    position: relative;
}

/* Subtle grid background for tech feel */
.features::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
}

.feature-tabs {
    background: rgba(0,0,0,0.4);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255,255,255,0.05);
    box-shadow: inset 0 0 20px rgba(0,0,0,0.5);
    overflow: hidden;
}

.tab-buttons {
    display: flex;
    overflow-x: auto;
    background: rgba(255,255,255,0.02);
    padding: 10px;
    gap: 10px;
}

.tab-btn {
    flex: 1;
    background: transparent;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-pill);
    color: rgba(255,255,255,0.6);
    padding: 15px 20px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.tab-btn:hover {
    color: var(--white);
    background: rgba(255,255,255,0.05);
}

.tab-btn.active {
    color: var(--white);
    background: var(--primary);
    border-color: var(--primary);
    box-shadow: var(--shadow-glow);
}

.tab-content {
    display: none;
    padding: 60px;
    animation: scaleUp 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.tab-content.active {
    display: block;
}

@keyframes scaleUp {
    from { opacity: 0; transform: scale(0.98); }
    to { opacity: 1; transform: scale(1); }
}

/* Core Features Diagram Styles */
.mobile-section-title { display: none; }

.diagram-wrapper {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    height: 600px;
}

.diagram-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
}

.center-circle {
    width: 140px;
    height: 140px;
    background: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08),
                inset 0 0 10px rgba(0, 0, 0, 0.02);
    position: relative;
    z-index: 10;
    border: 1px solid #eee;
}

.center-circle h2 {
    color: var(--secondary);
    font-size: 1.4rem;
    font-weight: 900;
    line-height: 1;
    margin: 0;
    letter-spacing: -1px;
}

.dots-circle {
    position: absolute;
    inset: -30px;
    border: 2px dashed rgba(8, 13, 32, 0.1);
    border-radius: 50%;
    animation: rotate 100s linear infinite;
}

.diagram-dot {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 14px;
    height: 14px;
    background: var(--dot-color);
    border-radius: 50%;
    margin-top: -7px;
    margin-left: -7px;
    box-shadow: 0 0 15px var(--dot-color);
    z-index: 5;
}

/* Position dots precisely around the 120px radius circle */
.dot-1 { transform: rotate(315deg) translateY(-120px); }
.dot-2 { transform: rotate(270deg) translateY(-120px); }
.dot-3 { transform: rotate(225deg) translateY(-120px); }
.dot-4 { transform: rotate(180deg) translateY(-120px); }
.dot-5 { transform: rotate(45deg) translateY(-120px); }
.dot-6 { transform: rotate(90deg) translateY(-120px); }
.dot-7 { transform: rotate(135deg) translateY(-120px); }
.dot-8 { transform: rotate(0deg) translateY(-120px); }

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.node {
    position: absolute;
    display: flex;
    align-items: center;
    width: 400px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.node-content {
    background: linear-gradient(135deg, var(--node-color), #fff);
    background-size: 200% 200%;
    padding: 18px 30px;
    border-radius: 50px;
    color: var(--secondary);
    font-weight: 800;
    font-size: 1rem;
    flex-grow: 1;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border: 1px solid #eee;
    display: flex;
    align-items: center;
    min-height: 80px;
}

.node-number {
    width: 65px;
    height: 50px;
    background: var(--node-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 1.3rem;
    color: var(--secondary);
    position: relative;
    filter: brightness(0.95);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

/* Left Side Nodes Styling - Refined */
.node-left {
    right: 55%;
    flex-direction: row;
}

.node-left .node-number {
    margin-left: -15px;
    border-radius: 0 12px 12px 0;
    clip-path: polygon(0% 0%, 75% 0%, 100% 50%, 75% 100%, 0% 100%);
    order: 2;
}

.node-left .node-content {
    text-align: center;
    justify-content: center;
    border-radius: 50px 15px 15px 50px;
    order: 1;
}

/* Right Side Nodes Styling - Refined */
.node-right {
    left: 55%;
    flex-direction: row;
}

.node-right .node-number {
    margin-right: -15px;
    border-radius: 12px 0 0 12px;
    clip-path: polygon(25% 0%, 100% 0%, 100% 100%, 25% 100%, 0% 50%);
    order: 1;
}

.node-right .node-content {
    text-align: center;
    justify-content: center;
    border-radius: 15px 50px 50px 15px;
    order: 2;
}

/* Precise positioning for perfect circle flow */
.node-1 { top: 12%; right: 62%; }
.node-2 { top: 35%; right: 68%; }
.node-3 { top: 58%; right: 68%; }
.node-4 { top: 78%; right: 62%; }

.node-5 { top: 12%; left: 62%; }
.node-6 { top: 35%; left: 68%; }
.node-7 { top: 58%; left: 68%; }
.node-8 { top: 78%; left: 62%; }

.node:hover .node-content {
    background-position: right center;
    box-shadow: 0 20px 45px rgba(0,0,0,0.4), 0 0 20px var(--node-color);
}

/* Mobile Adjustments for Diagram - Scaling Approach */
@media (max-width: 1250px) {
    .diagram-wrapper {
        transform: scale(0.9);
        margin: -30px auto;
    }
}

@media (max-width: 992px) {
    .diagram-wrapper {
        transform: scale(0.78);
        margin: -60px auto;
    }
}

/* Mobile: switch to stacked card layout */
@media (max-width: 768px) {
    .mobile-section-title {
        display: block;
        text-align: center;
        margin-bottom: 16px;
    }
    .mobile-section-title h2 {
        font-size: 1.6rem;
        font-weight: 900;
        color: var(--secondary);
        position: relative;
        z-index: 2;
    }

    .diagram-wrapper {
        transform: none;
        margin: 0 auto;
        position: relative;
        height: auto;
        min-height: unset;
        padding: 0;
        overflow: hidden;
    }

    /* Animation sits absolutely centered behind the cards */
    .diagram-center {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        z-index: 0;
        opacity: 0.18;
        pointer-events: none;
    }

    /* Hide the "Core Features" text inside the circle on mobile — title is shown above */
    .diagram-center .center-circle h2 {
        display: none;
    }

    .diagram-nodes {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 12px;
        padding: 12px;
        position: relative;
        z-index: 1;
    }

    .node,
    .node-left,
    .node-right {
        position: static;
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
        right: auto;
        left: auto;
        top: auto;
    }

    .node-left .node-content,
    .node-right .node-content {
        border-radius: 12px;
        text-align: left;
        justify-content: flex-start;
        font-size: 0.8rem;
        font-weight: 700;
        padding: 10px 12px;
        min-height: 70px;
        width: 100%;
        order: 2;
        background: linear-gradient(135deg, var(--node-color), rgba(255,255,255,0.92));
        box-shadow: 0 4px 12px rgba(0,0,0,0.07);
        backdrop-filter: blur(4px);
    }

    .node-left .node-content p,
    .node-right .node-content p {
        margin: 0;
        line-height: 1.4;
    }

    .node-left .node-number,
    .node-right .node-number {
        width: 36px;
        height: 36px;
        min-width: 36px;
        border-radius: 10px;
        clip-path: none;
        margin: 0 0 6px 0;
        font-size: 0.85rem;
        font-weight: 900;
        order: 1;
        box-shadow: 0 4px 10px rgba(0,0,0,0.12);
    }
}


/* Comparison Table Styles */
.comparison {
    background: var(--white);
}

.comparison-table {
    max-width: 1000px;
    margin: 40px auto;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--white);
    box-shadow: 0 10px 40px rgba(0,0,0,0.05);
    border: 1px solid #eee;
}

.comp-row {
    display: grid;
    grid-template-columns: 1fr 1.5fr 1.5fr;
    border-bottom: 1px solid #eee;
    transition: var(--transition);
}

.comp-row:not(.head):hover {
    background: #fcfcfc;
}

.comp-row div {
    padding: 25px 30px;
    display: flex;
    align-items: center;
    color: var(--secondary);
}

.comp-row.head {
    background: #f8f9fa;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.85rem;
    color: var(--secondary);
}

.comp-feature {
    font-weight: 700;
    color: var(--primary);
}

.comp-traditional {
    color: var(--text-muted);
}

.comp-octopus {
    background: rgba(255, 103, 0, 0.03);
    font-weight: 700;
    color: var(--secondary);
    border-left: 1px solid #eee;
    border-right: 1px solid #eee;
}

.comp-octopus i {
    color: #2e7d32;
    margin-right: 12px;
    font-size: 1.2rem;
}

@media (max-width: 768px) {
    .comparison-table {
        overflow: visible;
        margin: 20px 0;
    }

    .comp-row {
        grid-template-columns: 0.8fr 1fr 1fr;
    }

    .comp-row div {
        padding: 10px 8px;
        font-size: 0.72rem;
        line-height: 1.4;
        align-items: flex-start;
    }

    .comp-row.head div {
        font-size: 0.65rem;
        padding: 10px 8px;
        letter-spacing: 0;
    }

    .comp-octopus i {
        font-size: 0.9rem;
        margin-right: 5px;
        flex-shrink: 0;
    }
}

@media (max-width: 480px) {
    .comp-row {
        grid-template-columns: 0.75fr 1fr 1fr;
    }

    .comp-row div {
        padding: 8px 6px;
        font-size: 0.65rem;
    }

    .comp-row.head div {
        font-size: 0.6rem;
    }
}

.feature-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.feature-text h3 {
    font-size: 2.5rem;
    margin-bottom: 25px;
    color: var(--white);
    background: linear-gradient(90deg, #fff, var(--text-muted));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.feature-text ul {
    margin-bottom: 30px;
}

.feature-text li {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    color: rgba(255,255,255,0.8);
    font-size: 1.1rem;
    background: rgba(255,255,255,0.03);
    padding: 12px 20px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.05);
    transition: var(--transition);
}

.feature-text li:hover {
    background: rgba(255,255,255,0.08);
    transform: translateX(5px);
    border-color: rgba(255, 101, 0, 0.3);
}

.feature-text li i {
    color: var(--primary);
    font-size: 1.4rem;
    background: rgba(255, 101, 0, 0.1);
    border-radius: 50%;
    padding: 5px;
}

.tab-img {
    width: 100%;
    height: auto;
    max-height: 450px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.1);
    transition: var(--transition);
}

.tab-img:hover {
    transform: scale(1.03);
    border-color: rgba(0, 210, 255, 0.4);
    box-shadow: var(--shadow-glow-cyan);
}

.icon-img {
    object-fit: contain;
    background: rgba(255, 255, 255, 0.02);
    padding: 40px;
    backdrop-filter: blur(10px);
}

/* Industries */
.industries {
    background: var(--white);
}

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

@media (max-width: 1200px) {
    .industry-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .industry-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .industry-grid {
        grid-template-columns: 1fr;
    }
}

.ind-card {
    background: var(--bg-light);
    padding: 30px 20px;
    border-radius: var(--radius-lg);
    text-align: center;
    border: 1px solid transparent;
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.ind-card:hover {
    background: var(--white);
    border-color: var(--primary);
    box-shadow: 0 15px 35px rgba(255, 101, 0, 0.08);
    transform: translateY(-8px);
}

.ind-icon {
    font-size: 3rem;
    color: var(--secondary);
    margin-bottom: 20px;
    transition: var(--transition);
}

.ind-card:hover .ind-icon {
    color: var(--primary);
    transform: scale(1.1);
}

.ind-card h3 {
    font-size: 1.2rem;
    margin-bottom: 12px;
}

/* Split Section */
.split-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin: 40px 0;
}

@media (max-width: 480px) {
    .metrics-grid {
        grid-template-columns: 1fr;
    }

    .metric .num {
        font-size: 1.8rem;
    }
}

.metric {
    background: var(--white);
    padding: 25px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border-bottom: 4px solid var(--primary);
    text-align: center;
    transition: var(--transition);
}

.metric:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.metric .num {
    display: block;
    font-size: 2.5rem;
    white-space: nowrap;
    font-weight: 800;
    color: var(--secondary);
    background: linear-gradient(135deg, var(--secondary), var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Security Box */
.security-box {
    padding: 50px !important;
    background: linear-gradient(135deg, var(--secondary), var(--bg-dark));
    border: 1px solid rgba(255,255,255,0.05);
    box-shadow: var(--shadow-lg);
}

.shield-icon {
    font-size: 4rem;
    color: var(--accent-cyan);
    margin-bottom: 25px;
    text-shadow: 0 0 20px rgba(0, 210, 255, 0.5);
}

.bg-abstract-img {
    position: absolute;
    right: -50px;
    bottom: -50px;
    opacity: 0.1;
    width: 400px;
    z-index: 1;
    pointer-events: none;
    filter: invert(1);
}

/* Pricing */
.carousel-dots {
    display: none;
}

.pricing-tiers {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    align-items: center;
}

.tier {
    background: var(--white);
    border: 1px solid #eaeaea;
    border-radius: var(--radius-lg);
    padding: 50px 30px;
    text-align: center;
    transition: var(--transition);
    position: relative;
}

.tier:hover {
    box-shadow: var(--shadow-lg);
    border-color: rgba(255, 101, 0, 0.2);
}

.tier h3 {
    font-size: 1.8rem;
    color: var(--secondary);
}

.tier.featured {
    background: var(--secondary);
    color: var(--white);
    transform: scale(1.05);
    border: 2px solid var(--primary);
    box-shadow: var(--shadow-glow);
}

.tier.featured h3 {
    color: var(--white);
}

.tier ul {
    margin: 30px 0;
    text-align: left;
    padding: 0;
}

.tier li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
    color: inherit;
    font-size: 0.95rem;
}

.tier li i {
    color: var(--primary);
    font-size: 1.2rem;
    flex-shrink: 0;
}

.tier-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: var(--white);
    padding: 8px 20px;
    border-radius: var(--radius-pill);
    font-size: 0.85rem;
    font-weight: 700;
    box-shadow: 0 5px 15px rgba(255, 101, 0, 0.3);
}

/* Contact Section Layout */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 60px;
    align-items: flex-start;
}

/* Contact Section Redesign - Premium Glassmorphism */
.contact {
    position: relative;
    overflow: hidden;
    background: radial-gradient(circle at 0% 0%, rgba(255, 101, 0, 0.15) 0%, transparent 50%),
                radial-gradient(circle at 100% 100%, rgba(0, 210, 255, 0.1) 0%, transparent 50%),
                var(--secondary);
}

.contact::before {
    content: '';
    position: absolute;
    top: -10%; left: -10%; width: 40%; height: 40%;
    background: var(--primary);
    filter: blur(150px);
    opacity: 0.1;
    pointer-events: none;
}

.contact-info h2 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 25px;
    background: linear-gradient(135deg, var(--white) 60%, rgba(255,255,255,0.4));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.contact-info p {
    font-size: 1.2rem;
    color: rgba(255,255,255,0.7);
    max-width: 500px;
}

.contact-form-container {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.4);
    border-radius: var(--radius-lg);
    padding: 50px;
    position: relative;
    z-index: 2;
}

.contact-form-container::after {
    content: '';
    position: absolute;
    inset: -1px;
    background: linear-gradient(135deg, rgba(255,255,255,0.2), transparent, rgba(255, 101, 0, 0.2));
    border-radius: inherit;
    z-index: -1;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: xor;
    -webkit-mask-composite: destination-out;
}

.contact-details {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.detail {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    background: rgba(255,255,255,0.05);
    padding: 16px 24px;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.05);
    font-weight: 500;
    max-width: 100%;
}

.detail i {
    color: var(--primary);
    font-size: 1.4rem;
    margin-top: 2px;
    flex-shrink: 0;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-row .form-group {
    margin-bottom: 0;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    display: block;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    padding: 16px 20px;
    font-size: 1rem;
    color: var(--white);
    transition: var(--transition);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255,255,255,0.4);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    background: rgba(255,255,255,0.1);
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(255, 101, 0, 0.2);
    outline: none;
}

/* Footer */
.footer {
    background: #02050D;
    border-top: 3px solid var(--primary);
    color: rgba(255, 255, 255, 0.7);
    padding: 60px 0 40px 0;
}

.footer-centered {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 24px;
}

.footer-brand img {
    filter: brightness(0) invert(1);
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.footer-brand:hover img {
    opacity: 1;
}

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px 30px;
}

.footer-nav a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.footer-nav a:hover {
    color: var(--primary);
}

.footer-tagline {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.55);
}

.footer-tagline a {
    color: var(--white);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.footer-tagline a:hover {
    color: var(--primary);
}

.footer-copy {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.4);
}

/* About Us Section */
.about-text .section-header h2 {
    color: var(--secondary);
    margin-bottom: 20px;
}

.about-text .section-header h2::after {
    left: 0;
    transform: none;
}

.about-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.about-list li {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    font-size: 1.05rem;
    color: var(--text-muted);
}

.about-list li i {
    color: var(--primary);
    font-size: 1.5rem;
    margin-top: 3px;
    flex-shrink: 0;
    background: rgba(255, 101, 0, 0.1);
    border-radius: 50%;
}

.about-img {
    border: 3px solid var(--white);
    box-shadow: var(--shadow-glow);
    border-radius: var(--radius-lg);
    transform: rotate(2deg);
    transition: var(--transition);
}

.about-img:hover {
    transform: rotate(0) scale(1.02);
}

.relative-box { position: relative; }
.overflow-hidden { overflow: hidden; }
.relative-z { position: relative; z-index: 2; }

/* Responsive adjustments */
@media (max-width: 992px) {
    .hero h1 { font-size: 2.4rem; }
    .hero-container, .feature-split, .split-layout, .contact-wrapper { grid-template-columns: 1fr; }
    .pricing-tiers { grid-template-columns: 1fr; gap: 40px; }
    .tier.featured { transform: scale(1); }
    .tab-content { padding: 30px 20px; }

    /* Mobile Background Image Strategy */
    .hero {
        background: linear-gradient(rgba(248, 250, 252, 0.9), rgba(248, 250, 252, 0.9)), url('images/Bg image.jpg') center/cover no-repeat;
    }
    .hero-visual { display: none; }

    .about-us {
        background: linear-gradient(rgba(255,255,255,0.92), rgba(255,255,255,0.92)), url('images/about us.jpg') center/cover no-repeat !important;
    }
    .about-image { display: none; }

    .tab-content {
        position: relative;
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        z-index: 1;
    }

    /* Specific backgrounds for feature tabs on mobile */
    #feature-ai.active { background-image: linear-gradient(rgba(4, 7, 20, 0.9), rgba(4, 7, 20, 0.9)), url('images/Ai image.png'); }
    #feature-sop.active { background-image: linear-gradient(rgba(4, 7, 20, 0.9), rgba(4, 7, 20, 0.9)), url('images/manual.png'); }
    #feature-shop.active { background-image: linear-gradient(rgba(4, 7, 20, 0.9), rgba(4, 7, 20, 0.9)), url('images/platform-operations.jpg'); }
    #feature-qa.active { background-image: linear-gradient(rgba(4, 7, 20, 0.9), rgba(4, 7, 20, 0.9)), url('images/check-mark.png'); }
    #feature-analytics.active { background-image: linear-gradient(rgba(4, 7, 20, 0.9), rgba(4, 7, 20, 0.9)), url('images/oee.png'); }

    .feature-image { display: none; }
    .feature-text h3 { font-size: 1.8rem; }
}
@media (max-width: 768px) {
    .section-padding { padding: 60px 0; }
    .footer { padding: 40px 0 30px 0; }
    .footer-nav { gap: 10px 20px; }
    .section-header h2 { font-size: 2.2rem; }
    .nav-container { height: 70px; }
    .navbar .logo img { height: 40px; }
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        flex-direction: column;
        background: var(--white);
        padding: 30px;
        gap: 20px;
        border-radius: 0 0 20px 20px;
        box-shadow: 0 15px 30px rgba(0,0,0,0.1);
        text-align: center;
    }
    .nav-links.active { display: flex; }
    .nav-actions { display: none; }
    .mobile-menu-btn { display: block; font-size: 1.8rem; color: var(--secondary); }
    .hero { padding: 150px 0 80px 0; }
    .contact-wrapper {
        display: flex;
        flex-direction: column;
        gap: 40px;
    }
    
    .contact-form-container {
        padding: 30px 20px;
        margin: 0;
    }
    
    .contact-info h2 {
        font-size: 2.2rem;
    }
    
    .form-row { grid-template-columns: 1fr; gap: 0; }
    .form-row .form-group { margin-bottom: 20px; }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 0.95rem;
        padding: 14px 16px;
    }
    
    .contact-details {
        flex-direction: column;
        gap: 15px;
    }
    
    .detail {
        font-size: 0.9rem;
    }

    /* Differentiators Carousel on Mobile */
    .diff-list {
        display: flex;
        overflow-x: auto;
        padding: 20px;
        margin: 0 -20px;
        width: calc(100% + 40px);
        gap: 20px;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }

    .diff-list::-webkit-scrollbar {
        display: none;
    }

    .diff-list .diff-item {
        flex: 0 0 calc(100vw - 80px);
        min-width: 280px;
        scroll-snap-align: center;
        background: var(--glass-bg-dark);
        border: 1px solid var(--glass-border-dark);
        padding: 30px;
        border-radius: var(--radius-sm);
        display: flex;
        flex-direction: column;
        gap: 20px;
    }

    .diff-list .diff-item h3, 
    .diff-list .diff-item p {
        color: var(--white);
    }

    .carousel-dots-diff {
        display: flex;
        justify-content: center;
        gap: 8px;
        margin-bottom: 30px;
    }

    .dot-diff {
        width: 8px;
        height: 8px;
        background: rgba(8, 13, 32, 0.2);
        border-radius: 50%;
        cursor: pointer;
        transition: var(--transition);
    }

    .dot-diff.active {
        background: var(--primary);
        transform: scale(1.3);
    }

    /* Benefits Grid on Mobile — 2 columns, no scroll */
    .benefits-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        overflow-x: unset;
        padding: 0;
        margin: 0;
        width: 100%;
        gap: 12px;
        scroll-snap-type: unset;
    }

    .benefits-grid .benefit-card {
        flex: unset;
        min-width: unset;
        scroll-snap-align: unset;
        padding: 18px 14px;
    }

    .benefits-grid .benefit-card:last-child:nth-child(odd) {
        grid-column: 1 / -1;
    }

    .benefits-grid .benefit-card h3 {
        font-size: 0.95rem;
    }

    .benefits-grid .benefit-card p {
        font-size: 0.78rem;
    }

    .benefits-grid .icon-wrapper {
        width: 46px;
        height: 46px;
        border-radius: 12px;
        margin-bottom: 10px;
    }

    .carousel-dots-benefits {
        display: none !important;
    }

    /* Pricing Carousel on Mobile */
    .pricing-tiers {
        display: flex;
        overflow-x: auto;
        padding: 40px 20px;
        margin: 0 -20px;
        width: calc(100% + 40px);
        gap: 20px;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }

    .pricing-tiers::-webkit-scrollbar {
        display: none;
    }

    .tier {
        flex: 0 0 calc(100vw - 80px);
        min-width: 280px;
        scroll-snap-align: center;
    }

    .tier.featured {
        transform: scale(1);
    }

    .carousel-dots {
        display: flex;
        justify-content: center;
        gap: 12px;
        margin-top: 20px;
    }

    .dot {
        width: 10px;
        height: 10px;
        background: rgba(8, 13, 32, 0.2);
        border-radius: 50%;
        cursor: pointer;
        transition: var(--transition);
    }

    .dot.active {
        background: var(--primary);
        transform: scale(1.3);
        box-shadow: var(--shadow-glow);
    }
}

@media (max-width: 480px) {
    .hero-cta { flex-direction: column; }
    .hero-cta .btn { width: 100%; }
    .hero h1 { font-size: 1.9rem; line-height: 1.2; }
    .hero p { font-size: 0.95rem; }
    .contact-details { flex-direction: column; gap: 15px; }
    
    .contact-form-container {
        padding: 25px 15px;
    }
    
    .contact-info h2 {
        font-size: 1.8rem;
    }
    
    .contact-info p {
        font-size: 1rem;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 0.9rem;
        padding: 12px 14px;
    }
}
