/* ===== CSS Variables ===== */
:root {
    --orange: #F97316;
    --orange-dark: #EA580C;
    --orange-light: #FFF7ED;
    --blue: #1E40AF;
    --blue-dark: #1E3A8A;
    --blue-light: #EFF6FF;
    --blue-50: #F8FAFF;
    --blue-100: #EEF4FF;
    --blue-200: #DCE8FF;
    --dark: #111827;
    --gray-900: #1F2937;
    --gray-700: #374151;
    --gray-500: #6B7280;
    --gray-300: #D1D5DB;
    --gray-100: #F3F4F6;
    --white: #FFFFFF;
    --font: 'Inter', sans-serif;
    --shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1);
    --radius: 12px;
}

/* ===== Dark Theme ===== */
[data-theme="dark"] {
    --orange: #FB923C;
    --orange-dark: #F97316;
    --orange-light: #1C1917;
    --blue: #60A5FA;
    --blue-dark: #93C5FD;
    --blue-light: #1E293B;
    --blue-50: #0F172A;
    --blue-100: #1E293B;
    --blue-200: #1E3A5F;
    --dark: #F8FAFC;
    --gray-900: #F1F5F9;
    --gray-700: #CBD5E1;
    --gray-500: #94A3B8;
    --gray-300: #334155;
    --gray-100: #1E293B;
    --white: #0F172A;
    --shadow: 0 4px 6px -1px rgba(0,0,0,0.3), 0 2px 4px -2px rgba(0,0,0,0.2);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.3), 0 4px 6px -4px rgba(0,0,0,0.2);
}

[data-theme="dark"] body {
    background: #0F172A;
}

[data-theme="dark"] .footer {
    background: #020617;
}

[data-theme="dark"] .service-card {
    background: #1E293B;
}

[data-theme="dark"] .product-card {
    background: #1E293B;
}

[data-theme="dark"] .feature-card {
    background: #1E293B;
    border-color: #334155;
}

[data-theme="dark"] .hero-card {
    background: #1E293B;
}

[data-theme="dark"] .contact-form input,
[data-theme="dark"] .contact-form textarea {
    background: #1E293B;
    color: #F1F5F9;
    border-color: #334155;
}

/* Theme Toggle Button */
.theme-toggle {
    background: none;
    border: 2px solid var(--gray-300);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: all 0.3s;
    margin-left: 1rem;
}

.theme-toggle:hover {
    border-color: var(--orange);
    transform: scale(1.1);
}

/* ===== Reset ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: var(--font);
    color: var(--gray-900);
    line-height: 1.6;
    background: var(--white);
}

img { max-width: 100%; height: auto; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ===== Utility ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 0.5rem;
}

.section-header p {
    font-size: 1.1rem;
    color: var(--gray-500);
}

/* ===== Buttons ===== */
.btn {
    display: inline-block;
    padding: 0.85rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    text-align: center;
}

.btn-primary {
    background: var(--orange);
    color: var(--white);
}
.btn-primary:hover {
    background: var(--orange-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-outline {
    border: 2px solid var(--blue);
    color: var(--blue);
    background: transparent;
}
.btn-outline:hover {
    background: var(--blue);
    color: var(--white);
    transform: translateY(-2px);
}

/* ===== Navbar ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.72);
    -webkit-backdrop-filter: blur(14px) saturate(160%);
    backdrop-filter: blur(14px) saturate(160%);
    transition: background 0.3s, box-shadow 0.3s, backdrop-filter 0.3s, -webkit-backdrop-filter 0.3s;
}

.navbar.over-hero {
    background: rgba(100, 116, 139, 0.28);
    -webkit-backdrop-filter: blur(16px) saturate(140%);
    backdrop-filter: blur(16px) saturate(140%);
    box-shadow: none;
}

.navbar.over-hero .nav-link {
    color: rgba(255, 255, 255, 0.88);
}

.navbar.over-hero .nav-link:hover,
.navbar.over-hero .nav-link.active {
    color: var(--orange);
}

.navbar.over-hero .hamburger,
.navbar.over-hero .hamburger::before,
.navbar.over-hero .hamburger::after {
    background: #ffffff;
}

.navbar.over-hero .theme-toggle {
    border-color: rgba(255, 255, 255, 0.45);
}

.navbar.over-hero .mobile-nav-link {
    color: rgba(255, 255, 255, 0.9);
    border-bottom-color: rgba(255, 255, 255, 0.15);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.88);
    -webkit-backdrop-filter: blur(16px) saturate(160%);
    backdrop-filter: blur(16px) saturate(160%);
    box-shadow: var(--shadow);
}

[data-theme="dark"] .navbar {
    background: rgba(15, 23, 42, 0.78);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
    backdrop-filter: blur(14px) saturate(140%);
}

[data-theme="dark"] .navbar.over-hero {
    background: rgba(15, 23, 42, 0.32);
    -webkit-backdrop-filter: blur(16px) saturate(140%);
    backdrop-filter: blur(16px) saturate(140%);
}

[data-theme="dark"] .navbar.scrolled {
    background: rgba(15, 23, 42, 0.9);
    -webkit-backdrop-filter: blur(16px) saturate(140%);
    backdrop-filter: blur(16px) saturate(140%);
}

.navbar-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 1.65rem;
    font-weight: 800;
}

.logo-hajari { color: var(--orange); }
.logo-automation { color: var(--blue); }

.nav-desktop {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--gray-700);
    transition: color 0.2s;
}
.nav-link:hover { color: var(--orange); }

.nav-link.active {
    color: var(--orange);
    font-weight: 700;
}

.nav-cta {
    background: var(--orange);
    color: var(--white) !important;
    padding: 0.6rem 1.35rem;
    border-radius: 8px;
    font-size: 1.05rem;
    font-weight: 600;
}
.nav-cta:hover { background: var(--orange-dark); }

/* Mobile menu button */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 30px;
    height: 24px;
    position: relative;
}

.hamburger,
.hamburger::before,
.hamburger::after {
    display: block;
    width: 100%;
    height: 3px;
    background: var(--dark);
    border-radius: 2px;
    transition: all 0.3s;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    left: 0;
}
.hamburger::before { top: 0; }
.hamburger::after { bottom: 0; }

.mobile-menu-btn.active .hamburger { background: transparent; }
.mobile-menu-btn.active .hamburger::before { top: 50%; transform: rotate(45deg); }
.mobile-menu-btn.active .hamburger::after { bottom: 50%; transform: rotate(-45deg); }

.mobile-menu {
    display: none;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1rem 0;
}

.mobile-menu.open { display: flex; }

.mobile-nav-link {
    padding: 0.75rem 0;
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--gray-700);
    border-bottom: 1px solid var(--gray-100);
}
.mobile-nav-link:hover { color: var(--orange); }

/* ===== Hero ===== */
.hero {
    padding: 10rem 0 5rem;
    background: var(--blue-50);
}

.hero.hero-wavy {
    min-height: 100vh;
    min-height: 100dvh;
    padding: 0;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background: #64748b;
}

.hero-canvas {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-canvas canvas {
    display: block;
    width: 100% !important;
    height: 100% !important;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        radial-gradient(ellipse 70% 60% at 50% 42%, rgba(100, 116, 139, 0.28) 0%, rgba(100, 116, 139, 0.08) 55%, rgba(100, 116, 139, 0.18) 100%),
        linear-gradient(180deg, rgba(100, 116, 139, 0.1) 0%, rgba(100, 116, 139, 0.28) 100%);
    pointer-events: none;
}

.hero-container {
    position: relative;
    z-index: 2;
    width: 100%;
    padding-top: 6rem;
    padding-bottom: 4rem;
}

.hero-wavy .hero-container,
.hero-wavy .hero-content {
    pointer-events: none;
}

.hero-wavy .hero-actions,
.hero-wavy .hero-actions a,
.hero-wavy .hero-actions button {
    pointer-events: auto;
}

.hero-wavy .hero-content {
    max-width: 960px;
    margin: 0 auto;
    text-align: center;
    padding: 2.5rem 2rem;
    background: rgba(51, 65, 85, 0.35);
    border-radius: 20px;
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.28);
}

.hero-wavy .hero-title {
    font-size: clamp(2.75rem, 6vw, 4.5rem);
    font-weight: 900;
    line-height: 1.1;
    color: #ffffff;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
    text-shadow: 0 2px 28px rgba(0, 0, 0, 0.5), 0 1px 4px rgba(0, 0, 0, 0.35);
}

.hero-wavy .hero-title .highlight {
    background: none;
    -webkit-text-fill-color: #f97316;
    color: #f97316;
    text-shadow: 0 2px 24px rgba(249, 115, 22, 0.45), 0 1px 4px rgba(0, 0, 0, 0.35);
}

.hero-wavy .hero-subtitle {
    font-size: clamp(1.15rem, 2.4vw, 1.5rem);
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.96);
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 2.25rem;
    font-weight: 400;
    text-shadow: 0 1px 18px rgba(0, 0, 0, 0.45);
}

.hero-wavy .hero-actions {
    justify-content: center;
    gap: 1.25rem;
}

.hero-wavy .hero-actions .btn {
    padding: 1rem 2.25rem;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 10px;
}

.hero-wavy .btn-outline-light {
    border-width: 2px;
    border-color: rgba(255, 255, 255, 0.95);
    background: rgba(255, 255, 255, 0.08);
}

.btn-outline-light {
    border: 2px solid rgba(255, 255, 255, 0.85);
    color: #ffffff;
    background: transparent;
}

.btn-outline-light:hover {
    background: #ffffff;
    color: var(--blue-dark);
    transform: translateY(-2px);
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 3rem;
}

.hero-wavy .container {
    display: block;
}

.hero-title {
    font-size: 3rem;
    font-weight: 900;
    line-height: 1.15;
    color: var(--dark);
    margin-bottom: 1.25rem;
}

.highlight {
    background: linear-gradient(135deg, var(--orange), var(--blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--gray-500);
    margin-bottom: 2rem;
    max-width: 540px;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.hero-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 1.5rem;
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform 0.3s;
}
.hero-card:hover { transform: translateY(-4px); }
.hero-card span { font-size: 2rem; display: block; margin-bottom: 0.5rem; }
.hero-card p { font-weight: 600; color: var(--gray-700); font-size: 0.9rem; }

/* ===== Services ===== */
.services {
    padding: 5rem 0;
    background: transparent;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem;
}

.service-card {
    position: relative;
    overflow: hidden;
    background: var(--gray-100);
    border-radius: var(--radius);
    padding: 2rem;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.2);
    min-height: 300px;
}

.service-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transform: scale(1);
    transition: transform 0.4s ease;
}

.service-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 31, 77, 0.2) 0%, rgba(15, 31, 77, 0.84) 100%);
}

.service-card > * {
    position: relative;
    z-index: 1;
}
.service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(249, 115, 22, 0.55);
}

.service-card:hover::before {
    transform: scale(1.05);
}

.service-icon {
    display: none;
}

.service-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.75rem;
}

.service-card p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.service-list li {
    position: relative;
    padding-left: 1.25rem;
    margin-bottom: 0.4rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.94);
}
.service-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.55rem;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--orange);
}

.service-card-wide {
    grid-column: span 2;
}

.service-card-iot::before {
    background-image: url("https://images.unsplash.com/photo-1518770660439-4636190af475?auto=format&fit=crop&w=1400&q=80");
}

.service-card-ai::before {
    background-image: url("https://images.unsplash.com/photo-1677442136019-21780ecad995?auto=format&fit=crop&w=1400&q=80");
}

.service-card-trading::before {
    background-image: url("https://images.unsplash.com/photo-1642543492481-44e81e3914a7?auto=format&fit=crop&w=1400&q=80");
}

.service-card-software::before {
    background-image: url("https://images.unsplash.com/photo-1515879218367-8466d910aaa4?auto=format&fit=crop&w=1400&q=80");
}

.service-card-erp::before {
    background-image: url("https://images.unsplash.com/photo-1454165804606-c3d57bc86b40?auto=format&fit=crop&w=1400&q=80");
}

/* ===== Products ===== */
.products {
    padding: 5rem 0;
    background: transparent;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
}

.product-card {
    position: relative;
    overflow: hidden;
    background: var(--white);
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow);
    border: 1px solid rgba(255, 255, 255, 0.2);
    min-height: 220px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    transition: transform 0.3s;
}

.product-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transform: scale(1);
    transition: transform 0.4s ease;
}

.product-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 31, 77, 0.22) 0%, rgba(15, 31, 77, 0.82) 100%);
}

.product-card > * {
    position: relative;
    z-index: 1;
}

.product-card:hover { transform: translateY(-3px); }
.product-card:hover::before { transform: scale(1.05); }
.product-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.5rem;
}
.product-card p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.92);
}

.product-card-1::before { background-image: url("https://images.unsplash.com/photo-1461749280684-dccba630e2f6?auto=format&fit=crop&w=1400&q=80"); }
.product-card-2::before { background-image: url("https://images.unsplash.com/photo-1477959858617-67f85cf4f1df?auto=format&fit=crop&w=1400&q=80"); }
.product-card-3::before { background-image: url("https://images.unsplash.com/photo-1497366754035-f200968a6e72?auto=format&fit=crop&w=1400&q=80"); }
.product-card-4::before { background-image: url("https://images.unsplash.com/photo-1677442136019-21780ecad995?auto=format&fit=crop&w=1400&q=80"); }
.product-card-5::before { background-image: url("https://images.unsplash.com/photo-1611974789855-9c2a0a7236a3?auto=format&fit=crop&w=1400&q=80"); }
.product-card-6::before { background-image: url("https://images.unsplash.com/photo-1552664730-d307ca884978?auto=format&fit=crop&w=1400&q=80"); }

/* ===== Floating circles ===== */
.float-circles {
    position: fixed;
    inset: 0;
    z-index: 1;
    overflow: hidden;
    pointer-events: none;
}

.float-circle {
    position: absolute;
    border-radius: 50%;
    background: rgba(249, 115, 22, 0.38);
    border: 2px solid rgba(249, 115, 22, 0.5);
    box-shadow: 0 0 48px rgba(249, 115, 22, 0.28);
    animation: floatCircle var(--duration, 12s) ease-in-out var(--delay, 0s) infinite;
    will-change: transform;
}

.float-circle.accent-blue {
    background: rgba(37, 99, 235, 0.38);
    border: 2px solid rgba(37, 99, 235, 0.5);
    box-shadow: 0 0 48px rgba(37, 99, 235, 0.28);
}

.page-hero,
.services,
.products,
.contact {
    position: relative;
    z-index: 2;
    background: transparent;
}

.navbar,
.footer {
    position: relative;
    z-index: 3;
}

@keyframes floatCircle {
    0%,
    100% {
        transform: translate3d(0, 0, 0) scale(1);
    }
    25% {
        transform: translate3d(28px, -36px, 0) scale(1.08);
    }
    50% {
        transform: translate3d(-24px, 22px, 0) scale(0.9);
    }
    75% {
        transform: translate3d(18px, 16px, 0) scale(1.06);
    }
}

@media (prefers-reduced-motion: reduce) {
    .float-circle,
    .stardust-dot {
        animation: none;
    }
}

/* ===== Stardust ===== */
.stardust {
    position: fixed;
    inset: 0;
    z-index: 1;
    overflow: hidden;
    pointer-events: none;
}

.stardust-dot {
    position: absolute;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 0 8px currentColor;
    animation: stardustTwinkle var(--duration, 3.5s) ease-in-out var(--delay, 0s) infinite,
        stardustDrift var(--drift, 18s) linear var(--delay, 0s) infinite;
}

.stardust-dot.orange {
    background: rgba(249, 115, 22, 0.95);
    color: #f97316;
}

.stardust-dot.blue {
    background: rgba(59, 130, 246, 0.95);
    color: #3b82f6;
}

.stardust-dot.white {
    background: rgba(255, 255, 255, 0.95);
    color: #ffffff;
}

@keyframes stardustTwinkle {
    0%, 100% { opacity: 0.15; transform: scale(0.6); }
    40% { opacity: 1; transform: scale(1.25); }
    70% { opacity: 0.45; transform: scale(0.85); }
}

@keyframes stardustDrift {
    0% { translate: 0 0; }
    50% { translate: var(--dx, 18px) calc(var(--dy, -28px)); }
    100% { translate: 0 0; }
}

/* ===== About ===== */
.about-page {
    background: #F8FAFF;
}

.about-page .page-hero h1,
.about-page .content-section .content-lead {
    color: var(--dark);
}

.about-page .page-hero p {
    color: var(--gray-500);
}

[data-theme="dark"] .about-page {
    background: #080c18;
}

[data-theme="dark"] .about-page .page-hero h1,
[data-theme="dark"] .about-page .content-section .content-lead {
    color: #f8fafc;
}

[data-theme="dark"] .about-page .page-hero p {
    color: rgba(226, 232, 240, 0.82);
}

.fish-swarm-canvas {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.water-overlay {
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
    background:
        linear-gradient(180deg, rgba(186, 230, 253, 0.22) 0%, rgba(125, 211, 252, 0.14) 45%, rgba(59, 130, 246, 0.18) 100%);
    -webkit-backdrop-filter: blur(2px) saturate(145%);
    backdrop-filter: blur(2px) saturate(145%);
}

.water-overlay__caustic,
.water-overlay__sheen {
    position: absolute;
    inset: -30%;
    pointer-events: none;
}

.water-overlay__caustic {
    background:
        radial-gradient(ellipse 40% 18% at 20% 30%, rgba(255, 255, 255, 0.28), transparent 55%),
        radial-gradient(ellipse 50% 22% at 70% 55%, rgba(147, 197, 253, 0.22), transparent 60%),
        radial-gradient(ellipse 35% 16% at 40% 80%, rgba(255, 255, 255, 0.16), transparent 58%);
    animation: waterDrift 14s ease-in-out infinite;
    mix-blend-mode: screen;
}

.water-overlay__caustic--alt {
    animation-duration: 18s;
    animation-direction: reverse;
    opacity: 0.7;
}

.water-overlay__sheen {
    background:
        repeating-linear-gradient(
            185deg,
            transparent 0 26px,
            rgba(255, 255, 255, 0.08) 28px,
            transparent 32px
        );
    animation: waterRipple 9s linear infinite;
    opacity: 0.55;
}

[data-theme="dark"] .water-overlay {
    background:
        linear-gradient(180deg, rgba(30, 58, 95, 0.34) 0%, rgba(15, 23, 42, 0.22) 50%, rgba(8, 47, 73, 0.32) 100%);
}

@keyframes waterDrift {
    0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
    50% { transform: translate3d(4%, -3%, 0) scale(1.06); }
}

@keyframes waterRipple {
    0% { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(-2%, 6%, 0); }
}

@media (prefers-reduced-motion: reduce) {
    .water-overlay__caustic,
    .water-overlay__sheen {
        animation: none;
    }
}

.about-page .page-hero,
.about-page .content-section,
.about-page .footer {
    position: relative;
    z-index: 2;
}

.about-page .page-hero,
.about-page .content-section {
    background: transparent;
}

.about-text h2 {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 1rem;
}

.about-text p {
    color: var(--gray-500);
    font-size: 1.05rem;
    margin-bottom: 1rem;
    max-width: 700px;
}

.about-stats {
    display: flex;
    gap: 3rem;
    margin-top: 2rem;
}

.about-stats-wrap {
    display: flex;
    justify-content: center;
}

.stat { text-align: center; }
.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: var(--orange);
}
.stat-label {
    font-size: 0.85rem;
    color: var(--gray-500);
}

/* ===== Contact ===== */
.contact {
    padding: 5rem 0;
    background: transparent;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 3rem;
    align-items: start;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.85rem 1rem;
    border: 1px solid var(--gray-300);
    border-radius: 8px;
    font-family: var(--font);
    font-size: 0.95rem;
    transition: border-color 0.2s;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--orange);
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-item h4 {
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 0.25rem;
}
.contact-item p { color: var(--gray-500); }

.contact-item a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}

.contact-item a:hover {
    color: var(--orange);
}

/* ===== Flying mail ===== */
.fly-mail {
    position: fixed;
    inset: 0;
    z-index: 1;
    overflow: hidden;
    pointer-events: none;
}

.fly-item {
    position: absolute;
    left: -12%;
    top: 0;
    color: rgba(249, 115, 22, 0.55);
    animation: flyMail var(--duration, 16s) linear var(--delay, 0s) infinite;
    will-change: transform;
}

.fly-item.blue {
    color: rgba(37, 99, 235, 0.5);
}

.fly-item.reverse {
    left: auto;
    right: -12%;
    animation-name: flyMailReverse;
}

.fly-item svg {
    display: block;
    width: var(--size, 36px);
    height: var(--size, 36px);
    filter: drop-shadow(0 6px 10px rgba(15, 23, 42, 0.12));
}

[data-theme="dark"] .fly-item {
    color: rgba(251, 146, 60, 0.62);
}

[data-theme="dark"] .fly-item.blue {
    color: rgba(96, 165, 250, 0.58);
}

@keyframes flyMail {
    0% {
        transform: translate3d(0, var(--start, 20vh), 0) rotate(-14deg);
        opacity: 0;
    }
    8% { opacity: 0.9; }
    50% {
        transform: translate3d(58vw, calc(var(--start, 20vh) + var(--arc, -40px)), 0) rotate(10deg);
    }
    92% { opacity: 0.9; }
    100% {
        transform: translate3d(118vw, var(--start, 20vh), 0) rotate(-8deg);
        opacity: 0;
    }
}

@keyframes flyMailReverse {
    0% {
        transform: translate3d(0, var(--start, 30vh), 0) rotate(16deg) scaleX(-1);
        opacity: 0;
    }
    8% { opacity: 0.9; }
    50% {
        transform: translate3d(-58vw, calc(var(--start, 30vh) + var(--arc, 36px)), 0) rotate(-8deg) scaleX(-1);
    }
    92% { opacity: 0.9; }
    100% {
        transform: translate3d(-118vw, var(--start, 30vh), 0) rotate(12deg) scaleX(-1);
        opacity: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .fly-item {
        animation: none;
        opacity: 0.35;
    }
}

/* ===== Footer ===== */
.footer {
    background: #0F1F4D;
    padding: 3rem 0 1.5rem;
    color: #E2E8F0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-brand .logo-hajari { color: var(--orange); font-size: 1.5rem; font-weight: 800; }
.footer-brand .logo-automation { color: #EFF6FF; font-size: 1.5rem; font-weight: 800; }
.footer-brand p { color: #CBD5E1; font-size: 0.9rem; }

.footer-links {
    display: flex;
    gap: 1.5rem;
}
.footer-links a {
    color: #E2E8F0;
    font-size: 0.9rem;
    transition: color 0.2s;
}
.footer-links a:hover { color: var(--orange); }

.footer-bottom {
    border-top: 1px solid rgba(148, 163, 184, 0.35);
    padding-top: 1.5rem;
    text-align: center;
    font-size: 0.85rem;
    color: #94A3B8;
}

/* ===== Inner Pages ===== */
.page-hero {
    padding: 9rem 0 3rem;
    background: transparent;
    text-align: center;
}

.page-hero h1 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 0.75rem;
}

.page-hero p {
    max-width: 760px;
    margin: 0 auto;
    color: var(--gray-500);
    font-size: 1.05rem;
}

.content-section {
    padding: 4rem 0;
}

.mesh-section {
    position: relative;
    width: 100%;
    overflow: hidden;
    isolation: isolate;
    background: #EEF4FF;
}

.mesh-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.mesh-canvas canvas {
    display: block;
    width: 100% !important;
    height: 100% !important;
}

.mesh-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(180deg, rgba(248, 250, 255, 0.42) 0%, rgba(238, 244, 255, 0.28) 100%);
    pointer-events: none;
}

.mesh-container {
    position: relative;
    z-index: 2;
}

[data-theme="dark"] .mesh-section {
    background: #0F172A;
}

[data-theme="dark"] .mesh-overlay {
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.48) 0%, rgba(15, 23, 42, 0.32) 100%);
}

[data-theme="dark"] .mesh-section .section-header h2 {
    color: #f8fafc;
}

[data-theme="dark"] .mesh-section .section-header p {
    color: #94a3b8;
}

.content-section.alt {
    background: var(--blue-100);
}

.content-lead {
    max-width: 850px;
    margin: 0 auto 2rem;
    text-align: center;
    color: var(--gray-500);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
}

.feature-card {
    position: relative;
    overflow: hidden;
    background: var(--white);
    border-radius: var(--radius);
    padding: 1.75rem;
    border: 1px solid var(--gray-100);
    box-shadow: var(--shadow);
    min-height: 210px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.feature-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transform: scale(1);
    transition: transform 0.4s ease;
}

.feature-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 31, 77, 0.2) 0%, rgba(15, 31, 77, 0.78) 100%);
}

.feature-card:hover::before {
    transform: scale(1.06);
}

.feature-card h3,
.feature-card p {
    position: relative;
    z-index: 1;
}

.feature-card h3 {
    color: #ffffff;
    margin-bottom: 0.5rem;
}

.feature-card p {
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.95rem;
}

.feature-card-iot::before {
    background-image: url("https://images.unsplash.com/photo-1518770660439-4636190af475?auto=format&fit=crop&w=1200&q=80");
}

.feature-card-ai::before {
    background-image: url("https://images.unsplash.com/photo-1677442136019-21780ecad995?auto=format&fit=crop&w=1200&q=80");
}

.feature-card-trading::before {
    background-image: url("https://images.unsplash.com/photo-1642543492481-44e81e3914a7?auto=format&fit=crop&w=1200&q=80");
}

.feature-card-erp::before {
    background-image: url("https://images.unsplash.com/photo-1454165804606-c3d57bc86b40?auto=format&fit=crop&w=1200&q=80");
}

.feature-card-mission::before {
    background-image: url("https://images.unsplash.com/photo-1520607162513-77705c0f0d4a?auto=format&fit=crop&w=1400&q=80");
}

.feature-card-vision::before {
    background-image: url("https://images.unsplash.com/photo-1460925895917-afdab827c52f?auto=format&fit=crop&w=1400&q=80");
}

.feature-card-execution::before {
    background-image: url("https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?auto=format&fit=crop&w=1400&q=80");
}

.feature-card-wide {
    grid-column: span 2;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .nav-desktop { display: none; }
    .mobile-menu-btn { display: block; }

    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-wavy .hero-container {
        padding-top: 5.5rem;
        padding-bottom: 3rem;
    }

    .hero-wavy .hero-content {
        padding: 2rem 1.25rem;
        border-radius: 16px;
    }

    .hero-wavy .hero-title {
        font-size: clamp(2.25rem, 9vw, 3rem);
        margin-bottom: 1.25rem;
    }

    .hero-wavy .hero-subtitle {
        font-size: 1.125rem;
        margin-bottom: 2rem;
    }

    .hero-wavy .hero-actions .btn {
        width: 100%;
        max-width: 280px;
        padding: 0.95rem 1.5rem;
        font-size: 1rem;
    }

    .hero-title { font-size: 2.25rem; }
    .hero-subtitle { margin: 0 auto 2rem; }
    .hero-actions { justify-content: center; }

    .services-grid { grid-template-columns: 1fr; }
    .products-grid { grid-template-columns: 1fr; }
    .feature-grid { grid-template-columns: 1fr; }
    .service-card-wide { grid-column: span 1; }
    .feature-card-wide { grid-column: span 1; }

    .contact-grid { grid-template-columns: 1fr; }

    .about-stats { justify-content: center; }
    .page-hero h1 { font-size: 2rem; }

    .footer-content {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
    .footer-links { flex-wrap: wrap; justify-content: center; }
}
